/* ===================================================
   Estilos globales — Black Square
   =================================================== */

:root {
  --color-primario:   #000000;   /* negro — fondos de sección, botones, texto */
  --color-secundario: #000000;   /* titulares */
  --color-textos:     #000000;
  --color-bg1:        #FAFAFA;   /* secciones claras */
  --color-blanco:     #FFFFFF;
  --color-gris:       #F8F8F8;   /* opciones del RSVP */

  /* Familias tipográficas — cambia la fuente aquí y se aplica en todo */
  --fuente-display: 'Inria Serif', serif;                 /* h1 (fecha, nombres) */
  --fuente-serif:   'Inria Serif', serif;                 /* h2 */
  --fuente-cuerpo:  'Bricolage Grotesque', sans-serif;    /* h3, p, botones… */
  --fuente-script:  'Waterfall', cursive;                 /* "de", "&" */
  --fuente-sello:   'Buenard', serif;                     /* sello circular */
  --fuente-cita:    'Inria Serif', serif;

  /* Tamaños de texto — cambia SOLO estos valores base (mobile).
     En desktop se les suma automáticamente el incremento de abajo. */
  --h1-size: 45px;
  --h2-size: 35px;
  --h3-size: 18px;
  --h4-size: 22px;
  --h5-size: 18px;
  --h6-size: 16px;
  --p-size:  18px;

  /* Incremento de tamaños — 0 en mobile; en desktop se suman (ver @media) */
  --inc-titulo-h1-h2:   0px;   /* solo h1 y h2 */
  --inc-titulo-general: 0px;   /* h3 a h6 */
  --inc-p:              0px;

  /* Etiquetas en mayúsculas (tagline, tipos, botones) */
  --tracking: 0.08em;
}

/* Reset mínimo que el diseño necesita (el reset base vive en eventos.css) */
p, fieldset, figure { margin: 0; padding: 0; }
fieldset { border: 0; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }

/* Fondo y color de texto del body */
body {
  background-color: var(--color-bg1);
  color: var(--color-textos);
  font-family: var(--fuente-cuerpo);
  font-weight: 200;
  font-size: var(--p-size);
  line-height: 1.5;
  font-variation-settings: "opsz" 14, "wdth" 100;
  -webkit-font-smoothing: antialiased;
}

.contenededor_principal {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Selección de texto (color de marca) */
::-moz-selection { color: #fff; background: #000; }
::selection      { color: #fff; background: #000; }

img { display: block; max-width: 100%; }
b, strong { font-weight: 400; }

/* ── Tipografía en las etiquetas ── */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-secundario);
  font-weight: 400;
  line-height: 1.2;
}
h1 { font-family: var(--fuente-display); font-size: var(--h1-size); letter-spacing: -0.02em; line-height: 50px; }
h2 { font-family: var(--fuente-serif);   font-size: var(--h2-size); letter-spacing: -0.02em; line-height: 50px; }
h3 { font-family: var(--fuente-cuerpo);  font-size: var(--h3-size); font-weight: 400; letter-spacing: var(--tracking); text-transform: uppercase; line-height: 1.35; }
h4 { font-family: var(--fuente-cuerpo);  font-size: var(--h4-size); font-weight: 200; line-height: 28px; }
h5 { font-family: var(--fuente-cuerpo);  font-size: var(--h5-size); font-weight: 200; letter-spacing: var(--tracking); text-transform: uppercase; }
h6 { font-family: var(--fuente-cuerpo);  font-size: var(--h6-size); font-weight: 200; }

/* P Largo / Párrafo general (por defecto) */
p, li, .parrafo_general {
  font-family: var(--fuente-cuerpo);
  font-weight: 200; /* Extra Light */
  font-size: var(--p-size);
  line-height: 1.35;
}
/* Párrafo resaltado */
.parrafo_resaltado {
  font-family: var(--fuente-cuerpo);
  font-weight: 400;
  font-size: var(--p-size);
}
/* Etiqueta en mayúsculas (tagline, tipo de lugar, "Nos vemos en…") */
.tag {
  text-transform: uppercase;
  letter-spacing: var(--tracking);
}

@media (min-width: 767px) {
  h1 { font-size: calc(var(--h1-size) + var(--inc-titulo-h1-h2)); }
  h2 { font-size: calc(var(--h2-size) + var(--inc-titulo-h1-h2)); }
  h3 { font-size: calc(var(--h3-size) + var(--inc-titulo-general)); }
  h4 { font-size: calc(var(--h4-size) + var(--inc-titulo-general)); }
  h5 { font-size: calc(var(--h5-size) + var(--inc-titulo-general)); }
  h6 { font-size: calc(var(--h6-size) + var(--inc-titulo-general)); }
  p, li, .parrafo_general, .parrafo_resaltado { font-size: calc(var(--p-size) + var(--inc-p)); }
}

/* ===================================================
   Layout — inner de secciones (toda <section> lleva uno)
   =================================================== */
section { width: 100%; }
.inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  text-align: center;
}
.inner--full {          /* anula el inner: a sangre, sin padding. Solo cuando se indique */
  max-width: none;
  padding: 0;
}

/* Sección oscura: todo en blanco */
.oscura { background: var(--color-primario); color: var(--color-blanco); }
.oscura h1, .oscura h2, .oscura h3, .oscura h4, .oscura h5, .oscura h6 { color: var(--color-blanco); }

/* Curvas entre secciones (elipse) — se dibujan con pseudo-elementos */
.curva-abajo-clara::after,
.curva-abajo-oscura::after,
.curva-arriba-oscura::before,
.curva-arriba-clara::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 120vw;
  min-width: 470px;
  height: 106px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.curva-abajo-clara::after  { bottom: -53px; background: var(--color-bg1); }
.curva-abajo-oscura::after { bottom: -53px; background: var(--color-primario); }
.curva-arriba-oscura::before { top: -53px; background: var(--color-primario); }
.curva-arriba-clara::before  { top: -53px; background: var(--color-blanco); }

/* ===================================================
   Botones (primario y secundario)
   =================================================== */
/* Botón primario (relleno negro) */
.btn-primario {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 25px;
  border: 1px solid var(--color-primario);
  border-radius: 3px;
  background: var(--color-primario);
  color: var(--color-blanco);
  text-decoration: none;
  text-transform: uppercase;
  font-family: var(--fuente-cuerpo);
  font-weight: 300;
  font-size: 18px;
  letter-spacing: var(--tracking);
  line-height: 30px;
  cursor: pointer;
  transition: filter .2s;
}
.btn-primario:hover { filter: brightness(1.15); }

/* Botón secundario (borde 1px, sin relleno) + icono "+" */
.btn-secundario {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 20px;
  border: 1px solid var(--color-primario);
  border-radius: 3px;
  background: transparent;
  color: var(--color-textos);
  text-decoration: none;
  text-transform: uppercase;
  font-family: var(--fuente-cuerpo);
  font-weight: 300;
  font-size: 18px;
  letter-spacing: var(--tracking);
  line-height: 30px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-secundario:hover { background: rgba(0, 0, 0, .05); }
.btn__mas { width: 12px; height: 12px; flex-shrink: 0; }
/* Sobre fondo negro: borde y texto blancos */
.oscura .btn-secundario { border-color: var(--color-blanco); color: var(--color-blanco); background: var(--color-primario); }
.oscura .btn-secundario:hover { background: rgba(255, 255, 255, .08); }

/* Imagen a sangre en mobile (compensa el padding lateral del inner) */
@media (max-width: 767px) {
  .img-sangre {
    margin-left: -20px !important;
    margin-right: -20px !important;
    width: calc(100% + 40px) !important;
    min-width: calc(100% + 40px) !important;
  }
}

/* Ornamento divisor (hojas) */
.ornamento {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 40px 10px;
  width: 100%;
}
.ornamento svg { display: block; height: 13.4px; width: auto; }
.ornamento__punto { width: 2px; height: 2px; border-radius: 50%; background: currentColor; }

/* ===================================================
   INTRO — portada (clic para ingresar)
   =================================================== */
#introCTN.intro {
  background: var(--color-primario);
  color: var(--color-blanco);
  overflow-y: auto;
  cursor: pointer;
}
.intro__inner {
  min-height: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 48px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 30px;
}
.intro__inner h1, .intro__inner h3 { color: var(--color-blanco); }
.intro__tag { font-weight: 200; max-width: 338px; }
.intro__cta {
  margin-top: 30px;
  font-weight: 400;
  color: rgba(255, 255, 255, .55);
}

/* ===================================================
   HERO — ¡Nos casamos! + fecha + foto
   =================================================== */
.hero { position: relative; overflow: hidden; padding-top: 40px; }
.hero .inner { padding: 0 20px; gap: 40px; }
.hero__texto { max-width: 338px; }
.hero__fecha-wrap { display: flex; flex-direction: column; gap: 10px; align-items: center; width: 100%; }
.hero__casamos { font-weight: 400; }
.hero__fecha .script { font-family: var(--fuente-script); font-weight: 400; }
.hero__foto-wrap {
  width: 372px;
  max-width: 100%;
  height: 642px;
  position: relative;
  z-index: 0;
}
.hero__foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(1.15);   /* el diseño desatura la foto */
}
.hero.curva-abajo-clara::after { bottom: -53px; }

/* ===================================================
   PADRES
   =================================================== */
.padres { background: var(--color-bg1); }
.padres .inner { gap: 35px; }
.padres__intro { max-width: 322px; font-weight: 200; }
.padres__grupos { display: flex; flex-direction: column; gap: 20px; align-items: center; width: 100%; }
.padres__pareja { display: flex; gap: 28px; align-items: center; justify-content: center; }
.padres__persona { width: 150px; }
.padres__persona--a { text-align: right; }
.padres__persona--b { text-align: left; }
.padres__nombre { font-size: 22px; line-height: 28px; }
.padres__apellido { font-size: 18px; line-height: 24px; letter-spacing: 0.04em; }
.padres__amp { font-family: var(--fuente-script); font-size: 27px; letter-spacing: 0.04em; line-height: 24px; }
.padres__sep { width: 1px; height: 32px; background: rgba(0, 0, 0, .5); }

/* ===================================================
   RSVP — confirmación (bloque base obligatorio)
   =================================================== */
.rsvp { background: var(--color-bg1); position: relative; overflow: hidden; }
.rsvp .inner { padding: 40px 10px 130px; gap: 35px; position: relative; z-index: 2; }
.rsvp__pretitulo { max-width: 322px; font-weight: 200; }
.rsvp__invitado { max-width: 338px; }
.rsvp__pases { font-family: var(--fuente-serif); font-size: 22px; line-height: 30px; color: rgba(0, 0, 0, .7); }

/* Tarjeta: caja blanca + filete negro interior */
.rsvp__cardwrap { background: var(--color-blanco); padding: 5px; width: 384px; max-width: 100%; }
.rsvp__card {
  border: 1px solid var(--color-primario);
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  text-align: center;
}
.rsvp__titulo { max-width: 322px; font-weight: 200; }
.rsvp__titulo strong { font-weight: 400; }
.rsvp__card form { display: flex; flex-direction: column; gap: 30px; align-items: center; width: 100%; max-width: 286px; }

/* Reset del fieldset (sin borde por defecto del navegador) */
.rsvp__opciones { border: 0; padding: 0; margin: 0; display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.rsvp__opcion {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  background: var(--color-gris);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  position: relative;
  font-size: 20px;
  white-space: nowrap;
}
.rsvp__opcion input { position: absolute; opacity: 0; width: 0; height: 0; }
.rsvp__check {
  width: 16px;
  height: 16px;
  border: 1px solid var(--color-primario);
  border-radius: 4px;
  background: var(--color-blanco);
  flex: 0 0 auto;
  position: relative;
}
.rsvp__opcion input:checked ~ .rsvp__check::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 2px;
  background: var(--color-primario);
}
.grph-form__grupo { width: 100%; text-align: left; }
.rsvp__label { display: block; margin-bottom: 8px; font-size: 16px; }
.rsvp__input {
  width: 100%;
  border: 1px solid var(--color-primario);
  border-radius: 3px;
  padding: 12px 14px;
  font-family: var(--fuente-cuerpo);
  font-size: 18px;
  background: var(--color-blanco);
}
textarea.rsvp__input { min-height: 84px; resize: vertical; }
.grph-form__error { text-align: left; font-size: 16px; color: #b3412f; }
.grph-form__error:empty { display: none; }

/* Mensaje que pinta la base al enviar (reemplaza al form).
   SIEMPRE con los estilos de párrafo vía variables GLOBALES: tamaño, familia y color. */
.rsvp__respuesta { text-align: center; color: var(--color-textos); font-family: var(--fuente-cuerpo); font-size: var(--p-size); line-height: 1.55; }
.rsvp__respuesta p { margin-bottom: 10px; }
.rsvp__respuesta p:last-child { margin-bottom: 0; }
.rsvp__respuesta .parrafo_resaltado { display: block; font-weight: 400; margin-bottom: 12px; }

/* El hueco del QR también hereda la familia de cuerpo (contenido inyectado) */
.rsvp__qr { margin-top: 18px; text-align: center; font-family: var(--fuente-cuerpo); }
.rsvp__qr-nota { display: block; text-align: center; padding: 5px 5px 15px; font-size: 18px; color: var(--color-textos); }

/* ===================================================
   LUGARES — ceremonia y banquete (fondo negro)
   =================================================== */
.lugares .inner { gap: 40px; padding: 80px 0; }
.lugares__intro { max-width: 342px; }
.lugares__bloque { display: flex; flex-direction: column; gap: 25px; align-items: center; padding: 40px 20px; width: 100%; }
.lugares__icono { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; }
.lugares__icono svg { width: 100%; height: 100%; }
.lugares__icono--iglesia svg { width: 41px; height: 38px; transform: scaleY(-1); }
.lugares__tipo { max-width: 342px; }
.lugares__nombre { max-width: 342px; }
.lugares__datos { display: flex; flex-direction: column; gap: 30px; align-items: center; }
.lugares__dir { max-width: 338px; text-transform: uppercase; letter-spacing: var(--tracking); }
.lugares__dir p { margin-bottom: 0; }
.lugares__dir .ciudad { font-weight: 400; margin-top: 1.35em; }
.lugares__divisor {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: 382px;
  max-width: calc(100% - 40px);
}
.lugares__divisor-line { flex: 1 0 0; height: 1px; background: rgba(255, 255, 255, .24); }
.lugares__divisor-txt { flex: 0 0 auto; max-width: 244px; }

/* ===================================================
   DETALLES — itinerario, vestimenta, regalos (fondo claro con curvas)
   =================================================== */
.detalles {
  position: relative;
  background: var(--color-bg1);
  padding-top: 120px;
  overflow: hidden;
}
.detalles__intro { max-width: 362px; margin: 0 auto; padding: 0 20px; text-align: center; }
.detalles__intro strong { font-weight: 400; }
.detalles .inner { padding: 80px 20px; }

/* Itinerario: carrusel horizontal */
.timeline {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  gap: 37px;
  align-items: flex-start;
  width: 100%;
  padding: 0 10px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primario) transparent;
}
.timeline::-webkit-scrollbar { height: 4px; }
.timeline::-webkit-scrollbar-thumb { background: var(--color-primario); }
.timeline__item { flex: 0 0 auto; width: 201px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.timeline__img-wrap { width: 179px; height: 180px; mix-blend-mode: darken; display: flex; align-items: flex-end; justify-content: center; }
.timeline__img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.timeline__txt { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding-left: 19px; }
.timeline__hora { font-weight: 400; }
.timeline__corazon { width: 11px; height: 10px; }
.timeline__label { width: 169px; }
.timeline__label--mini { font-size: 14px; }

/* Vestimenta */
.vestimenta__nivel { font-weight: 400; }
.vestimenta__img { width: 282px; max-width: 100%; height: auto; }
.vestimenta__texto { max-width: 368px; }
.vestimenta__texto strong { font-weight: 400; }

/* Regalos */
.regalos .inner { padding: 40px 20px 80px; }
.regalos__texto { max-width: 368px; }
.regalos__texto p { margin-bottom: 1.35em; }
.regalos__texto p:last-child { margin-bottom: 0; }
.regalos__texto strong { font-weight: 400; }
.regalos__botones { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.detalles__foto { width: 392px; max-width: 100%; height: 469px; object-fit: cover; margin: 0 auto; position: relative; z-index: 2; }

/* ===================================================
   PLAYLIST + BUENOS DESEOS (fondo negro)
   =================================================== */
.musica { position: relative; padding-top: 80px; overflow: hidden; }
.playlist .inner { padding: 40px 20px; }
.playlist__texto { max-width: 368px; }
.playlist__texto p { margin-bottom: 0; }
.playlist__pregunta { font-weight: 400; margin-top: 1.35em; }
.playlist__form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 378px;
  height: 54px;
  border: 1px solid var(--color-blanco);
  padding-left: 20px;
  padding-right: 5px;
}
.playlist__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--fuente-cuerpo);
  font-weight: 200;
  font-size: 18px;
  color: var(--color-blanco);
}
.playlist__input::placeholder { color: rgba(255, 255, 255, .5); }
.playlist__btn {                   /* botón blanco pequeño dentro del campo */
  height: 44px;
  padding: 12px;
  gap: 10px;
  border: none;
  border-radius: 0;
  background: var(--color-blanco);
  color: var(--color-textos);
  font-size: 14px;
  letter-spacing: var(--tracking);
}
.playlist__btn:hover { filter: none; }
.playlist .form-gracias { color: var(--color-blanco); }

.deseos .inner { padding: 40px 20px 80px; }
.deseos__texto { max-width: 368px; }
/* Card de cada deseo (misma estructura que inyecta la base al enviar) */
.deseos-slider { overflow: visible; width: 100%; max-width: 348px; }
.deseo-card {
  position: relative;
  background: var(--color-blanco);
  padding: 70px 30px;
  color: var(--color-textos);
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
}
.deseo-card::before {              /* filete negro interior */
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--color-primario);
  pointer-events: none;
}
.deseo-card__msg { font-weight: 200; }
.deseo-card__autor { font-family: var(--fuente-serif); font-size: 18px; }
.deseos-slider .grph-slider__prev,
.deseos-slider .grph-slider__next {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 5px solid var(--color-primario);
  background: var(--color-blanco);
  color: var(--color-primario);
  cursor: pointer;
}
.deseos-slider .grph-slider__prev { left: -27px; }
.deseos-slider .grph-slider__next { right: -27px; }
.deseos-slider .grph-slider__prev::before,
.deseos-slider .grph-slider__next::before { display: none; }
.deseos-slider .grph-slider__prev svg,
.deseos-slider .grph-slider__next svg { width: 14px; height: 14px; }
.musica__foto { width: 392px; max-width: 100%; height: 269px; object-fit: cover; margin: 0 auto; position: relative; z-index: 2; }

/* ===================================================
   HISTORIA — texto + slider de fotos (fondo blanco)
   =================================================== */
.historia { background: var(--color-blanco); }
.historia .inner { padding: 40px 20px; gap: 40px; }
.historia__intro { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.historia__intro p { max-width: 364px; }
.historia__destacado { font-weight: 400; }
.historia__texto { max-width: 364px; }
.historia__texto strong { font-weight: 400; display: block; margin-top: 2.7em; }
.historia-slider { width: 100%; max-width: 341px; }
.historia-slider .grph-slider__slide { border-radius: 5px; height: 480px; }
.historia-slider .grph-slider__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.historia-slider .grph-slider__prev,
.historia-slider .grph-slider__next {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 5px solid var(--color-primario);
  background: var(--color-blanco);
  color: var(--color-primario);
  cursor: pointer;
}
.historia-slider .grph-slider__prev::before,
.historia-slider .grph-slider__next::before { display: none; }
.historia-slider .grph-slider__prev svg,
.historia-slider .grph-slider__next svg { width: 14px; height: 14px; }

/* Sello circular "nuestra boda" + monograma */
.sello { display: flex; align-items: center; justify-content: center; padding: 10px 0 40px; background: var(--color-blanco); }
.sello__svg { width: 147px; height: 148px; }
.sello__texto { font-family: var(--fuente-sello); font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; fill: var(--color-primario); }

/* ===================================================
   VIAJEROS — aeropuerto, hospedaje (fondo negro)
   =================================================== */
.viajeros { position: relative; padding-top: 80px; overflow: hidden; }
.viajeros .inner { padding: 40px 20px; }
.viajeros__intro { max-width: 368px; }
.viajeros__bloque { display: flex; flex-direction: column; gap: 25px; align-items: center; padding: 40px 20px; width: 100%; }
.viajeros__nombre { max-width: 288px; }
.viajeros__texto { max-width: 287px; }
.viajeros__logo { width: 136px; height: 78px; display: flex; align-items: center; justify-content: center; }
.viajeros__logo svg { width: 119px; height: 65px; }
.viajeros__foto { width: 392px; max-width: 100%; height: 269px; object-fit: cover; margin: 0 auto; position: relative; z-index: 2; }
.ornamento--blanco { color: var(--color-blanco); }

/* ===================================================
   FINAL — cuenta regresiva + nombres + sello
   =================================================== */
.final { background: var(--color-blanco); border-bottom: 8px solid var(--color-primario); }
.final .inner { padding: 80px 0 40px; gap: 20px; }
.final__cuenta { display: flex; flex-direction: column; gap: 25px; align-items: center; }
.countdown { display: flex; gap: 5px; align-items: center; }
.countdown__item { display: flex; flex-direction: column; align-items: center; width: 68px; }
.countdown__num {
  font-family: var(--fuente-serif);
  font-size: 48px;
  line-height: 50px;
  letter-spacing: -0.02em;
}
.countdown__lbl { font-size: 16px; }
.countdown__sep {
  font-family: var(--fuente-serif);
  font-weight: 700;
  font-size: 30px;
  height: 54px;
  display: flex;
  align-items: center;
}

/* Nombres sobre la foto (foto en "difference" al 25 %) */
.final__nombres-wrap {
  display: grid;
  width: 100%;
  max-width: 430px;
  height: 329px;
  overflow: hidden;
  position: relative;
}
.final__nombres-img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: difference;
  opacity: .25;
  pointer-events: none;
}
.final__nombres {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
  margin-top: 88px;
  white-space: nowrap;
  font-size: 43px;
  line-height: 1;
}
.final__nombres .script { font-family: var(--fuente-script); font-size: 53px; font-weight: 400; }

/* ===================================================
   MODALES — cuentas, lista de regalos y buenos deseos
   =================================================== */
.modal__card { text-align: center; background: var(--color-blanco); border-radius: 0; }
.modal__titulo { margin-bottom: 16px; }
.modal__label { display: block; text-align: left; margin-bottom: 4px; }
.modal__nombre { font-family: var(--fuente-serif); font-size: 26px; line-height: 1.1; text-align: left; margin-bottom: 22px; }
.modal__textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--color-primario);
  border-radius: 3px;
  padding: 12px 14px;
  font-family: var(--fuente-cuerpo);
  font-size: 18px;
  background: var(--color-blanco);
  margin: 8px 0 22px;
  resize: vertical;
  outline: none;
}
.cuentas { line-height: 1.7; }
.cuentas__label { margin-top: 12px; font-weight: 400; }
.cuentas__num { }

/* Lista de regalos (hooks .regalos-modal de la base) */
.regalos-modal { max-width: 520px; text-align: left; }
.regalos-modal__titulo { text-align: center; margin-bottom: 12px; }
.regalos-modal__intro { text-align: center; margin: 0 auto 22px; }
.regalos-modal__lista { display: flex; flex-direction: column; gap: 16px; }
.regalo-item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "img titulo" "foot foot";
  align-items: center;
  gap: 10px;
  background: var(--color-blanco);
  border: 1px solid var(--color-primario);
  padding: 15px;
}
.regalo-item__img { grid-area: img; width: 100px; max-width: 38vw; aspect-ratio: 7 / 5; object-fit: cover; display: block; }
.regalo-item__titulo { grid-area: titulo; font-weight: 400; line-height: 1.15; }
.regalo-item__foot { grid-area: foot; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.regalo-item__meta { display: inline-flex; align-items: center; gap: 14px; }
.regalo-item__sep { width: 1px; height: 22px; background: rgba(0, 0, 0, .3); }
.regalo-item__disp { font-size: 16px; }
.regalo-item__precio { font-weight: 400; font-size: 16px; }
.regalo-item__btn { flex-shrink: 0; padding: 5px 12px; font-size: 13px; line-height: 24px; }
.regalos-modal__label { margin-bottom: 10px; }
.regalo-sel { position: relative; display: flex; align-items: center; gap: 16px; border: 1px solid var(--color-primario); padding: 14px; margin-bottom: 24px; }
.regalo-sel__img { width: 90px; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.regalo-sel__titulo { font-weight: 400; line-height: 1.15; }
.regalo-sel__precio { font-weight: 400; }
.regalo-sel__check { position: absolute; top: 12px; right: 14px; font-size: 20px; line-height: 1; }
.regalos-modal__paso { margin: 6px 0 14px; }
.regalos-modal__cuentas { margin: 0 0 22px; }
.regalos-modal__cuentas p { margin-bottom: 12px; }
.regalos-modal__enviar { width: 100%; }
.regalos-modal__volver {
  display: block;
  margin: 16px auto 0;
  background: none;
  border: 0;
  font-family: var(--fuente-cuerpo);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* ===================================================
   Animación de texto — palabra por palabra (blur → nítido)
   (la lógica y las clases las pone eventos.js)
   =================================================== */
.anim-palabras .palabra {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  will-change: opacity, filter;
}
.anim-palabras.anim-in .palabra {
  animation: palabra-in .6s ease both;
  animation-delay: var(--d, 0s);
}
@keyframes palabra-in {
  from { opacity: 0; filter: blur(8px); }
  to   { opacity: 1; filter: blur(0); }
}

/* h2: variante más lenta, las palabras suben desde abajo */
h2.anim-palabras .palabra {
  filter: none;
  transform: translateY(45px);
}
h2.anim-palabras.anim-in .palabra {
  animation: palabra-sube 1.1s ease both;
  animation-delay: calc(var(--d, 0s) * 1.6);
}
@keyframes palabra-sube {
  from { opacity: 0; transform: translateY(45px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* h3 y p: fade lento de entrada */
.anim-fade {
  opacity: 0;
  transition: opacity 1.6s ease;
  will-change: opacity;
}
.anim-fade.anim-in { opacity: 1; }

/* Fotos entran con fade lento de B/N a color (las del slider quedan excluidas) */
.foto-fade {
  filter: grayscale(100%);
  opacity: 0;
  transition: filter 1.8s ease, opacity 1.8s ease;
  will-change: filter, opacity;
}
.foto-fade.foto-fade--in {
  filter: grayscale(0%);
  opacity: 1;
}

/* Mensajito de confirmación tras enviar un formulario */
.form-gracias {
  margin-top: 12px;
  font-size: 16px;
}
