/* Tarjeta Convida · Colección Celebraciones · componentes compartidos (vienen de la Colección XV años).
   Todo vive bajo body.xv para no tocar otras invitaciones. Cada concepto define sus variables:
   --fondo --papel --tinta --tinta-2 --acento --acento-2 --suave --linea --g1 --g2 --g3
   --boton --boton-tinta --script --sans (y opcionales --sobre, --titulo-peso).
   Composición de cada estructura: _bases/<base>.css. Arte y gesto de cada concepto: <slug>/concepto.css. */

.xv, .xv *, .xv *::before, .xv *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.cerrado, html.xv-visor-abierto { overflow: hidden; }
body.xv {
	margin: 0; color: var(--tinta); background: var(--fondo);
	font-family: var(--sans), system-ui, sans-serif; font-size: 17px; line-height: 1.6;
	-webkit-font-smoothing: antialiased; overflow-x: clip;
}
:where(.xv) img { max-width: 100%; display: block; }
:where(.xv) :is(h1, h2, h3, p, figure, ul, ol) { margin: 0; }
:where(.xv) :is(ul, ol) { padding: 0; list-style: none; }
:where(.xv) a { color: inherit; }
:where(.xv) button { font: inherit; color: inherit; }
:where(.xv) [hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.xv :focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; border-radius: 4px; }

/* ---------------------------------------------------------------- cielo: degradado continuo de toda la página */
.xv-cielo { position: fixed; inset: 0; z-index: -2; pointer-events: none; background: var(--g1); }
.xv-cielo i { position: absolute; inset: -10%; display: block; }
.xv-cielo .c1 { background: radial-gradient(120% 80% at 15% 10%, var(--g2) 0%, transparent 60%), radial-gradient(90% 70% at 90% 80%, var(--g3) 0%, transparent 65%); opacity: calc(1 - var(--avance, 0) * .7); }
.xv-cielo .c2 { background: linear-gradient(180deg, transparent 0%, var(--g2) 100%); opacity: calc(var(--avance, 0) * .9); }
.xv-cielo .c3 { background: radial-gradient(70% 60% at 50% 110%, var(--g3) 0%, transparent 70%); opacity: calc(var(--avance, 0) * var(--avance, 0)); }
.xv-particulas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }

/* ---------------------------------------------------------------- tipografía */
.xv-script { font-family: var(--script), cursive; font-weight: 400; line-height: 1.05; letter-spacing: 0; }
.xv-kicker { font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--tinta-2); }
.xv-titulo { font-family: var(--sans); font-weight: var(--titulo-peso, 700); font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.04; letter-spacing: -.02em; }
.xv-titulo .xv-script { font-weight: 400; letter-spacing: 0; color: var(--acento); font-size: 1.25em; }
.xv-texto { font-size: 1.06rem; color: var(--tinta-2); max-width: 36em; }
.xv-texto-grande { font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.45; color: var(--tinta); max-width: 26em; font-weight: 400; }
.xv-nombre { font-family: var(--script), cursive; font-weight: 400; line-height: .95; white-space: nowrap; }
html[data-largo="m"] .xv-nombre { --n: .82; }
html[data-largo="l"] .xv-nombre { --n: .64; }
html[data-largo="xl"] .xv-nombre { --n: .5; white-space: normal; }

/* Frases por líneas (xv.js las parte): máscara corta, todo legible en menos de un segundo. */
[data-xv-lineas] .xv-l { display: block; overflow: hidden; padding-bottom: .08em; }
[data-xv-lineas] .xv-l > span { display: block; transform: translateY(105%); transition: transform .75s var(--curva, cubic-bezier(.23,1,.32,1)) calc(var(--i, 0) * 70ms); }
[data-xv-lineas].visto .xv-l > span { transform: none; }
[data-xv-entra] { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.23,1,.32,1), transform .8s cubic-bezier(.23,1,.32,1); transition-delay: calc(var(--d, 0) * 1ms); }
[data-xv-entra].visto { opacity: 1; transform: none; }
.xv-mascara { clip-path: inset(0 100% 0 0); transition: clip-path 1s cubic-bezier(.77,0,.175,1) calc(var(--d, 0) * 1ms); }
.visto .xv-mascara, .xv-mascara.visto { clip-path: inset(0 0 0 0); }

/* ---------------------------------------------------------------- secciones */
.xv-sec { position: relative; padding: clamp(80px, 12vh, 140px) clamp(20px, 6vw, 96px); }
.xv-sec:not(.en-vista) *, .xv-sec:not(.en-vista) *::before, .xv-sec:not(.en-vista) *::after { animation-play-state: paused !important; }
.xv-cab { display: grid; gap: 14px; margin-bottom: clamp(28px, 5vh, 56px); }
.xv-centro { text-align: center; justify-items: center; margin-inline: auto; }
.xv-ancho { max-width: 1180px; margin-inline: auto; }
.xv-superficie { background: color-mix(in srgb, var(--papel) 92%, transparent); border: 1px solid var(--linea); border-radius: var(--radio, 18px); }

/* ---------------------------------------------------------------- botones y microinteracciones */
.xv-boton {
	--bx: 50%; --by: 50%;
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 12px 24px; border: 1px solid var(--boton); border-radius: var(--boton-radio, 999px);
	background: var(--boton); color: var(--boton-tinta); text-decoration: none; cursor: pointer; isolation: isolate; overflow: hidden;
	font-family: var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: .02em;
	transition: transform .35s cubic-bezier(.23,1,.32,1), box-shadow .35s, background-color .3s, color .3s;
}
.xv-boton::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s; background: radial-gradient(120px circle at var(--bx) var(--by), color-mix(in srgb, #fff 32%, transparent), transparent 70%); }
.xv-boton:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--boton) 80%, #000); }
.xv-boton:hover::before { opacity: 1; }
.xv-boton:active { transform: translateY(0) scale(.97); transition-duration: .1s; }
.xv-boton:disabled { opacity: .6; cursor: progress; transform: none; }
.xv-boton-suave { background: transparent; color: var(--tinta); border-color: color-mix(in srgb, var(--tinta) 35%, transparent); }
.xv-boton-suave::before { background: radial-gradient(120px circle at var(--bx) var(--by), color-mix(in srgb, var(--acento) 18%, transparent), transparent 70%); }
.xv-boton-chico { min-height: 44px; padding: 8px 18px; font-size: .86rem; }
.xv-boton-grande { min-height: 56px; padding: 14px 34px; font-size: 1rem; }
.xv-boton svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.xv-boton.copiado { background: var(--acento); border-color: var(--acento); color: var(--boton-tinta); }
.xv-acciones { display: flex; flex-wrap: wrap; gap: 10px; }
.xv-centro .xv-acciones { justify-content: center; }

/* ---------------------------------------------------------------- entrada (el sobre del concepto) */
.xv-entrada {
	position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
	background: var(--sobre, var(--fondo)); color: var(--sobre-tinta, var(--tinta)); overflow: hidden;
}
.xv-entrada-arte { position: absolute; inset: 0; pointer-events: none; }
.xv-entrada-contenido { position: relative; display: grid; justify-items: center; gap: 14px; text-align: center; max-width: 560px; }
.xv-entrada .xv-monograma { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font-family: var(--script); font-size: 3.4rem; line-height: 1; color: var(--sobre-acento, var(--acento)); border: 1px solid currentColor; }
.xv-entrada-nombre { font-size: clamp(3.4rem, 12vw, 6.4rem); color: var(--sobre-tinta, var(--tinta)); padding: 0 .1em; }
.xv-entrada-para { font-size: .98rem; color: var(--sobre-tinta-2, var(--tinta-2)); }
.xv-entrada .xv-acciones { justify-content: center; margin-top: 8px; }
.xv-entrada .xv-boton-suave { color: var(--sobre-tinta, var(--tinta)); border-color: color-mix(in srgb, var(--sobre-tinta, var(--tinta)) 40%, transparent); }
html.sin-js .xv-entrada, html.quieto .xv-entrada-arte * { animation: none !important; }
html.sin-js .xv-entrada { display: none; }

/* ---------------------------------------------------------------- portada: escena de una pantalla (respaldo vh) */
.xv-portada { position: relative; min-height: 100vh; min-height: 100svh; }
.xv-portada[data-xv-tramo="fijo"] { min-height: 190vh; min-height: 190svh; }
.xv-escena { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.xv-evento { font-family: var(--sans); font-weight: 600; letter-spacing: .32em; text-transform: uppercase; font-size: clamp(.8rem, 1.3vw, 1rem); }
.xv-fecha-discreta { font-family: var(--sans); font-size: .9rem; letter-spacing: .14em; color: var(--tinta-2); }
.xv-pista { display: inline-grid; justify-items: center; gap: 8px; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--tinta-2); text-decoration: none; }
.xv-pista i { width: 1px; height: 46px; background: linear-gradient(currentColor, transparent); transform-origin: top; animation: xv-pista 2.2s cubic-bezier(.77,0,.175,1) infinite; }
@keyframes xv-pista { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Retrato y fotos de muestra: marcadores neutros, nunca un retrato inventado. */
.xv-foto { position: relative; overflow: hidden; background: var(--suave); }
.xv-foto img, .xv-foto .xv-ph { width: 100%; height: 100%; object-fit: cover; object-position: var(--foco, 50% 30%); }
.xv-ph {
	display: grid; place-items: end start; padding: 14px 16px; color: color-mix(in srgb, var(--tinta) 70%, transparent);
	background:
		radial-gradient(60% 50% at 50% 34%, color-mix(in srgb, var(--papel) 70%, transparent), transparent 70%),
		radial-gradient(70% 45% at 50% 100%, color-mix(in srgb, var(--acento) 30%, transparent), transparent 75%),
		linear-gradient(160deg, var(--suave), color-mix(in srgb, var(--acento-2) 45%, var(--suave)));
	font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-family: var(--sans);
}
.xv-ph::before { content: ""; position: absolute; left: 50%; top: 22%; width: 34%; aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%); background: color-mix(in srgb, var(--papel) 45%, transparent); }
.xv-ph::after { content: ""; position: absolute; left: 50%; top: 52%; width: 70%; height: 60%; border-radius: 48% 48% 0 0; transform: translateX(-50%); background: color-mix(in srgb, var(--papel) 35%, transparent); }
.xv-ph span { position: relative; z-index: 1; background: color-mix(in srgb, var(--papel) 75%, transparent); padding: 3px 8px; border-radius: 4px; }
.xv-ph-paisaje::before, .xv-ph-paisaje::after { display: none; }

/* ---------------------------------------------------------------- fecha y cuenta regresiva */
.xv-fecha-grande { font-family: var(--sans); font-weight: 700; line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.xv-cuenta { --tam: clamp(2.2rem, 5vw, 3.6rem); display: grid; gap: 14px; justify-items: inherit; }
.xv-cuenta-cifras { display: flex; flex-wrap: wrap; gap: clamp(14px, 3vw, 36px); justify-content: inherit; }
.xv-u { position: relative; display: grid; justify-items: center; gap: 6px; }
.xv-num { display: flex; font-family: var(--sans); font-weight: 600; font-size: var(--tam); line-height: 1; font-variant-numeric: tabular-nums lining-nums; color: var(--cifra, var(--tinta)); perspective: 400px; }
.xv-d { position: relative; display: inline-grid; width: 1ch; height: 1.08em; overflow: hidden; }
.xv-d .xv-v { grid-area: 1 / 1; display: block; text-align: center; backface-visibility: hidden; }
.xv-ue { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--tinta-2); }
.xv-cuenta-final { font-family: var(--script); font-size: clamp(2rem, 5vw, 3.2rem); color: var(--acento); }
.xv-cuenta-fin .xv-cuenta-cifras { display: none; }

/* rodillo: la cifra nueva sube desde abajo */
[data-xv-cuenta="rodillo"] .entra { animation: xv-rod-entra .6s cubic-bezier(.23,1,.32,1) both; }
[data-xv-cuenta="rodillo"] .sale { animation: xv-rod-sale .6s cubic-bezier(.23,1,.32,1) both; }
@keyframes xv-rod-entra { from { transform: translateY(100%); } }
@keyframes xv-rod-sale { to { transform: translateY(-100%); } }
/* rodillo con microexpansión (Pop de Autor) */
[data-xv-cuenta="rodillo"].xv-cuenta-pop .entra { animation: xv-rod-entra .55s cubic-bezier(.23,1,.32,1) both, xv-pop .55s ease-out both; }
@keyframes xv-pop { 40% { scale: 1.16; } }
/* fundido (con entrada escalonada por unidad) */
[data-xv-cuenta="fundido"] .entra { animation: xv-fun-entra .7s ease both; }
[data-xv-cuenta="fundido"] .sale { animation: xv-fun-sale .5s ease both; }
@keyframes xv-fun-entra { from { opacity: 0; filter: blur(3px); } }
@keyframes xv-fun-sale { to { opacity: 0; filter: blur(3px); } }
[data-xv-cuenta="fundido"] .xv-u { opacity: 0; transform: translateY(14px); transition: opacity .8s, transform .8s cubic-bezier(.23,1,.32,1); transition-delay: calc(var(--k) * 120ms); }
[data-xv-cuenta="fundido"].visto .xv-u { opacity: 1; transform: none; }
/* flip de láminas */
[data-xv-cuenta="flip"] .xv-d { width: 1.1ch; margin: 0 .04em; border-radius: .08em; background: var(--lamina, color-mix(in srgb, var(--papel) 14%, transparent)); box-shadow: inset 0 -1px 0 color-mix(in srgb, #000 30%, transparent); }
[data-xv-cuenta="flip"] .xv-d::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: color-mix(in srgb, #000 35%, transparent); }
[data-xv-cuenta="flip"] .entra { animation: xv-flip-entra .6s cubic-bezier(.3,.9,.4,1) both; transform-origin: 50% 50%; }
[data-xv-cuenta="flip"] .sale { animation: xv-flip-sale .3s ease-in both; transform-origin: 50% 50%; }
@keyframes xv-flip-entra { 0% { transform: rotateX(90deg); filter: brightness(1.6); } 100% { transform: none; } }
@keyframes xv-flip-sale { to { transform: rotateX(-90deg); filter: brightness(.6); } }
/* cubo */
[data-xv-cuenta="cubo"] .xv-d { overflow: visible; transform-style: preserve-3d; }
[data-xv-cuenta="cubo"] .entra { animation: xv-cubo-entra .65s cubic-bezier(.65,0,.35,1) both; transform-origin: 50% 50% -.5em; }
[data-xv-cuenta="cubo"] .sale { animation: xv-cubo-sale .65s cubic-bezier(.65,0,.35,1) both; transform-origin: 50% 50% -.5em; }
@keyframes xv-cubo-entra { from { transform: rotateX(-90deg); opacity: .2; } }
@keyframes xv-cubo-sale { to { transform: rotateX(90deg); opacity: 0; } }
/* profundidad */
[data-xv-cuenta="profundidad"] .entra { animation: xv-prof-entra .6s cubic-bezier(.23,1,.32,1) both; }
[data-xv-cuenta="profundidad"] .sale { animation: xv-prof-sale .45s ease both; }
@keyframes xv-prof-entra { from { transform: scale(1.45); opacity: 0; filter: blur(4px); } }
@keyframes xv-prof-sale { to { transform: scale(.6); opacity: 0; } }
/* página: los días pasan como hoja; el resto, fundido */
[data-xv-cuenta="pagina"] .xv-u-d .xv-d { overflow: visible; }
[data-xv-cuenta="pagina"] .xv-u-d .entra { animation: xv-pag-entra .9s cubic-bezier(.4,0,.2,1) both; transform-origin: 50% 0; }
[data-xv-cuenta="pagina"] .xv-u-d .sale { animation: xv-pag-sale .6s cubic-bezier(.4,0,.2,1) both; transform-origin: 50% 0; }
@keyframes xv-pag-entra { from { opacity: 0; } }
@keyframes xv-pag-sale { to { transform: rotateX(-100deg) translateY(-6px); opacity: 0; } }
[data-xv-cuenta="pagina"] :not(.xv-u-d) > .xv-num .entra, [data-xv-cuenta="pagina"] .xv-u:not(.xv-u-d) .entra { animation: xv-fun-entra .6s ease both; }
[data-xv-cuenta="pagina"] .xv-u:not(.xv-u-d) .sale { animation: xv-fun-sale .4s ease both; }
/* anillos finos */
[data-xv-cuenta="anillos"] .xv-u { width: calc(var(--tam) * 2.3); aspect-ratio: 1; place-content: center; }
[data-xv-cuenta="anillos"] .xv-anillo { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 1.2; }
[data-xv-cuenta="anillos"] .xv-anillo circle { stroke: color-mix(in srgb, var(--tinta) 16%, transparent); }
[data-xv-cuenta="anillos"] .xv-anillo .xv-anillo-v { stroke: var(--acento); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--f, 0) * 100); stroke-linecap: round; transition: stroke-dashoffset .9s cubic-bezier(.23,1,.32,1); }
[data-xv-cuenta="anillos"] .xv-num { font-size: calc(var(--tam) * .78); }
[data-xv-cuenta="anillos"] .entra { animation: xv-fun-entra .7s ease both; }
[data-xv-cuenta="anillos"] .sale { animation: xv-fun-sale .5s ease both; }
/* trazo: un trazo se dibuja al entrar; las cifras cambian con fundido */
[data-xv-cuenta="trazo"] .xv-u::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 1.45em; height: 1.5px; background: var(--acento); transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(.77,0,.175,1) calc(var(--k) * 160ms); }
[data-xv-cuenta="trazo"].visto .xv-u::after { transform: scaleX(1); }
[data-xv-cuenta="trazo"] .entra { animation: xv-fun-entra .7s ease both; }
[data-xv-cuenta="trazo"] .sale { animation: xv-fun-sale .5s ease both; }
/* luz: una franja de luz cruza las cifras una vez al entrar (capa encima, las cifras no se tocan); cambios con fundido */
[data-xv-cuenta="luz"] .xv-num { position: relative; overflow: hidden; }
[data-xv-cuenta="luz"] .xv-num::after { content: ""; position: absolute; inset: -10% -40%; background: linear-gradient(100deg, transparent 35%, color-mix(in srgb, var(--brillo, #fff) 70%, transparent) 50%, transparent 65%); mix-blend-mode: screen; transform: translateX(-100%); pointer-events: none; }
[data-xv-cuenta="luz"].visto .xv-num::after { animation: xv-barrido 2.2s cubic-bezier(.4,0,.2,1) calc(.2s + var(--k) * 180ms) 1 both; }
@keyframes xv-barrido { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
[data-xv-cuenta="luz"] .entra { animation: xv-fun-entra .7s ease both; }
[data-xv-cuenta="luz"] .sale { animation: xv-fun-sale .5s ease both; }
/* pulso mínimo al cambiar de día */
[data-xv-cuenta="pulso"] .entra { animation: xv-fun-entra .6s ease both; }
[data-xv-cuenta="pulso"] .sale { animation: xv-fun-sale .45s ease both; }
[data-xv-cuenta="pulso"] .xv-u.late .xv-num { animation: xv-late .9s ease; }
@keyframes xv-late { 30% { transform: scale(1.06); } }
/* monumental: cifras grandes que se compactan con el avance del tramo (--p) */
[data-xv-cuenta="monumental"] { --tam: clamp(4rem, 13vw, 11rem); }
[data-xv-cuenta="monumental"] .xv-cuenta-cifras { gap: calc(clamp(18px, 4vw, 60px) * (1.4 - var(--p, .5) * .8)); }
[data-xv-cuenta="monumental"] .xv-num { font-weight: 300; letter-spacing: calc(-.02em - var(--p, .5) * .05em); transform: scale(calc(1.12 - var(--p, .5) * .24)); transition: transform .2s linear; }

/* ---------------------------------------------------------------- ceremonia y recepción */
.xv-lugares { display: grid; gap: clamp(18px, 3vw, 32px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.xv-lugar { display: grid; gap: 10px; align-content: start; padding: clamp(22px, 3vw, 34px); }
.xv-lugar-hora { font-family: var(--sans); font-weight: 600; font-size: 2.1rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--acento); }
.xv-lugar-hora small { font-size: .5em; font-weight: 500; margin-left: .2em; letter-spacing: .1em; }
.xv-lugar h3 { font-family: var(--sans); font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
.xv-lugar p { color: var(--tinta-2); }
.xv-lugar .xv-acciones { margin-top: 8px; }
.xv-ej { font-size: .7em; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta-2); font-weight: 500; }

/* ---------------------------------------------------------------- itinerario */
.xv-itinerario { display: grid; gap: 0; max-width: 680px; margin-inline: auto; counter-reset: m; }
.xv-momento { display: grid; grid-template-columns: 7.2em 1fr; gap: 20px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--linea); }
.xv-momento:last-child { border-bottom: 1px solid var(--linea); }
.xv-momento time { font-family: var(--sans); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--acento); white-space: nowrap; }
.xv-momento span { font-size: 1.12rem; }

/* ---------------------------------------------------------------- personas, vestimenta, regalos, colaborativa */
.xv-personas { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); text-align: center; }
.xv-personas h3 { margin-bottom: 10px; }
.xv-personas li { font-size: 1.12rem; }
.xv-vestimenta { display: grid; gap: 14px; justify-items: center; text-align: center; }
.xv-vestimenta-codigo { font-family: var(--sans); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: .02em; }
.xv-muestras { display: flex; gap: 10px; justify-content: center; }
.xv-muestras li { width: 34px; height: 34px; border-radius: 50%; background: var(--c); border: 1px solid var(--linea); transform: scale(0); transition: transform .6s cubic-bezier(.34,1.56,.64,1) calc(var(--j) * 90ms); }
.visto .xv-muestras li { transform: none; }
.xv-regalo { display: grid; gap: 16px; justify-items: center; text-align: center; padding: clamp(24px, 4vw, 44px); max-width: 560px; margin-inline: auto; }
.xv-dato { display: grid; gap: 6px; justify-items: center; }
.xv-dato span { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--tinta-2); }
.xv-dato strong { font-family: var(--sans); font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.xv-colab { display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 560px; margin-inline: auto; }
.xv-colab-icono { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--acento) 14%, transparent); color: var(--acento); }
.xv-colab-icono svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- galería y visor */
.xv-galeria { display: grid; gap: clamp(10px, 1.6vw, 18px); grid-template-columns: repeat(12, 1fr); }
.xv-galeria button { all: unset; cursor: zoom-in; display: block; position: relative; overflow: hidden; border-radius: var(--radio-foto, 6px); background: var(--suave); }
.xv-galeria button:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }
.xv-galeria button > * { width: 100%; height: 100%; transition: transform .9s cubic-bezier(.23,1,.32,1); }
.xv-galeria button:hover > * { transform: scale(1.04); }
.xv-visor { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; }
.xv-visor[hidden] { display: none; }
.xv-visor-velo { position: absolute; inset: 0; background: color-mix(in srgb, #0b0a0c 92%, transparent); }
.xv-visor-foto { position: relative; width: min(92vw, 1100px); height: min(78vh, 78svh); border-radius: 4px; overflow: hidden; }
.xv-visor-foto > * { width: 100%; height: 100%; object-fit: contain; }
.xv-visor-foto .xv-ph { object-fit: cover; }
.xv-visor-cuenta { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #f3f0ec; font-size: .85rem; letter-spacing: .14em; }
.xv-visor-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid #ffffff55; background: #00000044; color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .25s, transform .25s; }
.xv-visor-btn:hover { background: #ffffff22; transform: scale(1.06); }
.xv-visor-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.xv-visor-ant { left: 16px; top: 50%; margin-top: -26px; }
.xv-visor-sig { right: 16px; top: 50%; margin-top: -26px; }
.xv-visor-cerrar { right: 16px; top: 16px; }

/* ---------------------------------------------------------------- RSVP personalizado */
.xv-rsvp { width: min(100%, 560px); margin-inline: auto; display: grid; gap: 10px; text-align: center; padding: clamp(26px, 4vw, 44px); }
.xv-rsvp-para { font-size: 1.15rem; }
.xv-rsvp-para strong { font-weight: 600; }
.xv-rsvp-lugares, .xv-rsvp-hasta { color: var(--tinta-2); }
.xv-rsvp-hasta { font-size: .9rem; margin-top: 4px; }
.xv-rsvp-form { display: grid; gap: 20px; margin-top: 12px; }
.xv-rsvp-cuantos { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; justify-items: center; }
.xv-rsvp-cuantos legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.xv-contador { display: flex; align-items: center; gap: 18px; }
.xv-contador-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--linea); background: var(--papel); display: grid; place-items: center; cursor: pointer; transition: transform .25s cubic-bezier(.23,1,.32,1), background-color .25s, border-color .25s; }
.xv-contador-btn:hover:not(:disabled) { border-color: var(--acento); transform: scale(1.06); }
.xv-contador-btn:active:not(:disabled) { transform: scale(.92); }
.xv-contador-btn:disabled { opacity: .35; cursor: not-allowed; }
.xv-contador-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.xv-contador-ventana { width: 2.4ch; height: 1.15em; overflow: hidden; font-family: var(--sans); font-size: 3.4rem; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; position: relative; }
.xv-contador-valor { display: grid; height: 100%; }
.xv-contador-valor .xv-v { grid-area: 1 / 1; text-align: center; }
.xv-contador-de { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta-2); }
.xv-rsvp-nombres { display: grid; gap: 12px; text-align: left; }
.xv-rsvp-guia { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.xv-rsvp-marcados { font-variant-numeric: tabular-nums; color: var(--tinta-2); transition: color .3s; }
.xv-rsvp-marcados.completo { color: var(--acento); }
.xv-lista { display: grid; gap: 8px; }
.xv-lista-panel { max-height: 300px; overflow: auto; padding: 4px; border: 1px solid var(--linea); border-radius: 12px; overscroll-behavior: contain; }
.xv-check { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 14px; border: 1px solid var(--linea); border-radius: 12px; cursor: pointer; background: color-mix(in srgb, var(--papel) 80%, transparent); transition: border-color .25s, background-color .25s, opacity .25s; }
.xv-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.xv-x { flex: none; width: 32px; height: 32px; border: 1.5px solid color-mix(in srgb, var(--tinta) 45%, transparent); border-radius: 8px; display: grid; place-items: center; transition: border-color .25s, background-color .25s; }
.xv-x svg { width: 20px; height: 20px; fill: none; stroke: var(--boton-tinta); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 18; stroke-dashoffset: 18; transition: stroke-dashoffset .35s cubic-bezier(.23,1,.32,1); }
.xv-check input:checked + .xv-x { background: var(--boton); border-color: var(--boton); }
.xv-check input:checked + .xv-x svg { stroke-dashoffset: 0; }
.xv-check:has(input:checked) { border-color: var(--acento); }
.xv-check input:focus-visible + .xv-x { outline: 2px solid var(--acento); outline-offset: 3px; }
.xv-check.apagado { opacity: .5; cursor: not-allowed; }
.xv-check-n { font-size: 1.05rem; }
.xv-buscar input, .xv-campo textarea, .xv-campo input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--linea); border-radius: 12px; background: var(--papel); color: var(--tinta); font: inherit; transition: border-color .25s, box-shadow .25s; }
.xv-buscar input:focus, .xv-campo textarea:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acento) 20%, transparent); }
.xv-campo { display: grid; gap: 8px; text-align: left; }
.xv-campo > span { font-size: .9rem; color: var(--tinta-2); }
.xv-error { color: var(--error, #A3243B); font-weight: 600; background: color-mix(in srgb, var(--error, #A3243B) 10%, var(--papel)); padding: 10px 14px; border-radius: 10px; }
.xv-rsvp-resumen { display: grid; gap: 16px; justify-items: center; outline: none; }
.xv-rsvp-ok { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; font-weight: 600; text-align: left; }
.xv-rsvp-ok svg { flex: none; width: 36px; height: 36px; padding: 6px; border-radius: 50%; background: var(--boton); fill: none; stroke: var(--boton-tinta); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.xv-rsvp-quienes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.xv-rsvp-quienes li { padding: 6px 14px; border-radius: 999px; background: color-mix(in srgb, var(--acento) 12%, transparent); }

/* ---------------------------------------------------------------- cierre, música, píldora, viajero */
.xv-cierre { text-align: center; display: grid; justify-items: center; gap: 18px; min-height: 80vh; min-height: 80svh; align-content: center; }
.xv-firma { font-size: .8rem; color: var(--tinta-2); margin-top: 30px; }
.xv-firma a { text-underline-offset: 3px; }
.xv-muestra-aviso { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--tinta-2); }
.xv-flotante { position: fixed; z-index: 60; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--linea); background: color-mix(in srgb, var(--papel) 88%, transparent); color: var(--tinta); display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(8px); transition: transform .3s cubic-bezier(.23,1,.32,1); }
.xv-flotante:hover { transform: scale(1.07); }
.xv-flotante svg { width: 22px; height: 22px; }
.xv-flotante[aria-pressed="true"] svg { animation: xv-gira 6s linear infinite; }
@keyframes xv-gira { to { transform: rotate(360deg); } }
.xv-pildora { white-space: nowrap; position: fixed; z-index: 60; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translate(-50%, 140%); transition: transform .5s cubic-bezier(.23,1,.32,1); box-shadow: 0 14px 30px -16px #000; }
.xv-pildora.ver { transform: translate(-50%, 0); }
.xv-viajero { position: fixed; left: 0; top: 0; z-index: 2; pointer-events: none; opacity: var(--vo, 1); transform: translate(var(--vx, 50vw), var(--vy, 50vh)) translate(-50%, -50%) scale(var(--vs, 1)) rotate(var(--vr, 0deg)); will-change: transform; transition: opacity .4s; }
html.cerrado .xv-viajero { opacity: 0; }
/* Viajeros que crecen por ancho (líneas finas que no deben engrosarse con la escala). */
.xv-viajero.vj-ancho { transform: translate(var(--vx, 50vw), var(--vy, 50vh)) translate(-50%, -50%) rotate(var(--vr, 0deg)); }
[data-xv-estacion] { display: block; pointer-events: none; }
.xv-est { position: absolute; inset: 0; pointer-events: none; }
:where(:is(div, section, footer, header, figure):has(> .xv-est)) { position: relative; }

/* ---------------------------------------------------------------- movimiento reducido: todo a la vista, quieto */
html.quieto [data-xv-lineas] .xv-l > span, html.quieto [data-xv-entra], html.quieto .xv-mascara, html.quieto .xv-muestras li { transform: none !important; opacity: 1 !important; clip-path: none !important; transition: none !important; }
html.quieto [data-xv-cuenta] .xv-u { opacity: 1 !important; transform: none !important; }
html.quieto .xv-portada[data-xv-tramo="fijo"] { min-height: 100vh; min-height: 100svh; }
html.quieto .xv-escena { position: relative; }
html.quieto *, html.quieto *::before, html.quieto *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
html.quieto [data-xv-cuenta="luz"] .xv-num::after { display: none; }
html.quieto .xv-viajero { transition: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 760px) {
	body.xv { font-size: 16px; }
	.xv-sec { padding: 72px 20px; }
	.xv-momento { grid-template-columns: 5.6em 1fr; gap: 12px; }
	.xv-galeria { grid-template-columns: repeat(6, 1fr); }
	.xv-contador-ventana { font-size: 3rem; }
	.xv-visor-ant, .xv-visor-sig { top: auto; bottom: 14px; margin: 0; }
	.xv-visor-cuenta { bottom: 30px; }
	.xv-cuenta { --tam: clamp(1.7rem, 8.4vw, 2.4rem); }
	.xv-cuenta-cifras { gap: 10px clamp(10px, 4vw, 18px); flex-wrap: nowrap; }
	.xv-ue { font-size: .6rem; letter-spacing: .14em; }
	[data-xv-cuenta="monumental"] { --tam: clamp(2.2rem, 11vw, 3.2rem); }
	[data-xv-cuenta="anillos"] { --tam: clamp(1.15rem, 5.6vw, 1.5rem); }
	[data-xv-cuenta="anillos"] .xv-u { width: calc(var(--tam) * 2.9); }
}
