/* =====================================================================
   ESTILOS · Invitación Jesús & Melany
   Dirección: bordado sobre lino. Fondo de tela, hilo dorado, perlas,
   tipografía clásica de alto contraste (Bodoni) con texto Garamond.
   ===================================================================== */

:root {
  /* Color */
  --lino: #F1ECE4;          /* fondo de tela */
  --lino-claro: #F8F4EE;    /* tarjetas */
  --lino-sombra: #E2D9CC;   /* espacios para fotos */
  --tinta: #43483F;         /* texto principal, verde pizarra */
  --tinta-suave: #52564C;   /* texto secundario */
  --salvia: #8B9B7F;        /* hojas */
  --salvia-osc: #56654D;    /* botones */
  --rosa: #B77A86;          /* rosas bordadas */
  --rosa-osc: #8C4F5D;
  --azul: #9DB4B4;          /* chaquiras azul salvia */
  --azul-osc: #56777A;
  --oro: #B89B63;           /* hilo dorado */
  --sello: #A4566A;         /* lacre */

  /* Tipografía */
  --display: "Libre Baskerville", Baskerville, "Times New Roman", Georgia, serif;
  --texto: "EB Garamond", Garamond, "Times New Roman", Georgia, serif;

  /* Medidas */
  --ancho: 560px;
  --gutter: 20px;

  --textura: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .37 0 0 0 0 .3 0 0 0 .10 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, rgba(110, 95, 70, 0.035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(110, 95, 70, 0.03) 0 1px, transparent 1px 3px);

  color-scheme: light;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--texto);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--tinta);
  background-color: var(--lino);
  /* Textura de lino: ruido fino + trama de hilos */
  background-image: var(--textura);
}

body.sobre-cerrado { overflow: hidden; }

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

[hidden] { display: none !important; }

h1, h2, h3, p { margin: 0; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--rosa-osc); outline-offset: 3px; }

main {
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- Tipografía ---------- */
.titulo {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 8.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--tinta);
}
.titulo::after {
  content: "";
  display: block;
  width: 200px;
  max-width: 70%;
  height: 18px;
  margin: 18px auto 0;
  background: url("../assets/img/decor/divisor.webp") center / contain no-repeat;
}
.titulo--medio { font-size: clamp(26px, 7vw, 34px); }

.versal {
  font-family: var(--texto);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--tinta-suave);
}

.espaciado {
  font-size: 19px;
  line-height: 1.75;
  letter-spacing: 0.05em;
  color: var(--tinta-suave);
  max-width: 34ch;
  margin-inline: auto;
}

.cursiva { font-style: italic; font-size: 20px; color: var(--tinta-suave); }

.nota { font-size: 15px; font-style: italic; color: var(--tinta-suave); }

/* ---------- Botones y enlaces ---------- */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 34px;
  border: 0;
  border-radius: 999px;
  background: var(--salvia-osc);
  color: var(--lino-claro);
  font-family: var(--texto);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(60, 70, 50, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.boton:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(60, 70, 50, 0.26); }
.boton:disabled { opacity: 0.6; cursor: wait; }
.boton svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.enlace-versal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid rgba(67, 72, 63, 0.35);
  background: none;
  font-family: var(--texto);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--tinta);
  cursor: pointer;
}
.enlace-versal svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.enlace-versal:hover { border-bottom-color: var(--oro); }

/* ---------- Perlas (hechas con CSS) ---------- */
.perla {
  --t: 12px;
  width: var(--t);
  height: var(--t);
  border-radius: 50%;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 32% 28%, #FFFFFF 0 10%, rgba(255, 255, 255, 0) 24%),
    radial-gradient(circle at 70% 78%, rgba(214, 196, 222, 0.45) 0 18%, rgba(214, 196, 222, 0) 40%),
    radial-gradient(circle at 40% 38%, #FBF8F2 0 30%, #ECE3D6 62%, #CBBCA6 100%);
  box-shadow:
    0 1px 2px rgba(80, 62, 40, 0.35),
    0 2px 5px rgba(80, 62, 40, 0.12),
    inset -1px -2px 3px rgba(140, 120, 100, 0.3);
}
.perla--oval { border-radius: 50% / 46%; }
.perla--grande { --t: 34px; }

.guirnalda-perlas,
.perlas-vertical,
.cinta-perlas__perlas { position: relative; }
.guirnalda-perlas .perla,
.perlas-vertical .perla { position: absolute; transform: translate(-50%, -50%); }

.guirnalda-perlas { width: 100%; height: 70px; }
.guirnalda-perlas--corta { width: 220px; height: 46px; margin: 0 auto 18px; }

/* Cinta de chaquiras azules con perlas (como las referencias) */
.cinta-perlas {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-block: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cinta-perlas::before,
.cinta-perlas::after {
  content: "";
  height: 16px;
  background:
    radial-gradient(circle at 38% 32%, #E4EEEC 0 14%, #A9C0BF 42%, #6F8C8B 72%, rgba(111, 140, 139, 0) 76%) 0 0 / 8px 8px repeat;
  filter: drop-shadow(0 1px 1px rgba(60, 80, 80, 0.25));
}
.cinta-perlas__perlas {
  display: flex;
  justify-content: center;
  gap: 3px;
  height: 20px;
  align-items: center;
  overflow: hidden;
}

.separador-perlas {
  width: 1px;
  height: 56px;
  margin: 0 auto;
  background: repeating-linear-gradient(to bottom, var(--salvia-osc) 0 4px, transparent 4px 10px);
}

/* ---------- Imágenes bordadas opcionales ---------- */
.bordado { pointer-events: none; user-select: none; }
.esquina {
  position: absolute;
  top: -10px;
  width: min(46vw, 230px);
  z-index: 1;
}
.esquina--izq { left: calc(var(--gutter) * -1); }
.esquina--der { right: calc(var(--gutter) * -1); transform: scaleX(-1); }
.cisnes { width: min(100%, 420px); margin: 12px auto 0; filter: drop-shadow(0 6px 10px rgba(80, 62, 40, 0.15)); }
.guirnalda { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }

/* ---------- Marco bordado ---------- */
.marco-bordado {
  position: relative;
  z-index: 2;
  padding: 48px 26px;
  background: rgba(248, 244, 238, 0.72);
  border: 1px solid rgba(184, 155, 99, 0.55);
  outline: 1px dashed rgba(184, 155, 99, 0.7);
  outline-offset: -9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

/* ---------- Espacio para fotos ---------- */
.foto {
  position: relative;
  overflow: hidden;
  background: var(--lino-sombra);
}
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto.sin-foto::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(98, 101, 91, 0.45);
}
.foto.sin-foto::after {
  content: attr(data-etiqueta);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  font-style: italic;
  font-size: 16px;
  color: var(--tinta-suave);
}

/* =====================================================================
   1. SOBRE: portada de lino verde con dos puertas (referencias sobre1-4)
   ===================================================================== */
.sobre {
  --lino-verde: #8A9772;
  position: fixed;
  inset: 0;
  z-index: 50;
  perspective: 1700px;
  perspective-origin: 50% 50%;
  transition: opacity 0.45s ease;
}
.sobre.fin { opacity: 0; pointer-events: none; }

.sobre__puerta {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: var(--lino-verde) url("../assets/img/sobre/lino-verde.jpg") 0 0 / 215px auto repeat;
  backface-visibility: hidden;
  transition: transform 2s cubic-bezier(0.6, 0, 0.25, 1);
}
.sobre__puerta--izq {
  left: 0;
  transform-origin: 0 50%;
  box-shadow: inset -2px 0 3px rgba(40, 50, 30, 0.35), inset -12px 0 22px rgba(40, 50, 30, 0.12);
}
.sobre__puerta--der {
  right: 0;
  z-index: 2;
  transform-origin: 100% 50%;
  box-shadow: -3px 0 6px rgba(40, 50, 30, 0.35), inset 2px 0 2px rgba(255, 255, 255, 0.18);
}
/* Luz y sombra que cambian al girar las puertas */
.puerta__luz {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(30, 38, 22, 0.55));
  opacity: 0;
  transition: opacity 2s cubic-bezier(0.6, 0, 0.25, 1);
}
.sobre__puerta--der .puerta__luz { background: linear-gradient(270deg, rgba(0, 0, 0, 0), rgba(30, 38, 22, 0.55)); }

/* Placa J&M: va pegada a la puerta derecha, sobre la unión */
.placa {
  position: absolute;
  left: 0;
  top: 50%;
  width: min(46vw, 230px);
  aspect-ratio: 360 / 500;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 6px 8px rgba(30, 40, 20, 0.35)) drop-shadow(0 1px 1px rgba(30, 40, 20, 0.3));
  transition: transform 0.25s ease;
  animation: placa-respira 3s ease-in-out infinite;
}
.placa img { width: 100%; height: 100%; display: block; }
.placa__brillo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask: url("../assets/img/sobre/placa.webp") center / 100% 100% no-repeat;
  mask: url("../assets/img/sobre/placa.webp") center / 100% 100% no-repeat;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 35%, rgba(255, 250, 235, 0.55) 50%, rgba(255, 255, 255, 0) 65%) -200% 0 / 300% 100% no-repeat;
  animation: placa-brillo 3.6s ease-in-out infinite 1s;
}
@keyframes placa-respira { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.025); } }
@keyframes placa-brillo { 0% { background-position: -200% 0; } 55%, 100% { background-position: 200% 0; } }
.placa:focus-visible { outline: 2px solid #F3E7C9; outline-offset: 6px; border-radius: 18px; }

/* --- Secuencia --- */
.sobre.tocado .placa { animation: none; transform: translate(-50%, -50%) scale(0.97); }
.sobre.abre .sobre__puerta--izq { transform: rotateY(-88deg); }
.sobre.abre .sobre__puerta--der { transform: rotateY(88deg); }
.sobre.abre .puerta__luz { opacity: 1; }

/* =====================================================================
   2. TELÓN
   ===================================================================== */
.telon {
  position: relative;
  height: 100svh;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.telon__fijo {
  position: relative;
  height: 100%;
  overflow: hidden;
}
.telon__escenario {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: calc(29vw + 8px) var(--gutter) calc(18px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}
/* Nombres, fecha y foto aparecen de forma evanescente cuando el telón va al 75% */
.telon__escenario > * {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  transition: opacity 1.6s ease, transform 1.8s cubic-bezier(0.22, 1, 0.36, 1), filter 1.6s ease;
}
.telon.revelado .telon__escenario > * { opacity: 1; transform: none; filter: none; }
.telon.revelado .telon__fecha { transition-delay: 0.25s; }
.telon.revelado .telon__foto { transition-delay: 0.5s; }
.telon.revelado .telon__pista { transition-delay: 1.2s; }

.telon__nombres {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 11.5vw, 68px);
  line-height: 1.08;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--tinta);
}
.telon__y { font-style: italic; font-size: 0.68em; line-height: 1.15; color: var(--oro); }
.telon__fecha { max-width: 260px; font-size: 14px; line-height: 1.6; letter-spacing: 0.22em; text-transform: uppercase; color: var(--tinta-suave); text-wrap: balance; }
.telon__foto {
  flex: 0 1 auto;
  width: min(60vw, 290px);
  height: min(40svh, 390px);
  min-height: 180px;
  padding: 6px;
  border-radius: 999px 999px 10px 10px;
  background: var(--lino-claro);
  box-shadow: 0 0 0 1px rgba(184, 155, 99, 0.6), 0 14px 30px rgba(80, 62, 40, 0.2);
}
.telon__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: 999px 999px 6px 6px; }

/* Cenefa bordada (de la referencia persiana1) */
.telon__cenefa {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: none;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 6px 8px rgba(80, 62, 40, 0.22));
}

.cortina {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.3%;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(5px 0 9px rgba(80, 62, 40, 0.25));
}
.cortina--izq { left: 0; }
.cortina--der { right: 0; transform: scaleX(-1); }
.cortina__tela {
  position: absolute;
  inset: 0;
  background: #EFE4D4 url("../assets/img/telon/tela.webp") 0 0 / 270px 100% repeat-x;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.cortina__perlas { position: absolute; inset: 0; }
.cortina__perlas .perla { position: absolute; transform: translate(-60%, -50%); }
.cortina__lazo {
  position: absolute;
  left: 0;
  height: 14px;
  display: flex;
  align-items: center;
  gap: 1px;
  overflow: hidden;
  transform: translateY(-50%) rotate(-6deg);
  transform-origin: left center;
  opacity: 0;
}
.cortina__lazo::after {
  content: "";
  position: absolute;
  right: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #FFFFFF 0 12%, #F3ECE1 45%, #C8B8A0 100%);
  box-shadow: 0 1px 3px rgba(80, 62, 40, 0.4);
}

.telon__pista {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--tinta-suave);
}
.telon__pista::after {
  content: "";
  display: block;
  width: 1px;
  height: 26px;
  margin: 8px auto 0;
  background: var(--tinta-suave);
  animation: pista 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes pista { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* =====================================================================
   SECCIONES
   ===================================================================== */
.seccion {
  position: relative;
  padding-block: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
}

/* Bienvenida */
.bienvenida { padding-top: 140px; }
.itinerario, .confirmar { padding-top: 160px; }
/* Espacios ajustados entre secciones */
.bienvenida { padding-bottom: 32px; }   /* debajo de los primeros cisnes */
.ninos { padding-top: 32px; padding-bottom: 48px; }
.historia { padding-top: 48px; }
.itinerario { padding-bottom: 48px; }   /* debajo de "Calendario del iPhone" */
.vestimenta { padding-top: 48px; padding-bottom: 32px; }
.galeria { padding-top: 32px; }         /* encima del aviso de niños */
.cuenta { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 18px; }
.saludo { display: flex; flex-direction: column; gap: 6px; }
.saludo__nombre { font-family: var(--display); font-size: 26px; line-height: 1.2; }
.saludo__cupos { font-style: italic; font-size: 19px; color: var(--rosa-osc); }

/* Cuenta regresiva */
.cuenta__fila {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, 3vw, 16px);
  width: 100%;
}
.medallon {
  position: relative;
  aspect-ratio: 1;
  max-width: 100%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 40% 35%, #FCFAF6, #EFE8DD);
  box-shadow: inset 0 0 0 5px var(--lino-claro), inset 0 0 0 6px rgba(184, 155, 99, 0.6), 0 4px 12px rgba(80, 62, 40, 0.1);
}
.medallon .perla { position: absolute; transform: translate(-50%, -50%); }
.medallon__num { font-family: var(--display); font-size: clamp(22px, 7vw, 34px); line-height: 1; font-variant-numeric: tabular-nums; }
.medallon__txt { font-size: clamp(9px, 2.5vw, 12px); letter-spacing: 0.06em; text-transform: uppercase; color: var(--tinta-suave); }

/* Estos niños se casan */
.ninos__fotos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
}
.ninos__foto {
  margin: 0;
  aspect-ratio: 3 / 4;
  padding: 8px;
  background: var(--lino-claro);
  box-shadow: 0 10px 24px rgba(80, 62, 40, 0.14);
}
.ninos__foto:first-child { transform: rotate(-3deg); }
.ninos__foto:last-child { transform: rotate(3deg); }
.ninos__foto .foto { width: 100%; height: 100%; }
.ninos__y { font-family: var(--display); font-style: italic; font-size: 40px; color: var(--oro); }

/* Historia */
.historia__carrusel {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px max(var(--gutter), calc(50vw - var(--ancho) / 2 + var(--gutter))) 20px;
  scrollbar-width: none;
}
.historia__carrusel::-webkit-scrollbar { display: none; }
.recuerdo {
  flex: 0 0 min(72vw, 290px);
  scroll-snap-align: center;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.recuerdo .foto {
  aspect-ratio: 4 / 5;
  border: 8px solid var(--lino-claro);
  box-shadow: 0 10px 22px rgba(80, 62, 40, 0.14);
}
.recuerdo__titulo { font-family: var(--display); font-size: 26px; line-height: 1.1; }
.recuerdo__texto { font-style: italic; font-size: 18px; color: var(--tinta-suave); }

/* Foto que crece */
.destacada {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-block: 40px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.destacada__marco {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 3 / 4;
  max-height: 88svh;
  transform: scale(var(--escala, 1));
  border-radius: var(--radio, 0px);
}
.destacada__frase {
  max-width: 22ch;
  padding-inline: var(--gutter);
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(28px, 8vw, 38px);
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
}

/* Itinerario */
/* Recorrido: íconos | lazo con perla | texto */
.recorrido {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 14px 0 34px;
  --col-icono: 66px;
  --col-lazo: 44px;
}
.lazo {
  position: absolute;
  top: 0;
  left: calc(var(--col-icono) + 10px);
  width: var(--col-lazo);
  overflow: visible;
  pointer-events: none;
}
.lazo path { fill: none; stroke-linecap: round; }
.lazo__sombra { stroke: rgba(120, 70, 80, 0.14); stroke-width: 13; transform: translate(1px, 2px); }
.lazo__cinta { stroke: #EBCBD1; stroke-width: 10; }
.lazo__brillo { stroke: rgba(255, 255, 255, 0.65); stroke-width: 3; transform: translateX(-1.5px); }
.lazo__avance { stroke: #CE8F9C; stroke-width: 10; transition: stroke-dashoffset 0.12s linear; }
.lazo__costura { stroke: var(--oro); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.8; }
.perla-viajera {
  --t: 26px;
  position: absolute;
  top: 0;
  left: calc(var(--col-icono) + 10px);
  z-index: 2;
  transform: translate(22px, 0) translate(-50%, -50%);
  box-shadow: 0 3px 8px rgba(80, 62, 40, 0.35), inset -2px -3px 4px rgba(140, 120, 100, 0.3);
  transition: transform 0.12s linear;
}
.linea {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.momento {
  display: grid;
  grid-template-columns: var(--col-icono) var(--col-lazo) minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  text-align: left;
}
.momento__medallon {
  --fondo: #F6DDE2;
  --trazo: #B45F73;
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--trazo);
  background: radial-gradient(circle at 38% 32%, #FFFFFF 0 8%, var(--fondo) 70%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.7), 0 0 0 1.5px rgba(184, 155, 99, 0.65), 0 5px 12px rgba(80, 62, 40, 0.14);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}
.momento__medallon svg { width: 30px; height: 30px; fill: currentColor; fill-opacity: 0.16; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.momento__medallon.con-imagen { background: none; box-shadow: none; }
.momento__medallon img { width: 100%; height: 100%; object-fit: contain; }
.tono-1 .momento__medallon { --fondo: #F6DDE2; --trazo: #B45F73; }
.tono-2 .momento__medallon { --fondo: #DCE8F3; --trazo: #4F77A0; }
.tono-3 .momento__medallon { --fondo: #F8ECC6; --trazo: #A07B22; }
.tono-4 .momento__medallon { --fondo: #E1EAD8; --trazo: #5E7A4F; }
.tono-5 .momento__medallon { --fondo: #EAE0F0; --trazo: #7D5E93; }
.momento.alcanzado .momento__medallon {
  transform: scale(1.08);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.7), 0 0 0 2px var(--trazo), 0 6px 16px rgba(80, 62, 40, 0.2);
}
.momento__info { grid-column: 3; display: flex; flex-direction: column; gap: 2px; min-width: 0; transition: opacity 0.4s ease; }
.momento:not(.alcanzado) .momento__info { opacity: 0.72; }
.momento__hora { font-family: var(--display); font-size: 20px; line-height: 1.2; color: var(--tinta); }
.momento__titulo { font-size: 14px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tinta); line-height: 1.45; }
.momento__texto { font-style: italic; font-size: 17px; color: var(--tinta-suave); line-height: 1.4; }

.lugares { width: 100%; display: flex; flex-direction: column; gap: 22px; }
.lugar {
  display: flex;
  flex-direction: column;
  background: rgba(248, 244, 238, 0.85);
  border: 1px solid rgba(184, 155, 99, 0.5);
  box-shadow: 0 12px 28px rgba(80, 62, 40, 0.1);
  overflow: hidden;
}
.lugar__foto { aspect-ratio: 4 / 3; border-bottom: 1px solid rgba(184, 155, 99, 0.5); }
.lugar__info { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 20px 28px; }
.lugar__nombre { font-family: var(--display); font-size: clamp(24px, 7vw, 30px); line-height: 1.2; }
.lugar__ciudad { font-size: 14px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--tinta-suave); }
.lugar__direccion { margin-top: 6px; font-size: 18px; }
.lugar__referencia { font-style: italic; font-size: 17px; color: var(--tinta-suave); }
.lugar__botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.boton-mapa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(67, 72, 63, 0.35);
  background: var(--lino-claro);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--tinta);
}
.boton-mapa:hover { border-color: var(--oro); }
.boton-mapa svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.acciones { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 10px; }

/* Vestimenta */
.paleta { display: flex; gap: 12px; }
.paleta span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.85) 0 10%, rgba(255, 255, 255, 0) 32%), var(--c);
  box-shadow: 0 2px 5px rgba(80, 62, 40, 0.25), inset -2px -3px 5px rgba(80, 62, 40, 0.12);
}
.aviso {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 440px;
  text-align: left;
  font-style: italic;
  font-size: 19px;
  color: var(--rosa-osc);
}

.vestuario { margin: 0; width: calc(100% + var(--gutter) * 2); }
.vestuario__imagen { width: 100%; height: auto; filter: drop-shadow(0 8px 12px rgba(80, 62, 40, 0.12)); }
.reglas { display: flex; flex-direction: column; gap: 18px; max-width: 34ch; }
.reglas p { display: flex; flex-direction: column; gap: 4px; font-style: italic; font-size: 19px; line-height: 1.5; color: var(--tinta-suave); }
.reglas .versal { font-style: normal; color: var(--tinta); }
.vestimenta__paleta { display: flex; flex-direction: column; align-items: center; gap: 14px; }
/* Cisnes en hilo dorado (se reemplazan por la imagen bordada cuando exista) */
.cisnes-caja { width: min(100%, 400px); margin: 0 auto; }
.cisnes-caja svg, .cisnes-caja img { width: 100%; height: auto; display: block; }
.cisnes-caja .c-cuerpo { fill: url(#gCisneSeda); stroke: var(--oro); stroke-width: 1.5; stroke-linejoin: round; }
.cisnes-caja .c-ala { fill: #FFFFFF; stroke: var(--oro); stroke-width: 1.3; stroke-linejoin: round; }
.cisnes-caja .c-pluma, .cisnes-caja .c-puntada { fill: none; stroke: var(--oro); stroke-width: 1; stroke-linecap: round; stroke-dasharray: 3 2.5; opacity: 0.85; }
.cisnes-caja .c-pico { fill: #D99A86; stroke: #B0705E; stroke-width: 0.8; }
.cisnes-caja .c-ojo { fill: var(--tinta); }
.cisnes-caja .c-agua path { fill: none; stroke: var(--azul); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 4 3; }
.cisnes-caja .c-corazon path { fill: #D8A1AC; stroke: var(--rosa-osc); stroke-width: 0.8; }
.cisnes-caja .cisne { filter: drop-shadow(0 3px 3px rgba(80, 62, 40, 0.18)); }
.sobre__cisnes { width: 48%; margin-bottom: 0; }

/* Imágenes bordadas */
.cascada {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-top: -96px;
  margin-bottom: -10px;
}
.cierre .cascada { margin-top: -80px; }
.divisor { width: 220px; max-width: 70%; margin: 0 auto; }
.ninos__marco { position: relative; width: calc(100% + var(--gutter) * 2); padding: 40% 7% 4%; }
.ninos__arco { position: absolute; top: 0; left: 0; width: 100%; max-width: none; z-index: 1; }
.ninos__marco .ninos__fotos { position: relative; z-index: 2; gap: 6px; }
.lugares { position: relative; }
.preguntas { position: relative; }
.lateral {
  position: absolute;
  top: 0;
  width: 58px;
  z-index: 3;
  filter: drop-shadow(0 4px 6px rgba(80, 62, 40, 0.18));
}
.lateral--izq { left: calc(var(--gutter) * -1 - 10px); }
.lateral--der { right: calc(var(--gutter) * -1 - 10px); transform: scaleX(-1); top: 180px; }
.preguntas .lateral { top: 40px; }
.preguntas__lista { padding-inline: 30px; }
.preguntas .lateral--der { top: 220px; }
.lugar__foto.foto { aspect-ratio: auto; background: transparent; padding: 18px 14px 0; border-bottom: 0; }
.lugar__foto.foto img { height: auto; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(80, 62, 40, 0.15)); }
.lugar__foto.sin-foto { aspect-ratio: 4 / 3; }
@media (min-width: 700px) {
  .lateral { width: 80px; }
  .cascada { margin-top: -120px; }
}

/* Nombres de los invitados, encima de "Están invitados a nuestra boda" */
.invitados { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: -4px; }
.invitados__nombre { font-family: var(--display); font-size: clamp(22px, 6.4vw, 28px); line-height: 1.2; color: var(--rosa-osc); text-wrap: balance; }
.invitados__y { font-family: var(--display); font-style: italic; font-size: 18px; color: var(--oro); }

/* Foto encima de la cuenta regresiva */
/* Cuadrada, con los bordes difuminados hacia el fondo de lino */
.cuenta__foto {
  margin: 0 0 60px;
  width: min(80vw, 340px);
}
.cuenta__foto .foto {
  width: 100%;
  background: transparent;
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, 0.75) 2.5%, #000 5.5%, #000 94.5%, rgba(0, 0, 0, 0.75) 97.5%, transparent 100%), linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.75) 2.5%, #000 5.5%, #000 94.5%, rgba(0, 0, 0, 0.75) 97.5%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, 0.75) 2.5%, #000 5.5%, #000 94.5%, rgba(0, 0, 0, 0.75) 97.5%, transparent 100%), linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.75) 2.5%, #000 5.5%, #000 94.5%, rgba(0, 0, 0, 0.75) 97.5%, transparent 100%);
  mask-composite: intersect;
}
.cuenta__foto .foto img { height: auto; display: block; }
.cuenta__foto .foto.sin-foto { aspect-ratio: 3 / 4; }

/* Botón al video de Instagram en "Cómo llegar" */
.boton-video {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #C88A97, #B5677A);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(140, 79, 93, 0.25);
}
.boton-video svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.boton-video:hover { filter: brightness(1.05); }

/* Aviso: sin acompañantes no invitados ni niños */
.aviso-ninos {
  max-width: 340px;
  margin: 0 0 18px;
  padding: 14px 22px;
  border-top: 1px solid rgba(184, 155, 99, 0.55);
  border-bottom: 1px solid rgba(184, 155, 99, 0.55);
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.45;
  color: var(--rosa-osc);
  text-wrap: balance;
}

/* Foto de los novios encima del código de vestimenta */
.novios-color { margin: 0 0 6px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.novios-color__marco {
  width: min(74vw, 320px);
  padding: 8px;
  background: var(--lino-claro);
  border-radius: 999px 999px 10px 10px;
  box-shadow: 0 0 0 1px rgba(184, 155, 99, 0.55), 0 14px 28px rgba(80, 62, 40, 0.16);
}
.novios-color__marco img { display: block; width: 100%; height: auto; border-radius: 999px 999px 6px 6px; }
.novios-color__mensaje {
  max-width: 330px;
  padding: 14px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(184, 155, 99, 0.5);
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.4;
  color: var(--tinta);
  text-wrap: balance;
}

/* Fotos de las habitaciones: carrusel pequeño dentro del marco */
.habitaciones { position: relative; width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 10px; }
.habitaciones__pista {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 8% 16px;
  scrollbar-width: none;
}
.habitaciones__pista::-webkit-scrollbar { display: none; }
.habitaciones__foto {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  align-self: center;
  scroll-snap-align: center;
  box-sizing: border-box;
  border: 6px solid var(--lino-claro);
  box-shadow: 0 10px 22px rgba(80, 62, 40, 0.14);
}
.habitaciones .carrusel__flecha { top: calc(50% - 18px); width: 40px; height: 40px; }
.habitaciones .carrusel__flecha--izq { left: -6px; }
.habitaciones .carrusel__flecha--der { right: -6px; }

/* Comparte tus fotos */
.fotos-invitados__caja { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.fotos-invitados__icono { width: 44px; height: 44px; fill: none; stroke: var(--oro); stroke-width: 1.3; stroke-linejoin: round; }
.subida { width: 100%; max-width: 300px; display: flex; flex-direction: column; gap: 8px; }
.subida__barra { height: 6px; border-radius: 999px; background: rgba(86, 101, 77, 0.18); overflow: hidden; }
.subida__barra span { display: block; height: 100%; width: 0; background: var(--salvia-osc); transition: width 0.4s ease; }
.subida__texto { font-size: 16px; line-height: 1.45; color: var(--tinta-suave); }

/* Carrusel: una foto a la vez, se desliza hacia el lado */
.carrusel { position: relative; width: 100vw; margin-left: calc(50% - 50vw); }
.carrusel__pista {
  --alto-foto: min(58svh, 540px);
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 12vw 14px;
  scrollbar-width: none;
}
.carrusel__pista::-webkit-scrollbar { display: none; }
/* Cada foto conserva su forma: alto fijo y ancho según la foto (sin recortes) */
.carrusel__foto {
  flex: 0 0 auto;
  box-sizing: border-box;
  height: calc(var(--alto-foto) + 14px);
  width: min(calc((var(--alto-foto)) * var(--forma, 0.66) + 14px), 86vw);
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: visible;
}
.carrusel__foto.foto img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-sizing: border-box;
  border: 7px solid var(--lino-claro);
  box-shadow: 0 12px 24px rgba(80, 62, 40, 0.16);
}
.carrusel__foto.sin-foto { width: min(76vw, 360px); border: 7px solid var(--lino-claro); }
.carrusel__contador { font-family: var(--display); font-size: 17px; letter-spacing: 0.12em; color: var(--tinta-suave); }
.carrusel__flecha {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  background: rgba(248, 244, 238, 0.92);
  color: var(--tinta);
  box-shadow: 0 4px 12px rgba(80, 62, 40, 0.22);
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.carrusel__flecha svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carrusel__flecha--izq { left: 8px; }
.carrusel__flecha--der { right: 8px; }
.carrusel__flecha:disabled { opacity: 0; pointer-events: none; }
.carrusel__puntos { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.carrusel__punto { width: 8px; height: 8px; border-radius: 50%; background: rgba(86, 101, 77, 0.25); transition: transform 0.3s ease, background 0.3s ease; }
.carrusel__punto.activo { background: var(--salvia-osc); transform: scale(1.35); }
.galeria__pista { margin-top: -6px; font-style: italic; font-size: 16px; color: var(--tinta-suave); }

/* Alojamiento: nota del costo */
.nota-costo {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(183, 122, 134, 0.14);
  color: var(--rosa-osc);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
}

/* Confirmación: quién asiste */
.asistentes { display: flex; flex-direction: column; gap: 10px; }
.opcion--persona { justify-content: flex-start; }
.campo .opcion--persona {
  display: flex;
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  color: var(--tinta);
}
.campo .opcion--persona input {
  flex: none;
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  accent-color: var(--salvia-osc);
}
.pregunta__enlace { margin-bottom: 16px; }
.aviso-parcial {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px 18px;
  border-radius: 16px;
  background: rgba(183, 122, 134, 0.12);
  box-shadow: 0 0 0 1px rgba(140, 79, 93, 0.35);
  text-align: center;
  animation: aparecer-aviso 0.35s ease;
}
.aviso-parcial__texto { font-size: 19px; line-height: 1.45; color: var(--rosa-osc); text-wrap: balance; }
.aviso-parcial__botones { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.aviso-parcial .boton { padding: 0 24px; letter-spacing: 0.08em; text-transform: none; font-size: 17px; }
@keyframes aparecer-aviso { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Galería */
.video {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  max-width: none;
  aspect-ratio: 16 / 9;
  transform: scale(var(--escala, 1));
  border-radius: var(--radio, 0px);
  overflow: hidden;
  background: var(--lino-sombra);
}
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video.video--propio {
  width: min(78vw, 360px);
  margin-left: 0;
  aspect-ratio: 9 / 16;
  max-height: 80svh;
  border: 6px solid var(--lino-claro);
  box-shadow: 0 16px 34px rgba(80, 62, 40, 0.2);
}
.video video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Galería horizontal: dos filas que se deslizan hacia la derecha */
.galeria__rejilla {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  display: grid;
  grid-template-rows: repeat(2, 190px);
  grid-auto-flow: column dense;
  grid-auto-columns: 150px;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 4px max(var(--gutter), calc(50vw - var(--ancho) / 2 + var(--gutter))) 14px;
  scrollbar-width: none;
}
.galeria__rejilla::-webkit-scrollbar { display: none; }
.galeria__rejilla .foto { scroll-snap-align: start; border: 4px solid var(--lino-claro); box-shadow: 0 6px 14px rgba(80, 62, 40, 0.12); }
.galeria__rejilla .foto:nth-child(4n + 1) { grid-row: span 2; grid-column: span 2; }
.galeria__pista { margin-top: -10px; font-style: italic; font-size: 16px; color: var(--tinta-suave); }

/* Regalos y alojamiento */
.regalos { gap: 60px; }
.regalo { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.regalo__imagen { width: 100%; max-width: 420px; aspect-ratio: 4 / 3; border: 6px solid var(--lino-claro); box-shadow: 0 10px 22px rgba(80, 62, 40, 0.12); }
.regalo__imagen.foto:not(.sin-foto) { border: 0; box-shadow: none; aspect-ratio: auto; background: transparent; }
.regalo__imagen.foto:not(.sin-foto) img { height: auto; object-fit: contain; }
.regalo__imagen--sobres { width: 75%; max-width: 315px; }
.regalos .lateral { top: 300px; }
.regalos .lateral--der { top: 760px; }


/* Formulario */
.formulario {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 36px 24px;
  text-align: left;
  background: rgba(248, 244, 238, 0.8);
  border: 1px solid rgba(184, 155, 99, 0.55);
  outline: 1px dashed rgba(184, 155, 99, 0.7);
  outline-offset: -9px;
}
.formulario fieldset { border: 0; margin: 0; padding: 0; }
.formulario legend,
.campo label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tinta);
}
.opciones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opcion {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(67, 72, 63, 0.25);
  border-radius: 12px;
  font-size: 18px;
  line-height: 1.2;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.4);
}
.opcion:has(input:checked) { border-color: var(--salvia-osc); background: rgba(139, 155, 127, 0.16); }
.opcion input { accent-color: var(--salvia-osc); width: 18px; height: 18px; margin: 0; flex-shrink: 0; }
.campo input,
.campo select {
  width: 100%;
  min-height: 48px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid rgba(67, 72, 63, 0.4);
  border-radius: 0;
  background: transparent;
  font-family: var(--texto);
  font-size: 19px;
  color: var(--tinta);
}
.campo input::placeholder,
.campo textarea::placeholder { color: #8A8B82; font-style: italic; }
.campo textarea {
  width: 100%;
  min-height: 96px;
  padding: 10px 12px;
  border: 1px solid rgba(67, 72, 63, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  font-family: var(--texto);
  font-size: 18px;
  color: var(--tinta);
  resize: vertical;
}
.campo textarea:focus { outline: none; border-color: var(--salvia-osc); box-shadow: 0 0 0 1px var(--salvia-osc); }
.campo__ayuda { margin: -4px 0 10px; font-style: italic; font-size: 16px; line-height: 1.45; color: var(--tinta-suave); }
.campo input:focus,
.campo select:focus { outline: none; border-bottom: 2px solid var(--salvia-osc); }
.formulario .boton { align-self: center; margin-top: 6px; }
.formulario__aviso,
.formulario__error { font-style: italic; color: var(--rosa-osc); text-align: center; }

.gracias { display: flex; flex-direction: column; align-items: center; gap: 18px; }

/* Preguntas */
.preguntas__lista { width: 90%; margin-inline: auto; display: flex; flex-direction: column; text-align: left; }
.pregunta { border-bottom: 1px solid rgba(67, 72, 63, 0.2); }
.pregunta summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding-block: 8px;
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary::after { content: "+"; font-family: var(--texto); font-size: 26px; color: var(--oro); transition: transform 0.3s ease; }
.pregunta[open] summary::after { transform: rotate(45deg); }
.pregunta p { padding-bottom: 18px; color: var(--tinta-suave); }

/* Cierre */
.cierre {
  padding-block: 80px 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.cierre__texto { font-family: var(--display); font-style: italic; font-size: clamp(40px, 12vw, 58px); line-height: 1.1; }

/* ---------- Música ---------- */
.musica {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--tinta);
  background: radial-gradient(circle at 34% 28%, #FFFFFF 0 12%, #F6F1E9 40%, #E2D8C8 100%);
  box-shadow: 0 6px 16px rgba(80, 62, 40, 0.25), inset -2px -3px 5px rgba(120, 100, 80, 0.2);
}
.musica svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.musica .musica__play { display: none; fill: currentColor; stroke: none; }
.musica.pausada .musica__play { display: block; }
.musica.pausada .musica__pausa { display: none; }
.musica:not(.pausada)::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(184, 155, 99, 0.6);
  animation: latido 2.4s ease-out infinite;
}
@keyframes latido { from { transform: scale(1); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }

/* ---------- Ambiente: flores que caen y mariposas ---------- */
.ambiente { position: fixed; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; }
.ambiente .cae {
  position: absolute;
  top: -50px;
  filter: drop-shadow(0 3px 3px rgba(80, 62, 40, 0.25));
  animation: caer linear forwards;
}
@keyframes caer {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  8% { opacity: 1; }
  35% { transform: translate(var(--deriva), 38vh) rotate(calc(var(--giro) * 0.4)); }
  70% { transform: translate(calc(var(--deriva) * -0.6), 78vh) rotate(calc(var(--giro) * 0.75)); }
  92% { opacity: 1; }
  100% { transform: translate(calc(var(--deriva) * 0.3), 112vh) rotate(var(--giro)); opacity: 0; }
}
.mariposa { position: absolute; top: 0; left: 0; filter: drop-shadow(0 6px 5px rgba(80, 62, 40, 0.22)); }
.mariposa img { width: 100%; display: block; transform-origin: 50% 50%; animation: aletear 0.32s ease-in-out infinite alternate; }
@keyframes aletear { from { transform: scaleX(1); } to { transform: scaleX(0.28); } }

/* Carruaje que cruza en "Cómo llegar" */
.camino { position: relative; width: 100vw; margin-left: calc(50% - 50vw); height: 120px; overflow: hidden; }
.carruaje {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 190px;
  transform: translateX(calc(-200px + (100vw + 200px) * var(--avance, 0)));
  filter: drop-shadow(0 6px 6px rgba(80, 62, 40, 0.2));
}

/* ---------- Aparecer al bajar ---------- */
.revelar.preparado { opacity: 0; transform: translateY(36px); }
.revelar.preparado.visible {
  opacity: 1;
  transform: none;
  transition: opacity 1s ease, transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--retraso, 0s);
}

/* ---------- Pantallas grandes ---------- */
@media (min-width: 700px) {
  .seccion { padding-block: 120px; }
  .esquina { width: 260px; }
}

/* ---------- Menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .ambiente { display: none; }
}
