/* Estructura común; cada dirección define colores, tipografía y decoración. */
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
body:not(.abierta) { overflow: hidden; height: 100svh; }
main { max-width: 560px; margin: 0 auto; overflow-x: hidden; }
section { padding: 72px 28px; text-align: center; position: relative; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h2 { font-size: 2.1rem; line-height: 1.1; margin-bottom: 24px; }
h3 { font-size: 1.2rem; margin-bottom: 6px; }
a { color: inherit; }

/* Sobre */
#sobre { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; transition: opacity 1s ease, transform 1.1s ease; }
body.abierta #sobre { opacity: 0; transform: scale(1.08); pointer-events: none; }

/* Música */
#musica { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: 0;
  font-size: 20px; cursor: pointer; background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgb(0 0 0 / .2); opacity: 0; transition: opacity .6s .8s; }
body.abierta #musica { opacity: 1; }
#musica::after { content: '♪'; }
#musica:not(.sonando)::after { content: '♪̸'; opacity: .7; }
#musica.sonando { animation: pulso 2s infinite; }
@keyframes pulso { 50% { transform: scale(1.08); } }

/* Hero */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; }
.nombres { font-size: clamp(3.4rem, 17vw, 5.6rem); line-height: .95; display: flex; flex-direction: column; align-items: center; }
.nombres em { font-size: .55em; margin: 4px 0; }
.fecha { font-size: 1.05rem; letter-spacing: .04em; }
.countdown { display: flex; gap: 14px; margin: 18px 0 8px; }
.countdown div { display: flex; flex-direction: column; min-width: 58px; }
.countdown b { font-family: var(--serif); font-size: 2rem; font-weight: 400; line-height: 1; }
.countdown small { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; opacity: .75; }
.saludo { font-size: .95rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Bloques */
.cita { font-family: var(--serif); font-size: 1.45rem; line-height: 1.35; font-style: italic; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.timeline { list-style: none; padding: 0; display: grid; gap: 18px; text-align: left; }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: baseline; }
.timeline span { font-family: var(--serif); font-size: 1.4rem; }
.vid-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vid { aspect-ratio: 9/16; }
.ph { display: grid; place-items: center; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: rgb(255 255 255 / .9); }
.cards { display: grid; gap: 18px; margin-bottom: 22px; }
.card { padding: 26px 20px; }
.hora { font-family: var(--serif); font-size: 1.8rem; line-height: 1.1; margin-bottom: 6px; }
.btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 600;
  border: 0; cursor: pointer; font-family: var(--sans); background: var(--accent); color: #fff; }
.btn.alt { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.btn.mini { padding: 6px 12px; font-size: .75rem; }
.btn.grande { width: 100%; padding: 15px; font-size: 1rem; }
.iti { list-style: none; padding: 0; display: grid; gap: 10px; font-size: 1.05rem; }
.iti b { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; margin-right: 10px; }
.etiqueta { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 8px; }
.swatches { display: flex; justify-content: center; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.swatches span { width: 38px; height: 38px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px rgb(0 0 0 / .1); }
.nota { font-size: .85rem; opacity: .8; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grid .ph { aspect-ratio: 1; }
.grid .ph:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.sobre-datos { margin-top: 26px; padding: 22px; }
.clabe { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.clabe code { font-size: 1rem; letter-spacing: .04em; }
.hoteles { list-style: none; padding: 0; display: grid; gap: 12px; }
details { text-align: left; padding: 14px 4px; border-bottom: 1px solid currentColor; border-color: rgb(0 0 0 / .12); }
summary { cursor: pointer; font-weight: 600; }
details p { margin-top: 8px; opacity: .85; }
.hashtag { font-family: var(--serif); font-size: 2rem; margin-bottom: 14px; }
form { display: grid; gap: 14px; text-align: left; margin-top: 18px; }
label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; }
input, select, textarea { font: inherit; font-weight: 400; padding: 12px 14px; border-radius: 12px; border: 1.5px solid rgb(0 0 0 / .15); background: rgb(255 255 255 / .85); color: #222; }
.wa { text-align: center; font-size: .85rem; }
.gracias { font-family: var(--serif); font-size: 1.8rem; margin-top: 20px; }
.qr { margin-top: 30px; display: grid; justify-items: center; gap: 8px; }
.qr-box { display: grid; grid-template-columns: repeat(21, 5px); background: #fff; padding: 10px; border-radius: 10px; }
.qr-box i { width: 5px; height: 5px; background: #222; }
footer { text-align: center; padding: 48px 20px 90px; font-size: .9rem; }
.proto { font-size: .7rem; opacity: .6; margin-top: 6px; }
.flor { display: block; }
.flor svg { width: 100%; height: 100%; display: block; }
.hero > :not(.hero-deco) { position: relative; z-index: 1; }
/* Contenido real */
.foto-portada { padding-top: 0; }
.foto-portada figure { max-width: 360px; margin: 0 auto; }
.foto-portada img, .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-portada img { aspect-ratio: 2/3; }
.ph { overflow: hidden; }
video.vid { width: 100%; object-fit: cover; background: #000; border-radius: inherit; }
.timeline li { grid-template-columns: 112px 1fr; }
.timeline span { font-size: 1.05rem !important; }
.lugar-nombre { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; margin-bottom: 14px; }
.horas { display: flex; justify-content: center; gap: 34px; margin-bottom: 14px; }
.horas small { text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; opacity: .8; }
/* Íconos */
.ico { display: inline-grid; place-items: center; color: var(--ico, var(--accent)); }
.ico svg { width: 100%; height: 100%; }
.ico.sec { width: 46px; height: 46px; margin: 0 auto 10px; display: grid; }
.ico.big { width: 40px; height: 40px; display: grid; margin: 0 auto 6px; }
.ico.mid { width: 32px; height: 32px; display: grid; margin: 0 auto 4px; }
.ico.inl { width: 1.25em; height: 1.25em; vertical-align: -.28em; }
.ico.tl { width: 28px; height: 28px; }
.ico.it { width: 26px; height: 26px; vertical-align: middle; margin-right: 8px; }
.timeline li { grid-template-columns: 30px 84px 1fr; align-items: center; }
.btn .ico, .wa .ico { color: inherit; }
summary { list-style: none; } summary::-webkit-details-marker { display: none; }
summary .ico { margin-right: 6px; }
/* Pantallas: cada sección ocupa la pantalla y el scroll "clipea" */
html { scroll-snap-type: y mandatory; }
main > section { min-height: 100svh; scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; flex-direction: column; justify-content: center; }
footer { scroll-snap-align: end; }
.foto-portada figure { max-height: 78svh; }
.foto-portada img { max-height: calc(78svh - 60px); width: auto; max-width: 100%; margin: 0 auto; }
.pase .qr-box { grid-template-columns: repeat(21, 8px); padding: 14px; }
.pase .qr-box i { width: 8px; height: 8px; }
.pase .saludo { font-size: 1.1rem; }
.desliza { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; width: 34px; height: 34px; color: inherit; opacity: .7; animation: bota 1.8s ease-in-out infinite; z-index: 2; }
@keyframes bota { 50% { transform: translateY(8px); } }
.puntos { position: fixed; right: 8px; top: 50%; translate: 0 -50%; z-index: 30; display: grid; gap: 7px; opacity: 0; transition: opacity .6s .8s; }
body.abierta .puntos { opacity: 1; }
.puntos button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); opacity: .25; cursor: pointer; transition: all .3s; }
.puntos button.on { opacity: .9; height: 18px; border-radius: 4px; background: var(--accent); }
@media (prefers-reduced-motion: reduce) { html { scroll-snap-type: y proximity; } .desliza { animation: none; } }
/* Miniaturas de video */
button.vid { position: relative; padding: 0; border: 0; cursor: pointer; overflow: hidden; background: #000; display: block; }
button.vid img { width: 100%; height: 100%; object-fit: cover; display: block; }
button.vid .play { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgb(255 255 255 / .88); color: var(--accent); box-shadow: 0 4px 14px rgb(0 0 0 / .3); transition: transform .2s; }
button.vid .play svg { width: 22px; height: 22px; margin-left: 3px; }
button.vid:hover .play { transform: scale(1.1); }
/* Visor: el video crece desde su miniatura */
.visor { position: fixed; inset: 0; z-index: 60; background: rgb(20 4 10 / 0); visibility: hidden; transition: background .4s ease, visibility 0s .4s; }
.visor.activo { visibility: visible; transition: background .4s ease; }
.visor.abierto { background: rgb(20 4 10 / .88); backdrop-filter: blur(6px); }
.visor video { position: fixed; object-fit: cover; border-radius: 14px; background: #000; box-shadow: 0 20px 60px rgb(0 0 0 / .5);
  transition: left .42s cubic-bezier(.2,.8,.2,1), top .42s cubic-bezier(.2,.8,.2,1), width .42s cubic-bezier(.2,.8,.2,1), height .42s cubic-bezier(.2,.8,.2,1); }
.visor .cerrar { position: fixed; top: 14px; right: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgb(255 255 255 / .9); color: #222; font-size: 18px; opacity: 0; transition: opacity .3s; }
.visor.abierto .cerrar { opacity: 1; transition: opacity .3s .3s; }
