/* =========================================================
   DOUCE — Landing Page
   Paleta de marca:
     --sage      #B2BDA0  (sage green)
     --white     #FFFFFF
     --accent    #A8707A  (rosado terracota — botones, navbar, footer,
                           Contacto, y demás detalles de marca)
     --ink       #2F3E2F  (neutro oscuro para texto de lectura, no es
                           un color de marca, solo una tinta legible)
   Las variables --sage-deep / --sage-tint / --ink-soft son variaciones
   (tintes y sombras) de esos colores, no colores nuevos.
   Tipografías: Playfair Display (títulos) / Montserrat (cuerpo)
   ========================================================= */

:root {
  --sage: #B2BDA0;
  --sage-deep: #96A57E;   /* sage más profundo, para el degradado del hero */
  --sage-tint: #E9EDE3;   /* sage aclarado con blanco, para fondos suaves */
  --white: #FFFFFF;
  --accent: #A8707A;      /* rosado terracota — botones, navbar, footer, Contacto */
  --ink: #2F3E2F;         /* tinta oscura para texto de lectura */
  --ink-soft: #5C6B57;    /* tinta aclarada, para texto secundario */

  --font-serif: "Didot", "Playfair Display", "Georgia", serif;
  --font-sans: "Montserrat", "Lato", -apple-system, BlinkMacSystemFont, sans-serif;

  --container-width: 1140px;
  --section-padding: clamp(4rem, 8vw, 7rem);
  --navbar-height: 72px;

  --transition-base: 0.35s ease;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Scroll-snap suave para el recorrido del menú (ver .menu-step).
     "proximity" es no-intrusivo: solo ajusta si ya estás cerca de encajar.
     Para desactivarlo por completo, borra esta línea. */
  scroll-snap-type: y proximity;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }
  .fade-in,
  .menu-step {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero,
  .hero__logo,
  .hero__scroll-line,
  .floral-spray__flower--a,
  .floral-spray__flower--b {
    animation: none !important;
  }
}

/* =========================================================
   Scroll fade-in animation (secciones generales)
   ========================================================= */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1rem 2.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color var(--transition-base), color var(--transition-base),
    border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

/* Botón principal: pensado para resaltar sobre el sage del Hero.
   Fondo blanco + texto rosado terracota; en hover se invierte. */
.btn--primary {
  background-color: var(--white);
  color: var(--accent);
  border-color: var(--white);
  box-shadow: 0 8px 24px rgba(168, 112, 122, 0.18);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(168, 112, 122, 0.28);
}

/* Variante para usarse sobre fondos ya con el acento (ej. sección Contacto):
   el hover no puede invertir al mismo acento (se perdería contra el fondo),
   así que invierte a sage en su lugar. */
.btn--on-dark:hover,
.btn--on-dark:focus-visible {
  background-color: var(--sage);
  color: var(--accent);
  border-color: var(--sage);
}

.btn--large {
  font-size: 1rem;
  padding: 1.15rem 2.75rem;
  margin-top: 0.5rem;
}

/* =========================================================
   Navbar (sticky, fondo rosado terracota / texto blanco — mejor
   contraste y coherente con Contacto y Footer)
   ========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--sage);
  /* Línea blanca fina: sin ella, al tope de la página el navbar y el Hero
     (ambos sage) se fundirían en un solo bloque indistinguible. */
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-height);
}

.navbar__logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: var(--white);
}

/* Enlaces de escritorio */
.navbar__menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.navbar__link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  transition: color var(--transition-base);
}

.navbar__link:hover,
.navbar__link:focus-visible {
  color: var(--sage);
}

.navbar__cta.btn {
  padding: 0.65rem 1.5rem;
  font-size: 0.75rem;
}

/* Botón hamburguesa — oculto en desktop, visible solo en mobile */
.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.navbar__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--white);
  border-radius: 1px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* Animación hamburguesa → X cuando el menú mobile está abierto */
.navbar__toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.navbar__toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 780px) {
  .navbar__toggle {
    display: flex;
  }

  /* Menú desplegable debajo del navbar en mobile */
  .navbar__menu {
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background-color: var(--sage);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
  }

  .navbar__menu.is-open {
    max-height: 320px;
  }

  .navbar__menu li {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .navbar__link {
    display: block;
    padding: 1rem 1.5rem;
  }

  .navbar__cta.btn {
    display: block;
    text-align: center;
    margin: 1rem 1.5rem;
  }
}

/* =========================================================
   Section titles (shared)
   ========================================================= */
.section {
  padding-block: var(--section-padding);
}

.section__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section__eyebrow--light {
  color: var(--white);
}

.section__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.section__title--light {
  color: var(--white);
}

.section__intro {
  max-width: 640px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  /* Contiene las flores decorativas de las esquinas: nunca sobrepasan el
     ancho de la pantalla, sin importar el tamaño del viewport. */
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem;
  /* Degradado sutil de sage a un sage más profundo. El fondo es más grande
     que el viewport y se desplaza lentamente (background-position) para
     dar una sensación de movimiento ambiental, muy sutil. */
  background: linear-gradient(160deg, var(--sage) 0%, var(--sage-deep) 100%);
  background-size: 220% 220%;
  animation: hero-gradient-shift 16s ease-in-out infinite alternate;
}

@keyframes hero-gradient-shift {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

.hero__content {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

/* Capa de oscurecimiento controlada por scroll — ver updateHeroDarken()
   en script.js. No reemplaza el degradado animado del Hero, se pinta
   encima de él, así ambos efectos conviven sin pisarse. */
.hero__darken-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--ink);
  opacity: 0;
  pointer-events: none;
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

.hero__logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(3.5rem, 12vw, 7rem);
  letter-spacing: 0.08em;
  color: var(--white);
  line-height: 1;
  display: inline-block;
  /* Vaivén sutil y lento: le da vida al Hero sin distraer de la lectura */
  animation: hero-logo-float 6s ease-in-out infinite;
}

@keyframes hero-logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--white);
  margin-top: 1rem;
}

.hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 480px;
  margin: 1.5rem auto 2.5rem;
}

/* Indicador de scroll: un "mouse" outline con un punto que cae dentro,
   más visible que una simple línea desvaneciéndose. */
.hero__scroll-hint {
  position: absolute;
  bottom: clamp(1.5rem, 4vh, 2.5rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  z-index: 2;
}

.hero__scroll-hint-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.hero__scroll-line {
  display: block;
  width: 2px;
  height: 72px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), transparent);
  animation: scroll-hint 2.2s ease-in-out infinite;
}

@keyframes scroll-hint {
  0% { transform: scaleY(0.45); opacity: 0.5; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
  100% { transform: scaleY(0.45); opacity: 0.5; transform-origin: top; }
}

/* =========================================================
   Flores decorativas (rosado + blanco, todas con tallo)
   Cada flor es una instancia <use> de "douce-flower-pink" /
   "douce-flower-white" (definidas en el sprite oculto al inicio del
   <body>): pétalos en dos capas + tallo + un par de hojas.
   El tamaño se controla solo con "width"; "aspect-ratio: 7 / 15" respeta
   las proporciones del viewBox del símbolo (70 × 150) sin deformarlo.
   ========================================================= */

/* Clúster de 2 flores (Hero, Contacto): una más grande y otra más chica,
   levemente rotadas para que se vea como un ramo suelto, no algo rígido. */
.floral-spray {
  position: absolute;
  width: 190px;
  height: 190px;
  pointer-events: none;
  z-index: 1;
}

.floral-spray__flower {
  position: absolute;
  display: block;
  aspect-ratio: 7 / 15;
}

.floral-spray__flower--a {
  top: -6px;
  left: 6px;
  width: 92px;
  transform: rotate(-14deg);
  animation: float-flower-a 6s ease-in-out infinite;
}

.floral-spray__flower--b {
  top: 74px;
  left: -10px;
  width: 58px;
  transform: rotate(16deg);
  animation: float-flower-b 5s ease-in-out infinite;
  animation-delay: -1.5s;
}

/* Vaivén sutil: cada flor mantiene su rotación e incorpora un leve
   balanceo vertical, para dar algo de movimiento ambiental al Hero. */
@keyframes float-flower-a {
  0%, 100% { transform: rotate(-14deg) translateY(0); }
  50% { transform: rotate(-14deg) translateY(-9px); }
}

@keyframes float-flower-b {
  0%, 100% { transform: rotate(16deg) translateY(0); }
  50% { transform: rotate(16deg) translateY(-7px); }
}

/* Esquina superior izquierda: posición "natural" del clúster */
.floral-spray--top-left {
  top: 0;
  left: 0;
}

/* Esquina inferior derecha: mismo clúster, rotado 180° sobre su propio
   centro para que "crezca" desde esa esquina en espejo */
.floral-spray--bottom-right {
  bottom: 0;
  right: 0;
  transform: rotate(180deg);
}

/* Esquina superior derecha: espejado solo en horizontal */
.floral-spray--top-right {
  top: 0;
  right: 0;
  transform: scaleX(-1);
}

@media (max-width: 640px) {
  .floral-spray {
    transform: scale(0.72);
    transform-origin: top left;
  }
  .floral-spray--top-right {
    transform: scaleX(-1) scale(0.72);
    transform-origin: top right;
  }
  .floral-spray--bottom-right {
    transform: rotate(180deg) scale(0.72);
    transform-origin: bottom right;
  }
}

/* Flor única de esquina (Qué ofrecemos, Galería, Preguntas Frecuentes):
   un acento más discreto, una sola flor por sección. */
.floral-single {
  position: absolute;
  width: 100px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.92;
}

.floral-single__flower {
  display: block;
  width: 100%;
  aspect-ratio: 7 / 15;
}

.floral-single--top-right {
  top: -10px;
  right: 6%;
  transform: rotate(14deg) scaleX(-1);
}

.floral-single--bottom-left {
  bottom: -10px;
  left: 6%;
  transform: rotate(-12deg);
}

@media (max-width: 640px) {
  .floral-single {
    width: 68px;
  }
}

/* =========================================================
   Qué ofrecemos
   ========================================================= */
.section--offer {
  position: relative;
  overflow: hidden;
  background-color: var(--white);
  text-align: center;
}

.section--offer .section__intro {
  margin-inline: auto;
  text-align: center;
}

/* Lado a lado siempre (también en mobile): por eso el tamaño de fuente y
   el padding de la tarjeta usan clamp() en vez de valores fijos. */
.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.75rem, 4vw, 1.75rem);
  margin-top: 1rem;
}

/* Los recuadros son <a> clickeables que llevan a #dulces / #salados */
/* display:flex + column, con la CTA empujada al fondo con margin-top:auto,
   para que "Ver platillos" quede a la misma altura en ambas tarjetas sin
   importar si el texto de una tiene más líneas que el de la otra. */
.offer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  background-color: var(--white);
  border: 1px solid var(--sage);
  padding: clamp(1.25rem, 5vw, 2.75rem) clamp(0.9rem, 4vw, 2rem);
  border-radius: 4px;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.offer-card:hover,
.offer-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 16px 32px rgba(168, 112, 122, 0.12);
}

.offer-card__icon {
  font-size: clamp(1.6rem, 6vw, 2.25rem);
  margin-bottom: clamp(0.5rem, 2vw, 1rem);
}

.offer-card__title {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 4.5vw, 1.5rem);
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.offer-card__text {
  color: var(--ink-soft);
  font-size: clamp(0.8rem, 3vw, 0.98rem);
}

/* Indicador sutil de que el recuadro es clickeable */
.offer-card__cta {
  display: inline-block;
  /* margin-top: auto la empuja al fondo de la tarjeta flex, alineándola
     con la del recuadro vecino sin importar cuántas líneas tenga el texto */
  margin-top: auto;
  padding-top: clamp(0.85rem, 3vw, 1.5rem);
  font-size: clamp(0.66rem, 2.4vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  transition: transform var(--transition-base);
}

.offer-card:hover .offer-card__cta,
.offer-card:focus-visible .offer-card__cta {
  transform: translateX(4px);
}

/* =========================================================
   Menú — recorrido paso a paso al scrollear (mobile-first)
   ========================================================= */
.section--menu {
  background-color: var(--white);
  padding-block: var(--section-padding);
}

.menu-intro {
  text-align: center;
}

.menu-intro .section__intro {
  margin-inline: auto;
}

/* Botón "Ver el Menú completo": vive sobre fondo blanco, así que invierte
   los colores por defecto de .btn--primary (que está pensado para fondos
   sage/acento) — acá el estado normal ya es fondo acento + texto blanco. */
.menu-cta {
  margin-top: 0.5rem;
  background-color: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-cta:hover,
.menu-cta:focus-visible {
  background-color: var(--white);
  color: var(--accent);
  border-color: var(--accent);
}

/* La flor queda fija en rotate(90deg): el capullo (antes "arriba") pasa a
   apuntar hacia la derecha, como una flecha, con el tallo detrás. El
   nudge en hover va en el contenedor (sin rotar) para que se mueva en
   horizontal real y no arrastrado por la rotación de su hijo. */
.menu-cta__arrow-wrap {
  display: inline-flex;
  transition: transform var(--transition-base);
}

.menu-cta:hover .menu-cta__arrow-wrap,
.menu-cta:focus-visible .menu-cta__arrow-wrap {
  transform: translateX(4px);
}

.menu-cta__arrow {
  width: 20px;
  aspect-ratio: 7 / 15;
  transform: rotate(90deg);
  display: block;
}

/* Link "Volver al inicio" en menu.html */
.menu-back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  transition: color var(--transition-base);
}

.menu-back-link:hover,
.menu-back-link:focus-visible {
  color: var(--accent);
}

/* En menu.html no hay Hero antes, así que la sección de menú necesita su
   propio respiro arriba para no quedar pegada al navbar sticky */
.section--menu-page {
  padding-top: clamp(2.5rem, 6vw, 4rem);
}

/* Contenedor de los platillos. Cada .menu-step es "una pantalla" propia. */
.menu-steps {
  display: flex;
  flex-direction: column;
}

/* Títulos "Estación Dulce" / "Estación Salada" — separan el menú y son las
   anclas de navegación (#dulces, #salados) del navbar y de "Qué ofrecemos".
   Llevan scroll-margin-top para que el navbar sticky no los tape. */
.menu-station-title {
  text-align: center;
  padding: 3rem 1.5rem 0.5rem;
  scroll-margin-top: calc(var(--navbar-height) + 12px);
}

.menu-station-title__text {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

/* Florecitas que flanquean "Estación Dulce" / "Estación Salada" */
.menu-station-title__bloom {
  width: clamp(20px, 4vw, 30px);
  aspect-ratio: 7 / 15;
  flex-shrink: 0;
}

.menu-station-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background-color: var(--sage);
  margin: 1rem auto 0;
}

.menu-step {
  /* Estado inicial (oculto), animado por el observer dedicado en script.js */
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;

  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 1.5rem;
  max-width: var(--container-width);
  margin-inline: auto;

  /* Scroll-snap: cada platillo intenta acomodarse en pantalla al scrollear.
     Quita "scroll-snap-align" aquí (y "scroll-snap-type" en html) si prefieres
     un scroll totalmente libre. */
  scroll-snap-align: start;
}

.menu-step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.menu-step__media {
  width: 100%;
  max-width: 420px;
}

.menu-step__placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sage-tint), var(--sage));
  color: var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  text-align: center;
  padding: 1rem;
}

.menu-step__text {
  text-align: center;
  max-width: 480px;
}

.menu-step__tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.menu-step__name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.menu-step__desc {
  color: var(--ink-soft);
  font-size: 1rem;
}

/* Desktop: imagen y texto lado a lado, alternando dirección */
@media (min-width: 800px) {
  .menu-step {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    min-height: 64vh;
    text-align: left;
  }

  .menu-step:nth-child(even) {
    flex-direction: row-reverse;
  }

  .menu-step__text {
    text-align: left;
  }
}

.menu-note {
  margin-top: 1.5rem;
  text-align: center;
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* =========================================================
   Galería
   ========================================================= */
.section--gallery {
  position: relative;
  overflow: hidden;
  background-color: var(--sage-tint);
  text-align: center;
  /* El navbar es sticky: este offset evita que tape el título al llegar
     por el enlace "Nuestro trabajo" del navbar. */
  scroll-margin-top: var(--navbar-height);
}

.section--gallery .container > .fade-in {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Dos fotos por fila siempre, también en mobile */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.5rem, 3vw, 1rem);
  margin-top: 2.5rem;
}

.gallery-item {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
}

/* Placeholder visual — quitar al reemplazar por <img> reales */
.gallery-item__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--white), var(--sage));
  color: var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  text-align: center;
  padding: 1rem;
  transition: transform var(--transition-base);
}

.gallery-item:hover .gallery-item__placeholder {
  transform: scale(1.04);
}

/* =========================================================
   Preguntas Frecuentes (acordeón nativo <details>/<summary>)
   ========================================================= */
.section--faq {
  position: relative;
  overflow: hidden;
  background-color: var(--white);
  text-align: center;
  /* El navbar es sticky: este offset evita que tape el título al llegar
     por el enlace "Preguntas Frecuentes" del navbar. */
  scroll-margin-top: var(--navbar-height);
}

.section--faq .section__intro,
.section--faq .fade-in > .section__eyebrow,
.section--faq .fade-in > .section__title {
  margin-inline: auto;
}

.faq-list {
  max-width: 740px;
  margin: 1rem auto 0;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid var(--sage);
  padding: 1.25rem 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--sage);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
}

/* Oculta el triángulo nativo del <summary> en distintos navegadores */
.faq-item__question::-webkit-details-marker {
  display: none;
}
.faq-item__question::marker {
  content: "";
}

/* Ícono "+" propio que rota a "×" cuando la respuesta está abierta */
.faq-item__question::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent);
  transition: transform var(--transition-base);
}

.faq-item[open] .faq-item__question::after {
  transform: rotate(45deg);
}

.faq-item__answer {
  margin-top: 0.85rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 620px;
}

/* =========================================================
   Contacto / Cierre
   ========================================================= */
.section--contact {
  position: relative;
  background-color: var(--accent);
  text-align: center;
  overflow: hidden;
}

.section--contact .section__title,
.section--contact .section__intro {
  color: var(--white);
}

.section--contact .section__intro {
  margin-inline: auto;
  opacity: 0.85;
}

.contact__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 1rem;
}

/* Redes sociales del cierre: solo íconos (sin texto de usuario) */
.contact__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact__social-icon {
  display: inline-flex;
  color: var(--white);
  transition: color var(--transition-base), transform var(--transition-base);
}

.contact__social-icon:hover,
.contact__social-icon:focus-visible {
  color: var(--sage);
  transform: translateY(-3px);
}

.contact__social-icon svg {
  width: 24px;
  height: 24px;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background-color: var(--accent);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  text-align: center;
  padding: 1.75rem 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  opacity: 0.85;
}

.footer__bloom {
  width: 30px;
  aspect-ratio: 7 / 15;
  margin: 0 auto 0.5rem;
  display: block;
}

/* =========================================================
   WhatsApp flotante
   ========================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(168, 112, 122, 0.35);
  z-index: 999;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

.whatsapp-float:hover {
  background-color: var(--sage-deep);
  transform: scale(1.08);
  box-shadow: 0 10px 26px rgba(168, 112, 122, 0.45);
}

@media (max-width: 480px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 1.1rem;
    right: 1.1rem;
  }
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}
