/* Invitación Jorge & Grethel
   Concepto: una sola columna de papel marfil que alterna con bandas de terciopelo azul noche;
   el oro aparece solo en monograma, líneas y ramas. Un solo look (no cambia con modo oscuro). */
:root {
  --noche: #07154f;
  --noche-2: #0b1f73;
  --noche-hondo: #040c33;
  --oro: #c69a48;
  --oro-claro: #ecd29a;
  --marfil: #f6f2ea;
  --arena: #ebe4d7;
  --tinta: #0c1a52;
  --tinta-suave: #3b4675;
  --linea: rgba(198, 154, 72, .55);

  --f-display: 'Instrument Serif', 'Bodoni 72', 'Didot', Georgia, serif;
  --f-script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --f-texto: 'Cormorant Garamond', 'Garamond', Georgia, serif;
  --f-ui: 'Hanken Grotesk', 'Segoe UI', system-ui, sans-serif;

  --gutter: clamp(18px, 5vw, 40px);
  --ancho: 1040px;
  --ancho-angosto: 680px;
  --sombra: 0 18px 40px -22px rgba(7, 21, 79, .45);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--marfil);
  color: var(--tinta);
  font-family: var(--f-texto);
  font-size: clamp(1.12rem, 1rem + .4vw, 1.28rem);
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
svg { width: 1em; height: 1em; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; border-radius: 4px; }

.contenedor { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: var(--gutter); }
.contenedor.angosto { max-width: var(--ancho-angosto); }
.amp { font-family: var(--f-script); text-transform: none; color: var(--oro); font-weight: 400; }

/* ---------- Animación de aparición (solo se activa con JS y fuera de pantalla) ---------- */
.js .revela.fuera { opacity: 0; transform: translateY(26px); }
.js .revela { transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }

/* ================= PORTADA ================= */
.portada {
  position: relative;
  min-height: min(100svh, 980px);
  display: grid;
  place-items: center;
  padding: clamp(56px, 10vh, 110px) var(--gutter) clamp(90px, 14vh, 150px);
  background:
    radial-gradient(120% 70% at 50% 0%, #13308f 0%, transparent 60%),
    linear-gradient(180deg, var(--noche-2) 0%, var(--noche) 55%, var(--noche-hondo) 100%);
  color: var(--marfil);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
/* Luz de seda que se mueve muy lento */
.portada-luz {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 30% at 30% 30%, rgba(80, 120, 255, .28), transparent 70%),
    radial-gradient(35% 25% at 72% 62%, rgba(236, 210, 154, .12), transparent 70%),
    radial-gradient(50% 30% at 50% 85%, rgba(30, 60, 190, .35), transparent 70%);
  filter: blur(20px);
  animation: seda 18s ease-in-out infinite alternate;
  z-index: -1;
}
@keyframes seda {
  0% { transform: translate3d(-3%, -2%, 0) rotate(-2deg) scale(1); }
  100% { transform: translate3d(3%, 3%, 0) rotate(3deg) scale(1.08); }
}
.portada-contenido { display: grid; justify-items: center; gap: clamp(14px, 2.4vh, 22px); }

.saludo { display: grid; gap: 2px; margin-bottom: 6px; }
.saludo-eti { font-family: var(--f-ui); font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--oro-claro); }
.saludo-nombre { font-family: var(--f-texto); font-style: italic; font-size: clamp(1.3rem, 1rem + 1.4vw, 1.75rem); }

.monograma-marco { position: relative; width: clamp(96px, 24vw, 130px); }
.monograma { width: 100%; height: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35)); }
/* destello que recorre el oro, recortado a la forma del monograma */
.monograma-brillo {
  position: absolute; inset: 0;
  -webkit-mask: url(../assets/logo-jg.png) center / contain no-repeat;
  mask: url(../assets/logo-jg.png) center / contain no-repeat;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 248, 225, .95) 50%, transparent 65%);
  background-size: 250% 100%;
  background-position: 130% 0;
  mix-blend-mode: screen;
  animation: destello 6s ease-in-out 1.6s infinite;
}
@keyframes destello { 0% { background-position: 130% 0; } 35%, 100% { background-position: -40% 0; } }

.divisor-oro { display: flex; align-items: center; gap: 14px; width: min(78vw, 420px); }
.divisor-oro span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--oro)); }
.divisor-oro span:last-child { background: linear-gradient(90deg, var(--oro), transparent); }
.divisor-rama { width: 84px; height: auto; flex: none; }

.portada-nombres {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: .3em;
  font-family: var(--f-display);
  font-size: clamp(3.1rem, 2rem + 6vw, 6.4rem);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.portada-nombres .amp { font-size: .8em; padding-inline: .05em; }
.portada-fecha {
  display: flex; gap: .6em; align-items: center;
  font-family: var(--f-display); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
}
.portada-fecha i { color: var(--oro); font-style: normal; }
.portada-lugar { font-family: var(--f-ui); font-size: .74rem; letter-spacing: .32em; text-transform: uppercase; color: var(--oro-claro); }

.baja {
  margin-top: clamp(14px, 4vh, 40px);
  display: grid; justify-items: center; gap: 6px;
  color: var(--marfil); text-decoration: none;
  font-family: var(--f-ui); font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; opacity: .8;
}
.baja svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; animation: flota 2.2s ease-in-out infinite; }
@keyframes flota { 50% { transform: translateY(6px); } }

/* Secuencia de entrada de la portada */
.js .portada-contenido > * { opacity: 0; transform: translateY(14px); }
.listo .portada-contenido > * { opacity: 1; transform: none; transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.listo .portada-contenido > :nth-child(2) { transition-delay: .15s; }
.listo .portada-contenido > :nth-child(3) { transition-delay: .55s; }
.listo .portada-contenido > :nth-child(4) { transition-delay: .8s; }
.listo .portada-contenido > :nth-child(5) { transition-delay: 1.05s; }
.listo .portada-contenido > :nth-child(6) { transition-delay: 1.2s; }
.listo .portada-contenido > :nth-child(7) { transition-delay: 1.6s; }
.divisor-oro span { transform: scaleX(0); transition: transform 1.4s cubic-bezier(.6, 0, .2, 1) .9s; }
.divisor-oro span:first-child { transform-origin: right; }
.divisor-oro span:last-child { transform-origin: left; }
.listo .divisor-oro span, html:not(.js) .divisor-oro span { transform: scaleX(1); }

/* ================= FOTO + CANCIÓN ================= */
.foto-cancion {
  position: relative;
  background: linear-gradient(180deg, var(--noche-hondo) 0 50%, var(--marfil) 50% 100%);
  margin-top: -70px;
  padding-bottom: 24px;
  display: grid; justify-items: center;
}
.foto {
  margin: 0; width: 100%; max-width: 1200px;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 9%, 100% 100%, 0 91%);
  background: var(--noche);
}
.foto img {
  width: 100%; height: 118%; object-fit: cover; object-position: 50% 40%;
  transform: translate3d(0, var(--parallax, -6%), 0);
  will-change: transform;
}
@media (max-width: 640px) { .foto { aspect-ratio: 4 / 3; clip-path: polygon(0 0, 100% 6%, 100% 100%, 0 94%); } .foto img { object-position: 52% 50%; } }

.reproductor {
  position: relative; z-index: 2;
  margin-top: clamp(-70px, -8vw, -46px);
  width: min(100% - 2 * var(--gutter), 420px);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 16px 22px 16px 16px;
  border-radius: 999px;
  background: linear-gradient(160deg, #0d2280, var(--noche-hondo));
  color: var(--marfil);
  box-shadow: 0 0 0 1.5px var(--oro), 0 0 0 5px rgba(7, 21, 79, .9), 0 22px 40px -18px rgba(0, 0, 0, .6);
}
.rep-boton {
  width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: var(--marfil); color: var(--noche);
  transition: transform .2s ease, background .2s ease;
}
.rep-boton:hover { transform: scale(1.06); background: #fff; }
.rep-boton svg { width: 24px; height: 24px; }
.rep-boton .ico-pausa, .sonando .rep-boton .ico-play { display: none; }
.sonando .rep-boton .ico-pausa { display: block; }
.rep-info { min-width: 0; }
.rep-titulo { font-family: var(--f-display); font-size: 1.35rem; line-height: 1.1; }
.rep-artista { font-family: var(--f-ui); font-size: .72rem; letter-spacing: .08em; opacity: .75; margin-bottom: 8px; }
.rep-barra { position: relative; height: 4px; border-radius: 4px; background: rgba(246, 242, 234, .22); cursor: pointer; }
.rep-barra::before { content: ''; position: absolute; inset: -10px 0; } /* área táctil más grande */
.rep-progreso { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--oro), var(--oro-claro)); }
.rep-progreso::after { content: ''; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--oro-claro); }
.rep-tiempo { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--f-ui); font-size: .66rem; opacity: .65; font-variant-numeric: tabular-nums; }
.rep-ondas { display: flex; gap: 3px; align-items: flex-end; height: 22px; }
.rep-ondas i { width: 3px; height: 30%; background: var(--oro); border-radius: 2px; }
.sonando .rep-ondas i { animation: onda 1s ease-in-out infinite; }
.rep-ondas i:nth-child(2) { animation-delay: .2s; } .rep-ondas i:nth-child(3) { animation-delay: .4s; } .rep-ondas i:nth-child(4) { animation-delay: .1s; }
@keyframes onda { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.rep-error .rep-boton { opacity: .4; cursor: not-allowed; }
.dale-play { margin-top: 16px; font-family: var(--f-texto); font-style: italic; color: var(--tinta-suave); font-size: 1.05rem; }

/* ================= BIENVENIDA ================= */
.bienvenida { position: relative; padding-block: clamp(48px, 8vw, 96px) clamp(56px, 9vw, 110px); text-align: center; overflow: hidden; }
.cita { font-size: clamp(1.25rem, 1.05rem + .9vw, 1.6rem); line-height: 1.5; font-style: italic; }
.bendicion { margin-top: 28px; font-family: var(--f-ui); font-weight: 600; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; }
.padres { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px; margin-top: 52px; }
.padres-grupo { display: grid; gap: 4px; }
.padres-grupo p { font-size: 1.18rem; }
.eti { font-family: var(--f-ui); font-weight: 500; font-size: .74rem; letter-spacing: .3em; text-transform: uppercase; color: var(--oro); margin-bottom: 10px; }
.y { font-family: var(--f-script); color: var(--oro); font-size: 1.25em; }
.cruz { color: var(--oro); }
.rama-deco { position: absolute; width: clamp(140px, 22vw, 230px); height: auto; color: var(--oro); opacity: .9; pointer-events: none; }
.rama-izq { left: -30px; top: 24px; transform: rotate(-12deg); }
.rama-final { position: absolute; right: clamp(-30px, -2vw, 0px); bottom: clamp(10px, 3vw, 40px); width: clamp(170px, 24vw, 300px); height: auto; pointer-events: none; }

/* ================= FECHA ================= */
.fecha { padding-block: clamp(56px, 9vw, 110px); text-align: center; background: linear-gradient(180deg, var(--marfil), #f1ebdf); }
.nombres-grandes {
  font-family: var(--f-display); text-transform: uppercase; color: var(--oro);
  font-size: clamp(3rem, 2rem + 5vw, 5.4rem); line-height: 1;
  display: flex; flex-direction: column; align-items: center;
}
.nombres-grandes .amp { font-size: .7em; line-height: 1.1; }
.intro { margin-top: 22px; }
.calendario-fecha { margin: 46px auto 0; display: grid; justify-items: center; gap: 4px; color: var(--tinta); }
.cf-mes { font-family: var(--f-display); font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem); line-height: 1; }
.cf-fila { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.cf-lado { font-family: var(--f-display); font-size: 1.5rem; padding: 6px 18px; border-block: 1.5px solid var(--tinta); min-width: 110px; }
.cf-dia { font-family: var(--f-display); font-size: clamp(4.4rem, 3rem + 4vw, 6rem); line-height: .9; font-variant-numeric: tabular-nums; }
.cuenta {
  margin: 48px auto 0; max-width: 620px; padding-inline: var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.cuenta-celda { display: grid; justify-items: center; gap: 4px; position: relative; }
.cuenta-celda + .cuenta-celda::before { content: ':'; position: absolute; left: -8px; top: .15em; font-family: var(--f-display); font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); color: var(--oro); line-height: 1; transform: translateX(-50%); }
.cuenta-num { font-family: var(--f-display); font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.cuenta-eti { font-family: var(--f-ui); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--tinta-suave); }
.cuenta-fin { margin-top: 40px; font-family: var(--f-display); font-size: 2.4rem; color: var(--oro); }
.acciones { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-inline: var(--gutter); }

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--noche);
  background: var(--noche); color: var(--marfil);
  font-family: var(--f-ui); font-size: .86rem; font-weight: 500; letter-spacing: .02em; text-decoration: none;
  cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.boton svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.boton:hover { transform: translateY(-2px); box-shadow: var(--sombra); }
.boton-claro { background: transparent; color: var(--noche); }
.boton-claro:hover { background: var(--noche); color: var(--marfil); }
.boton-chico { padding: 9px 16px; font-size: .8rem; }
.boton-grande { width: 100%; padding: 16px 22px; font-size: 1rem; }
.boton[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ================= TÍTULOS DE SECCIÓN ================= */
.titulo-seccion { display: grid; justify-items: center; gap: 8px; text-align: center; margin-bottom: clamp(36px, 6vw, 60px); }
.titulo-seccion h2, .titulo-medio { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(2.4rem, 1.7rem + 3vw, 3.8rem); line-height: 1; letter-spacing: .01em; }
.titulo-medio { font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); }
.mini-rama { width: 54px; height: 26px; color: var(--oro); }
img.mini-rama { width: 76px; height: auto; }

/* ================= EL GRAN DÍA ================= */
.gran-dia { padding-block: clamp(64px, 10vw, 120px); background: var(--arena); position: relative; }
.lugares { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(20px, 3vw, 32px); }
.lugar {
  display: grid; justify-items: center; gap: 6px; text-align: center;
  padding: 36px 24px 30px; border-radius: 22px;
  background: var(--marfil);
  box-shadow: var(--sombra);
}
.lugar-ico { width: 82px; height: 82px; border-radius: 50%; display: grid; place-items: center; background: var(--noche); color: var(--marfil); margin-bottom: 10px; box-shadow: 0 0 0 5px var(--marfil), 0 0 0 6px var(--linea); }
.lugar-ico svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.lugar-hora { font-family: var(--f-ui); font-weight: 600; font-size: .78rem; letter-spacing: .22em; color: var(--oro); }
.lugar h3 { font-family: var(--f-display); text-transform: uppercase; font-size: 2.2rem; line-height: 1; }
.lugar-nombre { font-weight: 600; margin-top: 6px; }
.lugar-dir { color: var(--tinta-suave); font-size: 1.02rem; line-height: 1.45; }
.lugar-botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }

/* ================= ITINERARIO ================= */
.itinerario { position: relative; padding-block: 0 clamp(64px, 10vw, 120px); background: var(--arena); overflow: hidden; }
.linea { --progreso: 0; position: relative; list-style: none; margin: 0 auto; padding: 0; max-width: 760px; display: grid; gap: 26px; }
.linea::before, .linea::after { content: ''; position: absolute; top: 10px; bottom: 10px; left: 32px; width: 2px; background: var(--linea); opacity: .35; }
.linea::after { opacity: 1; background: var(--oro); transform-origin: top; transform: scaleY(var(--progreso)); }
.linea-item { position: relative; z-index: 1; display: grid; grid-template-columns: 66px 1fr; align-items: center; gap: 18px; }
.li-ico { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: var(--noche); color: var(--marfil); box-shadow: 0 0 0 6px var(--arena); }
.li-ico svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.li-txt { display: grid; gap: 0; min-width: 0; }
.li-txt time { font-family: var(--f-ui); font-weight: 600; font-size: .8rem; letter-spacing: .16em; color: var(--oro); font-variant-numeric: tabular-nums; }
.li-txt span { font-family: var(--f-display); font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.2rem); line-height: 1.1; text-transform: uppercase; }

@media (min-width: 820px) {
  .linea::before, .linea::after { left: 50%; margin-left: -1px; }
  .linea-item { grid-template-columns: 1fr 66px 1fr; gap: 28px; }
  .linea-item .li-ico { grid-column: 2; grid-row: 1; }
  .linea-item .li-txt { grid-column: 3; grid-row: 1; }
  .linea-item:nth-child(even) .li-txt { grid-column: 1; text-align: right; }
}

/* ================= DETALLES ================= */
.detalles { padding-block: clamp(64px, 10vw, 120px) clamp(90px, 12vw, 150px); text-align: center; }
.adultos p { margin-top: 18px; }
.divisor-linea { height: 1px; margin: clamp(48px, 8vw, 80px) auto; width: min(70%, 420px); background: linear-gradient(90deg, transparent, var(--oro), transparent); }
.etiqueta-script { font-family: var(--f-script); font-size: clamp(2.4rem, 2rem + 1.5vw, 3rem); line-height: 1.2; margin-top: 6px; }
.vest-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 36px; }
.vest { display: grid; justify-items: center; gap: 4px; }
.vest-ico { width: 84px; height: 84px; margin-bottom: 8px; }
.vest h3 { font-family: var(--f-ui); font-weight: 600; font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; }
.vest .nota { color: var(--tinta-suave); font-size: 1.02rem; font-style: italic; max-width: 30ch; }

/* ================= REGALOS ================= */
.regalos { position: relative; background: var(--noche); color: var(--marfil); padding-block: clamp(70px, 10vw, 120px); text-align: center; }
.ola { position: absolute; left: 0; width: 100%; height: clamp(40px, 6vw, 90px); top: -1px; fill: var(--marfil); }
.ola-abajo { top: auto; bottom: -1px; }
.titulo-seccion.claro h2 { color: var(--marfil); }
.regalo-ico { width: 62px; height: 62px; border-radius: 50%; border: 1.5px solid var(--oro); display: grid; place-items: center; color: var(--oro-claro); }
.regalo-ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }
.regalos-intro, .regalos-cofre { max-width: 560px; margin-inline: auto; opacity: .92; }
.regalos-cofre { font-style: italic; }
.cuentas { margin: 44px auto; max-width: 820px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.cuenta-banco { display: grid; justify-items: center; gap: 4px; padding: 28px 22px 24px; border-radius: 20px; background: var(--marfil); color: var(--tinta); }
.banco { font-family: var(--f-ui); font-weight: 600; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--oro); }
.cuenta-banco h3 { font-family: var(--f-display); font-size: 2rem; text-transform: uppercase; line-height: 1.05; }
.tipo { font-family: var(--f-ui); font-size: .8rem; color: var(--tinta-suave); }
.numero {
  margin-top: 14px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 18px; border-radius: 999px; border: 1px dashed var(--oro); background: var(--arena); cursor: pointer;
  font-family: var(--f-ui); font-size: 1.02rem; letter-spacing: .06em; font-variant-numeric: tabular-nums;
  transition: background .2s ease;
}
.numero:hover { background: #e3dac9; }
.numero svg { width: 20px; height: 20px; fill: none; stroke: var(--noche); stroke-width: 1.5; }
.numero.copiado { border-style: solid; }

/* ================= RSVP ================= */
.rsvp { padding-block: clamp(80px, 11vw, 140px) clamp(60px, 9vw, 110px); }
.rsvp-intro { text-align: center; display: grid; gap: 14px; }
.rsvp-tarjeta {
  margin-top: 36px; padding: clamp(24px, 5vw, 40px);
  border-radius: 24px; background: #fffdf8; box-shadow: var(--sombra), 0 0 0 1px rgba(198, 154, 72, .3);
  font-family: var(--f-ui); font-size: 1rem;
}
.rsvp-paso { display: grid; gap: 14px; }
.rsvp-label { font-family: var(--f-ui); font-weight: 600; font-size: .9rem; color: var(--tinta); }
.opcional { font-weight: 400; color: var(--tinta-suave); }
.buscador { position: relative; }
.buscador svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; fill: none; stroke: var(--tinta-suave); stroke-width: 1.6; pointer-events: none; }
.buscador input, textarea {
  width: 100%; border: 1.5px solid #d9cfbd; border-radius: 14px; background: var(--marfil); color: var(--tinta);
  font: 400 1.05rem/1.4 var(--f-ui); padding: 15px 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.buscador input { padding-left: 46px; font-size: 1.1rem; }
.buscador input:focus, textarea:focus { outline: none; border-color: var(--oro); box-shadow: 0 0 0 4px rgba(198, 154, 72, .2); }
textarea { resize: vertical; min-height: 90px; }
.resultados { list-style: none; margin: 0; padding: 6px; border-radius: 14px; background: var(--marfil); border: 1px solid #e2d8c6; display: grid; gap: 2px; }
.resultados li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 14px; border-radius: 10px; cursor: pointer; font-size: 1.05rem;
}
.resultados li mark { background: transparent; color: var(--tinta); font-weight: 600; text-decoration: underline; text-decoration-color: var(--oro); text-underline-offset: 3px; }
.resultados li small { font-size: .78rem; color: var(--tinta-suave); white-space: nowrap; }
.resultados li[aria-selected="true"], .resultados li:hover { background: var(--noche); color: var(--marfil); }
.resultados li[aria-selected="true"] mark, .resultados li:hover mark { color: var(--marfil); }
.resultados li[aria-selected="true"] small, .resultados li:hover small { color: var(--oro-claro); }
.rsvp-ayuda { font-size: .92rem; color: var(--tinta-suave); }

.rsvp-quien { text-align: center; padding-bottom: 18px; border-bottom: 1px solid #ebe2d1; display: grid; gap: 2px; }
.rsvp-hola { font-family: var(--f-texto); font-style: italic; font-size: 1.2rem; color: var(--tinta-suave); }
.rsvp-nombre { font-family: var(--f-display); font-size: clamp(2rem, 1.6rem + 2vw, 2.6rem); line-height: 1.05; text-transform: uppercase; }
.rsvp-cupo { font-size: .92rem; color: var(--tinta-suave); }
.rsvp-cupo strong { color: var(--oro); }
.enlace { justify-self: center; background: none; border: 0; padding: 6px; cursor: pointer; font-family: var(--f-ui); font-size: .84rem; color: var(--tinta-suave); text-decoration: underline; text-underline-offset: 3px; }

.opciones { border: 0; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.opciones legend { font-family: var(--f-texto); font-size: 1.3rem; font-weight: 500; margin-bottom: 10px; padding: 0; }
.opcion { position: relative; display: block; cursor: pointer; }
.opcion input { position: absolute; opacity: 0; inset: 0; }
.opcion span {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 16px; border-radius: 14px; border: 1.5px solid #d9cfbd; background: var(--marfil);
  transition: border-color .2s ease, background .2s ease;
}
.opcion span::before { content: ''; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--tinta-suave); flex: none; transition: all .2s ease; }
.opcion input:checked + span { border-color: var(--noche); background: #eef0fa; }
.opcion input:checked + span::before { border: 6px solid var(--noche); }
.opcion input:focus-visible + span { outline: 2px solid var(--oro); outline-offset: 2px; }

.cuantos { display: grid; gap: 10px; justify-items: start; }
.contador { display: inline-flex; align-items: center; border: 1.5px solid #d9cfbd; border-radius: 999px; overflow: hidden; background: var(--marfil); }
.contador button { width: 50px; height: 48px; border: 0; background: transparent; cursor: pointer; font-size: 1.4rem; color: var(--noche); }
.contador button:disabled { opacity: .3; cursor: default; }
.contador output { min-width: 44px; text-align: center; font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.rsvp-error { color: #a12c2c; font-size: .92rem; }
.modo-demo { font-size: .78rem; color: var(--tinta-suave); text-align: center; padding: 8px 12px; border-radius: 10px; background: var(--arena); }

.gracias { text-align: center; justify-items: center; }
.gracias-ico { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: var(--noche); color: var(--oro-claro); }
.gracias-ico svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gracias h3, #paso-cerrado h3 { font-family: var(--f-display); text-transform: uppercase; font-size: 2.2rem; line-height: 1.05; }
.gracias p { max-width: 40ch; color: var(--tinta-suave); }
.pases { margin-top: 30px; text-align: center; font-style: italic; color: var(--tinta-suave); }

/* ================= PIE ================= */
.pie { background: var(--noche); color: var(--marfil); padding: 60px var(--gutter) calc(60px + env(safe-area-inset-bottom, 0px)); display: grid; justify-items: center; gap: 6px; text-align: center; }
.pie-mono { width: 80px; margin-bottom: 8px; }
.pie-nombres { font-family: var(--f-display); text-transform: uppercase; font-size: 2rem; }
.pie-fecha { font-family: var(--f-ui); letter-spacing: .3em; font-size: .78rem; color: var(--oro-claro); }

/* ================= FLOTANTES ================= */
.musica-flotante {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 20;
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--noche); box-shadow: 0 0 0 1.5px var(--oro), 0 10px 24px -8px rgba(0, 0, 0, .5);
  display: grid; place-items: center;
}
.mf-ondas { display: flex; gap: 3px; align-items: flex-end; height: 20px; }
.mf-ondas i { width: 3px; background: var(--oro-claro); border-radius: 2px; height: 40%; }
.sonando .mf-ondas i { animation: onda 1s ease-in-out infinite; }
.mf-ondas i:nth-child(2) { animation-delay: .25s; } .mf-ondas i:nth-child(3) { animation-delay: .5s; }
.aviso {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 999px; background: var(--noche-hondo); color: var(--marfil);
  font-family: var(--f-ui); font-size: .9rem; box-shadow: 0 0 0 1px var(--oro);
  transition: opacity .3s ease, transform .3s ease;
}
.aviso.visible { opacity: 1; transform: translate(-50%, 0); }

/* ================= MÓVIL ================= */
@media (max-width: 520px) {
  .reproductor { gap: 12px; padding: 12px 18px 12px 12px; }
  .rep-boton { width: 48px; height: 48px; }
  .rep-ondas { display: none; }
  .cf-lado { font-size: 1.2rem; min-width: 0; padding: 5px 10px; }
  .cf-fila { gap: 12px; }
  .cuenta { gap: 4px; }
  .cuenta-celda + .cuenta-celda::before { left: -3px; }
  .cuenta-eti { font-size: .58rem; letter-spacing: .14em; }
  .rama-izq { width: 110px; left: -40px; top: 6px; opacity: .5; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .revela.fuera, .js .portada-contenido > * { opacity: 1; transform: none; }
  .divisor-oro span { transform: none; }
  .foto img { transform: none; height: 100%; }
}

/* ================= CAMBIOS NOV-2026 ================= */
.itinerario { padding-bottom: clamp(170px, 16vw, 200px); }
@media (min-width: 820px) { .itinerario { padding-bottom: clamp(64px, 10vw, 120px); } }

.colores { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; font-family: var(--f-ui); font-size: .82rem; }
.colores li { display: grid; justify-items: center; gap: 6px; }
.muestra { width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(12, 26, 82, .18), 0 2px 6px -2px rgba(12, 26, 82, .3); }

.campo { width: 100%; border: 1.5px solid #d9cfbd; border-radius: 14px; background: var(--marfil); color: var(--tinta); font: 400 1.05rem/1.4 var(--f-ui); padding: 14px 16px; }
.campo:focus { outline: none; border-color: var(--oro); box-shadow: 0 0 0 4px rgba(198, 154, 72, .2); }

.miembros { border: 0; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.miembros legend { font-family: var(--f-texto); font-size: 1.3rem; font-weight: 500; padding: 0; margin-bottom: 2px; }
.lista-miembros { display: grid; gap: 10px; margin-top: 4px; }
.miembro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 12px 14px; border-radius: 14px; background: var(--marfil); border: 1.5px solid #e2d8c6; }
.miembro-nombre { font-weight: 600; min-width: 0; }
.miembro-opciones { display: inline-flex; border-radius: 999px; padding: 3px; background: #e9e1d2; }
.miembro-opciones label { position: relative; cursor: pointer; }
.miembro-opciones input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.miembro-opciones span { display: block; padding: 8px 14px; border-radius: 999px; font-size: .86rem; color: var(--tinta-suave); transition: background .2s ease, color .2s ease; white-space: nowrap; }
.miembro-opciones input[value="si"]:checked + span { background: var(--noche); color: var(--marfil); }
.miembro-opciones input[value="no"]:checked + span { background: #fff; color: var(--tinta); box-shadow: 0 1px 3px rgba(12, 26, 82, .2); }
.miembro-opciones input:focus-visible + span { outline: 2px solid var(--oro); outline-offset: 2px; }
.todos { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }

.info { padding-block: clamp(64px, 9vw, 110px); background: var(--arena); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(28px, 4vw, 40px); text-align: center; }
.info-item { display: grid; justify-items: center; align-content: start; gap: 8px; }
.info-ico { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: var(--noche); color: var(--marfil); margin-bottom: 4px; }
.info-ico svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.info-item h3 { font-family: var(--f-ui); font-weight: 600; font-size: .8rem; letter-spacing: .28em; text-transform: uppercase; }
.info-item p { max-width: 32ch; }
.hashtag { margin-top: 4px; border: 1px dashed var(--oro); background: var(--marfil); border-radius: 999px; padding: 9px 18px; cursor: pointer; font-family: var(--f-ui); font-weight: 600; font-size: .95rem; color: var(--noche); }
.hashtag:hover { background: #fff; }

.logo-titulo { width: 52px; height: auto; }

/* ================= SOBRE DE ENTRADA (nov-2026) ================= */
:root { --papel: #f3ecdd; --papel-sombra: #e4d9c3; --forro: #0b1a63; }
.sobre-capa { display: none; }
.js .sobre-capa {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: env(safe-area-inset-top, 0px) 16px env(safe-area-inset-bottom, 0px);
  background:
    radial-gradient(90% 60% at 50% 10%, #16309a 0%, transparent 65%),
    linear-gradient(180deg, var(--noche-2), var(--noche) 55%, var(--noche-hondo));
  overflow: hidden;
  transition: opacity .9s ease;
}
html.con-sobre, html.con-sobre body { overflow: hidden; }
.sobre-escena { display: grid; justify-items: center; gap: clamp(20px, 4vh, 34px); perspective: 1400px; width: 100%; }
.sobre-nombres { font-family: var(--f-display); text-transform: uppercase; color: var(--marfil); font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.6rem); letter-spacing: .06em; line-height: 1; }
.sobre-nombres .amp { font-size: .85em; }
.sobre-ayuda { font-family: var(--f-ui); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--oro-claro); animation: respira 2.4s ease-in-out infinite; }
@keyframes respira { 50% { opacity: .45; } }

.sobre {
  position: relative; width: min(100%, 520px); aspect-ratio: 1.5;
  transform-style: preserve-3d;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45));
  transition: transform 1s cubic-bezier(.5, 0, .2, 1);
}
.sobre > div { position: absolute; border-radius: 6px; }
/* interior: forro azul con rombos dorados finos */
.sobre-fondo {
  inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(236, 210, 154, .14) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(-45deg, rgba(236, 210, 154, .14) 0 1px, transparent 1px 18px),
    var(--forro);
}
.sobre-carta {
  inset: 7% 6% 6%; z-index: 2;
  background: #fffdf8; border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(198, 154, 72, .45) inset, 0 -4px 14px rgba(0, 0, 0, .15);
  display: grid; justify-items: center; align-content: start; gap: 4px; padding-top: 8%;
  transition: transform 1s cubic-bezier(.3, .7, .2, 1);
}
.sobre-carta img { width: 13%; height: auto; }
.carta-eti { font-family: var(--f-ui); font-size: clamp(.56rem, .5rem + .3vw, .7rem); letter-spacing: .3em; text-transform: uppercase; color: var(--oro); margin-top: 4px; }
.carta-fecha { font-family: var(--f-display); color: var(--tinta); font-size: clamp(1rem, .8rem + 1vw, 1.4rem); letter-spacing: .12em; }
/* bolsillo delantero con pliegues */
.sobre-frente {
  inset: 0; z-index: 3;
  background:
    linear-gradient(to top right, transparent 49.6%, rgba(120, 90, 40, .12) 50%, transparent 50.6%) left / 50% 100% no-repeat,
    linear-gradient(to top left, transparent 49.6%, rgba(120, 90, 40, .12) 50%, transparent 50.6%) right / 50% 100% no-repeat,
    linear-gradient(170deg, #f7f1e4, var(--papel) 60%, var(--papel-sombra));
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px rgba(198, 154, 72, .35);
}
.sobre-solapa {
  left: 0; top: 0; width: 100%; height: 60%; z-index: 4;
  background: linear-gradient(180deg, #faf5ea, var(--papel) 70%, #e9dfca);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0;
  transition: transform .8s cubic-bezier(.55, 0, .3, 1), background .01s linear .4s;
  backface-visibility: visible;
}
.sobre-solapa::after { content: ''; position: absolute; inset: 0; clip-path: inherit; box-shadow: inset 0 -1px 0 rgba(198, 154, 72, .5); }
.sello {
  position: absolute; z-index: 5; left: 50%; top: 60%;
  width: clamp(84px, 22vw, 118px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%;
  display: grid; place-items: center;
  transition: transform .45s cubic-bezier(.5, 0, .3, 1.4), opacity .45s ease;
  animation: llama 2.4s ease-in-out infinite;
}
.sello-cera { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45)); }
.sello-logo { position: relative; width: 34%; height: auto; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .5)) drop-shadow(0 -1px 0 rgba(255, 255, 255, .15)); }
.sello:hover { transform: translate(-50%, -50%) scale(1.05); }
.sello:focus-visible { outline: 2px solid var(--oro-claro); outline-offset: 6px; }
@keyframes llama { 0%, 100% { box-shadow: 0 0 0 0 rgba(236, 210, 154, 0); } 50% { box-shadow: 0 0 0 10px rgba(236, 210, 154, .18); } }

/* secuencia de apertura */
.rompe .sello { animation: none; transform: translate(-50%, -50%) scale(.7) rotate(-14deg); opacity: 0; pointer-events: none; }
.rompe .sobre-ayuda { opacity: 0; animation: none; transition: opacity .3s; }
.abre .sobre-solapa { transform: rotateX(180deg); background: var(--forro); }
.atras .sobre-solapa { z-index: 1; }
.sube .sobre-carta { transform: translateY(-58%); }
.fuera { opacity: 0; pointer-events: none; }
.fuera .sobre { transform: scale(1.12) translateY(-4%); }

@media (max-width: 520px) {
  .sobre { aspect-ratio: 1.42; }
  .sube .sobre-carta { transform: translateY(-52%); }
}
@media (prefers-reduced-motion: reduce) {
  .js .sobre-capa { transition: opacity .3s ease !important; }
}
