/* Web Save the Date — diseño «vidrio»: tarjetas esmeriladas sobre un fondo vivo (foto desenfocada o ilustración
   de la plantilla), tipografía grande y animaciones suaves. Cada plantilla define sus variables en <body>. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; color: var(--texto); font-family: var(--f-cuerpo); font-size: 16px; line-height: 1.6; font-weight: 400; background: var(--fondo1); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body:has(.sobre:not(.fuera)) { overflow: hidden; }
img, video { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--f-titulo); font-weight: 500; margin: 0; letter-spacing: -.01em; }
.eyebrow { margin: 0 0 6px; font-size: .72rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--suave); }

/* ── Fondo: la ilustración de la plantilla (nítida en una columna 2:3; desenfocada a los lados) ── */
.fondo { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: var(--fondo1); }
.fondo img { position: absolute; display: block; }
.fondo-difuso { inset: -6%; width: 112%; height: 112%; object-fit: cover; filter: blur(34px) saturate(1.1); opacity: .55; }
.fondo-lamina { inset: 0; margin: auto; width: 100%; height: 100%; max-width: calc(100vh * .78); object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.fondo-lamina, .fondo-difuso { opacity: .3; }
.fondo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--fondo1) 35%, transparent), color-mix(in srgb, var(--fondo1) 55%, transparent)); }
.sobre-fondo .fondo-lamina { opacity: .78; }
.sobre-fondo .fondo-difuso { opacity: .45; }
.sobre-fondo::after { background: color-mix(in srgb, var(--fondo1) 12%, transparent); }
@media (max-aspect-ratio: 3/4) { .fondo-lamina { max-width: none; -webkit-mask-image: none; mask-image: none; } }
.particulas { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.particulas i { position: absolute; top: -10px; width: var(--t, 6px); height: var(--t, 6px); border-radius: 50%; background: color-mix(in srgb, var(--acento) 45%, #fff); opacity: .55; box-shadow: 0 0 12px color-mix(in srgb, var(--acento) 40%, #fff); animation: caer var(--d, 14s) linear infinite; animation-delay: var(--r, 0s); }
@keyframes caer { to { transform: translate(var(--x, 30px), 110vh) rotate(360deg); } }

/* ── Vidrio ── */
.vidrio {
  position: relative;
  background: var(--vidrio);
  border: 1px solid var(--borde);
  border-radius: 30px;
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  backdrop-filter: blur(26px) saturate(170%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 30px 60px -20px rgba(20, 15, 10, .28), 0 8px 20px -10px rgba(20, 15, 10, .15);
}
.oscura .vidrio { box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 30px 60px -20px rgba(0, 0, 0, .6); }

/* ── Botones ── */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; padding: 14px 30px; border: 0; border-radius: 999px; background: var(--acento); color: var(--sobreAcento); font: 500 .95rem/1 var(--f-cuerpo); letter-spacing: .04em; text-decoration: none; cursor: pointer; box-shadow: 0 10px 24px -10px var(--acento); transition: transform .25s ease, box-shadow .25s ease; }
.boton:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px var(--acento); }
.boton:active { transform: scale(.97); }
.boton-linea { background: color-mix(in srgb, var(--vidrio) 60%, transparent); color: var(--texto); border: 1px solid var(--borde); box-shadow: none; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.boton:focus-visible, .idioma:focus-visible, .barra a:focus-visible, .copiar:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }
.botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.botones .boton { margin-top: 0; padding: 12px 22px; font-size: .88rem; }

/* ── Sobre por capas (biblioteca MS Films) ── */
.sobre { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: var(--fondo1); transition: opacity 1s ease, visibility 1s, transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.sobre.fuera { opacity: 0; visibility: hidden; transform: scale(1.06); }
.sobre-fondo { position: absolute; z-index: 0; }
.sobre-escena { position: relative; z-index: 1; width: min(460px, 100%); display: grid; justify-items: center; text-align: center; animation: aparecer 1.2s cubic-bezier(.2, .8, .2, 1) both; }
.sobre-nombres { margin: 4px 0 18px; font: 400 clamp(2.8rem, 13vw, 3.8rem)/1.02 var(--f-script); }
.sobre-nombres em { font-style: normal; font-size: .5em; margin: 0 .25em; color: var(--suave); }
.sobre-3d { position: relative; width: min(88vw, 440px); aspect-ratio: 4 / 3; perspective: 1200px; filter: drop-shadow(0 26px 30px rgba(40, 30, 20, .28)); }
.s-capa { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.s-base { z-index: 1; fill: var(--sobre1); }
.s-base .s-pico { fill: var(--sobre2); opacity: 0; transition: opacity 0s .45s; }
.s-carta { position: absolute; z-index: 2; left: 12%; right: 12%; top: 37%; height: 52%; display: grid; place-content: center; gap: 4px; text-align: center; border-radius: 6px; background: color-mix(in srgb, var(--fondo1) 92%, #fff); color: var(--texto); box-shadow: 0 4px 14px rgba(40, 30, 20, .14); transition: transform 1.05s .75s cubic-bezier(.2, .8, .2, 1); }
.oscura .s-carta { background: #fbf7ee; color: #3a3128; }
.s-mono { position: relative; width: 74px; height: 74px; margin: 0 auto; display: grid; place-items: center; color: var(--detalle); }
.oscura .s-mono { color: #a8915e; }
.mono-marco { position: absolute; inset: 0; width: 100%; height: 100%; }
.s-mono span { position: relative; font: 500 1.35rem/1 var(--f-titulo); letter-spacing: .04em; }
.s-mono em { font: 400 1.05rem var(--f-script); margin: 0 2px; font-style: normal; }
.s-fecha { margin: 6px 0 0; font: 500 .72rem var(--f-cuerpo); letter-spacing: .24em; text-transform: uppercase; opacity: .75; }
.s-bolsillo { z-index: 3; }
.s-bolsillo .b1 { fill: var(--sobre3); }
.s-bolsillo .b2 { fill: var(--sobre4); }
.s-para { position: absolute; z-index: 4; left: 20%; right: 20%; bottom: 9%; margin: 0; font: 400 1.25rem/1.1 var(--f-script); color: var(--texto); }
.oscura .s-para { color: #3a3128; }
.s-para small { display: block; margin-bottom: 4px; font: 500 .56rem var(--f-cuerpo); letter-spacing: .26em; text-transform: uppercase; opacity: .7; }
.s-solapa { z-index: 5; fill: var(--sobre4); transform-origin: 50% 35%; backface-visibility: hidden; transition: transform .75s .15s cubic-bezier(.45, 0, .2, 1); }
.s-solapa path { stroke: rgba(60, 45, 30, .08); }
.s-lacre { position: absolute; z-index: 6; width: 18%; left: 41%; top: 59%; filter: drop-shadow(0 6px 8px rgba(60, 40, 10, .35)); transition: opacity .3s ease, transform .4s ease; cursor: pointer; }
.sobre-3d:hover .s-lacre { transform: scale(1.05) rotate(-4deg); }
.boton-sobre { margin-top: 26px; background: var(--vidrio); color: var(--texto); border: 1px solid var(--borde); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .35); }
/* Apertura (clase .abriendo): lacre fuera → solapa gira → aparece el interior → sube la carta */
.abriendo .s-lacre { opacity: 0; transform: scale(.6) translateY(-10px); }
.abriendo .s-solapa { transform: rotateX(180deg); }
.abriendo .s-pico { opacity: 1; }
.abriendo .s-carta { transform: translateY(-74%); }
.abriendo .boton-sobre { opacity: 0; transition: opacity .3s; }
@keyframes aparecer { from { opacity: 0; transform: translateY(40px) scale(.96); } }

/* Iconos de la biblioteca: trazo fino a 128 px; se ajusta a cada tamaño */
svg.kit g, svg.kit path, svg.kit circle, svg.kit rect { stroke-width: 4.2; }
.icono-nav.kit g, .icono-nav.kit path, .icono-nav.kit circle, .icono-nav.kit rect { stroke-width: 6.5; }
.icono-mini.kit g, .icono-mini.kit path, .icono-mini.kit circle { stroke-width: 7; }
.separador { display: block; width: min(220px, 60%); height: auto; margin: 6px auto 14px; color: var(--detalle); }
.oscura .separador { color: var(--acento); }
.botanica { position: absolute; z-index: 3; pointer-events: none; width: 46%; left: -16%; top: -8%; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .12)); animation: aparecer 1.4s .5s cubic-bezier(.2, .8, .2, 1) both; }
.botanica-rama_olivo { width: 64%; left: -22%; top: -6%; rotate: 12deg; }
.botanica-ramita_flores_secas { width: 34%; left: -12%; top: -4%; }
.botanica-esquina_porcelana_azul { width: 42%; }
.botanica-gracias { display: block; width: 150px; height: auto; margin: 0 auto 4px; }
.botanica-gracias.botanica-rama_olivo { width: 200px; }

/* ── Estructura ── */
main { width: min(560px, 100%); margin: 0 auto; padding: 0 16px calc(110px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
main > * { min-width: 0; }
.sec { padding: 46px 26px; text-align: center; }
.sec > .icono, .galeria-cab > .icono { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--acento); }
.sec h2 { font-size: clamp(1.9rem, 7vw, 2.4rem); line-height: 1.12; margin-bottom: 14px; }
.sec p { margin: 8px 0; }

/* Animación al aparecer en pantalla */
.revelar { opacity: 0; transform: translateY(46px) scale(.98); transition: opacity 1s cubic-bezier(.2, .8, .2, 1), transform 1s cubic-bezier(.2, .8, .2, 1); }
.revelar.visible { opacity: 1; transform: none; }

/* ── Portada ── */
.hero { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 64px 0 40px; }
.arco { position: relative; width: min(420px, 90vw); aspect-ratio: 3 / 4.2; border-radius: 999px 999px 34px 34px; overflow: hidden; padding: 8px; background: var(--vidrio); border: 1px solid var(--borde); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 40px 80px -30px rgba(20, 15, 10, .45); animation: aparecer 1.4s .2s cubic-bezier(.2, .8, .2, 1) both; }
.arco img, .arco video { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 28px 28px; }
.arco::after { content: ''; position: absolute; inset: 8px; border-radius: 999px 999px 28px 28px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); pointer-events: none; }
.monograma { width: 100%; height: 100%; display: grid; place-items: center; border-radius: inherit; background: linear-gradient(160deg, color-mix(in srgb, var(--acento) 25%, transparent), transparent); font: 400 4rem/1 var(--f-script); color: var(--acento); }
.sonido { position: absolute; z-index: 2; right: 18px; bottom: 18px; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; background: rgba(0, 0, 0, .28); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: pointer; }
.sonido svg { width: 20px; height: 20px; }
.sonido .icono-altavoz, .sonido[aria-pressed="true"] .icono-mudo { display: none; }
.sonido[aria-pressed="true"] .icono-altavoz { display: block; }
.hero .eyebrow { margin-top: 34px; animation: aparecer 1s .5s both; }
.nombres { font: 400 clamp(3.4rem, 17vw, 5.2rem)/1 var(--f-script); display: flex; flex-direction: column; align-items: center; margin: 6px 0 10px; animation: aparecer 1.1s .65s both; }
.nombres em { font-style: normal; font-size: .45em; color: var(--acento); margin: 4px 0; }
.fecha-hero { margin: 0; padding: 7px 18px; border-radius: 999px; background: var(--vidrio); border: 1px solid var(--borde); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font: 400 1.15rem var(--f-titulo); letter-spacing: .02em; animation: aparecer 1s .8s both; }
.desliza { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--suave); }
.desliza i { width: 22px; height: 36px; border: 1.5px solid var(--suave); border-radius: 12px; position: relative; }
.desliza i::after { content: ''; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--suave); animation: rueda 1.8s ease-in-out infinite; }
@keyframes rueda { 60% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }
/* La película, en su propia sección: pantalla 16:9 con marco de vidrio */
.pantalla { position: relative; margin-top: 18px; aspect-ratio: var(--ar, 16 / 9); border-radius: 20px; overflow: hidden; background: #000; border: 1px solid var(--borde); box-shadow: 0 24px 44px -24px rgba(0, 0, 0, .6); }
.pantalla video { width: 100%; height: 100%; object-fit: contain; }

/* ── Secciones ── */
.anuncio p { font: italic 400 1.28rem/1.55 var(--f-titulo); }
.anuncio .icono { width: 30px; height: 30px; margin: 0 auto 10px; color: var(--acento); }
/* Ceremonia y recepción: compactas, con ícono dibujado a mano */
.lugar { padding-top: 34px; padding-bottom: 36px; }
.lugar h2 { font-size: clamp(1.55rem, 6vw, 1.9rem); margin-bottom: 6px; }
.lugar-dato { font: 400 1.12rem/1.4 var(--f-titulo); color: var(--texto); }
.lugar-dir { margin-top: 0 !important; font-size: .86rem; color: var(--suave); }
.boton-mapa { margin-top: 16px; padding: 11px 24px; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; box-shadow: none; }
.linea { display: block; width: 58px; height: 58px; margin: 0 auto 12px; background: var(--acento); -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.oscura .linea { background: var(--detalle); }
.icono-mini { width: 16px; height: 16px; flex: none; }
/* Croquis ilustrado del lugar (en los colores de la plantilla) */
.mapa { position: relative; margin-top: 22px; border-radius: 24px; overflow: hidden; border: 1px solid var(--borde); box-shadow: 0 18px 34px -20px rgba(0, 0, 0, .4); }
.croquis { display: block; width: 100%; height: auto; }
.cq-fondo { fill: color-mix(in srgb, var(--fondo1) 85%, #fff); }
.oscura .cq-fondo { fill: color-mix(in srgb, var(--fondo2) 55%, #000); }
.cq-calle { fill: none; stroke: color-mix(in srgb, #fff 88%, var(--fondo2)); stroke-width: 13; stroke-linecap: round; }
.oscura .cq-calle { stroke: color-mix(in srgb, var(--fondo2) 80%, #fff 8%); }
.cq-linea { fill: none; stroke: color-mix(in srgb, var(--suave) 35%, transparent); stroke-width: 1; stroke-dasharray: 3 7; }
.cq-avenida { fill: none; stroke: color-mix(in srgb, var(--acento) 30%, transparent); stroke-width: 17; stroke-linecap: round; }
.cq-rio { fill: none; stroke: color-mix(in srgb, #86aed0 55%, transparent); stroke-width: 15; stroke-linecap: round; }
.cq-parque { fill: color-mix(in srgb, #93b98d 45%, transparent); }
.cq-rosa circle { fill: color-mix(in srgb, var(--vidrio) 80%, #fff); stroke: var(--borde); }
.cq-rosa path { fill: var(--acento); }
.cq-rosa text { font: 600 8px var(--f-cuerpo); fill: var(--suave); }
.cq-pin { fill: var(--acento); filter: drop-shadow(0 6px 5px rgba(0, 0, 0, .3)); }
.cq-icono { color: var(--sobreAcento); }
.cq-icono g, .cq-icono path, .cq-icono circle { stroke-width: 12; }
.cq-pulso { fill: var(--acento); transform-box: fill-box; transform-origin: center; animation: pulso 2.6s ease-out infinite; }
.cq-pulso.p2 { animation-delay: 1.3s; }
@keyframes pulso { from { transform: scale(.4); opacity: .5; } to { transform: scale(3.2); opacity: 0; } }
.mapa-etiqueta { position: absolute; left: 50%; bottom: 12px; translate: -50% 0; max-width: 86%; padding: 6px 14px; border-radius: 999px; background: var(--vidrio); border: 1px solid var(--borde); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: .78rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.botones-mapa { margin-top: 20px; }
.botones-mapa .boton { padding: 13px 22px; }
.botones-mapa .icono-mini { width: 17px; height: 17px; }

.cuenta-num { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 8px 0 26px; }
.cuenta-num div { padding: 16px 4px 12px; border-radius: 20px; background: color-mix(in srgb, var(--vidrio) 70%, transparent); border: 1px solid var(--borde); }
.cuenta-num b { display: block; font: 500 2.1rem/1 var(--f-titulo); color: var(--acento); font-variant-numeric: tabular-nums; }
.cuenta-num small { display: block; margin-top: 6px; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--suave); }
.calendario { max-width: 330px; margin: 0 auto; padding: 20px 18px 16px; border-radius: 24px; border: 1px solid var(--borde); background: color-mix(in srgb, var(--vidrio) 55%, transparent); }
.cal-mes { margin: 0 0 12px !important; font: 600 1.15rem var(--f-titulo); }
.cal-rejilla { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px 0; font-size: .86rem; }
.cal-rejilla small { padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid var(--borde); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--suave); }
.cal-rejilla span { height: 36px; display: grid; place-items: center; }
.dia-boda { position: relative; color: var(--sobreAcento); font-weight: 600; }
.icono-dia { position: absolute; width: 38px; height: 38px; fill: var(--acento); stroke: none; filter: drop-shadow(0 4px 8px color-mix(in srgb, var(--acento) 60%, transparent)); animation: latido 1.6s ease-in-out infinite; }
.dia-boda b { position: relative; }
@keyframes latido { 15% { transform: scale(1.12); } 30% { transform: scale(1); } 45% { transform: scale(1.08); } }
.mini-titulo { margin-top: 26px !important; font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--suave); }

.programa ol { list-style: none; padding: 0; margin: 10px auto 0; max-width: 330px; position: relative; }
.programa ol::before { content: ''; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--borde), var(--acento), var(--borde)); }
.programa li { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 34px; padding: 12px 0; text-align: left; }
.programa li::before { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--acento); box-shadow: 0 0 0 5px color-mix(in srgb, var(--acento) 18%, transparent); }
.programa time { text-align: right; font: 500 1.3rem/1.2 var(--f-titulo); color: var(--acento); }
.programa span { font-size: .98rem; align-self: center; }

.paleta { display: flex; justify-content: center; gap: 14px; margin-top: 18px; }
.paleta span { width: 46px; height: 46px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--vidrio) 90%, #fff); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .4); }

/* Galería: carrusel deslizable */
.galeria { padding: 40px 0 20px; }
.galeria-cab { padding: 0 26px; }
.carrusel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px max(16px, calc(50% - 130px)) 22px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.carrusel::-webkit-scrollbar { display: none; }
.carrusel a { flex: none; width: 260px; aspect-ratio: 4 / 5; scroll-snap-align: center; border-radius: 26px; overflow: hidden; border: 1px solid var(--borde); box-shadow: 0 24px 40px -22px rgba(0, 0, 0, .5); transform: scale(.88); opacity: .6; transition: transform .45s ease, opacity .45s ease; }
.carrusel a.activa { transform: scale(1); opacity: 1; }
.carrusel img { width: 100%; height: 100%; object-fit: cover; }
.puntos { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 0 30px; }
.puntos i { width: 6px; height: 6px; border-radius: 3px; background: var(--suave); opacity: .35; transition: width .3s, opacity .3s; }
.puntos i.activa { width: 20px; opacity: 1; background: var(--acento); }

/* Formularios */
.formulario { display: grid; gap: 14px; max-width: 420px; margin: 18px auto 0; text-align: left; }
.formulario label { display: grid; gap: 7px; font-size: .88rem; font-weight: 500; }
.formulario [hidden] { display: none; }
.formulario input:not([type=radio]), .formulario select, .formulario textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--borde); border-radius: 16px; background: color-mix(in srgb, var(--vidrio) 75%, transparent); color: var(--texto); font: 400 1rem var(--f-cuerpo); -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s; }
.formulario select { background-image: linear-gradient(45deg, transparent 50%, var(--suave) 50%), linear-gradient(135deg, var(--suave) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.formulario input:focus, .formulario select:focus, .formulario textarea:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acento) 18%, transparent); }
.opciones { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.opciones label { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border: 1px solid var(--borde); border-radius: 16px; background: color-mix(in srgb, var(--vidrio) 60%, transparent); cursor: pointer; font-weight: 400; transition: border-color .2s, background .2s; }
.opciones label:has(input:checked) { border-color: var(--acento); background: color-mix(in srgb, var(--acento) 14%, transparent); }
.opciones input { accent-color: var(--acento); width: 20px; height: 20px; margin: 0; }
.formulario .boton { justify-self: stretch; margin-top: 6px; }
.formulario .boton:disabled { opacity: .6; }
.estado { margin: 0 !important; text-align: center; min-height: 1.5em; font-weight: 500; color: var(--acento); }
.enviado > :not(.estado) { display: none; }
.enviado .estado { padding: 26px 0 8px; font: 500 1.3rem var(--f-titulo); }
.nota { font-style: italic; color: var(--suave); }
.lista-mensajes { display: grid; gap: 12px; margin: 28px auto 0; text-align: left; max-height: 520px; overflow-y: auto; }
.lista-mensajes article { padding: 16px 18px; border-radius: 20px; background: color-mix(in srgb, var(--vidrio) 70%, transparent); border: 1px solid var(--borde); }
.lista-mensajes p { margin: 0 0 8px; font: italic 400 1.08rem/1.5 var(--f-titulo); }
.lista-mensajes footer { font-size: .8rem; color: var(--suave); }

/* Regalos */
.formas { display: grid; gap: 14px; margin-top: 18px; }
.forma { padding: 26px 20px; border-radius: 24px; border: 1px solid var(--borde); background: color-mix(in srgb, var(--vidrio) 65%, transparent); }
.forma h3 { font-size: 1.4rem; margin-bottom: 6px; }
.banco { color: var(--suave); font-size: .9rem; }
.numero { margin: 14px 0 6px !important; }
.numero small { display: block; font-size: .66rem; letter-spacing: .25em; text-transform: uppercase; color: var(--suave); }
.numero b { font: 500 1.7rem var(--f-titulo); letter-spacing: .06em; }
.copiar { margin: 4px 0 12px; padding: 8px 18px; border: 1px solid var(--acento); border-radius: 999px; background: transparent; color: var(--acento); font: 500 .8rem var(--f-cuerpo); letter-spacing: .06em; cursor: pointer; }
.forma p { font-size: .9rem; margin: 3px 0; }
.qr { width: 170px; margin: 12px auto 0; padding: 10px; background: #fff; border-radius: 18px; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .4); }
.qr svg { display: block; width: 100%; height: auto; }

/* Gracias */
.gracias { padding: 60px 20px 30px; }
.gracias-script { margin: 0 !important; font: 400 clamp(3.4rem, 16vw, 4.6rem)/1 var(--f-script); color: var(--acento); }
.firma-novios { margin-top: 18px !important; font: 500 1.2rem var(--f-titulo); }
.firma { text-align: center; padding: 10px 16px 0; font-size: .66rem; letter-spacing: .32em; text-transform: uppercase; color: var(--suave); }

/* Cerrada */
.cerrada { min-height: 100vh; place-content: center; }
.cerrada .sobre-carta { animation: none; }
.cerrada h2 { margin: 20px 0 6px; font-size: 1.8rem; }

/* ── Barra inferior tipo app ── */
.barra { position: fixed; z-index: 40; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 2px; padding: 6px; border-radius: 999px; background: var(--vidrio); border: 1px solid var(--borde); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .45); opacity: 0; translate: 0 30px; transition: opacity .6s, translate .6s; }
body.abierta .barra { opacity: 1; translate: 0 0; }
.barra a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 58px; padding: 7px 8px 5px; border-radius: 999px; color: var(--suave); font-size: .6rem; font-weight: 500; letter-spacing: .04em; text-decoration: none; transition: background .3s, color .3s; }
.barra a.activa { background: var(--acento); color: var(--sobreAcento); }
.icono-nav { width: 20px; height: 20px; }

.idioma { position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 14px; z-index: 60; padding: 8px 14px; border-radius: 999px; background: var(--vidrio); border: 1px solid var(--borde); color: var(--texto); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-decoration: none; }
.aviso-previa { position: fixed; top: 0; left: 0; right: 0; z-index: 70; padding: 8px 16px; background: rgba(20, 20, 20, .85); color: #fff; text-align: center; font: 500 12px/1.4 system-ui, sans-serif; letter-spacing: .04em; }

/* Música */
.musica-btn { position: fixed; right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--borde); background: var(--vidrio); color: var(--acento); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-size: 1.3rem; cursor: pointer; }
.musica-btn[aria-pressed="true"] span { display: inline-block; animation: girar 4s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* Visor de fotos */
.visor { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(0, 0, 0, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.visor[hidden] { display: none; }
.visor img { max-width: 94vw; max-height: 86vh; object-fit: contain; border-radius: 12px; }
.visor button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.visor-cerrar { top: calc(14px + env(safe-area-inset-top)); right: 14px; }
.visor-ant { left: 10px; top: 50%; transform: translateY(-50%); }
.visor-sig { right: 10px; top: 50%; transform: translateY(-50%); }

/* ── Estilos de portada (la plantilla elige uno) ── */
.marco { position: relative; display: grid; place-items: center; }

.estilo-circulo .arco { width: min(380px, 86vw); aspect-ratio: 1; border-radius: 50%; padding: 10px; }
.estilo-circulo .arco img, .estilo-circulo .arco video, .estilo-circulo .arco::after { border-radius: 50%; }
.estilo-circulo .marco::before { content: ''; position: absolute; inset: -16px; border-radius: 50%; border: 1px dashed var(--acento); opacity: .55; animation: girar 80s linear infinite; }

.estilo-polaroid .marco { padding: 12px 12px 60px; background: #fffdf8; border-radius: 4px; box-shadow: 0 34px 60px -26px rgba(0, 0, 0, .5); rotate: -3deg; animation: aparecer 1.4s .2s cubic-bezier(.2, .8, .2, 1) both; }
.estilo-polaroid .marco::before { content: ''; position: absolute; z-index: 2; top: -15px; left: 50%; width: 120px; height: 32px; margin-left: -60px; background: color-mix(in srgb, var(--acento) 28%, rgba(255, 255, 255, .7)); box-shadow: 0 2px 6px rgba(0, 0, 0, .12); rotate: 3deg; }
.estilo-polaroid .arco { width: min(360px, 80vw); aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 2px; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; animation: none; }
.estilo-polaroid .arco img, .estilo-polaroid .arco video { border-radius: 2px; }
.estilo-polaroid .arco::after { display: none; }
.pie-polaroid { position: absolute; left: 10px; right: 10px; bottom: 14px; font: 500 1.7rem/1 var(--f-script); color: #3a3330; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.estilo-ventana .arco { width: min(400px, 86vw); aspect-ratio: 3 / 4; border-radius: 6px; padding: 10px; }
.estilo-ventana .arco img, .estilo-ventana .arco video, .estilo-ventana .arco::after { border-radius: 2px; }
.estilo-ventana .marco::before, .estilo-ventana .marco::after { content: ''; position: absolute; pointer-events: none; border: 1px solid var(--acento); }
.estilo-ventana .marco::before { inset: -12px; opacity: .6; }
.estilo-ventana .marco::after { inset: -22px; opacity: .25; }
.estilo-ventana .nombres { font-size: clamp(3rem, 15vw, 4.6rem); }

.estilo-ovalo .arco { width: min(370px, 82vw); aspect-ratio: 3 / 4; border-radius: 50%; padding: 10px; }
.estilo-ovalo .arco img, .estilo-ovalo .arco video, .estilo-ovalo .arco::after { border-radius: 50%; }
.estilo-ovalo .marco::before { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid var(--acento); opacity: .45; }

.estilo-postal .arco { width: min(390px, 86vw); aspect-ratio: 4 / 5; border-radius: 6px; padding: 12px; background: #fffdf8; outline: 2px dashed color-mix(in srgb, var(--acento) 45%, transparent); outline-offset: -6px; }
.estilo-postal .arco img, .estilo-postal .arco video, .estilo-postal .arco::after { border-radius: 2px; }
.matasellos { position: absolute; z-index: 3; top: -18px; right: -14px; width: 86px; height: 86px; display: grid; place-content: center; border-radius: 50%; border: 2px solid var(--acento); background: color-mix(in srgb, var(--vidrio) 85%, #fff); color: var(--acento); font: 600 1.9rem/1 var(--f-titulo); text-align: center; rotate: 12deg; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .4); }
.matasellos small { font: 600 .65rem var(--f-cuerpo); letter-spacing: .2em; text-transform: uppercase; }

.estilo-cine .hero { position: relative; justify-content: flex-end; margin: 0 calc(50% - 50vw); padding: 0 20px 70px; isolation: isolate; }
.estilo-cine .marco { position: absolute; inset: 0; z-index: -1; translate: none; }
.estilo-cine .arco { width: 100%; height: 100%; aspect-ratio: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; animation: zoom-lento 18s ease-out both; }
.estilo-cine .arco img, .estilo-cine .arco video { border-radius: 0; }
.estilo-cine .arco::after { inset: 0; border-radius: 0; box-shadow: none; background: linear-gradient(180deg, rgba(0, 0, 0, .15), transparent 35%, rgba(0, 0, 0, .25) 60%, rgba(0, 0, 0, .78)); }
.estilo-cine .hero .eyebrow, .estilo-cine .hero .nombres, .estilo-cine .hero .fecha-hero, .estilo-cine .desliza { color: #fff; }
.estilo-cine .hero .nombres em { color: color-mix(in srgb, var(--acento) 60%, #fff); }
.estilo-cine .desliza i, .estilo-cine .desliza i::after { border-color: #fff; background-color: transparent; }
.estilo-cine .desliza i::after { background: #fff; }
@keyframes zoom-lento { from { transform: scale(1.12); } }

/* ── Fotos: tarjetas (mosaico) ── */
.fotos-tarjetas { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; grid-auto-flow: dense; gap: 10px; padding: 20px 14px 4px; }
.fotos-tarjetas .foto-tarjeta:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
.fotos-tarjetas .foto-tarjeta:nth-child(6n + 4) { grid-row: span 2; }
.foto-tarjeta { display: block; overflow: hidden; border-radius: 20px; border: 1px solid var(--borde); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(40px) scale(.94); transition: opacity .9s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * 70ms), transform .9s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * 70ms); }
.foto-tarjeta img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.foto-tarjeta:hover img { transform: scale(1.06); }
.foto-tarjeta.visible { opacity: 1; transform: none; }

/* ── Fotos: polaroid (caen una a una) ── */
.fotos-polaroid { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; padding: 24px 6px 10px; }
.fotos-polaroid .foto-tarjeta { width: calc(50% - 10px); padding: 8px 8px 30px; background: #fffdf8; border: 0; border-radius: 4px; box-shadow: 0 16px 28px -14px rgba(0, 0, 0, .45); transform: translateY(-60px) rotate(calc(var(--rot) * 3)) scale(.9); }
.fotos-polaroid .foto-tarjeta:nth-child(even) { margin-top: 22px; }
.fotos-polaroid .foto-tarjeta img { aspect-ratio: 1; height: auto; border-radius: 2px; }
.fotos-polaroid .foto-tarjeta.visible { transform: rotate(var(--rot)); }

/* ── Fotos: carrusel ── */
.carrusel .foto-tarjeta { opacity: .6; transform: scale(.88); transition: transform .45s ease, opacity .45s ease; }
.carrusel .foto-tarjeta.activa { opacity: 1; transform: scale(1); }


/* ── Fotos: pila de tarjetas — la sección se queda fija y las fotos se apilan al bajar ── */
.galeria-pila { position: relative; height: calc(100svh + (var(--n) - 1) * 58svh); }
.pila-fija { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 60px 0 96px; overflow: hidden; }
.pila-fija .galeria-cab { text-align: center; }
.pila-fija h2 { font-size: clamp(1.9rem, 7vw, 2.4rem); }
.pila-cartas { position: relative; width: min(74vw, 340px, 52svh); aspect-ratio: 4 / 5; }
.carta { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: 26px; border: 6px solid color-mix(in srgb, var(--vidrio) 55%, #fff); background: var(--fondo2); box-shadow: 0 34px 50px -26px rgba(0, 0, 0, .6); transform-origin: 50% 90%; will-change: transform; }
.carta img { width: 100%; height: 100%; object-fit: cover; }
.pila-cuenta { margin: 0; font: 500 .78rem var(--f-cuerpo); letter-spacing: .3em; color: var(--suave); }
.pila-cuenta b { color: var(--acento); font-weight: 600; }
.pila-quieta { height: auto; }
.pila-quieta .pila-fija { position: static; height: auto; overflow: visible; }
.pila-quieta .pila-cartas { width: min(100%, 420px); aspect-ratio: auto; display: grid; gap: 14px; }
.pila-quieta .carta { position: relative; aspect-ratio: 4 / 5; transform: none !important; }
.pila-quieta .pila-cuenta { display: none; }

/* Cuenta regresiva: cada número cambia volteándose */
.cuenta-num div { perspective: 300px; }
.cuenta-num b.cambia { animation: voltear .55s cubic-bezier(.2, .8, .2, 1); }
@keyframes voltear { from { transform: rotateX(-80deg) translateY(-8px); opacity: 0; } }

/* Escritorio: más aire */
@media (min-width: 760px) {
  main { gap: 30px; }
  .sec { padding: 60px 48px; }
  .arco { width: 380px; }
  .carrusel { padding-inline: max(16px, calc(50% - 150px)); }
  .carrusel a { width: 300px; }
  .fotos-tarjetas { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; padding-inline: 26px; }
  .fotos-polaroid .foto-tarjeta { width: calc(33.3% - 10px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .revelar { opacity: 1; transform: none; }
}

/* ── Plantillas minimalistas ── */
/* Papel blanco: solo textura de papel (ruido fino) sobre blanco cálido. */
.fondo-papel { background-color: var(--fondo1); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .42  0 0 0 0 .38  0 0 0 0 .32  0 0 0 .075 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"), radial-gradient(120% 80% at 50% 0%, #fff, transparent 70%); }
.fondo-papel::after { background: none; }
/* Vidrio clásico: la foto de portada muy desenfocada con auras de color (el diseño de la primera versión). */
.fondo-foto { background: linear-gradient(160deg, var(--fondo1), var(--fondo2)); }
.fondo-foto .fondo-difuso { inset: -8%; width: 116%; height: 116%; object-fit: cover; filter: blur(38px) saturate(1.25); opacity: .55; }
.fondo-foto::after { background: linear-gradient(180deg, color-mix(in srgb, var(--fondo1) 55%, transparent), color-mix(in srgb, var(--fondo2) 35%, transparent)); }
.aura { position: absolute; z-index: 1; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(70px); opacity: .4; mix-blend-mode: soft-light; animation: flotar-aura 22s ease-in-out infinite alternate; }
.a1 { top: -20vmax; left: -15vmax; background: var(--detalle); }
.a2 { bottom: -25vmax; right: -20vmax; background: var(--fondo2); animation-duration: 28s; }
.a3 { top: 35%; left: 40%; width: 40vmax; height: 40vmax; background: #fff; opacity: .25; animation-duration: 18s; }
@keyframes flotar-aura { to { transform: translate(6vmax, 4vmax) scale(1.12); } }

/* ── Fotos integradas: grandes, entre las secciones, con un leve giro que se endereza al aparecer ── */
.foto-integrada { margin: 0 -6px; }
.foto-int { display: block; overflow: hidden; border-radius: 28px; border: 6px solid color-mix(in srgb, var(--vidrio) 60%, #fff); box-shadow: 0 34px 60px -30px rgba(30, 20, 10, .55); }
.foto-int img { display: block; width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; transform: scale(1.12); transition: transform 1.8s cubic-bezier(.2, .8, .2, 1); }
/* Se recortan al formato de la web: verticales 4:5 y, una de cada tres, apaisada 3:2. */
.foto-integrada:nth-of-type(3n) .foto-int img { aspect-ratio: 3 / 2; }
.foto-integrada.revelar { transform: translateY(50px) rotate(var(--giro, -2deg)) scale(.97); }
.foto-integrada.gira-d { --giro: 2deg; }
.foto-integrada.revelar.visible { transform: rotate(calc(var(--giro) * .35)); }
.foto-integrada.visible .foto-int img { transform: scale(1); }

@media (prefers-reduced-motion: reduce) { .foto-int img { transform: none; } }

/* ── Efectos al desplazarse (los elige cada plantilla o los novios) ── */
.efecto-ninguno .revelar, .efecto-ninguno .foto-integrada.revelar { opacity: 1; transform: none; transition: none; }
/* «hojas»: tarjetas fijas que se apilan; la de abajo se achica y se apaga mientras la cubre la siguiente. */
.efecto-hojas main > .hoja { position: sticky; top: min(14px, calc(100svh - var(--alto, 0px) - 14px)); align-self: start; transform-origin: 50% 0; scale: calc(1 - var(--cubre, 0) * .07); }
.efecto-hojas main > .hoja.revelar { transform: none; }
.efecto-hojas main > .hoja.revelar.visible { opacity: calc(1 - var(--cubre, 0) * .85); transition: opacity .15s linear; }
.efecto-hojas main > .hoja { box-shadow: 0 -18px 40px -28px rgba(0, 0, 0, .35); }
/* «vidrio»: cada tarjeta se monta desde el desenfoque y las fotos se abren como una ventana, al ritmo del dedo. */
@supports (animation-timeline: view()) {
  .efecto-vidrio .revelar { opacity: 1; transform: none; transition: none; animation: montar linear both; animation-timeline: view(); animation-range: entry 0% cover 38%; }
  .efecto-vidrio .foto-integrada.revelar { animation-name: montar-foto; }
}
@keyframes montar {
  from { opacity: 0; transform: perspective(900px) translateY(90px) rotateX(16deg) scale(.92); filter: blur(12px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes montar-foto {
  from { opacity: .3; clip-path: inset(16% 9%); transform: scale(1.06); filter: blur(14px) saturate(.6); }
  to { opacity: 1; clip-path: inset(0); transform: rotate(calc(var(--giro, 0deg) * .35)); filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .efecto-vidrio .revelar, .efecto-vidrio .foto-integrada.revelar { animation: none; opacity: 1; transform: none; filter: none; }
  .efecto-hojas main > .hoja { position: static; scale: none; }
}

/* ════ Portadas (v2): sobre, hoja, cristal, catedral y encaje ════ */
/* «sobre»: las fotos asoman de un sobre ilustrado abierto (forro → trasera → fotos → frente → lacre). */
.sobre-portada { position: relative; width: min(440px, 94vw); aspect-ratio: 4 / 3; margin-top: 26%; animation: aparecer 1.3s .15s cubic-bezier(.2, .8, .2, 1) both; filter: drop-shadow(0 28px 30px rgba(40, 30, 20, .22)); }
.sobre-portada > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.sp-forro { transform: scaleY(-1); transform-origin: 50% 35%; }
.sp-fotos { position: absolute; left: 0; right: 0; top: -24%; height: 80%; display: flex; justify-content: center; align-items: flex-start; }
.sp-foto { margin: 0; width: 46%; padding: 3% 3% 9%; background: #fffdf8; border-radius: 3px; box-shadow: 0 14px 26px -12px rgba(0, 0, 0, .45); rotate: -4deg; animation: asomar 1.4s .7s cubic-bezier(.2, .8, .2, 1) both; }
.sp-foto img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 1px; }
.n2 .sp-foto { width: 42%; }
.n2 .sp-foto:first-child { rotate: -8deg; translate: 9% 4%; }
.n2 .sp-foto:last-child { rotate: 6deg; translate: -9% 0; animation-delay: .95s; }
.sp-carta { width: 60%; aspect-ratio: 4 / 3; margin-top: 18%; background: #fffdf8; border-radius: 4px; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .4); }
.sp-carta .monograma { font-size: 2.6rem; }
.sp-lacre { inset: auto !important; left: 43.5% !important; top: 58% !important; width: 13% !important; height: auto !important; filter: drop-shadow(0 6px 8px rgba(60, 40, 10, .35)); }
@keyframes asomar { from { transform: translateY(55%); opacity: 0; } 40% { opacity: 1; } }
.hero-sobre .eyebrow { margin-top: 26px; }

/* «hoja»: una hoja de papel rasgada; la foto se sale por arriba, sujeta con cinta. */
.hoja-papel { position: relative; width: min(390px, 84vw); margin-top: 70px; padding: 0 30px 120px; filter: drop-shadow(0 26px 28px rgba(30, 20, 10, .2)); rotate: -1.5deg; animation: aparecer 1.3s .15s cubic-bezier(.2, .8, .2, 1) both; }
.hoja-papel::before { content: ''; position: absolute; inset: 0; background: url("/bodas/assets/texturas/papel.webp") center / 100% 100% no-repeat; }
.hoja-foto { position: relative; margin: -60px 0 0; padding: 0; rotate: 3deg; box-shadow: 0 20px 34px -16px rgba(0, 0, 0, .5); border: 7px solid #fff; animation: asomar 1.4s .6s cubic-bezier(.2, .8, .2, 1) both; }
.hoja-foto img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hoja-foto::before { content: ''; position: absolute; z-index: 2; top: -16px; left: 50%; width: 110px; height: 30px; margin-left: -55px; rotate: -4deg; background: color-mix(in srgb, var(--acento) 25%, rgba(255, 255, 255, .72)); box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.hoja-papel .monograma { aspect-ratio: 4 / 5; margin-top: 20px; }
.botanica.hoja-flor { top: auto; bottom: -12%; left: auto; right: -18%; width: 52%; rotate: 8deg; }

/* «cristal»: la foto llena la pantalla, desenfocada; encima, una tarjeta de vidrio con la foto nítida y los nombres. */
.hero-cristal { position: relative; isolation: isolate; margin: 0 calc(50% - 50vw); padding: 70px 18px 46px; }
.cristal-fondo { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.cristal-fondo img { width: 100%; height: 100%; object-fit: cover; filter: blur(24px) saturate(1.2); transform: scale(1.15); }
.cristal-fondo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--fondo1) 25%, transparent), color-mix(in srgb, var(--fondo1) 70%, transparent)); }
.cristal-tarjeta { width: min(430px, 100%); padding: 14px 14px 30px; display: flex; flex-direction: column; align-items: center; border-radius: 38px; background: var(--vidrio); border: 1px solid var(--borde); -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 40px 80px -30px rgba(0, 0, 0, .45); animation: aparecer 1.3s .15s cubic-bezier(.2, .8, .2, 1) both; }
.cristal-foto { margin: 0; width: 100%; border-radius: 28px; overflow: hidden; }
.cristal-foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; animation: zoom-lento 14s ease-out both; }
.hero-cristal .eyebrow { margin-top: 24px; }
.hero-cristal .desliza { margin-top: 22px; }

/* «catedral»: sin foto; la iglesia dibujada aparece de abajo hacia arriba, como si se trazara. */
.catedral-dibujo { position: relative; width: min(360px, 80vw); }
.catedral-dibujo > img:first-child { display: block; width: 100%; height: auto; mix-blend-mode: multiply; animation: dibujar 2.8s .2s cubic-bezier(.45, 0, .2, 1) both; }
.oscura .catedral-dibujo > img:first-child { filter: invert(1) sepia(.35) brightness(1.05); mix-blend-mode: screen; opacity: .85; }
@keyframes dibujar { from { clip-path: inset(100% 0 0 0); opacity: .2; } to { clip-path: inset(0); opacity: 1; } }
.botanica.catedral-flor { top: auto; bottom: -6%; left: -20%; width: 46%; }
.hero-catedral .eyebrow { margin-top: 18px; }

/* «encaje»: blanca, la foto en arco dentro de un marco de encaje calado. */
.encaje-marco { position: relative; width: min(360px, 84vw); aspect-ratio: 1598 / 2192; filter: drop-shadow(0 1px 1px rgba(90, 70, 40, .25)) drop-shadow(0 18px 26px rgba(60, 45, 30, .16)); animation: aparecer 1.3s .15s cubic-bezier(.2, .8, .2, 1) both; }
/* Encaje generado (texturas/encaje.webp): la foto va detrás y el encaje la enmarca por encima. */
.encaje-marco::after { content: ''; position: absolute; inset: 0; background: url("/bodas/assets/texturas/encaje.webp") center / 100% 100% no-repeat; pointer-events: none; }
.encaje-foto { position: absolute; inset: 9.5% 12.5% 7.5%; overflow: hidden; border-radius: 999px 999px 3px 3px; background: #fff; }
.encaje-foto img, .encaje-foto .monograma { display: block; width: 100%; height: 100%; object-fit: cover; }
.encaje-flor { position: relative; z-index: 2; width: min(330px, 78vw); margin-top: -46px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .1)); animation: aparecer 1.4s .5s cubic-bezier(.2, .8, .2, 1) both; }

/* ════ Apertura: sobre ilustrado y portada «toque» ════ */
.sobre-ilustrado .s-forro { z-index: 1; transform: scaleY(-1); transform-origin: 50% 35%; opacity: 0; transition: opacity 0s .45s; }
.sobre-ilustrado.abriendo .s-forro { opacity: 1; }
.sobre-ilustrado .s-carta { background: #fffdf8; color: #3a3128; }
.sobre-ilustrado .s-para { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.sobre-ilustrado.sobre-01 .s-para, .sobre-ilustrado.sobre-05 .s-para { color: #3a3128; text-shadow: none; }
.sobre-toque .sobre-escena { gap: 4px; transition: opacity .5s ease, transform .5s ease; }
.toque-mono { width: 92px; height: auto; margin-bottom: 8px; color: var(--detalle); }
.toque-fecha { margin: 0; font: 400 1.15rem var(--f-titulo); letter-spacing: .06em; }
.sobre-toque .s-para { position: static; margin-top: 18px; }
.sobre-toque.abriendo .sobre-escena { opacity: 0; transform: translateY(-24px) scale(.97); }

/* ════ Contenido en una hoja continua de papel (en vez de tarjetas de vidrio) ════ */
.cuerpo-hoja main { gap: 0; }
.cuerpo-hoja main > .sec { position: relative; background: color-mix(in srgb, var(--fondo1) 72%, #fff); border: 0; border-radius: 0; box-shadow: 0 0 0 1px color-mix(in srgb, var(--detalle) 18%, transparent); -webkit-backdrop-filter: none; backdrop-filter: none; }
.oscura.cuerpo-hoja main > .sec { background: color-mix(in srgb, var(--fondo1) 88%, #fff 6%); }
.cuerpo-hoja main > .sec + .sec::before { content: ''; position: absolute; top: 0; left: 50%; width: 90px; height: 1px; translate: -50% 0; background: var(--detalle); opacity: .7; }
.cuerpo-hoja main > .hero + .sec, .cuerpo-hoja main > .foto-integrada + .sec { border-radius: 28px 28px 0 0; }
.cuerpo-hoja main > .sec:has(+ .foto-integrada), .cuerpo-hoja main > .gracias { border-radius: 0 0 28px 28px; }
.cuerpo-hoja main > .foto-integrada { margin: 26px -6px; }

/* ════ Iglesia dibujada, tenue detrás de la ceremonia y del cierre ════ */
.gracias { position: relative; }
.lugar, .gracias { overflow: hidden; }
.arq-fondo { position: absolute; z-index: 0; left: 50%; bottom: -2%; width: min(430px, 96%); translate: -50% 0; opacity: .14; pointer-events: none; mix-blend-mode: multiply; }
.oscura .arq-fondo { filter: invert(1); mix-blend-mode: screen; opacity: .1; }
.lugar > :not(.arq-fondo), .gracias > :not(.arq-fondo) { position: relative; z-index: 1; }

/* ════ Portada «rasgada»: foto completa que termina en papel rasgado; las fotos de en medio, de borde a borde ════ */
.portada-rasgada { --hoja: color-mix(in srgb, var(--fondo1) 72%, #fff); }
.portada-rasgada.estilo-cine .hero { margin: 0 -16px; min-height: 94svh; padding-bottom: clamp(70px, 20vw, 110px); }
.portada-rasgada .hero::after, .portada-rasgada .foto-integrada::before, .portada-rasgada .foto-integrada::after {
  content: ''; position: absolute; left: 0; right: 0; z-index: 2; height: clamp(34px, 12vw, 64px); background: var(--hoja); pointer-events: none;
  -webkit-mask: url("/bodas/assets/texturas/rasgado.webp") center / 100% 100% no-repeat; mask: url("/bodas/assets/texturas/rasgado.webp") center / 100% 100% no-repeat; }
.portada-rasgada .hero::after { bottom: -1px; }
.portada-rasgada .fecha-hero { padding: 0; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; letter-spacing: .3em; font-size: 1.05rem; }
.portada-rasgada .hero .separador { display: none; }
.portada-rasgada .arco::after { background: linear-gradient(180deg, rgba(0, 0, 0, .12), transparent 28%, rgba(0, 0, 0, .42) 52%, rgba(0, 0, 0, .8) 90%); }
.portada-rasgada .hero .nombres { flex-flow: row wrap; justify-content: center; gap: 0 .25em; font-size: clamp(2.7rem, 12vw, 3.8rem); text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.portada-rasgada .hero .nombres em { margin: 0; align-self: center; font-size: .6em; }
.portada-rasgada .desliza { margin-top: 22px; }
.portada-rasgada main > .sec { background: var(--hoja); margin: 0 -16px; border-radius: 0 !important; box-shadow: none; }
.portada-rasgada main > .foto-integrada { position: relative; margin: 0 -16px; }
.portada-rasgada .foto-integrada::before { top: -1px; transform: scale(-1, -1); }
.portada-rasgada .foto-integrada::after { bottom: -1px; }
.portada-rasgada .foto-integrada.revelar, .portada-rasgada .foto-integrada.revelar.visible { transform: none; }
.portada-rasgada .foto-int { border: 0; border-radius: 0; box-shadow: none; }
.portada-rasgada .foto-integrada .foto-int img, .portada-rasgada .foto-integrada:nth-of-type(3n) .foto-int img { aspect-ratio: 4 / 5; }
.portada-rasgada main > .gracias { padding-bottom: 60px; }
/* Itinerario con íconos, uno debajo del otro */
.programa .programa-iconos { list-style: none; display: grid; gap: 24px; max-width: none; margin: 18px 0 0; padding: 0; }
.programa .programa-iconos::before, .programa .programa-iconos li::before { content: none; }
.programa .programa-iconos li { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 0; text-align: center; }
.programa .programa-iconos time { text-align: center; color: var(--texto); }
.programa-iconos .linea { width: 46px; height: 46px; margin-bottom: 8px; }
.programa-iconos time { font: 500 1.2rem/1.2 var(--f-titulo); }
.programa-iconos span { font-size: .95rem; color: var(--suave); }
/* Fotos en blanco y negro */
.tono-bn :is(.arco, .foto-int, .foto-tarjeta, .carta, .sp-foto, .hoja-foto, .cristal-fondo, .cristal-foto, .encaje-foto, .pantalla) :is(img, video) { filter: grayscale(1) contrast(1.06); }

/* Catálogo: aviso para volver a todas las plantillas */
.aviso-demo { position: fixed; top: calc(14px + env(safe-area-inset-top)); left: 14px; z-index: 70; max-width: calc(100vw - 100px); padding: 8px 14px; border-radius: 999px; background: var(--vidrio); border: 1px solid var(--borde); color: var(--texto); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-size: .75rem; letter-spacing: .04em; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .sp-foto, .hoja-foto, .catedral-dibujo > img:first-child { animation: none; } }
