/* ============================================================
   EL BAUTIZO DE LIAM & NOAH — sobre las nubes
   Celeste cielo, blanco nube, amarillo mantequilla (las aureolas) y
   un toque durazno. Comfortaa + Dancing Script + Lato. Todo en pares,
   formas de nube y burbuja, nada de oro. Diseño propio.
   ============================================================ */
:root {
  --cielo: #9DCBF2; --cielo-cl: #E4F2FD; --cielo-med: #C9E3F8; --cielo-prof: #376DA2;
  --nube: #FFFFFF; --mantequilla: #F6E08B; --mantequilla-osc: #E2BE45; --durazno: #F7CDB6;
  --tinta: #2E4A66; --tinta-cl: #4F6273;
  --wa: #0E7A3B;
  --f-titulo: 'Comfortaa', system-ui, sans-serif;
  --f-nombre: 'Dancing Script', cursive;
  --f-texto: 'Lato', system-ui, sans-serif;
  --t-xs: clamp(11px, 3vw, 12.5px); --t-sm: clamp(13px, 3.5vw, 15px); --t-md: clamp(15.5px, 4.2vw, 17.5px);
  --t-lg: clamp(19px, 5vw, 23px); --t-xl: clamp(24px, 6.6vw, 32px); --t-2xl: clamp(28px, 8vw, 40px);
  --t-nombre: clamp(52px, 15vw, 90px);
  --ancho: 580px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--f-texto); color: var(--tinta); background: var(--nube); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.cerrado { overflow: hidden; height: 100dvh; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
i { font-family: var(--f-nombre); font-style: normal; }

/* ============================================================ PORTADA */
.portada { position: fixed; inset: 0; z-index: 50; background: var(--cielo); overflow: hidden; }
.portada__escena { position: absolute; left: 50%; top: 50%; width: calc(var(--w, 752) * 1px); height: calc(var(--h, 1344) * 1px); will-change: transform; }
.portada__fondo { width: 100%; height: 100%; object-fit: cover; }
.ositos { position: absolute; will-change: transform; }
.ositos img { position: relative; z-index: 2; width: 100%; }
/* brillo de las aureolas (sobre la cabeza de cada osito) */
.ositos__halo { position: absolute; z-index: 3; width: 18%; aspect-ratio: 2.2/1; border-radius: 50%; top: 2%; opacity: 0; transform: scale(.6);
  background: radial-gradient(ellipse, rgba(255,248,200,.95) 0%, rgba(246,224,139,.7) 40%, rgba(246,224,139,0) 72%); will-change: transform, opacity; }
.ositos__halo--a { left: 31%; } .ositos__halo--b { left: 53%; }
.capas { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.capa { position: absolute; left: 50%; top: -60%; width: 150vw; max-width: none; transform: translateX(-50%); opacity: 0; will-change: transform, opacity; }
.capa--1 { left: 20%; width: 120vw; } .capa--2 { left: 80%; width: 140vw; } .capa--3 { left: 45%; width: 170vw; }
.capa--4 { left: 10%; width: 130vw; } .capa--5 { left: 70%; width: 160vw; } .capa--6 { left: 50%; width: 200vw; }
.claridad { position: absolute; inset: 0; z-index: 4; background: radial-gradient(circle at 50% 35%, #fff 0%, var(--cielo-cl) 70%); opacity: 0; pointer-events: none; }

.portada__cabecera { position: absolute; top: max(30px, env(safe-area-inset-top)); left: 0; right: 0; display: grid; justify-items: center; gap: 2px; z-index: 5; pointer-events: none; text-align: center; padding: 0 16px; }
.portada__sobre { font: 700 var(--t-sm)/1 var(--f-titulo); letter-spacing: .22em; text-transform: uppercase; color: var(--cielo-prof); }
.portada__nombres { font: 700 var(--t-nombre)/1.05 var(--f-nombre); color: var(--cielo-prof); text-shadow: 0 0 18px #fff, 0 2px 0 #fff; }
.portada__tap { position: absolute; inset: 0; z-index: 6; }
.portada__cta { position: absolute; left: 0; right: 0; bottom: max(34px, env(safe-area-inset-bottom)); display: grid; justify-items: center; z-index: 5; pointer-events: none; }
/* píldora con forma de nube */
.portada__cta-nube { position: relative; isolation: isolate; display: inline-block; padding: 12px 26px; border-radius: 999px; background: #fff; color: var(--cielo-prof); font: 700 var(--t-sm)/1 var(--f-titulo); letter-spacing: .08em; animation: flota 2.6s ease-in-out infinite; }
.portada__cta-nube::before, .portada__cta-nube::after { content: ''; position: absolute; z-index: -1; background: #fff; border-radius: 50%; }
.portada__cta-nube::before { width: 30px; height: 30px; left: 18px; top: -14px; }
.portada__cta-nube::after { width: 40px; height: 40px; right: 22px; top: -20px; }
@keyframes flota { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ============================================================ CIELO */
.cielo { position: relative; z-index: 1; }
body.cerrado .cielo { visibility: hidden; }
.franja { position: relative; padding: clamp(66px, 12vh, 112px) clamp(20px, 6vw, 40px); overflow-x: hidden; overflow-x: clip; background: var(--nube); }
.franja--celeste { background: var(--cielo-cl); }
/* borde ondulado de nube arriba de cada franja celeste */
.franja--celeste::before { content: ''; position: absolute; left: 0; right: 0; top: -22px; height: 24px; background: radial-gradient(circle at 24px 24px, var(--cielo-cl) 23px, transparent 24px) 0 0 / 46px 24px repeat-x; }
.franja__ancho { position: relative; max-width: var(--ancho); margin: 0 auto; text-align: center; }
.titulo { font: 700 var(--t-2xl)/1.15 var(--f-titulo); color: var(--cielo-prof); }
.titulo span { display: block; font: 700 1.25em/1 var(--f-nombre); color: var(--tinta); }
.texto { margin: 16px auto 0; max-width: 44ch; font-size: var(--t-md); line-height: 1.75; color: var(--tinta-cl); }
.texto b { color: var(--cielo-prof); }

.fig { position: absolute; pointer-events: none; z-index: 2; will-change: transform; }
.fig--luna { right: 8%; top: 10%; width: clamp(70px, 19vw, 110px); }
.fig--lazo { left: -3%; top: 26px; width: clamp(80px, 22vw, 130px); transform: rotate(-14deg); }
.fig--zapatitos { right: -2%; bottom: -8px; width: clamp(90px, 24vw, 140px); }

/* ---------- 1 · ALTO ---------- */
.alto { position: relative; min-height: 100dvh; display: grid; align-content: center; justify-items: center; padding: 70px 20px 0; overflow: hidden; text-align: center; background: var(--cielo-cl); }
.alto__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.alto__velo { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.35) 55%, #fff 97%); }
.alto__texto { position: relative; z-index: 3; display: grid; justify-items: center; }
.alto__sobre { font: 700 var(--t-xs)/1 var(--f-titulo); letter-spacing: .24em; text-transform: uppercase; color: var(--cielo-prof); }
.alto__titulo { margin-top: 12px; font: 500 var(--t-lg)/1 var(--f-titulo); color: var(--tinta); }
.alto__nombres { margin-top: 4px; font: 700 var(--t-nombre)/1.02 var(--f-nombre); color: var(--cielo-prof); text-shadow: 0 2px 0 #fff; }
.alto__fecha { display: grid; justify-items: center; margin-top: 18px; width: 118px; aspect-ratio: 1; place-content: center; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.5); }
.alto__fecha span { font: 700 var(--t-xs)/1.2 var(--f-titulo); letter-spacing: .08em; text-transform: uppercase; color: var(--tinta-cl); }
.alto__fecha b { font: 700 clamp(38px, 11vw, 48px)/1 var(--f-titulo); color: var(--cielo-prof); }
.alto__ositos { position: relative; z-index: 2; width: min(66vw, 300px); margin-top: 22px; }

/* ---------- 2 · PAREJA ---------- */
.pareja { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 30px; }
.ficha { position: relative; padding: 30px 12px 20px; border-radius: 120px 120px 26px 26px; background: var(--cielo-cl); }
.ficha__inicial { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: #fff; font: 700 var(--t-nombre)/1 var(--f-nombre); font-size: 40px; color: var(--cielo-prof); box-shadow: 0 -8px 0 -2px var(--mantequilla); transition: background-color .3s ease, color .3s ease; }
.ficha h3 { margin-top: 10px; font: 700 var(--t-xl)/1 var(--f-nombre); color: var(--tinta); }
.ficha__dato { margin-top: 6px; font-size: var(--t-xs); color: var(--tinta-cl); }
.ficha__padrinos { margin-top: 12px; padding-top: 12px; border-top: 2px dotted var(--cielo); font: 700 var(--t-sm)/1.35 var(--f-texto); color: var(--tinta); }
.ficha__padrinos span { display: block; font: 700 var(--t-xs)/1 var(--f-titulo); letter-spacing: .12em; text-transform: uppercase; color: var(--cielo-prof); margin-bottom: 6px; }
.ficha__padrinos i { color: var(--cielo-prof); font-size: 1.2em; }
.pareja__union { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mantequilla); color: #fff; }

/* ---------- 3 · NUBECITAS ---------- */
.nubecitas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 14px; margin-top: 44px; }
.nubecita { position: relative; display: grid; place-content: center; gap: 2px; height: 96px; border-radius: 60px; background: #fff; color: var(--cielo-prof); }
.nubecita::before, .nubecita::after { content: ''; position: absolute; background: #fff; border-radius: 50%; z-index: 0; }
.nubecita::before { width: 58px; height: 58px; left: 18%; top: -26px; }
.nubecita::after { width: 76px; height: 76px; right: 16%; top: -38px; }
.nubecita b, .nubecita span { position: relative; z-index: 1; }
.nubecita b { font: 700 clamp(30px, 9vw, 42px)/1 var(--f-titulo); font-variant-numeric: tabular-nums; }
.nubecita span { font: 700 var(--t-xs)/1 var(--f-titulo); letter-spacing: .1em; text-transform: uppercase; color: var(--tinta-cl); }
.hoy { margin-top: 18px; font: 700 var(--t-2xl)/1 var(--f-nombre); color: var(--cielo-prof); }

/* ---------- 4 · CARTA ---------- */
.carta { position: relative; padding: 56px clamp(22px, 6vw, 44px) 34px; border-radius: 34px; background: var(--cielo-cl); border: 2px dashed var(--cielo); }
.carta__cruz { position: absolute; left: 50%; top: -44px; width: 62px; transform: translateX(-50%); }
.carta__texto { font: 500 var(--t-lg)/1.6 var(--f-titulo); color: var(--tinta); }
.carta__firma { margin-top: 18px; font: 700 var(--t-xl)/1.1 var(--f-nombre); color: var(--cielo-prof); }

/* ---------- 5 · CAMINO ---------- */
.camino { list-style: none; position: relative; margin: 30px auto 0; max-width: 460px; text-align: left; }
.camino::before { content: ''; position: absolute; left: 21px; top: 10px; bottom: 30px; width: 0; border-left: 3px dotted var(--cielo); }
.parada { position: relative; padding: 0 0 26px 58px; }
.parada::before { content: ''; position: absolute; left: 6px; top: 2px; width: 34px; height: 22px; border-radius: 12px; background: #fff; box-shadow: 8px -6px 0 -2px #fff, -6px -4px 0 -4px #fff, 0 0 0 2px var(--cielo); }
.parada__hora { display: block; font: 700 var(--t-sm)/1 var(--f-titulo); color: var(--cielo-prof); margin-bottom: 8px; }
.parada__tarjeta { padding: 18px 20px; border-radius: 22px; background: #fff; transition: transform .3s ease, background-color .3s ease; }
.parada__tarjeta--suave { background: var(--cielo-med); }
.parada__tipo { display: block; font: 700 var(--t-xs)/1 var(--f-titulo); letter-spacing: .14em; text-transform: uppercase; color: var(--tinta-cl); }
.parada__tarjeta h3 { margin-top: 6px; font: 700 var(--t-md)/1.3 var(--f-titulo); color: var(--tinta); }
.parada__tarjeta p { margin-top: 4px; font-size: var(--t-sm); color: var(--tinta-cl); }
.enlace { position: relative; display: inline-block; margin-top: 10px; padding-bottom: 4px; font: 700 var(--t-sm)/1 var(--f-titulo); color: var(--cielo-prof); text-decoration: none; }
.enlace::after, .creditos__correo::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: currentColor; transform: scaleX(0); transform-origin: left center; transition: transform .55s cubic-bezier(.2,.7,.2,1); }

/* ---------- 6 · BURBUJAS ---------- */
.burbujas { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; max-width: 700px; margin: 28px auto 0; }
.burbuja { margin: 0; text-align: center; }
.burbuja img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 6px solid var(--cielo-cl); transition: border-radius .6s cubic-bezier(.34,1.56,.64,1), border-color .3s ease; }
.burbuja:nth-child(1) img { border-radius: 58% 42% 50% 50% / 48% 52% 48% 52%; }
.burbuja:nth-child(2) img { border-radius: 44% 56% 42% 58% / 56% 44% 56% 44%; }
.burbuja:nth-child(3) img { border-radius: 50% 50% 60% 40% / 40% 60% 40% 60%; }
.burbuja:nth-child(4) img { border-radius: 62% 38% 46% 54% / 50% 50% 50% 50%; }
.burbuja figcaption { margin-top: 10px; font: 700 var(--t-lg)/1 var(--f-nombre); color: var(--tinta); }

/* ---------- 7 · IDEAS ---------- */
.ideas { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.ideas li { display: grid; justify-items: center; gap: 4px; padding: 18px 8px 16px; border-radius: 60px 60px 22px 22px; background: #fff; transition: transform .3s ease, background-color .3s ease; }
.ideas img { width: 60px; height: 60px; object-fit: contain; }
.ideas b { font: 700 var(--t-sm)/1.2 var(--f-titulo); color: var(--tinta); margin-top: 4px; }
.ideas small { font-size: var(--t-xs); color: var(--tinta-cl); }

/* ---------- 8 · CUÁNTOS ---------- */
.cuantos { display: inline-grid; grid-template-columns: 50px auto 50px; align-items: center; gap: 16px; margin: 26px 0 20px; }
.cuantos__btn { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--cielo); background: var(--cielo-cl); color: var(--cielo-prof); cursor: pointer; transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.cuantos__btn svg { display: block; }
.cuantos__btn:active { transform: scale(.92); }
.cuantos__num { display: grid; justify-items: center; min-width: 96px; }
.cuantos__num b { font: 700 var(--t-2xl)/1 var(--f-titulo); color: var(--tinta); }
.cuantos__num small { font: 700 var(--t-xs)/1 var(--f-titulo); letter-spacing: .1em; text-transform: uppercase; color: var(--tinta-cl); }
.boton { display: inline-flex; align-items: center; justify-content: center; padding: 16px 32px; border-radius: 999px; text-decoration: none; font: 700 var(--t-md)/1 var(--f-titulo); background: var(--cielo-prof); color: #fff; transition: background-color .3s ease, color .3s ease, transform .15s ease; }
.boton:active { transform: scale(.97); }
.boton--wa { background: var(--wa); color: #fff; }

/* ---------- 9 · COLUMPIO (canción) ---------- */
.columpio { position: relative; margin: 10px auto 0; width: 140px; height: 190px; border: none; background: transparent; cursor: pointer; display: grid; justify-items: center; align-content: start; }
.columpio__hilo { width: 2px; height: 60px; background: var(--cielo-prof); opacity: .5; }
.columpio__luna { width: 110px; margin-top: -4px; transform-origin: 50% -60px; transition: transform .4s ease; }
.cancion.tocando .columpio__luna { animation: columpio 2.4s ease-in-out infinite; }
@keyframes columpio { 0%,100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }
.cancion__pista { margin-top: 4px; font: 700 var(--t-sm)/1.4 var(--f-titulo); color: var(--tinta-cl); }
.yt-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* ---------- 10 · CIERRE + CRÉDITOS ---------- */
.cierre { padding: clamp(60px, 12vh, 100px) 20px clamp(44px, 8vh, 64px); text-align: center; background: #fff; }
.cierre__ositos { width: min(52vw, 220px); margin: 0 auto 14px; }
.cierre__texto { font: 500 var(--t-md)/1.4 var(--f-titulo); color: var(--tinta-cl); }
.cierre__nombres { margin: 4px 0 24px; font: 700 var(--t-nombre)/1.05 var(--f-nombre); color: var(--cielo-prof); }
.creditos { padding: clamp(44px, 8vh, 64px) 20px calc(36px + env(safe-area-inset-bottom)); text-align: center; background: var(--cielo-prof); color: rgba(255,255,255,.9); }
.creditos p { font-size: var(--t-sm); line-height: 1.6; max-width: 46ch; margin: 0 auto; }
.creditos b { color: var(--mantequilla); }
.creditos__extras { display: none; }
.creditos__pregunta { margin: 0 auto 24px !important; font: 700 var(--t-lg)/1.35 var(--f-titulo) !important; color: #fff; }
.creditos__correo { position: relative; display: inline-block; margin-top: 24px; padding-bottom: 3px; font-size: var(--t-sm); color: var(--cielo-cl); text-decoration: none; }
.creditos__marca { margin: 36px auto 0 !important; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.25); font-size: var(--t-xs) !important; letter-spacing: .14em; text-transform: uppercase; opacity: .65; }

/* ---------- volver fijo ---------- */
.volver-fijo { position: fixed; left: max(14px, env(safe-area-inset-left)); top: max(14px, env(safe-area-inset-top)); z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: none; background: #fff; color: var(--cielo-prof); display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 2px var(--cielo); transition: background-color .25s ease, color .25s ease, opacity .3s ease; }
.volver-fijo:active { transform: scale(.94); }
body.cerrado .volver-fijo { opacity: 0; pointer-events: none; }

@media (min-width: 768px) {
  .burbujas { grid-template-columns: repeat(4, 1fr); max-width: 980px; }
  .nubecitas { grid-template-columns: repeat(4, 1fr); }
  .pareja { gap: 20px; }
}
@media (max-width: 380px) { .pareja { grid-template-columns: 1fr; } .pareja__union { margin: 0 auto; } }
@media (hover: none) { .enlace::after, .creditos__correo::after { transform: scaleX(1); opacity: .45; } }
@media (hover: hover) and (pointer: fine) {
  .boton:hover { background: var(--mantequilla); color: var(--tinta); }
  .boton--wa:hover { background: #fff; color: var(--wa); }
  .cuantos__btn:hover { background: var(--cielo-prof); color: #fff; border-color: var(--cielo-prof); }
  .ficha:hover .ficha__inicial { background: var(--cielo-prof); color: #fff; }
  .parada__tarjeta:hover { transform: translateX(6px); background: var(--cielo-med); }
  .parada__tarjeta:hover .enlace::after, .enlace:hover::after, .creditos__correo:hover::after { transform: scaleX(1); }
  .burbuja:hover img { border-radius: 50%; border-color: var(--mantequilla); }
  .ideas li:hover { transform: translateY(-5px); background: var(--mantequilla); }
  .nubecita { transition: transform .35s cubic-bezier(.34,1.56,.64,1); } .nubecita:hover { transform: translateY(-8px); }
  .columpio:hover .columpio__luna { transform: rotate(-10deg) scale(1.05); }
  .volver-fijo:hover { background: var(--cielo-prof); color: #fff; }
  .carta__cruz { transition: transform .4s ease; } .carta:hover .carta__cruz { transform: translateX(-50%) translateY(-6px) rotate(-6deg); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

/* pie: el correo va en su propia línea, 20 px debajo del botón de WhatsApp
   (en pantallas anchas quedaba pegado al lado del botón) */
.creditos__correo { display: table !important; margin: 20px auto 0 !important; }
