: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: 15px;
  --mw-font: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --mw-max-width: 92%;

  --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;
}

.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-top: 14px;
  padding-bottom: 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: 15px;
  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: 95px;
  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: 15px;
  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 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.gallery-item {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 0;
  border-radius: 15px;
  padding: 0;
  margin: 0;
  background: #111;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  display: block;
}

.gallery-item img,
.gallery-item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  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,
.gallery-item:hover video {
  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 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gallery-item {
    aspect-ratio: 1 / 1.08;
    border-radius: 15px;
  }

  .lightbox {
    padding: 6px;
  }

.lightbox-content {
  width: 95vw;
  height: 82vh;
}

.lightbox-content img,
.lightbox-content video {
  width: 100%;
  height: 100%;
}
}

.gallery-item.is-video::after {
  content: "▶";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0,0,0,.58);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  z-index: 2;
  pointer-events: none;
}

.gallery-item.is-video::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.18), rgba(0,0,0,0) 45%);
  z-index: 1;
  pointer-events: none;
}

.gallery-item.is-video img,
.gallery-item.is-video video {
  position: relative;
  z-index: 0;
}

/* =========================
   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: 95vw;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 15px;
  background: #00000000;

  transform: scale(1);
  opacity: 1;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.lightbox.is-hidden .lightbox-content img,
.lightbox.is-hidden .lightbox-content video {
  transform: scale(0.96);
  opacity: 0;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 60px;
  height: 40px;
  border: 0;
  border-radius: 15px;
  background: rgba(0, 0, 0, 1);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 96%;
  transform: translateY(-50%);
  width: 60px;
  height: 40px;
  border: 0;
  border-radius: 15px;
  background: rgba(0, 0, 0, 1);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 99;
}

.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-panel {
  display: grid;
  gap: 15px;
  align-content: start;
}

.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;
  }
}

.install-pwa-btn {
  position: fixed;
  right: 6.5%;
  bottom: 96px;
  z-index: 9999;
  border: none;
  border-radius: 15px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--mw-shadow);
  background: var(--mw-primary, #8b5e3c);
  color: var(--mw-primary-text, #ffffff);
}

.install-pwa-btn.is-hidden {
  display: none !important;
}


@media (max-width: 640px) {
  .install-pwa-btn {
    right: 12px;
    left: 12px;
    bottom: 96px;
    width: auto;
    text-align: center;
  }
}

.qr-card{
  background:#fff;
  border:1px solid #ddd;
  border-radius:15px;
  padding:16px;
}

.qr-preview{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  align-items:flex-start;
  margin-top:12px;
}

.qr-box{
  background:#fff;
  border:1px solid #ddd;
  border-radius:15px;
  padding:14px;
  min-width:220px;
  text-align:center;
}

.qr-box canvas{
  display:block;
  margin:0 auto 10px auto;
  max-width:100%;
  height:auto;
}

.qr-box-title{
  font-weight:700;
  margin-bottom:6px;
}

.qr-box-subtitle{
  color:#6b7280;
  font-size:13px;
}

.qr-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

.qr-actions button,
.qr-actions a{
  width:auto;
  margin-top:0;
  padding:10px 12px;
  border-radius:15px;
  background:#111;
  color:#fff;
  text-decoration:none;
  border:0;
  cursor:pointer;
}

.qr-url-readonly{
  background:#f9fafb;
}



/* =========================
   DEMO POPUP
========================= */

.demo-popup.is-hidden {
  display: none;
}

.demo-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.demo-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.demo-popup-card {
  position: relative;
  z-index: 2;
  width: min(90vw, 760px);
  min-height: 42vh;
  margin: 8vh auto 0;
  background: #fff;
  color: #111;
  border-radius: 24px;
  padding: 34px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.demo-popup-card h3 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.demo-popup-card p {
  margin: 0 auto;
  max-width: 34ch;
  line-height: 1.45;
  color: #444;
  font-size: clamp(18px, 2.2vw, 24px);
}

.demo-popup-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}

.demo-popup-btn {
  min-width: 170px;
  border: 1px solid #ddd;
  background: #fff;
  color: #111;
  border-radius: 14px;
  padding: 14px 18px;
  cursor: pointer;
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 600;
}

.demo-popup-btn-primary {
  background: var(--mw-primary, #8b5e3c);
  color: var(--mw-primary-text, #fff);
  border-color: var(--mw-primary, #8b5e3c);
}

@media (max-width: 640px) {
  .demo-popup-card {
    width: min(92vw, 92vw);
    min-height: 48vh;
    margin: 6vh auto 0;
    padding: 26px 18px;
    border-radius: 20px;
  }

  .demo-popup-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .demo-popup-btn {
    width: 100%;
    min-width: 0;
  }
}