/* =================================================================
   CÉSAR & VALENTINA — Invitación de boda
   Paleta (cálida):
     Crema/beige  #F4EFE6 / #E3D9C9  (fondos)
     Taupé        #B9A88F / #8A7D6B  (bordes / texto secundario)
     Marrón       #4A4038 / #3D352B  (texto / énfasis)
   Tipografía:
     Cormorant Garamond → títulos
     EB Garamond        → cuerpo
   ================================================================= */

:root {
  /* ===================================================================
     NUEVA PALETA — clara y cálida (crema, beige, taupé, marrón).
     Reutilizable en todo el sitio; iremos migrando sección por sección.
     =================================================================== */
  --crema-claro:   #F4EFE6; /* fondo principal */
  --beige-arena:   #E3D9C9; /* fondos de sección */
  --taupe:         #B9A88F; /* bordes y detalles */
  --taupe-oscuro:  #8A7D6B; /* texto secundario */
  --marron-oscuro: #4A4038; /* texto principal */
  --cafe-profundo: #3D352B; /* títulos y énfasis */

  --beige: #F2EDE4;
  --white: #FFFFFF;
  --shadow: 0 12px 40px rgba(61, 53, 43, 0.10);
  --serif-title: "Cormorant Garamond", Georgia, serif;
  --serif-body: "EB Garamond", Georgia, serif;
  --script: "Pinyon Script", "Cormorant Garamond", cursive; /* SOLO nombres en Bienvenidos */
  --maxw: 1100px;
}

/* ----------------------- Reset básico ----------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Oculto visualmente pero accesible para lectores de pantalla / SEO */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px; /* compensa el nav fijo al saltar a anclas */
}

body {
  font-family: var(--serif-body);
  color: var(--marron-oscuro);
  background: var(--crema-claro);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ----------------------- Utilidades ------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.section {
  padding: 96px 0;
}

.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.8rem;
  color: var(--taupe-oscuro);
  opacity: 0.85;
  margin-bottom: 14px;
}

.section__title {
  font-family: var(--serif-title);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 28px;
}

/* ---------------------------------------------------------------------------
   FADE-IN puro al hacer scroll (solo opacidad, sin movimiento).
   El IntersectionObserver (script.js) añade .visible al entrar en pantalla.
   - Velocidad y stagger se ajustan con las variables de abajo.
   - Estado oculto SOLO con html.js: si el JS falla/está desactivado, se ve todo.
--------------------------------------------------------------------------- */
:root {
  --fade-duration: 1.3s;   /* velocidad del fundido (recomendado 1.2–1.4s) */
  --fade-stagger:  0.16s;  /* retraso entre elementos de una misma sección */
  --fade-ease:     ease-out;
}
html.js .fade-in {
  opacity: 0;
  transition: opacity var(--fade-duration) var(--fade-ease);
  transition-delay: var(--fade-delay, 0s); /* el JS pone el retraso escalonado */
  will-change: opacity;
}
html.js .fade-in.visible { opacity: 1; }

/* ----------------------- Botones ---------------------------- */
.btn {
  display: inline-block;
  font-family: var(--serif-body);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 26px;
  border: 1px solid var(--cafe-profundo);
  border-radius: 2px;
  color: var(--cafe-profundo);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn:hover { background: var(--cafe-profundo); color: var(--beige); }

.btn--solid {
  background: var(--cafe-profundo);
  color: var(--beige);
}
.btn--solid:hover { background: #2b241d; }

/* ============================================================= */
/* 1. HERO                                                       */
/* ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  background-color: var(--cafe-profundo); /* fallback mientras carga la foto */
  overflow: hidden;
}

/* Foto de fondo: llena el hero sin deformarse y centrada en la pareja */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%; /* sube la foto para no recortar las caras (ajustable 20%–45%) */
}

/* (Overlay del hero eliminado: la foto se ve a color pleno, sin filtro.
   La legibilidad del monograma, la fecha y el nav se resuelve con sombras
   sutiles en cada elemento, no con una capa que cubra toda la imagen.) */

/* El texto debe quedar por encima de la foto.
   (El nav ya es position:fixed con z-index:100, siempre por encima.) */
.hero__content,
.hero__scroll { position: relative; z-index: 2; }

/* Barra de navegación.
   DESKTOP: fila única centrada con los 4 enlaces repartidos por igual
   (ya no hay logo central). El gap entre grupos = gap dentro del grupo,
   así los cuatro quedan uniformemente espaciados. */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  padding: 16px 40px;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
/* Al hacer scroll el JS añade .nav--scrolled: barra sólida marrón oscuro
   (--cafe-profundo #3D352B) para legibilidad sobre las secciones claras. */
.nav--scrolled {
  background: rgba(61, 53, 43, 0.94); /* --cafe-profundo con leve transparencia */
  box-shadow: 0 2px 18px rgba(0,0,0,0.18);
}

/* Grupos de enlaces (desktop). El gap coincide con el de .nav (48px)
   para que los cuatro enlaces queden equiespaciados. */
.nav__group {
  list-style: none;
  display: flex;
  gap: 48px;
}
.nav__group a {
  color: var(--crema-claro);
  font-family: var(--serif-body);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  opacity: 0.95;
  white-space: nowrap;
  /* Sombra sutil: para leerse sobre la foto del hero (nav transparente arriba).
     Sobre la barra marrón al hacer scroll el contraste ya es alto. */
  text-shadow: 0 1px 3px rgba(0,0,0,0.55), 0 1px 8px rgba(0,0,0,0.35);
  transition: opacity 0.2s ease;
}
.nav__group a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }

/* Botón hamburguesa + menú móvil: ocultos en desktop */
.nav__toggle { display: none; }
.nav__mobile { display: none; }

/* Contenido central del hero */
/* width:100% evita que el texto largo se salga del viewport (flexbox shrink) */
/* text-shadow: halo suave para que el texto se lea sobre la zona limpia de la foto */
.hero__content {
  width: 100%; max-width: 100%; padding: 0 20px;
  text-shadow: 0 1px 3px rgba(20,30,45,0.45), 0 4px 22px rgba(20,30,45,0.55);
}
/* Monograma CV blanco: único elemento protagonista sobre la foto.
   Centrado; ~150–180px en móvil, algo mayor en escritorio. */
.hero__monogram {
  display: block;
  width: clamp(150px, 44vw, 230px);
  height: auto;
  margin: 0 auto;
  /* Doble sombra: una tenue y cerrada (borde nítido) + una difusa (profundidad).
     Da contraste al monograma blanco sobre zonas claras de la foto, sin overlay. */
  filter:
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45))
    drop-shadow(0 3px 16px rgba(0, 0, 0, 0.35));
}
.hero__date {
  margin-top: 20px;
  color: var(--white);               /* blanco puro: más contraste sobre foto clara */
  font-family: var(--serif-body);    /* serif actual */
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  letter-spacing: 0.4em;             /* espaciado generoso y elegante */
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0,0,0,0.55), 0 2px 10px rgba(0,0,0,0.35);
}
.hero__date .dot { opacity: 0.7; }

.hero__scroll {
  position: absolute;
  bottom: 26px;
  font-size: 2rem;
  animation: bounce 2s infinite;
  opacity: 0.85;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ============================================================= */
/* SECCIÓN BIENVENIDA (paleta clara: fondo beige arena, limpia)  */
/* ============================================================= */
.bienvenida {
  background-color: var(--beige-arena);
  color: var(--marron-oscuro);
  text-align: center;
}

/* a) Nombres de la pareja en Pinyon Script: protagonista, SIEMPRE en una
   sola línea (móvil y escritorio) gracias a nowrap + tamaño por vw. */
.bienvenida__names {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(1.85rem, 8.5vw, 3.2rem);
  line-height: 1.15;
  color: var(--marron-oscuro);
  white-space: nowrap;
}
.bienvenida__names .amp { font-style: normal; } /* la "&" fluye con la script */

/* b) Foto horizontal, centrada. En móvil ocupa el ancho con márgenes; en
   escritorio queda contenida (no a todo lo ancho). Radio muy sutil. */
.bienvenida__foto {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: clamp(26px, 6vw, 40px) auto;
  border-radius: 3px;
  box-shadow: 0 10px 30px rgba(74, 64, 56, 0.15); /* --marron-oscuro suave */

  /* Sepia cálido monocromático (foto vintage en marrones/beige).
     --foto-sepia controla la intensidad: súbelo (hasta 1) para más marrón,
     bájalo (hacia 0) para más color. Saturación <1 evita el naranja chillón. */
  --foto-sepia: 0.62;
  filter:
    sepia(var(--foto-sepia))
    saturate(0.85)
    brightness(1.03)
    contrast(0.95);
}

/* c) Texto de bienvenida: serif, marrón, centrado, ancho de lectura cómodo */
.bienvenida__text {
  max-width: 520px;
  margin: 0 auto;
  font-family: var(--serif-body);
  color: var(--marron-oscuro);
  font-size: 1.1rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

/* d) Fecha: serif pequeña, taupé oscuro, letter-spacing generoso */
.bienvenida__date {
  font-family: var(--serif-body);
  font-size: 0.9rem;
  letter-spacing: 0.4em;
  color: var(--taupe-oscuro);
  margin-top: clamp(22px, 5vw, 30px);
}
.bienvenida__date .dot { opacity: 0.7; }

/* ============================================================= */
/* 2. CUENTA REGRESIVA — foto de fondo a pantalla completa       */
/* ============================================================= */
.countdown {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  /* MÓVIL (por defecto): foto vertical. En escritorio se cambia abajo. */
  background-image: url("assets/historia2-movil.jpg");
  background-size: cover;       /* llena la pantalla sin deformarse */
  background-position: center;
  background-repeat: no-repeat;
}
/* ESCRITORIO: foto horizontal */
@media (min-width: 769px) {
  .countdown { background-image: url("assets/historia2-desktop.jpg"); }
}

/* Overlay oscuro cálido sutil para legibilidad del contador */
.countdown__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(40, 35, 28, 0.35), rgba(40, 35, 28, 0.5));
}

.countdown__content {
  position: relative;   /* por encima del overlay */
  z-index: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* "CUENTA REGRESIVA" */
.countdown__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.45em;
  padding-left: 0.45em;               /* compensa el tracking para centrar */
  font-size: clamp(0.72rem, 2.6vw, 0.85rem);
  color: var(--crema-claro);
  margin-bottom: clamp(26px, 6vw, 44px);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

/* Fila de unidades: Días · Horas · Minutos · Segundos (4 caben en una fila) */
.countdown__grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(5px, 2vw, 26px);
}
.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(46px, 15vw, 108px);
}
.countdown__num {
  font-family: var(--serif-title);
  font-weight: 500;
  font-size: clamp(2.1rem, 12.5vw, 6rem);
  line-height: 1;
  color: #FFFFFF;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.4);
}
.countdown__label {
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;             /* menor tracking → cabe "SEGUNDOS" */
  padding-left: 0.15em;
  font-size: clamp(0.56rem, 2vw, 0.78rem);
  color: var(--crema-claro);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
/* Punto medio "·" discreto y translúcido, alineado con los números */
.countdown__sep {
  font-family: var(--serif-title);
  font-size: clamp(1.8rem, 9vw, 4.6rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.4);
  margin-top: clamp(0.2rem, 1.4vw, 0.6rem);
}

/* ============================================================= */
/* 3. CEREMONIA Y RECEPCIÓN (paleta clara)                       */
/* ============================================================= */
.detalles { background: var(--crema-claro); }

/* Encabezado con los colores de la paleta clara */
.detalles .section__eyebrow,
.vestimenta .section__eyebrow { color: var(--taupe-oscuro); opacity: 1; }
.detalles .section__title   { color: var(--cafe-profundo); }

/* Sin tarjetas: dos eventos separados por una línea divisoria sutil.
   MÓVIL (prioridad): apilados (divisoria horizontal).
   ESCRITORIO: lado a lado (divisoria vertical). */
.detalles__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 820px;
  margin: clamp(28px, 6vw, 44px) auto 0;
  align-items: stretch; /* misma altura → divisoria pareja y horas alineadas */
}
@media (min-width: 769px) {
  .detalles__grid { grid-template-columns: 1fr 1fr; }
}

/* Evento: columna limpia SIN caja (sin fondo, borde ni sombra) */
.card {
  padding: clamp(30px, 6vw, 42px) clamp(20px, 5vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--marron-oscuro);
}
/* Línea divisoria sutil entre los dos eventos */
.card + .card { border-top: 1px solid var(--taupe); }        /* móvil: horizontal */
@media (min-width: 769px) {
  .card + .card { border-top: 0; border-left: 1px solid var(--taupe); } /* escritorio: vertical */
}
.card__icon {
  color: var(--marron-oscuro); /* los SVG usan stroke: currentColor */
  margin-bottom: 18px;
  line-height: 0;
}
.card__icon svg { display: block; }

/* Jerarquía: título · lugar (fuerte) · subtítulo (suave) · hora (destacada) */
.card__title {
  font-family: var(--serif-title);
  font-weight: 600;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding-left: 0.18em;          /* compensa el tracking para centrar */
  color: var(--marron-oscuro);
  margin-bottom: 20px;
}
.card__place {
  font-family: var(--serif-body);
  font-size: 1.2rem;
  font-weight: 500;              /* serif fino y elegante, sin bold pesado */
  color: var(--cafe-profundo);
  line-height: 1.4;
}
.card__sub {
  font-family: var(--serif-body);
  font-style: italic;
  color: var(--taupe-oscuro);
  margin-top: 6px;
}
.card__time {
  font-family: var(--serif-title);
  font-weight: 500;
  font-size: 1.7rem;
  color: var(--marron-oscuro);
  margin-top: auto;              /* empuja la hora abajo → alineadas entre tarjetas */
  padding-top: 18px;
}

/* ============================================================= */
/* 3.4 TRANSMISIÓN EN VIVO (Instagram)                           */
/* ============================================================= */
.transmision { background: var(--beige-arena); }
.transmision .section__eyebrow { color: var(--taupe-oscuro); opacity: 1; } /* igual que los demás títulos */
.transmision__text {
  max-width: 560px;
  margin: 0 auto clamp(28px, 5vw, 38px);
  font-family: var(--serif-body);
  color: var(--marron-oscuro);
  font-size: 1.15rem;
  line-height: 1.9;
}
/* Botón con ícono + texto alineados (usa el estilo .btn--solid del sitio) */
.transmision__btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

/* ============================================================= */
/* 3.5 GALERÍA — fondo sepia (foto del hero) + 3 fotos verticales */
/* ============================================================= */
:root {
  /* Intensidad del sepia — sube hacia 1 = más marrón, baja hacia 0 = más color */
  --galeria-sepia-fondo: 0.65;   /* del fondo (foto del hero) */
  --galeria-sepia-fotos: 0.55;   /* de las 3 fotos verticales */
  /* Velo cálido sobre el fondo (sube el 0.45 para oscurecer/unificar más) */
  --galeria-overlay: rgba(74, 64, 56, 0.45); /* --marron-oscuro translúcido */
}

.galeria {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 12vw, 104px) 20px;
}
/* Fondo = foto del hero, en sepia. Va en ::before para que el filtro NO
   afecte a las 3 fotos de encima (que tienen su propio sepia). */
.galeria::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("assets/hero-bn-movil.jpg"); /* móvil (prioridad) */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: sepia(var(--galeria-sepia-fondo)) saturate(0.8) brightness(0.9) contrast(1.02);
}
@media (min-width: 769px) {
  .galeria::before { background-image: url("assets/hero-bn-desktop.jpg"); } /* escritorio */
}
/* Velo marrón cálido para unificar el tono y que las fotos resalten */
.galeria__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--galeria-overlay);
}

/* Las 3 fotos, por encima del fondo y el velo.
   MÓVIL: apiladas y centradas. ESCRITORIO: 3 en fila. */
.galeria__fotos {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 5vw, 34px);
  max-width: 340px;
  margin: 0 auto;
  justify-items: center;
}
@media (min-width: 769px) {
  .galeria__fotos {
    grid-template-columns: repeat(3, 1fr);
    max-width: 980px;
  }
}
.galeria__foto {
  width: 100%;
  aspect-ratio: 800 / 1100;      /* verticales; sostiene el layout aunque falte la imagen */
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 16px 38px rgba(40, 35, 28, 0.45); /* sombra suave para separarlas */
  background: var(--beige-arena); /* placeholder si la foto aún no está subida */
  /* Mismo tratamiento sepia cálido que el fondo, para que todo combine */
  filter: sepia(var(--galeria-sepia-fotos)) saturate(0.85) brightness(1.02) contrast(0.96);
}

/* ============================================================= */
/* 4. CÓDIGO DE VESTIMENTA                                       */
/* ============================================================= */
.vestimenta { background: var(--beige-arena); }

/* "Código de Vestimenta" usa .section__eyebrow (idéntico a "Acompáñanos"). */
.vestimenta__formal {
  font-family: var(--serif-title);
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  letter-spacing: 0.04em;
  color: var(--taupe-oscuro);
}

/* Mockups de referencia: móvil 1 columna, escritorio 2 columnas iguales */
.vestimenta__mockups {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 4vw, 28px);
  max-width: 720px;
  margin: clamp(32px, 6vw, 46px) auto;
}
@media (min-width: 769px) {
  .vestimenta__mockups { grid-template-columns: 1fr 1fr; }
}
.vestimenta__mockup {
  width: 100%;
  aspect-ratio: 4 / 3;           /* horizontal: menos alto → menos scroll en móvil */
  object-fit: contain;           /* muestra la ilustración completa sin recortar */
  background: var(--crema-claro);
  border: 1px solid var(--taupe);
  border-radius: 8px;
}

/* Colores a evitar */
.vestimenta__leyenda {
  max-width: 480px;
  margin: 0 auto 26px;
  font-style: italic;
  color: var(--marron-oscuro);
}
.vestimenta__colores {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(20px, 5vw, 32px);
  margin-bottom: 26px;
}
.color-prohibido { width: 86px; text-align: center; }
.color-prohibido__circle {
  position: relative;
  width: 62px; height: 62px;
  border-radius: 50%;
  margin: 0 auto 10px;
  border: 1px solid var(--taupe);   /* distingue el círculo blanco del fondo */
  overflow: hidden;
}
/* Línea diagonal "prohibido": terracota, de abajo-izq a arriba-der */
.color-prohibido__circle::after {
  content: "";
  position: absolute;
  top: 50%; left: -8%;
  width: 116%; height: 2px;
  background: #9B5B4A;              /* terracota */
  transform: rotate(-45deg);
  transform-origin: center;
}
.color-prohibido__name {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--marron-oscuro);
}
/* Nota adicional */
.vestimenta__nota {
  max-width: 480px;
  margin: 0 auto;
  font-style: italic;
  color: var(--marron-oscuro);
}

/* ============================================================= */
/* 5. MESA DE REGALOS (simple: título + íconos + un párrafo)      */
/* ============================================================= */
.regalos { background: var(--crema-claro); }
.regalos .section__eyebrow { color: var(--taupe-oscuro); opacity: 1; } /* igual que los demás títulos */

/* Íconos (regalo + dólar) de línea fina */
.regalos__iconos {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: var(--marron-oscuro);      /* los SVG usan stroke: currentColor */
  margin-bottom: clamp(20px, 4vw, 30px);
}
.regalos__iconos svg { display: block; }

.regalos__text {
  max-width: 520px;
  margin: 0 auto;
  font-family: var(--serif-body);
  color: var(--marron-oscuro);
  font-size: 1.15rem;
  line-height: 1.9;
}

/* ============================================================= */
/* 6. RSVP                                                       */
/* ============================================================= */
/* RSVP con FONDO CAFÉ OSCURO (como el footer) → marca una pausa y resalta el CTA */
.rsvp {
  background: var(--cafe-profundo);
  color: var(--crema-claro);
}
.rsvp .section__eyebrow { color: var(--taupe); opacity: 1; }   /* claro sobre café */
.rsvp .section__title   { color: var(--crema-claro); }
.rsvp__text {
  max-width: 520px;
  margin: 0 auto 32px;
  font-size: 1.12rem;
  color: var(--crema-claro);
}
.rsvp__form {
  max-width: 440px;
  margin: 0 auto;
  text-align: left;
}
/* Fecha límite de confirmación (cerca del botón) */
.rsvp__deadline {
  text-align: center;
  font-family: var(--serif-body);
  color: var(--crema-claro);
  font-size: 1.02rem;
  margin: 4px 0 18px;
}
.rsvp__deadline strong { font-weight: 600; color: #ffffff; }
.field { margin-bottom: 22px; }
.field label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin-bottom: 8px;
  color: var(--crema-claro);
  opacity: 0.85;
}
.field input,
.field select {
  width: 100%;
  font-family: var(--serif-body);
  font-size: 1.05rem;
  color: var(--marron-oscuro);
  background-color: var(--crema-claro);   /* claro sobre el café */
  border: 1px solid var(--taupe);
  border-radius: 3px;
  padding: 13px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder { color: var(--taupe-oscuro); }
/* Desplegable: quita el estilo nativo y usa una flecha propia (taupé) */
.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2712%27%20height%3D%278%27%20viewBox%3D%270%200%2012%208%27%20fill%3D%27none%27%20stroke%3D%27%238A7D6B%27%20stroke-width%3D%271.6%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M1%201.5%206%206.5%2011%201.5%27%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--crema-claro);
  box-shadow: 0 0 0 3px rgba(244, 239, 230, 0.18);
}
.field input.invalid,
.field select.invalid { border-color: #e08b7d; }
.field__help { display: block; margin-top: 6px; font-size: 0.82rem; color: var(--crema-claro); opacity: 0.6; }

/* Texto de cupo bajo el desplegable de asistentes (personalización por invitado).
   Pequeño y discreto en taupé oscuro. Oculto si no hay invitado válido. */
.rsvp__cupo { display: block; margin-top: 6px; font-size: 0.82rem; color: var(--taupe-oscuro); letter-spacing: 0.02em; }
.rsvp__cupo[hidden] { display: none; }

/* Botón CLARO para contrastar sobre el café oscuro */
.rsvp__form .btn--solid {
  width: 100%;
  margin-top: 6px;
  background: var(--crema-claro);
  color: var(--cafe-profundo);
  border: 0;
}
.rsvp__form .btn--solid:hover { background: #ffffff; color: var(--cafe-profundo); }

.rsvp__feedback {
  margin-top: 18px;
  text-align: center;
  font-size: 1.05rem;
  min-height: 1.4em;
}
.rsvp__feedback.ok { color: #a7dcb8; }      /* verde claro legible en oscuro */
.rsvp__feedback.error { color: #f0a79b; }   /* coral claro legible en oscuro */

/* Mensaje de agradecimiento (reemplaza al formulario tras confirmar).
   Texto claro porque el fondo del RSVP es café oscuro. */
.rsvp__gracias { text-align: center; padding: 8px 0; }
.rsvp__gracias-titulo {
  font-family: var(--serif-title);
  font-weight: 500;
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  color: var(--crema-claro);
  margin-bottom: 10px;
}
.rsvp__gracias-texto {
  font-family: var(--serif-body);
  font-size: 1.15rem;
  color: var(--crema-claro);
  opacity: 0.92;
}

/* ============================================================= */
/* 6.5 GALERÍA POST-BODA (recuerdos)                             */
/* ============================================================= */
.recuerdos { background: var(--crema-claro); }
.recuerdos .section__eyebrow { color: var(--taupe-oscuro); opacity: 1; } /* igual que los demás títulos */
.recuerdos__text {
  max-width: 540px;
  margin: 0 auto clamp(28px, 5vw, 38px);
  font-family: var(--serif-body);
  color: var(--marron-oscuro);
  font-size: 1.15rem;
  line-height: 1.9;
}
/* Botón DESHABILITADO reutilizable (galería aún no disponible). Al activar el
   enlace real, se le quita esta clase y vuelve a su estilo normal (.btn--solid). */
.btn--disabled {
  background: var(--taupe);        /* gris/taupé apagado */
  color: var(--marron-oscuro);     /* legible pero claramente inactivo */
  border: 1px solid var(--taupe);
  cursor: not-allowed;
  pointer-events: none;            /* sin clic ni hover, aunque sea un enlace */
}

/* ============================================================= */
/* 7. FOOTER                                                     */
/* ============================================================= */
.footer {
  color: var(--beige);
  text-align: center;
  padding: 64px 24px;
  /* Foto del hero de fondo (misma imagen que ya carga el hero → sin descarga
     extra) con un velo café encima. SIN línea divisoria: fluye desde el RSVP.
     - Velo: sube/baja las opacidades para ver más o menos la foto.
     - Zoom: sube el 200% (2º valor de background-size) para acercar más la
       foto y que quede más abstracta/menos obvia. */
  background-color: var(--cafe-profundo); /* fallback */
  background-image:
    linear-gradient(rgba(61, 53, 43, 0.82), rgba(45, 38, 30, 0.88)),
    url("assets/hero-bn-movil.jpg?v=2");
  background-size: cover, 200%;
  background-position: center, center;
  background-repeat: no-repeat;
}
.footer__logo {
  width: 72px;                 /* pequeño y proporcionado (~60-80px) */
  height: auto;
  margin: 0 auto 18px;
  opacity: 0.95;
  background: none;            /* sin fondo: transparente sobre el café */
  padding: 0;
  border: 0;
  /* El SVG ya es blanco/crema → no necesita filtro sobre el fondo café. */
}
.footer__names {
  font-family: var(--serif-title);
  font-size: 1.8rem;
  letter-spacing: 0.06em;
}
.footer__meta { opacity: 0.8; margin: 8px 0 14px; letter-spacing: 0.04em; }
.footer__love { font-size: 1.05rem; }

/* Crédito de diseño y desarrollo (NANU GROUP LLC): al final del footer.
   Discreto y separado del contenido anterior por un margen amplio y una
   línea divisoria muy sutil. Isotipo + texto en la misma línea (centrados). */
.footer__credito {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(185, 168, 143, 0.22); /* --taupe con baja opacidad */
  font-family: var(--serif-body);
  font-size: 0.72rem;                                /* ~11.5px: crédito pequeño */
  letter-spacing: 0.08em;
  color: var(--taupe);
  opacity: 0.85;
}
.footer__credito-logo {
  width: auto;
  height: 18px;                                      /* isotipo pequeño (~16-20px) */
  flex: none;
  opacity: 0.9;
}
/* Móvil: si se ve apretado, el isotipo pasa arriba y el texto debajo (centrados) */
@media (max-width: 420px) {
  .footer__credito { flex-direction: column; gap: 6px; }
}

/* ============================================================= */
/* RESPONSIVE — móvil                                            */
/* ============================================================= */
@media (max-width: 768px) {
  /* MÓVIL: solo la hamburguesa, alineada a la derecha */
  .nav {
    justify-content: flex-end; /* hamburguesa a la derecha */
    padding: 14px 20px;
  }

  /* Ocultar los grupos de enlaces de desktop */
  .nav__group { display: none; }

  /* Botón hamburguesa visible, alineado a la derecha */
  .nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 6px;
    z-index: 110;
  }
  .nav__toggle span {
    width: 26px; height: 2px;
    background: var(--white);
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4); /* legible sobre foto a color */
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  /* Animación del ícono a "X" cuando el menú está abierto */
  .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Menú desplegable (panel lateral) */
  .nav__mobile {
    display: flex;
    list-style: none;
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    background: rgba(61, 53, 43, 0.98); /* --cafe-profundo */
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -8px 0 30px rgba(0,0,0,0.25);
  }
  .nav__mobile.open { transform: translateX(0); }
  .nav__mobile a {
    color: var(--crema-claro);
    font-family: var(--serif-body);
    font-size: 1.2rem;
    letter-spacing: 0.06em;
  }
  .nav__mobile a:hover { text-decoration: underline; text-underline-offset: 5px; }

  /* (.detalles__grid ya es 1 columna por defecto — mobile-first) */
  .section { padding: 72px 0; }
}

/* ============================================================= */
/* MÚSICA DE FONDO — botón flotante circular                     */
/* ============================================================= */
.music-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;                 /* sobre el contenido, DEBAJO del nav/hamburguesa (z 100+) */
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--cafe-profundo);
  color: var(--crema-claro);   /* íconos crema, via currentColor */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.25s ease;
}
.music-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
}
.music-btn:active { transform: scale(0.95); }
.music-btn:focus-visible { outline: 2px solid var(--beige); outline-offset: 3px; }
@media (min-width: 769px) {
  .music-btn { width: 52px; height: 52px; right: 26px; bottom: 26px; }
}

/* Alternancia de íconos según el estado (.is-playing lo pone el JS) */
.music-btn__icon { display: block; }
.music-btn__icon--waves { display: none; }
.music-btn.is-playing .music-btn__icon--note  { display: none; }
.music-btn.is-playing .music-btn__icon--waves { display: block; }

/* Barras del ecualizador: animan solo mientras suena */
.music-btn .bar { transform-box: fill-box; transform-origin: center; transform: scaleY(0.45); }
.music-btn.is-playing .bar { animation: eq 0.9s ease-in-out infinite; }
.music-btn.is-playing .bar2 { animation-delay: 0.18s; }
.music-btn.is-playing .bar3 { animation-delay: 0.36s; }
.music-btn.is-playing .bar4 { animation-delay: 0.10s; }
@keyframes eq {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(1); }
}

/* Respetar usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .fade-in { transition: none; opacity: 1; } /* sin animación, visible directo */
  .hero__scroll { animation: none; }
  .music-btn.is-playing .bar { animation: none; }    /* barras estáticas */
  .music-btn .bar { transform: scaleY(0.7); }
}
