/* ==========================================================================
   BARAKAA — ESTILOS
   --------------------------------------------------------------------------
    0. Tipografías (archivos propios en assets/fonts)
    1. Tokens: paleta, tipografía, espaciado, sombras, movimiento
    2. Tema de Bootstrap (sus variables, para no pelear con sus estilos)
    3. Base y accesibilidad
    4. Botones (sobre la API de variables de .btn de Bootstrap)
    5. Navegación
    6. Portada
    7. Secciones y componentes
    8. Formularios
    9. Pie de página
   10. Botón flotante de WhatsApp y volver arriba
   11. Animaciones de aparición
   12. Preferencias del sistema e impresión

   Navegadores: Safari 14+ (macOS e iOS), Chrome, Edge, Firefox, Samsung
   Internet. Cada propiedad moderna tiene su alternativa declarada antes.

   Convención: los componentes propios NO usan nombres de Bootstrap
   (.nav, .card, .toast…): así ninguno pisa al otro.
   ========================================================================== */

/* ==========================================================================
   0. TIPOGRAFÍAS — servidas desde el propio sitio (subset latino: cubre
   todo el español). Los archivos son "variables": uno solo trae todos los
   pesos. font-display: swap muestra el texto enseguida con la fuente de
   respaldo y la cambia al llegar (no hay texto invisible).
   ========================================================================== */

@font-face {
  font-family: 'Alex Brush';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/alex-brush-d6a5db.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-abcaa8.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/plus-jakarta-sans-d4d84d.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   1. TOKENS
   ========================================================================== */

:root {
  /* Paleta de marca */
  --arena:           #F7F2EB;
  --marfil:          #FFFDF9;
  --champan:         #EED8C3;
  --dorado:          #AC8B6A;  /* solo decorativo sobre fondos claros (contraste 2.8:1) */
  --dorado-suave:    #D9C3AD;
  --tierra:          #764D2F;
  --espresso:        #4A2E1B;
  --espresso-oscuro: #2E1C10;

  /* Roles: en el código se usan estos, no los de arriba */
  --text:        #3D2616;   /* 12.7:1 sobre arena */
  --text-muted:  #6E5747;   /* ≥ 4.9:1 sobre arena, marfil y champán (WCAG AA) */
  --text-invert: #FAF5F0;
  --border:        rgba(92, 61, 40, 0.14);
  --border-strong: rgba(92, 61, 40, 0.28);
  --danger:      #A8402A;

  --whatsapp:           #25D366;  /* ícono sobre fondos oscuros (6.2:1) */
  --whatsapp-fab:       #1DA851;  /* botón flotante: 3.1:1 con el ícono blanco */
  --whatsapp-fab-hover: #178A43;

  /* Tipografía */
  --font-serif:  'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --font-script: 'Alex Brush', 'Snell Roundhand', 'Segoe Script', cursive;
  --font-sans:   'Poppins', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                 Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Escala fluida: crece con la pantalla, sin saltos */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  --fs-xl:   clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem);
  --fs-2xl:  clamp(2rem, 1.6rem + 1.8vw, 3.1rem);

  --tracking-wide: 0.1em;
  --tracking-max:  0.3em;

  /* Espaciado y formas */
  --space-section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;

  /* Sombras cálidas: una sola escala */
  --shadow-xs: 0 1px 2px rgba(74, 46, 27, 0.05);
  --shadow-sm: 0 4px 14px rgba(74, 46, 27, 0.08);
  --shadow-md: 0 12px 32px rgba(74, 46, 27, 0.10);
  --shadow-lg: 0 24px 56px rgba(74, 46, 27, 0.14);

  /* Movimiento */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Altura fija de la barra: no cambia al hacer scroll (sin saltos de layout) */
  --nav-h: 64px;

  /* Grano de papel, como la pared del arte de marca (se dibuja una sola vez) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .29 0 0 0 0 .18 0 0 0 0 .1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

@media (min-width: 992px) {
  :root { --nav-h: 76px; }
}

/* ==========================================================================
   2. TEMA DE BOOTSTRAP
   Bootstrap 5.3 expone variables: cambiándolas, todos sus componentes y
   utilidades toman la identidad de Barakalma sin reescribir su CSS.
   ========================================================================== */

:root {
  --bs-body-font-family: var(--font-sans);
  --bs-body-font-size: 1rem;
  --bs-body-line-height: 1.7;
  --bs-body-color: var(--text);
  --bs-body-color-rgb: 61, 38, 22;
  --bs-body-bg: var(--arena);
  --bs-body-bg-rgb: 247, 242, 235;
  --bs-emphasis-color: var(--espresso);
  --bs-heading-color: var(--espresso);
  --bs-secondary-color: var(--text-muted);
  --bs-link-color: var(--tierra);
  --bs-link-color-rgb: 118, 77, 47;
  --bs-link-hover-color: var(--espresso);
  --bs-link-hover-color-rgb: 74, 46, 27;
  --bs-border-color: var(--border);
  --bs-focus-ring-color: rgba(118, 77, 47, 0.3);
}

/* Contenedor: 20 px de margen lateral en móvil (Bootstrap trae 12 px) */
.container { --bs-gutter-x: 2.5rem; }
@media (min-width: 1400px) {
  .container { max-width: 1240px; }
}

/* ==========================================================================
   3. BASE Y ACCESIBILIDAD
   ========================================================================== */

html {
  -webkit-text-size-adjust: 100%;
          text-size-adjust: 100%;
  /* Al saltar a un ancla, deja aire para la barra fija */
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Red de seguridad contra el scroll horizontal. "clip" no crea un
     contenedor de scroll (no rompe sticky ni el scroll de iOS). */
  overflow-x: hidden;
}
@supports (overflow: clip) {
  body { overflow-x: clip; }
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

img, svg, video { max-width: 100%; }
img { height: auto; }

a { text-decoration: none; }
a:not([class]) { text-decoration: underline; text-underline-offset: 0.2em; }

::selection { background: var(--dorado-suave); color: var(--espresso); }

/* Foco visible para teclado. En Safari < 15.4 (sin :focus-visible) la
   segunda regla es inválida y se descarta: queda el anillo nativo. */
:focus-visible { outline: 2px solid var(--tierra); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
main:focus { outline: none; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  padding: 0.75rem 1.25rem;
  color: var(--marfil);
  background: var(--espresso);
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; color: var(--marfil); }

/* ==========================================================================
   4. BOTONES
   Se definen con las variables de .btn de Bootstrap. Así sus estados
   (:hover, :active, :focus-visible, disabled) usan SIEMPRE nuestros colores.
   ========================================================================== */

.btn {
  --bs-btn-padding-x: 1.6rem;
  --bs-btn-padding-y: 0.8rem;
  --bs-btn-font-family: var(--font-sans);
  --bs-btn-font-size: 0.8125rem;
  --bs-btn-font-weight: 600;
  --bs-btn-line-height: 1.25;
  --bs-btn-border-width: 1.5px;
  --bs-btn-border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;           /* objetivo táctil cómodo */
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  -webkit-user-select: none;
          user-select: none;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease),
              border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
              transform 0.3s var(--ease);
}
.btn .ico { font-size: 1.15em; }
.btn .ico-whatsapp { font-size: 1.35em; }

.btn.btn-sm {
  --bs-btn-padding-x: 1.15rem;
  --bs-btn-padding-y: 0.5rem;
  --bs-btn-font-size: 0.75rem;
  min-height: 42px;
}
.btn.btn-lg {
  --bs-btn-padding-x: 2rem;
  --bs-btn-padding-y: 0.95rem;
  --bs-btn-font-size: 0.8125rem;
  min-height: 54px;
}

/* Principal: espresso de la paleta. El ícono de WhatsApp conserva su verde
   como señal de reconocimiento (6.2:1 de contraste sobre el espresso). */
.btn-brand {
  --bs-btn-color: var(--marfil);
  --bs-btn-bg: var(--espresso);
  --bs-btn-border-color: var(--espresso);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--tierra);
  --bs-btn-hover-border-color: var(--tierra);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #3A2314;
  --bs-btn-active-border-color: #3A2314;
  --bs-btn-disabled-color: var(--marfil);
  --bs-btn-disabled-bg: var(--espresso);
  --bs-btn-disabled-border-color: var(--espresso);
  --bs-btn-focus-shadow-rgb: 118, 77, 47;
  box-shadow: var(--shadow-sm);
}
.btn-brand .ico-whatsapp { color: var(--whatsapp); }

.btn-outline-brand {
  --bs-btn-color: var(--espresso);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--border-strong);
  --bs-btn-hover-color: var(--marfil);
  --bs-btn-hover-bg: var(--espresso);
  --bs-btn-hover-border-color: var(--espresso);
  --bs-btn-active-color: var(--marfil);
  --bs-btn-active-bg: var(--tierra);
  --bs-btn-active-border-color: var(--tierra);
  --bs-btn-focus-shadow-rgb: 118, 77, 47;
}

/* Sobre fondos oscuros */
.btn-cream {
  --bs-btn-color: var(--espresso);
  --bs-btn-bg: var(--champan);
  --bs-btn-border-color: var(--champan);
  --bs-btn-hover-color: var(--espresso);
  --bs-btn-hover-bg: var(--marfil);
  --bs-btn-hover-border-color: var(--marfil);
  --bs-btn-active-color: var(--espresso);
  --bs-btn-active-bg: var(--dorado-suave);
  --bs-btn-active-border-color: var(--dorado-suave);
  --bs-btn-focus-shadow-rgb: 238, 216, 195;
}

/* El "levantarse" al pasar el mouse solo existe con mouse: en pantallas
   táctiles el :hover queda pegado después de tocar. */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn-brand:hover { box-shadow: var(--shadow-md); }
}
.btn:active { transform: translateY(0) scale(0.98); }

/* ==========================================================================
   5. NAVEGACIÓN
   ========================================================================== */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: rgba(247, 242, 235, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
          backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}
/* Sin backdrop-filter (Safari antiguo, Firefox viejo): fondo sólido legible */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-nav { background: rgba(247, 242, 235, 0.97); }
}
.site-nav.is-scrolled {
  background: rgba(255, 253, 249, 0.9);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--nav-h);
}

.site-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--espresso);
  white-space: nowrap;
}
.site-nav__brand:hover { color: var(--espresso); }
.site-nav__logo { width: 32px; height: 32px; color: var(--tierra); flex-shrink: 0; }
/* Logotipo del cliente (tulipán) usado también fuera de la cabecera */
.brand-mark { width: 32px; height: 32px; flex-shrink: 0; color: var(--dorado); }
.brand-mark path, .brand-mark rect { fill: currentColor; }

.site-nav__panel {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
}
.site-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.2vw, 2.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--espresso);
  transition: color 0.25s var(--ease);
}
.site-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--dorado);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.site-nav__link:hover { color: var(--tierra); }
.site-nav__link:hover::after,
.site-nav__link.is-active::after { transform: scaleX(1); }
.site-nav__link.is-active { color: var(--tierra); }

/* Hamburguesa dibujada en CSS: se transforma en X al abrir */
.site-nav__toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px;               /* 44 px: objetivo táctil mínimo de Apple */
  height: 44px;
  margin-right: -10px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  -webkit-appearance: none;
          appearance: none;
}
.site-nav__toggle span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.6px;
  background: var(--espresso);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.2s, top 0.35s var(--ease);
}
.site-nav__toggle span:nth-child(1) { top: 15px; }
.site-nav__toggle span:nth-child(2) { top: 21.2px; }
.site-nav__toggle span:nth-child(3) { top: 27.4px; }
.site-nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 21.2px; transform: rotate(45deg); }
.site-nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-nav__toggle[aria-expanded="true"] span:nth-child(3) { top: 21.2px; transform: rotate(-45deg); }

/* --- Móvil y tablet: menú a pantalla completa --- */
@media (max-width: 991.98px) {
  .site-nav__toggle { display: block; }
  .site-nav__brand { position: relative; z-index: 2; }

  /* Con el menú abierto quitamos el desenfoque: backdrop-filter convierte a
     la barra en el "contenedor" de sus hijos fijos y el panel quedaría
     limitado a su alto. Sin él, el panel se mide contra la pantalla. */
  .site-nav.menu-open {
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    background: var(--marfil);
    box-shadow: none;
  }

  .site-nav__panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    height: 100vh;
    height: 100dvh;          /* Safari 15.4+: alto real con la barra de iOS */
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 2.5rem;
    padding: calc(var(--nav-h) + 1rem) 2rem calc(2rem + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
      radial-gradient(ellipse 90% 60% at 100% 0%, rgba(238, 216, 195, 0.7), transparent 60%),
      var(--marfil);
    opacity: 0;
    visibility: hidden;
    /* Al cerrar: se desvanece y RECIÉN AHÍ se oculta (visibility con retardo). */
    transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  /* Al abrir: visible al instante, así el foco puede entrar en el mismo cuadro. */
  .site-nav__panel.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s var(--ease), visibility 0s linear 0s;
  }

  .site-nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__link {
    display: block;
    padding: 0.85rem 0;
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 1.5rem + 2vw, 2.4rem);
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    border-bottom: 1px solid var(--border);
  }
  .site-nav__link::after { display: none; }

  .site-nav__panel.is-open .site-nav__links li,
  .site-nav__panel.is-open .site-nav__cta {
    animation: rise 0.6s var(--ease) backwards;
  }
  .site-nav__panel.is-open li:nth-child(1) { animation-delay: 0.05s; }
  .site-nav__panel.is-open li:nth-child(2) { animation-delay: 0.1s; }
  .site-nav__panel.is-open li:nth-child(3) { animation-delay: 0.15s; }
  .site-nav__panel.is-open li:nth-child(4) { animation-delay: 0.2s; }
  .site-nav__panel.is-open .site-nav__cta { animation-delay: 0.28s; }
  .site-nav__cta.btn { min-height: 54px; --bs-btn-font-size: 0.8125rem; }

  /* Sin JavaScript el menú no podría abrirse: lo mostramos como lista simple. */
  .no-js .site-nav__toggle { display: none; }
  .no-js .site-nav__panel {
    position: static;
    height: auto;
    opacity: 1;
    visibility: visible;
    padding: 0 0 1rem;
    background: none;
  }
  .no-js .site-nav__inner { height: auto; flex-wrap: wrap; padding-top: 0.75rem; }
  .no-js .site-nav__links { flex-direction: row; flex-wrap: wrap; gap: 0 1.25rem; }
  .no-js .site-nav__link { font-size: 1rem; border: 0; }
}

/* Bloquea el scroll de la página detrás del menú abierto (iOS incluido) */
html.menu-abierto,
html.menu-abierto body { overflow: hidden; }

/* ==========================================================================
   6. PORTADA
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* El hero SIEMPRE ocupa toda la pantalla visible. Antes usábamos svh
     (viewport chico, con barras del navegador) y al ocultarse la barra
     de direcciones de Chrome/Safari aparecía debajo el título de la
     siguiente sección. Con dvh el alto sigue al navegador en vivo. */
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--nav-h) + 2rem) 0 5.5rem;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 55% at 80% 8%, rgba(238, 216, 195, 0.95) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 8% 95%, rgba(172, 139, 106, 0.28) 0%, transparent 60%),
    linear-gradient(172deg, #FBF7F1 0%, #F3E8DB 55%, #EADBC8 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: 0.22;
  pointer-events: none;
}

/* Sombras de hojas de palmera, como en el arte de marca */
.hero__shadows {
  position: absolute;
  z-index: -1;
  top: -8%;
  right: -12%;
  width: min(78vw, 820px);
  height: min(78vw, 820px);
  color: var(--espresso);
  fill: currentColor;
  opacity: 0.12;
  filter: blur(7px);
  transform-origin: 100% 0;
  animation: sway 16s ease-in-out infinite alternate;
  pointer-events: none;
  will-change: transform;
}
.hero__shadows svg { width: 100%; height: 100%; display: block; }
@keyframes sway {
  from { transform: rotate(-1.5deg); }
  to   { transform: rotate(2deg) translate3d(-8px, 6px, 0); }
}

.hero__inner { position: relative; }

.hero__sun {
  display: block;
  width: clamp(92px, 9vw, 124px);
  height: auto;
  margin: 0 auto 1.25rem;
  color: var(--tierra);
  animation: rise 1s var(--ease) 0.05s backwards;
}

/* Teaser del próximo evento, arriba del título del hero.
   Pill delicada, con un punto pulsante que llama la atención sin ruido. */
.hero__tease {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  margin: 0 auto 1.1rem;
  padding: 0.42rem 0.95rem 0.42rem 0.65rem;
  font-family: var(--font-sans);
  font-size: clamp(0.72rem, 0.68rem + 0.2vw, 0.84rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--espresso);
  background: rgba(255, 253, 249, 0.78);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(74, 46, 27, 0.08);
  text-decoration: none;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  animation: rise 0.9s var(--ease) 0.02s backwards;
}
.hero__tease-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .hero__tease { padding-left: 0.55rem; padding-right: 0.75rem; }
  .hero__tease .ico { display: none; }
}
.hero__tease:hover,
.hero__tease:focus-visible {
  color: var(--espresso);
  background: var(--marfil);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(74, 46, 27, 0.14);
}
.hero__tease strong { font-weight: 600; }
.hero__tease .ico {
  font-size: 0.72em;
  color: var(--tierra);
  transition: transform 0.3s var(--ease);
}
.hero__tease:hover .ico { transform: translateY(2px); }

.hero__tease-dot {
  position: relative;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: var(--whatsapp-fab);
  border-radius: 50%;
}
.hero__tease-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--whatsapp-fab);
  opacity: 0.45;
  animation: pulse 2.2s ease-out infinite;
}

.hero__heading { margin: 0; font: inherit; color: inherit; }

.hero__kicker {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(0.72rem, 0.66rem + 0.3vw, 0.9rem);
  font-weight: 500;
  letter-spacing: var(--tracking-max);
  text-transform: uppercase;
  color: var(--tierra);
  animation: rise 0.9s var(--ease) 0.1s backwards;
}

.hero__title {
  display: block;
  margin: 0.05em 0 0;
  padding-bottom: 0.08em;   /* aire para el trazo caligráfico */
  font-family: var(--font-script);
  font-size: clamp(4.1rem, 2.4rem + 8vw, 8.75rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: var(--espresso);
  animation: rise 1.1s var(--ease) 0.15s backwards;
}

.hero__brush {
  display: block;
  width: clamp(190px, 28vw, 340px);
  height: auto;
  margin: -0.35rem auto 1.75rem;
  color: var(--tierra);
  opacity: 0.85;
  animation: draw 1.3s var(--ease) 0.55s backwards;
}
@keyframes draw {
  from { -webkit-clip-path: inset(0 100% 0 0); clip-path: inset(0 100% 0 0); }
  to   { -webkit-clip-path: inset(0 0 0 0);    clip-path: inset(0 0 0 0); }
}

.hero__manifesto {
  max-width: 32em;
  margin: 0 auto;
  font-size: clamp(0.8rem, 0.74rem + 0.35vw, 0.98rem);
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--espresso);
  text-wrap: balance;
  animation: rise 0.9s var(--ease) 0.35s backwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.25rem;
  animation: rise 0.9s var(--ease) 0.45s backwards;
}

.hero__trust {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  animation: rise 0.9s var(--ease) 0.55s backwards;
}
.hero__trust .ico { color: var(--tierra); }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  letter-spacing: var(--tracking-max);
  text-transform: uppercase;
  color: var(--text-muted);
  transform: translateX(-50%);
  animation: fade 1s ease 1.1s backwards;
}
.hero__scroll:hover { color: var(--tierra); }
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--tierra), transparent);
  transform-origin: top;
  animation: scrollHint 2.4s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: scaleY(0.5); opacity: 0.4; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

/* 404 */
.hero--compact { min-height: 80vh; min-height: 80dvh; }
.hero--compact .hero__title { margin-bottom: 1rem; }

@media (max-width: 575.98px) {
  .hero { padding-bottom: 3.5rem; }
  .hero__shadows { width: 130vw; height: 130vw; top: -10%; right: -55%; opacity: 0.1; }
  .hero__manifesto { letter-spacing: 0.16em; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__trust { font-size: 0.8125rem; }
  .hero__scroll { display: none; }
}
/* Pantallas bajas (celular acostado): sin decorados que empujen el contenido */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 1.5rem); }
  .hero__sun, .hero__scroll { display: none; }
}

/* ==========================================================================
   7. SECCIONES Y COMPONENTES
   ========================================================================== */

.section { padding: var(--space-section) 0; }
.section--alt { background-color: var(--champan); }
.section--surface { background-color: var(--marfil); }

.section-head {
  max-width: 46rem;
  margin: 0 auto clamp(2.5rem, 1.75rem + 2.5vw, 4rem);
  text-align: center;
}
.section-title { font-size: var(--fs-2xl); margin-bottom: 0.9rem; }
.section-lead {
  max-width: 38rem;
  margin: 0 auto;
  font-size: var(--fs-lg);
  color: var(--text-muted);
  text-wrap: pretty;
}
.section-more { margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0 0; text-align: center; }

.eyebrow {
  display: block;
  margin-bottom: 0.9rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-max);
  text-transform: uppercase;
  color: var(--tierra);
}

.eyebrow .ico { margin-right: 0.5em; vertical-align: -0.15em; }

.text-script {
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1.1;
  color: var(--tierra);
}

.lead-text { font-size: var(--fs-lg); color: var(--text-muted); }

/* --- Encabezado de páginas internas --- */
.page-head {
  position: relative;
  isolation: isolate;
  padding: calc(var(--nav-h) + clamp(2.5rem, 2rem + 3vw, 4.5rem)) 0 clamp(2.5rem, 2rem + 2vw, 3.5rem);
  background:
    radial-gradient(ellipse 60% 70% at 90% 0%, rgba(238, 216, 195, 0.85), transparent 65%),
    linear-gradient(180deg, #FBF7F1, var(--arena));
}
.page-head::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: 0.18;
  pointer-events: none;
}
.page-head .section-head { margin-bottom: 0; }

/* --- Migas de pan --- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}
.crumbs li + li::before { content: '/'; margin-right: 0.5rem; opacity: 0.5; }
.crumbs a { color: var(--tierra); }
.crumbs a:hover { color: var(--espresso); text-decoration: underline; }

/* --- Franja en números --- */
.strip {
  padding: clamp(2.25rem, 1.75rem + 2vw, 3rem) 0;
  color: var(--text-invert);
  background: var(--espresso);
}
.strip__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
@media (min-width: 768px) {
  .strip__grid { grid-template-columns: repeat(4, 1fr); }
}
.strip__num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 1.7rem + 1.6vw, 2.9rem);
  font-weight: 600;
  line-height: 1;
  color: var(--dorado-suave);
}
.strip__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 245, 240, 0.72);
}

/* --- Experiencias --- */
.exp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 576px)  { .exp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .exp-grid { grid-template-columns: repeat(4, 1fr); } }

.exp {
  display: flex;
  flex-direction: column;
  background: var(--marfil);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.exp__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--champan);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  /* Safari: sin esto, la imagen escalada "se escapa" por las esquinas redondeadas */
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
@supports not (aspect-ratio: 4 / 3) {
  .exp__media { height: 0; padding-bottom: 75%; }
}
.exp__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.exp__icon {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  font-size: 1.1rem;
  color: var(--tierra);
  background: rgba(255, 253, 249, 0.92);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.exp__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem 1.5rem 1.6rem;
}
.exp__title { margin-bottom: 0.5rem; font-size: 1.55rem; }
.exp__text { flex: 1; margin: 0; font-size: 0.9375rem; color: var(--text-muted); }

.exp__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 1.25rem 0 0;
  padding: 1rem 0 0;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.exp__meta li { display: inline-flex; align-items: center; gap: 0.4rem; }
.exp__meta .ico { color: var(--tierra); }

.exp__link,
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  margin-top: 1.1rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--tierra);
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.exp__link:hover,
.link-arrow:hover { gap: 0.8rem; color: var(--espresso); }
.link-arrow { margin-top: 0.4rem; }

@media (hover: hover) and (pointer: fine) {
  .exp:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
  .exp:hover .exp__img { transform: scale(1.05); }
}

/* --- Imagen enmarcada (El espacio / Nuestra historia) --- */
.media-frame {
  position: relative;
  isolation: isolate;
  margin: 0 1rem 1rem 0;
}
.media-frame::before {
  content: '';
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  z-index: -1;
  border: 1px solid var(--dorado);
  border-radius: var(--radius-lg);
}
.media-frame img {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.checklist { margin: 1.5rem 0 2rem; padding: 0; list-style: none; }
.checklist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}
.checklist__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  font-size: 0.7rem;
  color: var(--marfil);
  background: var(--tierra);
  border-radius: 50%;
}

/* --- Tarjetas de características (El Espacio) --- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 576px) and (max-width: 767.98px) { .feature-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .feature-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .feature-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.feature {
  height: 100%;
  padding: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  background: var(--marfil);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.4rem;
  font-size: 1.3rem;
  color: var(--tierra);
  background: var(--arena);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease);
}
.feature__title { margin-bottom: 0.6rem; font-size: var(--fs-xl); }
.feature__text { margin: 0; font-size: 0.9375rem; color: var(--text-muted); }
.feature--compact .feature__title { font-size: 1.35rem; }

@media (hover: hover) and (pointer: fine) {
  .feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
  .feature:hover .feature__icon { background: var(--espresso); color: var(--marfil); }
}

/* --- Agenda y cuenta regresiva --- */
.agenda {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 55% 60% at 50% 0%, rgba(238, 216, 195, 0.75), transparent 70%),
    var(--arena);
}
.agenda__script {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
  transform: rotate(-3deg);
}
.agenda__when {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  padding: 0.55rem 1.2rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--espresso);
  background: var(--marfil);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-xs);
}
.agenda__when .ico { color: var(--tierra); }

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.5rem, 0.25rem + 1.2vw, 1.25rem);
  max-width: 34rem;
  margin: 0 auto 2.5rem;
}
.countdown__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 1.2rem 0.4rem 1.05rem;
  background: var(--marfil);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.countdown__num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3.1rem);
  font-weight: 700;
  line-height: 1;
  color: var(--espresso);
  /* dígitos de igual ancho: el contador no "baila" al cambiar */
  font-variant-numeric: tabular-nums;
  -webkit-font-feature-settings: 'tnum';
          font-feature-settings: 'tnum';
}
.countdown__label {
  margin-top: 0.55rem;
  font-size: clamp(0.58rem, 0.5rem + 0.3vw, 0.6875rem);
  letter-spacing: clamp(0.06em, 0.02em + 0.3vw, 0.16em);
  text-transform: uppercase;
  color: var(--text-muted);
}
.agenda__done {
  max-width: 34rem;
  margin: 0 auto 2rem;
  font-size: var(--fs-lg);
  text-align: center;
  color: var(--text-muted);
}

/* --- Preguntas frecuentes --- */
#faq { background: var(--marfil); }
.faq {
  max-width: 48rem;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0.25rem;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--espresso);
  list-style: none;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }   /* Safari */
.faq__q::marker { content: ''; }
.faq__q:hover { color: var(--tierra); }

.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  background: var(--tierra);
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--espresso); border-color: var(--espresso); }
.faq__item[open] .faq__icon::before,
.faq__item[open] .faq__icon::after { background: var(--marfil); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq__a { padding: 0 3.25rem 1.5rem 0.25rem; color: var(--text-muted); }
.faq__item[open] .faq__a { animation: rise 0.45s var(--ease); }

/* --- Cierre oscuro --- */
.cta {
  position: relative;
  isolation: isolate;
  padding: var(--space-section) 0;
  overflow: hidden;
  text-align: center;
  color: var(--text-invert);
  background: linear-gradient(160deg, var(--espresso) 0%, var(--espresso-oscuro) 100%);
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(172, 139, 106, 0.28), transparent 70%),
    var(--grain);
  opacity: 0.9;
  pointer-events: none;
}
.cta .eyebrow { color: var(--dorado-suave); }
.cta .section-title { color: var(--marfil); }
.cta .section-lead { margin-bottom: 2.25rem; color: rgba(250, 245, 240, 0.78); }

/* --- Paneles --- */
.panel {
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  background: var(--marfil);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.panel--soft { background: var(--champan); border-color: transparent; box-shadow: none; }
.panel__title { margin-bottom: 0.4rem; font-size: var(--fs-xl); }
.panel__text { margin-bottom: 1.75rem; color: var(--text-muted); }

/* --- Datos de contacto --- */
.info-list {
  display: grid;
  gap: 1.75rem;
  margin: 0;
  font-style: normal;
}
.info-item { display: flex; align-items: flex-start; gap: 1rem; }
.info-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
  color: var(--tierra);
  background: var(--marfil);
  border: 1px solid var(--border);
  border-radius: 50%;
}
.info-item__label {
  margin: 0 0 0.15rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}
.info-item__value { margin: 0; font-weight: 500; color: var(--espresso); }
a.info-item__value:hover { color: var(--tierra); text-decoration: underline; }

.hours { margin: 0.25rem 0 0; padding: 0; list-style: none; }
.horario {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  font-size: var(--fs-sm);
}
.horario + .horario { border-top: 1px solid var(--border); }
.horario span:last-child { font-weight: 600; text-align: right; color: var(--espresso); }

/* ==========================================================================
   8. FORMULARIOS
   ========================================================================== */

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; }
.chip {
  min-height: 40px;
  padding: 0.45rem 1rem;
  font-size: var(--fs-sm);
  color: var(--espresso);
  background: var(--arena);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  -webkit-appearance: none;
          appearance: none;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.chip:hover { border-color: var(--dorado); }
.chip.is-active { color: var(--marfil); background: var(--espresso); border-color: var(--espresso); }

.field { margin-bottom: 1.25rem; }
.field__label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}

.input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1.1rem;
  /* 16 px exactos: con menos, Safari en iPhone hace zoom al tocar el campo */
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
  background-color: var(--arena);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  -webkit-appearance: none;
          appearance: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.input:hover { border-color: var(--border-strong); }
.input:focus {
  background-color: #fff;
  border-color: var(--dorado);
  box-shadow: 0 0 0 4px rgba(172, 139, 106, 0.18);
  outline: none;
}
.input::placeholder { color: rgba(110, 87, 71, 0.6); opacity: 1; }
textarea.input { min-height: 132px; resize: vertical; }

/* <select> con flecha propia: Safari ignora el estilo de la nativa */
select.input {
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236E5747' stroke-width='1.6' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
}

/* Fecha en iPhone: sin esto el campo vacío colapsa y el texto queda centrado */
input[type="date"].input { display: block; }
.input::-webkit-date-and-time-value { min-height: 1.4em; text-align: left; }
.input::-webkit-calendar-picker-indicator { opacity: 0.55; cursor: pointer; }

.field--invalid .input { border-color: var(--danger); }
.field--invalid .input:focus { box-shadow: 0 0 0 4px rgba(168, 64, 42, 0.15); }
.field__error {
  display: none;
  margin: 0.45rem 0 0;
  font-size: 0.8125rem;
  color: var(--danger);
}
.field--invalid .field__error { display: block; }

.form__note {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  text-align: center;
  color: var(--text-muted);
}

/* ==========================================================================
   9. PIE DE PÁGINA
   ========================================================================== */

.site-footer {
  padding: clamp(3.5rem, 2.5rem + 3vw, 5.5rem) 0 2rem;
  color: rgba(250, 245, 240, 0.72);
  background: var(--espresso-oscuro);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px)  { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .site-footer__grid { grid-template-columns: 1.5fr 1fr 1.1fr 1.3fr; } }

.site-footer__brand {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--champan);
}
.site-footer__brand:hover { color: var(--marfil); }
.site-footer__text { max-width: 24rem; margin: 1rem 0 0; font-size: var(--fs-sm); }

.site-footer__title {
  margin-bottom: 1.1rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dorado);
}
.site-footer__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-style: normal;
}
.site-footer__link {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  color: rgba(250, 245, 240, 0.78);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.site-footer__link .ico { margin-top: 0.2em; color: var(--dorado); }
.site-footer__link:hover { color: var(--champan); }
@media (hover: hover) and (pointer: fine) {
  .site-footer__link:hover { transform: translateX(3px); }
}

.site-footer__hours { max-width: 18rem; margin: 0; padding: 0; list-style: none; }
.site-footer__hours .horario { color: rgba(250, 245, 240, 0.78); }
.site-footer__hours .horario + .horario { border-color: rgba(250, 245, 240, 0.12); }
.site-footer__hours .horario span:last-child { color: var(--champan); }

.social { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 1.05rem;
  color: rgba(250, 245, 240, 0.85);
  border: 1px solid rgba(250, 245, 240, 0.22);
  border-radius: 50%;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.social a:hover { color: var(--espresso-oscuro); background: var(--champan); border-color: var(--champan); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.75rem;
  font-size: 0.8125rem;
  color: rgba(250, 245, 240, 0.6);
  border-top: 1px solid rgba(250, 245, 240, 0.12);
}
.site-footer__bottom p { margin: 0; }
.site-footer__claim { font-family: var(--font-serif); font-style: italic; font-size: 1rem; }

/* En móvil, que el botón flotante no tape el pie */
@media (max-width: 767.98px) {
  .site-footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
  .site-footer__bottom { flex-direction: column; }
}

/* ==========================================================================
   10. BOTÓN FLOTANTE DE WHATSAPP
   · Fijo abajo a la derecha, respetando la barra de gestos del iPhone
     (env(safe-area-inset-*), requiere viewport-fit=cover en el viewport).
   · El contenedor no intercepta clics: solo el botón y la burbuja.
   ========================================================================== */

.wa-fab {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, calc(env(safe-area-inset-bottom) + 0.5rem));
  z-index: 1040;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
  pointer-events: none;
}
.wa-fab > * { pointer-events: auto; }

.wa-fab__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  color: #fff;
  background: var(--whatsapp-fab);
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(29, 168, 81, 0.38), 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  -webkit-transform: translateZ(0);   /* capa propia: el halo no parpadea en Safari */
          transform: translateZ(0);
}
.wa-fab__btn .ico { width: 1em; font-size: 1.9rem; vertical-align: 0; }
.wa-fab__btn:hover,
.wa-fab__btn:focus-visible { color: #fff; background: var(--whatsapp-fab-hover); }
@media (hover: hover) and (pointer: fine) {
  .wa-fab__btn:hover { transform: scale(1.07); box-shadow: 0 14px 34px rgba(29, 168, 81, 0.48); }
}
.wa-fab__btn:active { transform: scale(0.94); }
.wa-fab__btn:focus-visible { outline: 3px solid var(--espresso); outline-offset: 3px; }

/* Halo pulsante: detrás del botón y sin capturar clics */
.wa-fab__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: var(--whatsapp-fab);
  animation: pulse 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes pulse {
  0%        { transform: scale(1);   opacity: 0.5; }
  70%, 100% { transform: scale(1.7); opacity: 0; }
}

/* Burbuja de invitación */
.wa-fab__bubble {
  position: relative;
  max-width: min(78vw, 260px);
  background: var(--marfil);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
}
.wa-fab__bubble.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0s;
}
/* Colita que apunta al botón */
.wa-fab__bubble::after {
  content: '';
  position: absolute;
  right: 22px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: var(--marfil);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: rotate(45deg);
}
.wa-fab__bubble-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 2.6rem 0.85rem 1.1rem;
  color: var(--espresso);
}
.wa-fab__bubble-link:hover { color: var(--espresso); }
.wa-fab__title { display: block; font-size: var(--fs-sm); font-weight: 700; line-height: 1.3; }
.wa-fab__text { display: block; font-size: var(--fs-xs); color: var(--text-muted); }
.wa-fab__dot {
  position: relative;
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  background: var(--whatsapp);
  border-radius: 50%;
}
.wa-fab__dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--whatsapp);
  animation: pulse 2s ease-out infinite;
}
.wa-fab__close {
  position: absolute;
  top: 50%;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  -webkit-appearance: none;
          appearance: none;
  transition: background-color 0.2s, color 0.2s;
}
.wa-fab__close:hover { color: var(--espresso); background: var(--arena); }

@media (max-width: 575.98px) {
  .wa-fab { right: max(1rem, env(safe-area-inset-right)); }
  .wa-fab__btn { width: 56px; height: 56px; }
  .wa-fab__btn .ico { font-size: 1.75rem; }
}
/* Con el menú móvil abierto, el botón flotante se aparta */
html.menu-abierto .wa-fab { opacity: 0; visibility: hidden; }

/* --- Botón "volver arriba": aparece al bajar y se queda bajo el WhatsApp.
   Discreto: sin halo, sin texto. 44 px cuadrados = objetivo táctil cómodo. */
.to-top {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  /* Se posa encima del botón flotante de WhatsApp sin pisarlo */
  bottom: calc(max(1.25rem, env(safe-area-inset-bottom) + 0.5rem) + 72px);
  z-index: 1035;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--espresso);
  background: rgba(255, 253, 249, 0.95);
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
              visibility 0s linear 0.3s, background-color 0.25s var(--ease),
              color 0.25s var(--ease);
  -webkit-appearance: none;
          appearance: none;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
              visibility 0s linear 0s, background-color 0.25s var(--ease),
              color 0.25s var(--ease);
}
.to-top:hover,
.to-top:focus-visible { color: var(--marfil); background: var(--espresso); }
.to-top:focus-visible { outline: 2px solid var(--tierra); outline-offset: 3px; }
.to-top:active { transform: scale(0.94); }
.to-top .ico { font-size: 1rem; }
@media (max-width: 575.98px) {
  .to-top { right: max(1rem, env(safe-area-inset-right)); bottom: calc(max(1rem, env(safe-area-inset-bottom) + 0.5rem) + 68px); }
}
html.menu-abierto .to-top { opacity: 0; visibility: hidden; }

/* --- Flecha sutil que lleva al próximo título. Se usa al pie de las
   secciones principales. No es un botón grande: una línea con una
   punta y un rótulo chico. */
.next-section {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin: clamp(2rem, 1.5rem + 1.5vw, 3rem) auto 0;
  padding: 0.5rem 1rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.next-section__line {
  width: 1px;
  height: 32px;
  background: linear-gradient(var(--dorado), transparent);
  transform-origin: top;
  animation: scrollHint 2.6s ease-in-out infinite;
}
.next-section:hover,
.next-section:focus-visible { color: var(--tierra); transform: translateY(1px); }
.next-section:focus-visible { outline: none; }
.next-section:focus-visible .next-section__line { background: linear-gradient(var(--tierra), transparent); }
.section-foot { text-align: center; }

/* --- Tarjeta "¿No ves lo que buscás?" al final del catálogo de experiencias.
   Permite al visitante sugerir un servicio nuevo por WhatsApp. */
.suggest {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 44rem;
  margin: clamp(2rem, 1.5rem + 2vw, 3rem) auto 0;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  text-align: center;
  background:
    linear-gradient(145deg, rgba(238, 216, 195, 0.55), rgba(255, 253, 249, 0.9));
  border: 1px dashed var(--dorado);
  border-radius: var(--radius-lg);
}
.suggest__title { margin: 0; font-size: var(--fs-xl); color: var(--espresso); }
.suggest__text {
  max-width: 32rem;
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.suggest__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  width: 100%;
  max-width: 32rem;
  margin-top: 0.5rem;
}
.suggest__input {
  flex: 1 1 180px;
  min-width: 0;                /* permite al input achicarse sin desbordar el flex */
  min-height: 48px;
  padding: 0.75rem 1rem;
  font-size: 16px;             /* 16 px exactos: evita el zoom automático en iOS */
  line-height: 1.4;
  color: var(--text);
  background: var(--marfil);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  -webkit-appearance: none;
          appearance: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.suggest__input::placeholder { color: rgba(110, 87, 71, 0.6); opacity: 1; }
.suggest__input:focus {
  background: #fff;
  border-color: var(--dorado);
  box-shadow: 0 0 0 4px rgba(172, 139, 106, 0.18);
  outline: none;
}
.suggest__btn { flex: 0 0 auto; min-width: 150px; }
/* Hasta 640 px el botón pasa debajo del input para no quedar apretado
   (antes el umbral era 576 px y en viewports intermedios el botón colapsaba). */
@media (max-width: 639.98px) {
  .suggest__form { flex-direction: column; }
  .suggest__input, .suggest__btn { width: 100%; flex: 1 1 auto; }
}

/* ==========================================================================
   11. ANIMACIONES DE APARICIÓN
   Principio: NADA está oculto por defecto. main.js marca como pendientes
   solo los bloques que están fuera de la pantalla al cargar, y los revela al
   llegar a ellos. Si JavaScript falla, el contenido se ve igual.
   ========================================================================== */

@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 22px, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal-pending { opacity: 0; }
/* "backwards": al terminar la animación no deja estilos pegados, así los
   efectos de :hover siguen funcionando normalmente. */
.reveal-in { animation: rise 0.7s var(--ease) backwards; }
.reveal-in[data-reveal-delay="1"] { animation-delay: 0.06s; }
.reveal-in[data-reveal-delay="2"] { animation-delay: 0.12s; }
.reveal-in[data-reveal-delay="3"] { animation-delay: 0.18s; }
.reveal-in[data-reveal-delay="4"] { animation-delay: 0.24s; }

/* ==========================================================================
   12. PREFERENCIAS DEL SISTEMA E IMPRESIÓN
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__shadows { animation: none; }
}

@media (prefers-contrast: more) {
  :root {
    --text-muted: #4F3B2E;
    --border: rgba(92, 61, 40, 0.45);
    --border-strong: rgba(92, 61, 40, 0.7);
  }
}

@media print {
  .site-nav, .wa-fab, .to-top, .next-section, .hero__scroll, .hero__shadows, .skip-link { display: none !important; }
  body { color: #000; background: #fff; }
  .hero, .page-head { min-height: 0; padding: 1rem 0; background: none; }
  .hero::before, .page-head::before, .cta::before { display: none; }
  .section, .cta { padding: 1.5rem 0; color: #000; background: none; }
  .cta .section-title, .cta .section-lead { color: #000; }
  .reveal-pending { opacity: 1; }
  a[href^="http"]:not(.btn)::after { content: ' (' attr(href) ')'; font-size: 0.8em; }
}
