/* Nube · bautizo: cielo suave, nubes y paloma. El color sale de datos.js (tema: rosa, azul o neutro). */
:root {
  --cielo-1: #fdf3f5; --cielo-2: #f6dfe5; --acento: #c26d86; --acento-suave: #f2c9d4;
  --fondo: #fffafb; --texto: #4b3d45; --suave: #fbeef1; --sobre-acento: #fff;
  --linea: rgba(194, 109, 134, .3);
  --encabezado-fondo: rgba(255, 250, 251, .92); --menu-fondo: #fffafb;
  --fuente-display: "Cormorant Garamond", Georgia, serif;
  --fuente-script: "Great Vibes", "Brush Script MT", cursive;
  --fuente-texto: "Quicksand", system-ui, sans-serif;
  --radio: 999px; --radio-foto: 22px;
}
.tema-azul {
  --cielo-1: #f2f7fc; --cielo-2: #d9e8f6; --acento: #4f7fae; --acento-suave: #c5dbef;
  --fondo: #fafcff; --texto: #34404d; --suave: #edf4fb; --linea: rgba(79, 127, 174, .3);
  --encabezado-fondo: rgba(250, 252, 255, .92); --menu-fondo: #fafcff;
}
.tema-neutro {
  --cielo-1: #fbf8f2; --cielo-2: #ece4d4; --acento: #9b845c; --acento-suave: #e3d7bf;
  --fondo: #fdfbf7; --texto: #463e33; --suave: #f5efe4; --linea: rgba(155, 132, 92, .3);
  --encabezado-fondo: rgba(253, 251, 247, .92); --menu-fondo: #fdfbf7;
}
.visualmente-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.espacio-sm { margin-top: 28px; }
body { font-weight: 500; }
.encabezado__marca { color: var(--acento); font-size: 34px; }
.titulo { font-weight: 600; color: var(--texto); }
.eyebrow { color: var(--acento); }
.script { color: var(--acento); }

/* Cielo con nubes */
.cielo { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--cielo-1) 0%, var(--cielo-2) 100%); }
.nube-deco { position: absolute; fill: #fff; opacity: .85; pointer-events: none; animation: flotar 40s linear infinite; }
.n1 { width: 220px; height: 99px; top: 12%; left: -60px; }
.n2 { width: 160px; height: 72px; top: 30%; right: -40px; animation-duration: 55s; animation-direction: reverse; opacity: .7; }
.n3 { width: 260px; height: 117px; bottom: 6%; left: 30%; animation-duration: 70s; opacity: .6; }
.n4 { width: 240px; height: 108px; top: 10%; right: -60px; animation-duration: 60s; }
.n5 { width: 260px; height: 117px; bottom: -20px; left: -40px; animation-duration: 65s; animation-direction: reverse; }
@keyframes flotar { 0% { transform: translateX(0); } 50% { transform: translateX(60px); } 100% { transform: translateX(0); } }

.paloma { width: 62px; height: 46px; fill: #fff; filter: drop-shadow(0 4px 10px rgba(0,0,0,.08)); display: block; margin: 0 auto; }
.paloma--chica { width: 48px; height: 36px; fill: var(--acento-suave); margin-bottom: 16px; }

/* Portada */
.hero { min-height: 100svh; display: grid; place-items: center; gap: 30px; padding: calc(96px + env(safe-area-inset-top, 0px)) 16px 64px; text-align: center; }
.hero__foto-marco { position: relative; width: min(70vw, 380px); z-index: 1; }
.hero__foto { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 25%; border-radius: 50%; border: 10px solid #fff; box-shadow: 0 24px 50px rgba(0,0,0,.08); }
.hero__nube { position: absolute; left: -12%; right: -12%; bottom: -14%; width: 124%; height: auto; aspect-ratio: 200 / 90; fill: #fff; }
.hero__texto { position: relative; z-index: 1; display: grid; justify-items: center; }
.hero__mi { font-size: 46px; line-height: 1; margin-top: 8px; }
.hero__nombre { font: 600 clamp(64px, 18vw, 112px)/1 var(--fuente-display); color: var(--texto); letter-spacing: .02em; }
.hero__fecha { font: italic 500 22px var(--fuente-display); margin-top: 6px; }
.hero__acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 380px minmax(0, 520px); justify-content: center; gap: 100px; }
}

/* Tarjetas */
.tarjeta { background: #fff; border-radius: 28px; padding: 34px 24px; box-shadow: 0 12px 36px rgba(0,0,0,.05); border: 1px solid var(--linea); }

/* Invitación */
.frase { font: italic 500 clamp(23px, 4vw, 30px)/1.45 var(--fuente-display); max-width: 32ch; margin: 0 auto; }
.familia { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 22px; max-width: 760px; margin: 40px auto 0; }
.padres { display: grid; gap: 2px; font: 600 23px/1.35 var(--fuente-display); }
.padres__y { font: 400 30px/1 var(--fuente-script); color: var(--acento); }
.padrinos { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.padrino { display: grid; }
.padrino__rol { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--acento); font-weight: 700; }
.padrino__nombre { font: 600 22px var(--fuente-display); }

/* Cuenta regresiva */
.cuenta-sec .titulo { font-size: 72px; font-weight: 400; color: var(--acento); }
.cuenta__item { background: #fff; border-radius: 50% 50% 22px 22px; padding-top: 22px; box-shadow: 0 8px 22px rgba(0,0,0,.05); }
.cuenta__num { color: var(--texto); font-weight: 600; }
.cuenta__lbl { color: var(--acento); font-weight: 700; }

/* Celebración */
.evento { background: #fff; border-radius: 28px; border: 1px solid var(--linea); box-shadow: 0 12px 36px rgba(0,0,0,.05); }
.evento__hora { color: var(--acento); font-weight: 600; }
.itin-caja { margin: 40px auto 0; max-width: 600px; }
.subtitulo { font-size: 46px; font-weight: 400; }
.itin__hora { color: var(--acento); font-weight: 600; }
.itin__txt { text-align: left; }
.itin__punto { background: var(--acento-suave); width: 14px; height: 14px; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--acento-suave); }

/* Detalles */
.suave { background: var(--suave); }
.detalles__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.vest__codigo, .regalo__tienda { color: var(--acento); font-weight: 600; }
.regalo { padding: 16px 8px; }

/* Galería: la primera foto ocupa dos filas */
.galeria { grid-auto-flow: dense; }
.gal__item { border-radius: 22px; }
.gal__item:first-child { grid-row: span 2; aspect-ratio: auto; border-radius: 160px 160px 22px 22px; }
.hashtag { margin-top: 24px; }
.hashtag strong { color: var(--acento); }

/* Confirmar */
.confirmar__texto { max-width: 42ch; margin: 12px auto 0; }

.pie { background: var(--fondo); }
.pie__nombre { color: var(--acento); font-size: 56px; }

/* Ajustes: nube más baja para no tapar las caras, nubes siempre detrás del texto */
.hero__nube { left: 4%; right: 4%; width: 92%; bottom: -24%; }
.cielo > .contenedor, .hero__texto { position: relative; z-index: 1; }
.hero .paloma { fill: var(--acento-suave); filter: none; }
