/* sitios/hospedajes/css/main.css */
@import url('./base.css');
@import url('./motion.css');

/* ═══════════════════════════════════════════════════════
   POLISH — Fix 1 Typography: pareo display + body
   base.css ya cubre body { font-family: var(--font-body) }.
   Este bloque refuerza body-font en elementos específicos
   que pueden estar recibiendo --font-display por herencia
   de un ancestro o regla de componente.
═══════════════════════════════════════════════════════ */
p,
.feature-chip,
.feature-label,
.res-card-text,
.footer-family-list a,
.footer-address,
.footer-copyright,
.topbar-nav a,
.footer-lang-strip,
.loft-card-chips li,
.loft-card-chips span,
.loft-modal-chips li,
.amen-label,
.pol-item p,
.act-card-desc,
.dep-card-chips li,
.hero-sub,
.res-card-meta,
.reserva-stepper-label,
.reserva-mockup-note,
.disp-cta-note,
small,
.small {
  font-family: var(--font-body);
}

/* Componentes por sección se agregan abajo durante Fase 3 (Vulcano) */

/* ═══════════════════════════════════════════════════════
   SKIP LINK
═══════════════════════════════════════════════════════ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: calc(var(--z-topbar) + 10);
  background: var(--bosque-deep);
  color: var(--linen);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--small);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  transition: top 0.2s var(--ease-out);
  white-space: nowrap;
}
.skip-link:focus {
  top: var(--space-md);
  outline: 2px solid var(--bosque-niebla);
  outline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════
   TOPBAR
═══════════════════════════════════════════════════════ */
.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-topbar);
  width: 100%;
  height: 96px; /* antes 72 — logo más presente */
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: var(--glass-border);
  box-shadow: var(--shadow-sm);
  /* [layout-transition fix] height → transform para evitar jank de layout */
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.topbar.scrolled {
  height: 72px; /* antes 56 — proporcional al nuevo base */
  box-shadow: var(--shadow-md);
}

.topbar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-lg);
  max-width: var(--container-max);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--container-pad-x);
}

/* Logo */
.topbar-logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.topbar-logo {
  height: 80px; /* antes 44 — casi doble, marca presente */
  width: auto;
  display: block;
  transform-origin: left center;
  /* [layout-transition fix] usar transform: scale() en lugar de height */
  transition: transform 0.3s var(--ease-out);
}
.topbar.scrolled .topbar-logo {
  /* escala uniforme al 75% — mantiene proporción 475×265 nativa */
  transform: scale(0.75);
}

/* Mobile: proporciones reducidas pero logo sigue siendo legible */
@media (max-width: 767px) {
  .topbar        { height: 80px; }
  .topbar.scrolled { height: 64px; }
  .topbar-logo   { height: 60px; }
  .topbar.scrolled .topbar-logo { height: 48px; }
}

/* Nav centrado */
.topbar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
}

.topbar-nav a {
  font-size: clamp(.85rem, .5vw + .78rem, .95rem);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text);
  padding: var(--space-xs) 0;
  position: relative;
  transition: color 0.2s ease;
}
.topbar-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--bosque-medio);
  /* [layout-transition fix] width → transform: scaleX() con origin left */
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s var(--ease-out);
  width: 100%; /* width fijo — la animación usa scaleX */
}
.topbar-nav a:hover,
.topbar-nav a:focus-visible {
  color: var(--bosque-medio);
}
.topbar-nav a:hover::after,
.topbar-nav a:focus-visible::after { transform: scaleX(1); }

/* Reservar — botón especial */
.topbar-nav .nav-reservar {
  background: var(--bosque-deep);
  color: var(--linen);
  padding: calc(var(--space-xs) + 2px) var(--space-md);
  border-radius: var(--radius-full);
  transition: background 0.2s ease, transform 0.15s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.topbar-nav .nav-reservar::after { display: none; }
.topbar-nav .nav-reservar:hover,
.topbar-nav .nav-reservar:focus-visible {
  background: var(--bosque-medio);
  color: var(--linen);
}

/* Switcher idioma */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.lang-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px; /* WCAG touch target ≥ 44×44 */
  padding: 8px; /* padding transparente: visual 28px, hit area 44px */
  border-radius: var(--radius-full);
  overflow: hidden;
  cursor: pointer;
  transition: outline 0.15s ease, transform 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.lang-btn:focus-visible {
  outline: 2px solid var(--bosque-medio);
  outline-offset: 2px;
}
.lang-btn.active {
  outline: 2px solid var(--bosque-deep);
  outline-offset: 2px;
}
.lang-btn svg {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}

/* Hamburger — solo mobile */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.hamburger-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Off-canvas menu mobile */
.menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(31, 40, 32, 0.6);
  z-index: calc(var(--z-topbar) - 1);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.menu-backdrop.active {
  opacity: 1;
}

.menu-offcanvas {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100dvh;
  background: var(--linen);
  z-index: var(--z-topbar);
  padding: var(--space-2xl) var(--space-xl);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-drawer, cubic-bezier(0.32, 0.72, 0, 1));
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.menu-offcanvas.open {
  transform: translateX(0);
}

.menu-offcanvas nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
}

.menu-offcanvas nav a {
  font-family: var(--font-display);
  font-size: var(--h3);
  font-weight: 600;
  color: var(--color-text);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.2s ease, transform 0.2s var(--ease-out);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.menu-offcanvas nav a:hover,
.menu-offcanvas nav a:focus-visible {
  color: var(--bosque-medio);
  /* [layout-transition fix] padding-left → translateX */
  transform: translateX(var(--space-sm));
}

.menu-offcanvas .menu-close-btn {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-soft);
  transition: color 0.2s ease;
}
.menu-offcanvas .menu-close-btn:hover { color: var(--color-text); }

/* Mobile: topbar grid reorganizado — fix banderita recortada <420px */
@media (max-width: 767px) {
  .topbar-inner {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: var(--space-sm);
    padding-inline: var(--space-md); /* override del padding desktop */
  }
  .hamburger { display: flex; }
  .topbar-nav { display: none; } /* Nav va en off-canvas */
  .menu-backdrop { display: block; }

  .topbar-logo-wrap {
    justify-content: center;
    min-width: 0; /* permite shrink en viewports muy pequeños */
    grid-column: 2;
    grid-row: 1;
  }
  .hamburger {
    grid-column: 1;
    grid-row: 1;
  }
  .lang-switcher {
    grid-column: 3;
    grid-row: 1;
  }
}

/* Desktop: asegurar que el off-canvas no bloquea */
@media (min-width: 768px) {
  .menu-offcanvas { display: none; }
  .menu-backdrop { display: none !important; }
}

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.footer {
  background: var(--bosque-deep);
  color: var(--linen);
  padding-top: var(--space-3xl);
  padding-bottom: 0;
  position: relative;
}

.footer-grid {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad-x);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-3xl);
}

/* Col 1 — Brand */
.footer-brand {}
.footer-logo {
  height: auto;
  width: 200px; /* antes 120 — más grande */
  max-width: 100%;
  margin-bottom: var(--space-md);
  display: block;
}
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--h4);
  color: var(--linen);
  margin-bottom: var(--space-sm);
  max-width: none;
}
.footer-address {
  font-size: 14px;
  line-height: var(--leading-normal);
  color: rgba(244, 239, 230, 0.72);
  max-width: 38ch;
}

/* Col 2 — Contacto */
.footer-contact {}
.footer-col-heading {
  font-family: var(--font-hand);
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: var(--space-md);
}

.footer-wa-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.footer-wa-btn {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: var(--radius-full);
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}
.footer-wa-btn:hover,
.footer-wa-btn:focus-visible {
  background: rgba(37, 211, 102, 0.28);
  transform: scale(1.06);
}
.footer-wa-btn svg {
  width: 28px;
  height: 28px;
}
.footer-phone {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--linen);
  line-height: 1.2;
  transition: color 0.2s ease;
}
.footer-phone:hover { color: var(--bosque-niebla); }

.footer-socials {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}
.footer-social-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
  border: none;
}
.footer-social-btn svg {
  width: 20px;
  height: 20px;
}
.footer-social-btn:hover,
.footer-social-btn:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.06);
}

/* Col 3 — Familia */
.footer-family {}
.footer-family-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: 0;
}
.footer-family-list li {
  display: block;
}
.footer-family-list a {
  color: rgba(244, 239, 230, 0.82);
  font-size: var(--small);
  font-weight: 500;
  transition: color 0.2s ease;
  display: inline-block;
  padding: var(--space-xs) 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.footer-family-list a:hover,
.footer-family-list a:focus-visible {
  color: var(--linen);
}
.footer-family-pending {
  color: var(--bosque-niebla);
  font-size: var(--small);
  padding: var(--space-xs) 0;
  display: flex;
  align-items: center;
  min-height: 44px;
}

/* Bottom strip */
.footer-bottom {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad-x);
  padding-block: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 13px;
  color: rgba(244, 239, 230, 0.65);
  max-width: none;
}

.footer-lang-strip {
  font-size: 13px;
  color: rgba(244, 239, 230, 0.65);
  display: flex;
  gap: var(--space-xs);
  align-items: center;
}
.footer-lang-strip span[data-strip-lang] {
  transition: font-weight 0.2s ease, color 0.2s ease;
}
/* Fix 4 — clase togglada por JS, sin inline styles */
.footer-lang-strip span.is-active {
  font-weight: 700;
  color: var(--linen);
}

/* Mobile footer */
@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
}

/* ═══════════════════════════════════════════════════════
   WHATSAPP FAB
═══════════════════════════════════════════════════════ */
.whatsapp-fab {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: var(--z-fab);
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: #25D366;
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0,0,0,0.2);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.8);
}
/* fab-visible = class del JS existente; is-visible = class del brief (ambas habilitadas) */
.whatsapp-fab.fab-visible,
.whatsapp-fab.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}
.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55), 0 4px 8px rgba(0,0,0,0.2);
}
.whatsapp-fab svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.whatsapp-fab-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink, #1a1a1a);
  color: var(--linen, #f5f0e8);
  padding: 8px 12px;
  border-radius: var(--radius-sm, 6px);
  font-size: var(--small, 0.8rem);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.whatsapp-fab:hover .whatsapp-fab-tooltip { opacity: 1; }

@media (max-width: 767px) {
  .whatsapp-fab {
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 54px;
    height: 54px;
  }
  .whatsapp-fab-tooltip { display: none; }
}

/* ─── Ítem 2: Switcher banderitas <420px — prevent clip ─── */
@media (max-width: 420px) {
  .lang-switcher {
    gap: 4px;
  }
  .lang-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 4px;
  }
  .lang-btn svg {
    width: 24px;
    height: 24px;
  }
}

/* ═══════════════════════════════════════════════════════
   SECCIONES PLACEHOLDER (Task 3.1 — se rellenan en 3.2–3.7)
═══════════════════════════════════════════════════════ */
.section-placeholder {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: var(--section-pad-y);
}
.section-placeholder-inner {
  text-align: center;
  color: var(--color-text-soft);
  font-size: var(--small);
  letter-spacing: var(--tracking-wide);
}
/* Fix 5 — texto de placeholder sobre fondos oscuros (reemplaza inline style) */
.placeholder-text {
  color: rgba(244, 239, 230, 0.65);
}

/* Fix 6 — slot Beds24 (reemplaza inline style en #beds24-widget) */
.beds24-slot {
  min-height: clamp(420px, 50vh, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Alternancia de fondos — ninguna sección contigua comparte fondo */
/* === ALTERNANCIA DE BACKGROUNDS POR SECCIÓN ===
   Para que cada sección sea visualmente discernible. */
#hero          { background: var(--beige-base); }
#avandaro      { background: var(--beige-base); }     /* nivel 1 */
#lofts {
  background-color: var(--beige-surface);                              /* base nivel 2 — sigue siendo la familia */
  background-image: url('../images/lofts-bg/composicion-editorial.jpg');
  background-size: auto 100%;                                            /* altura = 100% de la seccion lofts. ancho escala proporcional */
  background-position: left top;                                         /* anclada al borde superior izquierdo de la seccion */
  background-repeat: no-repeat;
  background-attachment: scroll;                                         /* se ancla a la seccion, no al viewport */
  position: relative;
}
/* En mobile/tablet la imagen estiraria o taparia la grid. Solo desktop la ve. */
@media (max-width: 1023px) {
  #lofts {
    background-image: none;
  }
}
#casa-beto     { background: var(--beige-deep); }     /* nivel 3 */

/* ═══════════════════════════════════════════════════════
   CASA BETO'S — intro centrada + card sola del mismo
   ancho que una card de loft (no fill-width).
═══════════════════════════════════════════════════════ */
.casa-beto-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-2xl);
}
.casa-beto-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 540px;
  margin: 0 auto;
}
.casa-beto-card {
  /* hereda .loft-card; mismas medidas que un loft */
}
#amenidades    { background: var(--beige-surface); }  /* nivel 2 */
#disponibilidad { background: var(--beige-deep); } /* beige cálido claro — nivel 3 */
#actividades   { background: var(--beige-base); }     /* nivel 1 */
#resenas       { /* ya tiene .section-dark con --bosque-deep */ }
#politicas     { background: var(--beige-deep); }     /* nivel 3 */
#contacto      { background: var(--beige-surface); }  /* nivel 2 */

/* Separadores hairline entre secciones — terracota muy sutil */
#avandaro,
#lofts,
#casa-beto,
#amenidades,
#actividades,
#politicas,
#contacto {
  border-top: 1px solid rgba(139, 62, 28, 0.10);
}

/* ============================
   HERO
   ============================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 720px; /* antes 640 */
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-block: 6vh 5vh; /* respiro arriba y abajo */
}

@media (max-width: 767px) {
  .hero {
    height: 88vh;
    min-height: 560px;
  }
}

.hero-bg {
  position: absolute;
  inset: 0; /* default sin extensión */
  z-index: 0;
}
/* Extensión parallax solo cuando GSAP confirma que va a animar */
.hero.js-parallax-active .hero-bg {
  inset: -10% 0 -10% 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg,
      rgba(42, 31, 24, 0.94) 0%,
      rgba(42, 31, 24, 0.78) 40%,
      rgba(42, 31, 24, 0.40) 80%,
      rgba(42, 31, 24, 0.15) 100%),
    linear-gradient(180deg,
      rgba(42, 31, 24, 0.25) 0%,
      rgba(42, 31, 24, 0.05) 50%,
      rgba(42, 31, 24, 0.50) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-left: max(8vw, var(--container-pad-x)); /* antes 20vw — demasiado lejos */
  padding-right: var(--container-pad-x);
  color: var(--linen);
  display: flex;
  flex-direction: column;
  align-items: flex-start;    /* hijos alineados a la izquierda */
  justify-content: center;    /* bloque centrado verticalmente dentro del hero */
  min-height: 100%;           /* garantiza que el flex-column tenga alto suficiente */
}

/* hero-content 1024 ya cubierto por el max() en base */

@media (max-width: 767px) {
  .hero-content {
    padding-left: var(--container-pad-x);
  }
}

.hero-eyebrow {
  display: block;
  color: var(--beige-base);
  margin-bottom: var(--space-md);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

/* h1 hero — color linen + max-width 2 líneas naturales + text-shadow reforzado */
.hero #hero-title {
  color: var(--linen);
  margin-bottom: var(--space-lg);
  max-width: 22ch;
  overflow-wrap: break-word;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75), 0 1px 2px rgba(0, 0, 0, 0.6);
  font-weight: 500;
}

@media (max-width: 767px) {
  .hero #hero-title {
    max-width: 100%;
  }
}

/* Word-reveal spans heredan el color del padre */
.hero .gsap-word-reveal .word > span {
  color: inherit;
}

.hero-sub {
  font-size: clamp(1.05rem, .8vw + .9rem, 1.3rem);
  max-width: 520px;
  margin-bottom: var(--space-xl);
  color: rgba(244, 239, 230, 0.96);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: var(--terracota);
  color: var(--linen);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: clamp(.9rem, .5vw + .82rem, 1rem);
  letter-spacing: var(--tracking-wide);
  box-shadow: 0 4px 24px rgba(42, 31, 24, 0.45), 0 2px 6px rgba(0,0,0,0.3);
  transition: background var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  text-decoration: none;
  min-height: 52px; /* WCAG touch target */
}

.hero-cta:hover,
.hero-cta:focus-visible {
  background: var(--terracota-soft);
  box-shadow: 0 6px 32px rgba(42, 31, 24, 0.55), 0 3px 8px rgba(0,0,0,0.3);
  color: var(--linen);
}

.hero-cta svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hero-chips {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
  flex-wrap: wrap;
}

.hero-chips a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-full);
  font-size: clamp(.8rem, .4vw + .75rem, .92rem);
  letter-spacing: var(--tracking-wide);
  line-height: 1.4;
  white-space: nowrap;
  color: var(--linen);
  text-decoration: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
  min-height: 40px;
}

.hero-chips a:hover,
.hero-chips a:focus-visible {
  background: rgba(244, 239, 230, 0.82);
  color: var(--ink, var(--bosque-deep));
}

/* ============================
   AVÁNDARO storytelling
   ============================ */

#avandaro {
  padding-block: var(--section-pad-y, 5.5rem 7rem);
}

.avandaro-narrative {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.avandaro-narrative .eyebrow {
  display: block;
  margin-bottom: var(--space-md);
}

.avandaro-narrative h2 {
  margin-bottom: var(--space-xl);
  color: var(--bosque-deep);
}

/* Word-reveal en sección clara */
.avandaro-narrative .gsap-word-reveal .word > span {
  color: var(--bosque-deep);
}

.avandaro-narrative p {
  margin-bottom: var(--space-md);
  max-width: none;
}

.avandaro-narrative p.lead {
  font-size: clamp(1.1rem, .6vw + .95rem, 1.4rem);
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--bosque-deep);
  font-style: italic;
  line-height: var(--leading-snug, 1.35);
  margin-bottom: var(--space-xl);
}

/* Placeholder p4 — no llama la atención visualmente */
.avandaro-p4 {
  color: var(--color-text-soft, rgba(31,40,32,.55));
  font-style: italic;
  font-size: var(--small);
}

/* Galería atmósfera — grid asimétrico 12 cols, 10 fotos */
.atmosphere-gallery {
  margin-top: var(--space-3xl);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 200px;
  gap: var(--space-md);
}

.atmosphere-gallery a {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(31,40,32,.18), 0 1px 4px rgba(0,0,0,.12);
  display: block;
  cursor: pointer;
  text-decoration: none;
}

.atmosphere-gallery a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform var(--duration-slow, .5s) var(--ease-out);
}

.atmosphere-gallery a:hover img,
.atmosphere-gallery a:focus-visible img {
  transform: scale(1.04);
}

.atmosphere-gallery a:focus-visible {
  outline: 2px solid var(--bosque-medio);
  outline-offset: 3px;
}

/* Layout asimétrico narrativo — 10 fotos */
.atmosphere-gallery a:nth-child(1)  { grid-column: span 6; grid-row: span 2; }  /* café — destacado */
.atmosphere-gallery a:nth-child(2)  { grid-column: span 4; grid-row: span 2; }  /* comedor balcón */
.atmosphere-gallery a:nth-child(3)  { grid-column: span 2; grid-row: span 2; }  /* palapa tarde vertical */
.atmosphere-gallery a:nth-child(4)  { grid-column: span 3; grid-row: span 2; }  /* palapa interior */
.atmosphere-gallery a:nth-child(5)  { grid-column: span 5; grid-row: span 2; }  /* asador horizontal */
.atmosphere-gallery a:nth-child(6)  { grid-column: span 4; grid-row: span 1; }  /* tabla embutidos */
.atmosphere-gallery a:nth-child(7)  { grid-column: span 4; grid-row: span 2; }  /* aperitivo vertical */
.atmosphere-gallery a:nth-child(8)  { grid-column: span 4; grid-row: span 1; }  /* mesa vino */
.atmosphere-gallery a:nth-child(9)  { grid-column: span 7; grid-row: span 2; }  /* don beto — destacado */
.atmosphere-gallery a:nth-child(10) { grid-column: span 5; grid-row: span 2; }  /* chimenea */

/* Tablet 768-1023px — 6 columnas */
@media (min-width: 768px) and (max-width: 1023px) {
  .atmosphere-gallery {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 180px;
  }
  .atmosphere-gallery a:nth-child(1)  { grid-column: span 6; grid-row: span 2; }
  .atmosphere-gallery a:nth-child(2)  { grid-column: span 3; grid-row: span 1; }
  .atmosphere-gallery a:nth-child(3)  { grid-column: span 3; grid-row: span 1; }
  .atmosphere-gallery a:nth-child(4)  { grid-column: span 2; grid-row: span 1; }
  .atmosphere-gallery a:nth-child(5)  { grid-column: span 4; grid-row: span 1; }
  .atmosphere-gallery a:nth-child(6)  { grid-column: span 3; grid-row: span 1; }
  .atmosphere-gallery a:nth-child(7)  { grid-column: span 3; grid-row: span 1; }
  .atmosphere-gallery a:nth-child(8)  { grid-column: span 6; grid-row: span 1; }
  .atmosphere-gallery a:nth-child(9)  { grid-column: span 4; grid-row: span 1; }
  .atmosphere-gallery a:nth-child(10) { grid-column: span 2; grid-row: span 1; }
}

/* Mobile <768px — 2 columnas simples */
@media (max-width: 767px) {
  .atmosphere-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  /* Fotos destacadas ocupan el ancho completo */
  .atmosphere-gallery a:nth-child(1),
  .atmosphere-gallery a:nth-child(5),
  .atmosphere-gallery a:nth-child(9) {
    grid-column: span 2;
    grid-row: span 1;
  }
  /* Resto: 1 columna */
  .atmosphere-gallery a:nth-child(2),
  .atmosphere-gallery a:nth-child(3),
  .atmosphere-gallery a:nth-child(4),
  .atmosphere-gallery a:nth-child(6),
  .atmosphere-gallery a:nth-child(7),
  .atmosphere-gallery a:nth-child(8),
  .atmosphere-gallery a:nth-child(10) {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* ═══════════════════════════════════════════════════════
   TASK 3.3 — SECCIÓN LOFTS
═══════════════════════════════════════════════════════ */

/* Intro header */
.lofts-intro {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--space-3xl);
}
.lofts-intro .eyebrow {
  display: block;
  margin-bottom: var(--space-md);
}
.lofts-intro h2 {
  margin-bottom: var(--space-lg);
  max-width: 28ch;
  margin-inline: auto;
}
.lofts-intro .lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, .5vw + .95rem, 1.25rem);
  color: var(--ink-soft);
  max-width: 60ch;
  margin-inline: auto;
  line-height: var(--leading-normal);
}

/* Grid de cards */
.lofts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  align-items: stretch; /* fuerza misma altura en cards de la misma fila */
}
@media (max-width: 600px) {
  .lofts-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
}

/* Card individual — todas idénticas en tamaño */
.loft-card {
  background: var(--linen-deep);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
  display: flex;
  flex-direction: column;
  height: 100%;
  /* preserve-3d para card tilt */
  transform-style: preserve-3d;
}
.loft-card:hover {
  box-shadow: var(--shadow-lg);
}

.loft-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.loft-card-link:focus-visible {
  outline: 2px solid var(--bosque-medio);
  outline-offset: 4px;
  border-radius: var(--radius-lg);
}

.loft-card-figure {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  margin: 0;
  flex-shrink: 0;
}
.loft-card-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--duration-slow) var(--ease-out);
  display: block;
}
.loft-card:hover .loft-card-figure img {
  transform: scale(1.04);
}

/* Body de la card — flex:1 para empujar CTA al pie y alinear cards */
.loft-card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.loft-card-body > .loft-card-cta {
  margin-top: auto;
}
.loft-card-body > .loft-card-rate {
  margin-top: auto;
}
.loft-card-body > .loft-card-rate + .loft-card-cta {
  margin-top: var(--space-md);
}

.loft-card-eyebrow {
  display: block;
  font-family: var(--font-hand);
  color: var(--terracota);
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
  line-height: 1;
}

.loft-card-title {
  font-family: var(--font-display);
  font-size: var(--h3);
  font-weight: 600;
  margin: 0 0 var(--space-md);
  line-height: var(--leading-tight);
  color: var(--ink);
  max-width: 22ch;
}

.loft-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  margin-bottom: var(--space-md);
  font-size: var(--small);
  color: var(--ink-soft);
  list-style: none;
  padding: 0;
}
.loft-card-chips li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
}
.loft-card-chips svg {
  flex-shrink: 0;
  color: var(--bosque-medio);
}

.loft-card-rate {
  font-size: var(--body);
  margin-bottom: var(--space-md);
  color: var(--ink);
  max-width: none;
  line-height: 1.4;
}
.loft-card-rate strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--bosque-deep);
  display: inline;
}

.loft-card-cta {
  display: inline-block;
  color: var(--bosque-deep);
  font-weight: 600;
  font-size: var(--small);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-bottom: 1.5px solid var(--bosque-deep);
  padding-bottom: 2px;
  transition: color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}
.loft-card:hover .loft-card-cta {
  color: var(--terracota);
  border-color: var(--terracota);
}

/* ═══════════════════════════════════════════════════════
   MODALES DE DETALLE — LOFTS
═══════════════════════════════════════════════════════ */

.loft-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
}
/* Estado visible — JS agrega .is-open */
.loft-modal.is-open {
  pointer-events: auto;
  opacity: 1;
}
/* Oculto por defecto con hidden attribute */
.loft-modal[hidden] {
  display: none;
}

/* Backdrop */
.loft-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 40, 32, 0.82);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  cursor: pointer;
}

/* Panel principal */
.loft-modal-panel {
  position: relative;
  background: var(--linen);
  width: min(960px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  margin: auto;
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  /* scroll suave dentro del panel */
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

@media (max-width: 767px) {
  .loft-modal-panel {
    padding: var(--space-lg);
    width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
  }
}

/* Botón cerrar */
.loft-modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  background: var(--linen-deep);
  color: var(--ink);
  border-radius: var(--radius-full);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  border: none;
  transition: background var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
  z-index: 2;
}
.loft-modal-close:hover,
.loft-modal-close:focus-visible {
  background: var(--bosque-niebla);
  transform: scale(1.06);
}
.loft-modal-close:focus-visible {
  outline: 2px solid var(--bosque-medio);
  outline-offset: 3px;
}

/* Header del modal */
.loft-modal-header {
  margin-bottom: var(--space-xl);
  padding-right: 60px; /* evita solapamiento con botón cerrar */
}
.loft-modal-header .eyebrow {
  display: block;
  margin-bottom: var(--space-xs);
}
.loft-modal-header h3 {
  font-family: var(--font-display);
  font-size: var(--h2);
  font-weight: 600;
  color: var(--bosque-deep);
  margin: 0;
  line-height: var(--leading-tight);
}

/* Galería del modal: grid 4 cols */
.loft-modal-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}
@media (max-width: 600px) {
  .loft-modal-gallery { grid-template-columns: repeat(2, 1fr); }
}

.loft-modal-gallery a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--linen-deep);
}
.loft-modal-gallery a:focus-visible {
  outline: 2px solid var(--bosque-medio);
  outline-offset: 3px;
}
.loft-modal-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-base) var(--ease-out);
}
.loft-modal-gallery a:hover img {
  transform: scale(1.06);
}

/* Contenido del modal */
.loft-modal-content {
  display: grid;
  gap: var(--space-lg);
}

/* Meta: chips + tarifa */
.loft-modal-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-lg);
}

.loft-modal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-lg);
  list-style: none;
  padding: 0;
  margin: 0;
}
.loft-modal-chips li {
  font-size: var(--small);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: 28px;
}
.loft-modal-chips li strong {
  color: var(--ink);
  font-weight: 600;
}

.loft-modal-rate {
  font-size: var(--body);
  color: var(--ink-soft);
  white-space: nowrap;
  max-width: none;
  line-height: 1.4;
}
.loft-modal-rate strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--bosque-deep);
  display: inline;
}

/* Descripción placeholder */
.loft-modal-desc {
  font-size: var(--body);
  line-height: var(--leading-loose);
  max-width: 65ch;
  color: var(--ink-soft);
  font-style: italic;
}

/* CTAs del modal */
.loft-modal-cta-stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}
.loft-modal-cta-stack .btn {
  flex: 1 1 180px;
  text-align: center;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--small);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  text-decoration: none;
}

/* btn-primary ya existe en hero — refuerzo para modales */
.loft-modal-cta-stack .btn-primary {
  background: var(--terracota);
  color: var(--linen);
  box-shadow: 0 4px 16px rgba(139, 62, 28, 0.35);
}
.loft-modal-cta-stack .btn-primary:hover,
.loft-modal-cta-stack .btn-primary:focus-visible {
  background: var(--terracota-soft);
  color: var(--linen);
  box-shadow: 0 6px 24px rgba(139, 62, 28, 0.45);
}

.loft-modal-cta-stack .btn-secondary {
  background: var(--linen-deep);
  color: var(--ink);
  border: 1px solid var(--color-border);
}
.loft-modal-cta-stack .btn-secondary:hover,
.loft-modal-cta-stack .btn-secondary:focus-visible {
  background: var(--bosque-niebla);
  color: var(--ink);
  border-color: var(--bosque-niebla);
}

/* Body lock cuando modal abierto */
body.modal-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .loft-modal-cta-stack .btn {
    flex: 1 1 100%;
  }
  .loft-modal-meta {
    flex-direction: column;
  }
}

/* ====================================
   SECCIÓN DEPARTAMENTOS RÚSTICOS — Task 3.4
   ==================================== */
.section-departamentos { background: var(--linen-deep); }

.dep-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-xl);
}
.dep-intro .eyebrow { display: block; margin-bottom: var(--space-md); }
.dep-intro h2 { margin-bottom: var(--space-lg); }
.dep-intro .lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, .5vw + .95rem, 1.25rem);
  color: var(--ink-soft);
  margin: 0 auto;
}

/* Bandera de transparencia */
.dep-transparency {
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
  padding: var(--space-md) var(--space-lg);
  background: rgba(184, 146, 74, 0.12);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px rgba(184, 146, 74, 0.28);
  text-align: center;
}
.dep-transparency-eyebrow {
  font-family: var(--font-hand);
  color: var(--oro);
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  display: block;
  margin-bottom: var(--space-xs);
  letter-spacing: var(--tracking-wide);
}
.dep-transparency p {
  font-size: var(--small);
  color: var(--ink-soft);
  max-width: none;
  margin: 0;
}

/* Grid 2x2 desktop, 1 col mobile */
.dep-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .dep-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
}

/* Card */
.dep-card {
  background: var(--linen);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--duration-fast) var(--ease-out);
}
.dep-card:hover { box-shadow: var(--shadow-lg); }
.dep-card-link { display: block; color: inherit; text-decoration: none; }
.dep-card-figure {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  margin: 0;
}
.dep-card-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
  display: block;
}
.dep-card:hover .dep-card-figure img { transform: scale(1.04); }
.dep-card-body { padding: var(--space-lg); }
.dep-card-eyebrow {
  font-family: var(--font-hand);
  color: var(--terracota);
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--space-xs);
}
.dep-card-title {
  font-family: var(--font-display);
  font-size: var(--h3);
  font-weight: 600;
  margin: 0 0 var(--space-md);
  line-height: var(--leading-tight);
}
.dep-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  margin-bottom: var(--space-md);
  list-style: none;
  padding: 0;
  font-size: var(--small);
  color: var(--ink-soft);
}
.dep-card-chips li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
}
.dep-card-rate {
  font-size: var(--body);
  margin-bottom: var(--space-md);
  color: var(--ink);
}
.dep-card-rate strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
}
.dep-card-cta {
  display: inline-block;
  color: var(--bosque-deep);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  font-size: var(--small);
  min-height: 28px;
  line-height: 28px;
}

/* Bloque ecosystem */
.dep-ecosystem {
  max-width: 720px;
  margin: var(--space-3xl) auto 0;
  text-align: center;
}
.dep-ecosystem .eyebrow { display: block; margin-bottom: var(--space-md); }
.dep-ecosystem p {
  font-size: var(--body);
  line-height: var(--leading-loose);
  margin: 0 auto var(--space-md);
  max-width: 65ch;
  color: var(--ink-soft);
}

/* Modal departamentos */
.dep-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: stretch;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
}
.dep-modal.is-open {
  pointer-events: auto;
  opacity: 1;
}
.dep-modal[hidden] { display: none; }

.dep-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 40, 32, .85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.dep-modal-panel {
  position: relative;
  background: var(--linen);
  width: min(960px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  margin: auto;
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 767px) {
  .dep-modal-panel {
    padding: var(--space-lg);
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
}
.dep-modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 52px;
  height: 52px;
  min-width: 44px;
  min-height: 44px;
  background: var(--linen-deep);
  color: var(--ink);
  border: none;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--duration-fast) var(--ease-out);
}
.dep-modal-close:hover { background: var(--bosque-niebla); }
.dep-modal-close:focus-visible {
  outline: 2px solid var(--bosque-niebla);
  outline-offset: 3px;
}
.dep-modal-header { margin-bottom: var(--space-xl); }
.dep-modal-header h3 {
  font-family: var(--font-display);
  font-size: var(--h2);
  margin: var(--space-xs) 0 0;
}

.dep-modal-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}
@media (max-width: 480px) {
  .dep-modal-gallery { grid-template-columns: 1fr; }
}
.dep-modal-gallery a {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.dep-modal-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.dep-modal-gallery a:hover img { transform: scale(1.05); }
.dep-modal-gallery a:focus-visible {
  outline: 2px solid var(--bosque-niebla);
  outline-offset: 3px;
}

.dep-modal-content { display: grid; gap: var(--space-lg); }
.dep-modal-desc {
  font-size: var(--body);
  line-height: var(--leading-loose);
  max-width: 65ch;
  color: var(--ink-soft);
  font-style: italic;
}
.dep-modal-cta-stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.dep-modal-cta-stack .btn {
  flex: 1 1 200px;
  text-align: center;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--small);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  text-decoration: none;
}
.dep-modal-cta-stack .btn-primary {
  background: var(--terracota);
  color: var(--linen);
  box-shadow: 0 4px 16px rgba(139, 62, 28, 0.35);
}
.dep-modal-cta-stack .btn-primary:hover,
.dep-modal-cta-stack .btn-primary:focus-visible {
  background: var(--terracota-soft);
  color: var(--linen);
  box-shadow: 0 6px 24px rgba(139, 62, 28, 0.45);
}
.dep-modal-cta-stack .btn-secondary {
  background: var(--linen-deep);
  color: var(--ink);
  border: 1px solid var(--color-border);
}
.dep-modal-cta-stack .btn-secondary:hover,
.dep-modal-cta-stack .btn-secondary:focus-visible {
  background: var(--bosque-niebla);
  color: var(--ink);
  border-color: var(--bosque-niebla);
}
@media (max-width: 767px) {
  .dep-modal-cta-stack .btn { flex: 1 1 100%; }
}

/* ====================================================================
   TASK 3.5 — AMENIDADES / DISPONIBILIDAD / POLÍTICAS
   ==================================================================== */

/* ────────────────────────────────────────────
   AMENIDADES
──────────────────────────────────────────── */
.section-amenidades { background: var(--linen); }

.amen-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-2xl);
}
.amen-intro .eyebrow {
  display: block;
  margin-bottom: var(--space-md);
}
.amen-intro h2 {
  margin-bottom: 0;
}

.amen-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .amen-blocks {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

.amen-block h3 {
  font-family: var(--font-display);
  font-size: var(--h3);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  text-align: center;
  color: var(--bosque-deep);
}

.amen-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 480px) {
  .amen-list { grid-template-columns: 1fr; }
}

.amen-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--linen-deep);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(31,40,32,.08), 0 1px 2px rgba(0,0,0,.06);
  transition: box-shadow var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
  min-height: 44px;
}
.amen-item:hover {
  box-shadow: 0 6px 20px rgba(31,40,32,.13), 0 2px 4px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

.amen-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--bosque-deep);
}

.amen-label {
  font-size: var(--small);
  color: var(--ink);
  line-height: var(--leading-snug);
}

/* ────────────────────────────────────────────
   DISPONIBILIDAD
   Fondo: var(--beige-deep) — beige cálido claro nivel 3.
   Textos usan colores oscuros por defecto (no necesitan override).
──────────────────────────────────────────── */

/* ── DISPONIBILIDAD — nueva versión minimalista ── */

.disp-intro-new {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-2xl);
}

.disp-intro-new .eyebrow {
  display: block;
  margin-bottom: var(--space-md);
}

.disp-intro-new h2 {
  margin-bottom: var(--space-md);
}

.disp-intro-new .lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, .5vw + .95rem, 1.25rem);
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 60ch;
}

.disp-cta-block-new {
  text-align: center;
  margin-top: var(--space-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

/* Botón grande terracota — foco visual de la sección */
.disp-cta-large {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 1.2rem 2.6rem;
  font-size: clamp(1rem, .6vw + .9rem, 1.15rem);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  background: var(--terracota);
  color: var(--linen);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  min-height: 56px;
  box-shadow:
    0 12px 30px -8px rgba(139, 62, 28, 0.45),
    0 6px 12px -4px rgba(139, 62, 28, 0.25);
  transition:
    background var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.disp-cta-large:hover,
.disp-cta-large:focus-visible {
  background: var(--terracota-soft);
  box-shadow:
    0 18px 40px -8px rgba(139, 62, 28, 0.55),
    0 8px 16px -4px rgba(139, 62, 28, 0.30);
  transform: translateY(-2px);
  color: var(--linen);
}

.disp-cta-large .cta-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.disp-cta-note {
  font-size: var(--small);
  color: var(--ink-soft);
  font-style: italic;
  margin: 0;
  max-width: none;
}

.cta-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ────────────────────────────────────────────
   POLÍTICAS
──────────────────────────────────────────── */
.section-politicas { background: var(--linen); }

.pol-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-2xl);
}
.pol-intro .eyebrow {
  display: block;
  margin-bottom: var(--space-md);
}
.pol-intro h2 {
  margin-bottom: var(--space-md);
}
.pol-intro .lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, .5vw + .95rem, 1.25rem);
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 60ch;
}

.pol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 1024px) {
  .pol-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pol-grid { grid-template-columns: 1fr; }
}

.pol-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--linen-deep);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(31,40,32,.08), 0 1px 2px rgba(0,0,0,.05);
  transition: box-shadow var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
  align-items: flex-start;
}
.pol-item:hover {
  box-shadow: 0 6px 20px rgba(31,40,32,.12), 0 2px 4px rgba(0,0,0,.07);
  transform: translateY(-2px);
}

.pol-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--bosque-deep);
  margin-top: 2px; /* alineación óptica con el h3 */
}

.pol-item h3 {
  font-family: var(--font-display);
  font-size: var(--h4);
  font-weight: 600;
  margin: 0 0 var(--space-xs);
  color: var(--ink);
  line-height: var(--leading-tight);
}

.pol-item p {
  font-size: var(--small);
  color: var(--ink-soft);
  margin: 0;
  max-width: none;
  line-height: var(--leading-normal);
}

/* ═══════════════════════════════════════════════════════
   ACTIVIDADES — Task 3.6
═══════════════════════════════════════════════════════ */
.section-actividades {
  background: var(--linen);
  padding-block: var(--section-pad-y);
}

.act-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-2xl);
}
.act-intro .eyebrow {
  display: block;
  margin-bottom: var(--space-md);
}
.act-intro h2 {
  margin-bottom: var(--space-md);
}
.act-intro .lead {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 auto;
}

.act-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);                  /* 3 columnas en desktop — 9 cards = 3 filas perfectas */
  gap: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1100px) {
  .act-grid { grid-template-columns: repeat(2, 1fr); }    /* tablet: 2 columnas */
}

@media (max-width: 767px) {
  .act-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .act-grid::-webkit-scrollbar { display: none; }
  .act-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
  }
}

.act-card {
  background: var(--linen-deep, #ece7dc);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
  display: flex;
  flex-direction: column;
}
.act-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.act-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  margin: 0; /* reset figure margin */
}

.act-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.act-card:hover .act-card-img img {
  transform: scale(1.05);
}

.act-card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
}
.act-card-title {
  font-family: var(--font-display);
  font-size: clamp(.95rem, 1.1vw + .5rem, 1.1rem);
  font-weight: 600;
  margin: 0;
  line-height: var(--leading-snug);
  color: var(--ink);
}
.act-card-desc {
  font-size: var(--small);
  color: var(--ink-soft);
  margin: 0;
  line-height: var(--leading-snug);
  flex: 1;
}
.act-card-cta {
  display: inline-block;
  color: var(--bosque-deep);
  font-weight: 600;
  font-size: var(--small);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color var(--duration-fast) var(--ease-out);
}
.act-card-cta:hover { color: var(--bosque-medio); }

/* ═══════════════════════════════════════════════════════
   RESEÑAS — marquee — Task 3.6
═══════════════════════════════════════════════════════ */
/* .section-dark ya definido en motion.css */
#resenas { padding-block: var(--section-pad-y); }

.res-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-2xl);
}
.res-intro .eyebrow {
  display: block;
  margin-bottom: var(--space-md);
  color: var(--bosque-niebla, #8aad96);
}
.res-intro h2 { color: var(--linen); }
.res-intro .lead {
  color: rgba(244,239,230,0.85);
  font-family: var(--font-display);
  font-style: italic;
  margin: var(--space-md) auto 0;
}

/* Marquee wrapper con fade lateral */
.res-marquee-wrap {
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-xl);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.res-marquee {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-lg);
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
}
.res-marquee:hover { animation-play-state: paused; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.res-card {
  flex: 0 0 360px;
  background: rgba(42, 31, 24, 0.55);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border: 1px solid rgba(168, 85, 61, 0.35);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  color: #F4ECD9;
  box-shadow: 0 6px 24px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.06);
  white-space: normal;
}
.res-card-stars {
  color: #D4A35F;
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
  font-size: 1rem;
}
.res-card-text {
  font-style: italic;
  line-height: var(--leading-snug);
  margin: 0 0 var(--space-md);
  font-size: var(--small);
  color: #F4ECD9;
  max-width: none;
}
.res-card-meta {
  font-size: 0.78rem;
  color: rgba(244,236,217,0.78);
  display: flex;
  flex-wrap: wrap;
  gap: 4px var(--space-sm);
  align-items: center;
  line-height: 1.4;
}
.res-card-meta strong { color: #F4ECD9; }
.res-card-score {
  background: rgba(212, 163, 95, 0.20);
  color: #E8C075;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
}
.res-card-source {
  background: var(--terracota);
  color: var(--linen);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
}

/* CTA block */
.res-cta-block {
  text-align: center;
  margin-top: var(--space-xl);
}
.res-rating-summary {
  color: rgba(244,239,230,0.85);
  font-size: var(--body);
  margin-bottom: var(--space-md);
}
.res-rating-summary strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5em;
  color: var(--oro, #c8a95a);
}
.res-cta-google {
  background: var(--linen);
  color: var(--ink);
  border: 1px solid rgba(200,169,90,0.35);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-full);
  display: inline-block;
  font-weight: 600;
  font-size: var(--small);
  transition: background var(--duration-fast) var(--ease-out);
}
.res-cta-google:hover { background: var(--linen-deep, #ece7dc); }

/* ═══════════════════════════════════════════════════════
   CONTACTO — Task 3.6
═══════════════════════════════════════════════════════ */
.section-contacto {
  background: var(--linen-deep, #ece7dc);
  padding-block: var(--section-pad-y);
}

.cont-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-2xl);
}
.cont-intro .eyebrow { display: block; margin-bottom: var(--space-md); }
.cont-intro h2 { margin: 0; }

/* Grid 2 cols */
.cont-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  max-width: 1100px;
  margin: 0 auto var(--space-3xl);
  align-items: start;
}
@media (max-width: 900px) {
  .cont-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
}

/* Col izquierda */
.cont-left h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw + .5rem, 1.6rem);
  font-weight: 600;
  margin: 0 0 var(--space-lg);
  color: var(--ink);
}
.cont-reasons {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: 0;
  list-style: none;
  margin: 0;
}
.cont-reasons li {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}
.cont-reason-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--terracota, #9c4a2a);
  flex-shrink: 0;
  width: 48px;
  line-height: 1;
  margin-top: 2px;
}
.cont-reasons h4 {
  font-family: var(--font-body);
  font-size: var(--body);
  font-weight: 600;
  margin: 0 0 var(--space-xs);
  color: var(--ink);
}
.cont-reasons p {
  font-size: var(--small);
  color: var(--ink-soft);
  margin: 0;
  max-width: none;
  line-height: var(--leading-normal);
}

/* Col derecha — tarjeta glass */
.cont-card-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cont-card-glass .eyebrow { display: block; margin-bottom: var(--space-md); }

.cont-whatsapp-btn {
  display: inline-grid;
  place-items: center;
  width: 80px;
  height: 80px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  margin-bottom: var(--space-md);
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
}
.cont-whatsapp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
}
.cont-whatsapp-icon { width: 36px; height: 36px; }

.cont-phone {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw + .3rem, 1.4rem);
  font-weight: 600;
  margin: 0 0 var(--space-xs);
}
.cont-phone a { color: var(--ink); }
.cont-phone a:hover { color: var(--bosque-deep); }

.cont-hours {
  font-size: var(--small);
  color: var(--ink-soft);
  margin: 0 0 var(--space-md);
}
.cont-email-line {
  font-size: var(--small);
  color: var(--ink-soft);
  margin: 0 0 var(--space-lg);
}
.cont-email-line a {
  color: var(--bosque-deep);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}

.cont-ota-links {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}
.cont-ota-btn {
  font-size: 0.8rem;
  padding: calc(var(--space-xs) + 2px) var(--space-md);
}
.btn-sm {
  padding: calc(var(--space-xs) + 2px) var(--space-md);
  font-size: 0.8rem;
}

/* Tabs + mapa */
.cont-maps {
  max-width: 1100px;
  margin: 0 auto;
}
.cont-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--color-border, rgba(31,40,32,.15));
  margin-bottom: 0;
}
.cont-tab {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-body);
  font-size: var(--small);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color var(--duration-fast), border-color var(--duration-fast);
  min-height: 44px;
}
.cont-tab:hover { color: var(--ink); }
.cont-tab.is-active {
  color: var(--bosque-deep);
  border-bottom-color: var(--bosque-deep);
}

/* CSS Grid overlap para tab panels — sin brincos de alto */
.cont-tab-panels { display: grid; }
.cont-tab-panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease;
}
.cont-tab-panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.cont-tab-panel iframe {
  display: block;
  border: 0;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* ═══════════════════════════════════════════════════════
   FLOATING CARDS — patrón avanishverma4/21st.dev
   Sustituye 3D tilt anterior. Flotación CSS infinita
   con shadow dinámica y hover lift. Sin JS.
═══════════════════════════════════════════════════════ */

@keyframes float-card {
  0%, 100% {
    transform: translateY(-4px);
    box-shadow:
      0 22px 50px -16px rgba(42, 31, 24, 0.32),
      0 14px 30px -22px rgba(42, 31, 24, 0.22),
      0 6px 12px -6px rgba(42, 31, 24, 0.12);
  }
  50% {
    transform: translateY(4px);
    box-shadow:
      0 38px 70px -20px rgba(42, 31, 24, 0.42),
      0 22px 40px -22px rgba(42, 31, 24, 0.28),
      0 8px 16px -6px rgba(42, 31, 24, 0.14);
  }
}

.lofts-grid,
.casa-beto-grid {
  perspective: 1400px;
}

.loft-card {
  background: var(--linen-deep);
  border-radius: var(--radius-lg);
  overflow: visible;
  display: flex;
  flex-direction: column;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  animation: float-card 5.5s ease-in-out infinite;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

/* Stagger de fase — cada card empieza desfasada para efecto orgánico */
.loft-card:nth-child(1) { animation-delay: 0s; }
.loft-card:nth-child(2) { animation-delay: 0.6s; }
.loft-card:nth-child(3) { animation-delay: 1.2s; }
.loft-card:nth-child(4) { animation-delay: 1.8s; }
.loft-card:nth-child(5) { animation-delay: 2.4s; }
.loft-card:nth-child(6) { animation-delay: 3.0s; }

/* Casa Beto's — card única, desfasada */
.casa-beto-card { animation-delay: 1s; }

/* Figura interior con border-radius coherente */
.loft-card-figure {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  margin: 0;
  flex-shrink: 0;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

/* Imagen interior */
.loft-card-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s var(--ease-out);
}

/* HOVER — pausa flotación, lift dramático, shadow intensa */
.loft-card:hover {
  animation-play-state: paused;
  transform: translateY(-14px) translateZ(20px) scale(1.015);
  box-shadow:
    0 55px 95px -22px rgba(42, 31, 24, 0.52),
    0 32px 55px -22px rgba(42, 31, 24, 0.36),
    0 12px 22px -8px rgba(42, 31, 24, 0.20);
  z-index: 5;
}

.loft-card:hover .loft-card-figure img {
  transform: scale(1.06);
}

/* TOUCH / MOBILE — sin flotación, sin perspective */
@media (hover: none), (max-width: 767px) {
  .loft-card {
    animation: none;
    transform: none !important;
    box-shadow: var(--shadow-md);
  }
  .loft-card:hover {
    transform: none !important;
    box-shadow: var(--shadow-md);
  }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .loft-card {
    animation: none;
  }
  .loft-card:hover {
    transform: translateY(-6px);
  }
}

@media (max-width: 600px) {
  .cont-tabs { flex-direction: column; border-bottom: none; gap: 0; }
  .cont-tab {
    border-bottom: none;
    border-left: 3px solid transparent;
    text-align: left;
    padding-left: var(--space-md);
  }
  .cont-tab.is-active {
    border-left-color: var(--bosque-deep);
    border-bottom-color: transparent;
  }
}

/* ═══════════════════════════════════════════════════════
   GLIGHTBOX OVERRIDES — sin caption, backdrop oscuro
═══════════════════════════════════════════════════════ */

/* Ocultar panel de caption/descripción — sin "base blanca" ni texto */
.gslide-description,
.gslide-title,
.gdesc-inner,
.gslide-desc {
  display: none !important;
}

/* Backdrop oscuro coherente con la paleta del sitio */
.glightbox-clean .goverlay,
.glightbox-modern .goverlay {
  background: rgba(20, 14, 11, 0.94) !important;
}

/* ═══════════════════════════════════════════════════════
   GALERÍA STRIP — hover-to-expand (patrón canónico Silvanus / Beto's Pizza)
   Reemplaza el bloque .atmosphere-gallery anterior.
   Incluye filtro uniformizador para que fotos de diferentes cámaras/momentos
   se vean dentro de la misma familia visual.
═══════════════════════════════════════════════════════ */
.galeria-strip {
  display: flex;
  gap: 0.5rem;
  height: 22rem;
  width: 100%;
}

.galeria-item {
  flex: 1;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: zoom-in;
  border: none;
  padding: 0;
  background: #FFFFFF;
  text-decoration: none;
  transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Overlay tierra duotone — empuja todas las fotos al mismo look terracota.
   38% es perceptible pero no tapa la foto. Desaparece en hover. */
.galeria-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(108, 60, 30, 0.42) 0%,
    rgba(140, 85, 25, 0.32) 100%);
  mix-blend-mode: multiply;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.galeria-item:hover::after { opacity: 0; }

/* Imagen real + filtro uniformizador (más fuerte para que se note):
   sepia(0.20) + saturate(0.85) + contrast(1.08) + brightness(1.02)
   → todas las fotos pasan al mismo punto cálido tierra.
   Se quita en hover para ver foto cruda. */
.galeria-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  filter: sepia(0.20) saturate(0.85) contrast(1.08) brightness(1.02);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.4s ease;
}

.galeria-item:hover .galeria-img {
  transform: scale(1.05);
  filter: sepia(0) saturate(1) contrast(1) brightness(1);
}

/* Icono de lupa en el centro al hover */
.galeria-zoom-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 240, 232, 0.92);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 3;
}

.galeria-item:hover .galeria-zoom-hint { opacity: 1; }

/* Estados aplicados por JS — la card hovereada se expande, las demás se comprimen */
.galeria-item.lb-expanded   { flex: 2.5; }
.galeria-item.lb-compressed { flex: 0.5; }

/* Mobile: 2-col grid fallback, primero y último ocupan fila completa */
@media (max-width: 767px) {
  .galeria-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: auto;
    gap: 0.5rem;
  }
  .galeria-item {
    flex: none;
    height: 160px;
  }
  .galeria-item:first-child,
  .galeria-item:last-child {
    grid-column: 1 / -1;
    height: 210px;
  }
  .galeria-item.lb-expanded,
  .galeria-item.lb-compressed { flex: none; }
}

/* Tablet */
@media (min-width: 768px) {
  .galeria-strip { height: 26rem; }
}

/* Desktop */
@media (min-width: 1024px) {
  .galeria-strip { height: 30rem; }
}

/* ═══════════════════════════════════════════════════════
   SECCIÓN AVÁNDARO — spacing + justify textos (round 2026-06-02)
═══════════════════════════════════════════════════════ */
/* Reducir padding excesivo arriba/abajo, dejar respiración pareja */
#avandaro {
  padding-block: 4.25rem 4.5rem;
}

/* Bloques de texto justificados solo en desktop (>=1024px).
   En mobile y tablet el justify produce renglones con saltos raros por línea corta. */
@media (min-width: 1024px) {
  .avandaro-narrative p {
    text-align: justify;
    text-align-last: center;
  }
  /* El lead es titular en cursiva — se queda centrado */
  .avandaro-narrative p.lead {
    text-align: center;
  }
}
/* Mobile + tablet: forzar centrado, descartar cualquier justify heredado */
@media (max-width: 1023px) {
  .avandaro-narrative p,
  .avandaro-narrative p.lead {
    text-align: center !important;
    text-align-last: auto;
  }
}

/* Respiración entre texto y galería */
.avandaro-narrative {
  margin-bottom: 2.75rem;
}
.galeria-strip {
  margin-top: 0;
}

/* ═══════════════════════════════════════════════════════
   LOFT MODAL CHIPS — con iconos (round 2026-06-02)
   Mismo patrón visual que .amen-list en sección "Lo que incluye".
═══════════════════════════════════════════════════════ */
.loft-modal-chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
}

.loft-modal-chips .chip-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  background: var(--linen-deep, #eee8da);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text, #2a2a2a);
  line-height: 1.2;
  white-space: nowrap;
}

.loft-modal-chips .chip-item .chip-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--terracota, #8C5519);
  stroke: currentColor;
}

.loft-modal-chips .chip-item .chip-label {
  white-space: nowrap;
}

/* Mobile: chips levemente más chicos para que más caigan en fila */
@media (max-width: 600px) {
  .loft-modal-chips {
    gap: 0.4rem;
  }
  .loft-modal-chips .chip-item {
    padding: 0.4rem 0.7rem;
    font-size: 0.82rem;
  }
}

/* Backwards-compat: si llega un <li> sin chip-item (fallback) */
.loft-modal-chips li:not(.chip-item) {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  background: var(--linen-deep, #eee8da);
  border-radius: 999px;
  font-size: 0.88rem;
}

/* ═══════════════════════════════════════════════════════
   POLISH — Emil Kowalski: :active states + transform-origin
   Todos los elementos interactivos del sitio.
═══════════════════════════════════════════════════════ */

/* Press feedback — botones principales */
.hero-cta:active,
.disp-cta-large:active,
.btn:active,
.btn-primary:active,
.btn-secondary:active,
.loft-modal-cta-stack .btn:active,
.dep-modal-cta-stack .btn:active,
.res-cta-google:active {
  transform: scale(0.97);
  transition: transform 160ms var(--ease-out);
}

/* Press feedback — elementos interactivos menores */
.lang-btn:active,
.hamburger:active,
.topbar-nav .nav-reservar:active,
.footer-wa-btn:active,
.footer-social-btn:active,
.whatsapp-fab:active {
  transform: scale(0.96);
  transition: transform 160ms var(--ease-out);
}

/* Press feedback — loft cards y act cards */
.loft-card:active {
  transform: translateY(-1px) scale(0.98);
  transition: transform 120ms var(--ease-out);
}
.act-card:active,
.amen-item:active,
.pol-item:active {
  transform: scale(0.98);
  transition: transform 120ms var(--ease-out);
}

/* transform-origin para modales — centrado (punto de entrada natural) */
.loft-modal .loft-modal-panel,
.dep-modal .dep-modal-panel {
  transform-origin: center center;
}

/* transform-origin para tooltips/popovers pequeños — desde el trigger */
.whatsapp-fab-tooltip {
  transform-origin: right center;
}

/* Press feedback — botones cerrar de modales */
.loft-modal-close:active,
.dep-modal-close:active,
.reserva-modal-close:active,
.menu-close-btn:active {
  transform: scale(0.92);
  transition: transform 100ms var(--ease-out);
}

/* Press feedback — chips de navegación del hero */
.hero-chips a:active {
  transform: scale(0.97);
  transition: transform 120ms var(--ease-out);
}

/* Press feedback — loft-card-cta link */
.loft-card-link:active {
  transform: scale(0.99);
  transition: transform 120ms var(--ease-out);
}

