:root {
  --mw-bg: #f7f7f7;
  --mw-surface: #ffffff;
  --mw-text: #222222;
  --mw-muted: #6b7280;
  --mw-border: #e5e7eb;

  --mw-primary: #111111;
  --mw-primary-text: #ffffff;

  --mw-nav-bg: #ffffff;
  --mw-nav-text: #8b8b8b;
  --mw-nav-active: #111111;

  --mw-radius: 18px;
  --mw-font: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --mw-max-width: 90%;

  --mw-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);

  --contact-btn-bg: #f7f5f2;
  --contact-btn-icon: #8b5e3c;

  --footer-btn-bg: #8b5e3c;
  --footer-btn-icon: #ffffff;

  --footer-btn-active-bg: #6f4a2f;
  --footer-btn-active-icon: #ffffff;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--mw-bg);
  color: var(--mw-text);
  font-family: var(--mw-font);
}

body {
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--mw-primary);
  text-decoration: none;
}

button {
  font: inherit;
}

.app-shell {
  max-width: var(--mw-max-width);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--mw-bg);
  position: relative;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mw-border);
  padding: 10px 14px;
}

.brand {
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-logo {
  display: block;
  max-width: 65%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.app-main {
  padding: 14px;
  padding-bottom: 92px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.card {
  background: var(--mw-surface);
  border: 1px solid var(--mw-border);
  border-radius: var(--mw-radius);
  box-shadow: var(--mw-shadow);
  padding: 14px;
  margin-bottom: 14px;
}

.hero-card {
  padding: 0;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: clamp(320px, 55vh, 560px);
  object-fit: cover;
  background: #ececec;
  display: block;
}

.hero-content {
  padding: 18px 16px 16px;
  text-align: center;
}

.hero-description {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--mw-text);
}

.muted {
  color: var(--mw-muted);
  line-height: 1.5;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border-radius: 15px;
  border: 1px solid var(--mw-border);
  text-align: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    border-radius: 15px;
    border: 1px solid transparent;
    background: var(--mw-primary);
    color: var(--mw-primary-text);
    margin-top: 4px;
    cursor: pointer;
    font-weight: 600;
}

.btn-secondary {
  background: #fff;
  color: var(--mw-text);
}

.section-title,
.subsection-title {
  margin: 0 0 12px;
}

.booking-box {
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
}

.booking-box iframe {
  width: 100%;
  height: 700px;
  border: 0;
  display: block;
}

.contact-list,
.hours-list {
  display: grid;
  gap: 15px;
}

.contact-item,
.hours-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--mw-bg);
  border-radius: 15px;
  padding: 12px 14px;
  border: 1px solid var(--mw-border);
}

.hours-row strong {
  font-size: 14px;
}



.is-hidden {
  display: none !important;
}

.open-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  background: #eaf7ef;
  color: #156f37;
}

.open-status.is-closed {
  background: #fdecec;
  color: #b42318;
}

.icon-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.icon-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: var(--mw-text);
}

.icon-action img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.icon-action span {
  font-size: 13px;
  font-weight: 600;
}

/* =========================
   HOME
========================= */

.topbar {
  display: none;
}

.app-main {
  padding: 14px 14px 110px;
}

#view-home.view {
  display: none;
}

#view-home.view.is-active {
  display: grid;
}

.home-brand {
  padding: 4px 2px 0;
}

.home-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 15px;
  margin: 0 0 10px;
}

.home-name {
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.08;
  font-weight: 700;
  color: var(--mw-text);
}

.home-subtitle {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.3;
  color: var(--mw-muted);
}

.home-description {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--mw-text);
}

.home-cover-wrap {
  margin-bottom: 0;
}

.home-cover {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: var(--mw-shadow);
  margin-bottom: 50px;
}

.home-panel {
  display: grid;
  gap: 15px;
  align-content: start;
}

.home-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 15px;
  background: var(--mw-primary);
  color: var(--mw-primary-text);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--mw-shadow);
}

.home-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  border-radius: 15px;
  background: var(--mw-surface);
  padding: 8px 14px;
  text-align: center;
  font-size: 15px;
  line-height: 1.3;
  color: var(--mw-text);
  border: 1px solid var(--mw-border);
}

.home-status {
  font-weight: 600;
}

.home-status.is-open {
  background: #eef8f0;
  color: #1f6b35;
}

.home-status.is-closed {
  background: #fdecec;
  color: #b42318;
}

.home-action {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    border-radius: 15px;
    background: #fff;
    overflow: hidden;
    box-shadow: var(--mw-shadow);
}

.home-action img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ===== DESKTOP / TABLET GRANDE ===== */
@media (min-width: 992px) {
  #view-home {
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.75fr);
    grid-template-areas:
      "brand panel"
      "cover panel";
    align-items: start;
    column-gap: 36px;
    row-gap: 22px;
    margin-bottom: 50px;
  }

  .home-brand {
    grid-area: brand;
  }

  .home-cover-wrap {
    grid-area: cover;
    }

      .home-panel {
        grid-area: panel;
        position: sticky;
        top: 50px;
        align-self: start;
        border-radius: 15px;
        padding: 5px;
        border: 1px solid var(--mw-border);
        box-shadow: var(--mw-shadow);
    }

 .home-action {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    border-radius: 15px;
    background: #fff;
    overflow: hidden;
    border: 1px solid var(--mw-border);
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.0);
}   

.home-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 15px;
  background: var(--mw-primary);
  color: var(--mw-primary-text);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.0);
}

  .home-logo {
    max-width: 100%;
  }

  .home-name {
    font-size: clamp(34px, 3vw, 56px);
  }
}



/* =========================
   BOTONES CONTACTO
========================= */

.home-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
  margin-bottom: 20px;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background: var(--contact-btn-bg);
  color: var(--contact-btn-icon);
  border: 1px solid var(--mw-border);
  box-shadow: var(--mw-shadow);
  overflow: hidden;
  text-decoration: none;
}

.contact-btn .icon-wrap {
  width: 100%;
  height: 100%;
}

/* =========================
   BOTONES FOOTER
========================= */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(247, 245, 242, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--mw-font);
}

.footer-btn {
  width: 65px;
  height: 65px;
  border-radius: 14px;
  background: var(--footer-btn-bg);
  color: var(--footer-btn-icon);
  box-shadow: var(--mw-shadow);
}

.nav-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--mw-text);
}

.nav-item.is-active .footer-btn {
  background: var(--footer-btn-active-bg);
  color: var(--footer-btn-active-icon);
  transform: scale(0.92);
}

.nav-item.is-active .nav-label {
  color: var(--mw-primary);
}

/* Ajustes finos de centrado SVG */
.icon-whatsapp {
  transform: translate(0.5px, 0.5px) scale(0.75);
  transform-origin: center;
}

.icon-contact {
  transform: translate(0px, 1px) scale(0.84);
  transform-origin: center;
}

.footer-btn .icon-contact {
  width: 95%;
  height: 95%;
}

/* =========================
   GALERIA
========================= */

.gallery-page {
  display: grid;
}

.gallery-brand {
  padding: 4px 2px 0;
}

.gallery-box-wrap {
  margin-bottom: 0;
}

.gallery-box {
  padding: 10px;
  border-radius: 15px;
  background: var(--mw-surface);
  box-shadow: var(--mw-shadow);
  margin-bottom: 50px;
}

.gallery-grid {
  column-count: 2;
  column-gap: 10px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;
  border: none;
  outline: none;
  padding: 0;
  margin: 0 0 10px;
  background: transparent;

  display: block;
  width: 100%;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 15px;
  transition: transform 0.25s ease;
}

.gallery-item:hover,
.gallery-item:focus,
.gallery-item:active {
  border: none;
  outline: none;
  background: transparent;
}

.gallery-item:hover img {
  transform: scale(1.02);
}

.gallery-panel {
  display: grid;
  gap: 15px;
  align-content: start;
}

/* escritorio */
@media (min-width: 992px) {
  .gallery-page {
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.75fr);
    grid-template-areas:
      "brand panel"
      "grid panel";
    align-items: start;
    column-gap: 36px;
    row-gap: 22px;
    margin-bottom: 50px;
  }

  .gallery-brand {
    grid-area: brand;
  }

  .gallery-box-wrap {
    grid-area: grid;
  }

  .gallery-panel {
    grid-area: panel;
    position: sticky;
    top: 50px;
    border-radius: 15px;
    padding: 5px;
    border: 1px solid var(--mw-border);
    box-shadow: var(--mw-shadow);
  }

  .gallery-grid {
    column-count: 3;
    column-gap: 10px;
  }
}

/* =========================
   LIGHTBOX
========================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;

  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.lightbox.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lightbox-content {
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 15px;

  transform: scale(1);
  opacity: 1;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.lightbox.is-hidden .lightbox-content img {
  transform: scale(0.96);
  opacity: 0;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

/* =========================
   CONTACTE
========================= */

#view-contact.view {
  display: none;
}

#view-contact.view.is-active {
  display: block;
}

.contact-page {
  display: grid;
}

.contact-brand {
  padding: 4px 2px 0;
}

.contact-main {
  display: grid;
  gap: 14px;
  margin-bottom: 50px;
}

.contact-card {
  background: var(--mw-surface);
  border-radius: 15px;
  box-shadow: var(--mw-shadow);
  padding: 16px;
}

.contact-list-modern {
  display: grid;
  gap: 10px;
}

.contact-row {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 15px;
  background: var(--mw-bg);
  color: var(--mw-text);
  text-decoration: none;
  border: 1px solid var(--mw-border);
}

.contact-row-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--mw-muted);
}

.contact-row-value {
  font-size: 15px;
  line-height: 1.4;
  word-break: break-word;
}

.contact-maps-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 15px;
  background: var(--mw-bg);
  color: var(--mw-text);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--mw-border);
}

@media (min-width: 992px) {
  .contact-page {
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.75fr);
    grid-template-areas:
      "brand panel"
      "main panel";
    align-items: start;
    column-gap: 36px;
    row-gap: 22px;
    margin-bottom: 50px;
  }

  .contact-brand {
    grid-area: brand;
  }

  .contact-main {
    grid-area: main;
  }

  .contact-panel {
    grid-area: panel;
    position: sticky;
    top: 50px;
    display: grid;
    gap: 15px;
    align-content: start;
    border-radius: 15px;
    padding: 5px;
    border: 1px solid var(--mw-border);
    box-shadow: var(--mw-shadow);
  }
}

/* =========================
   RESERVES
========================= */

#view-booking.view {
  display: none;
}

#view-booking.view.is-active {
  display: block;
}

.booking-page {
  display: grid;  
}

.booking-brand {
  padding: 4px 2px 0;
}

.booking-main {
  display: grid;  
  gap: 15px;
}

.booking-box-card {
  background: var(--mw-surface);
  border-radius: 15px;
  box-shadow: var(--mw-shadow);
  padding: 16px;
  margin-bottom: 35px;
}

.booking-actions-mobile {
  margin-top: 0;
}

.booking-panel {
  display: none;
}

@media (min-width: 992px) {
  .booking-page {
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.75fr);
    grid-template-areas:
      "brand panel"
      "main panel";
    align-items: start;
    column-gap: 36px;
    row-gap: 22px;
    margin-bottom: 50px;
  }

  .booking-brand {
    grid-area: brand;
  }

  .booking-main {
    grid-area: main;
  }

  .booking-panel {
    grid-area: panel;
    display: grid;
    gap: 15px;
    align-content: start;
    position: sticky;
    top: 123px;
    border-radius: 15px;
    padding: 5px;
    border: 1px solid var(--mw-border);
    box-shadow: var(--mw-shadow);
  }


  .booking-actions-mobile {
    display: none;
  }
}

