/* Mariposa · XV años jardín encantado: crema, salvia, lila y mariposas */
:root {
  --fondo: #fbf8f1;
  --fondo-2: #eef1e6;
  --texto: #2f3e34;
  --suave: #e4e9da;
  --acento: #7d63a8;
  --salvia: #7f9a7b;
  --mantequilla: #efe2b8;
  --sobre-acento: #fff;
  --linea: rgba(127, 154, 123, .45);
  --encabezado-fondo: rgba(251, 248, 241, .9);
  --menu-fondo: #fbf8f1;
  --fuente-display: "Fraunces", Georgia, serif;
  --fuente-script: "Allura", "Brush Script MT", cursive;
  --fuente-texto: "Karla", system-ui, sans-serif;
  --radio: 999px;
  --radio-foto: 200px 200px 14px 14px;
}
.visualmente-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.espacio-sm { margin-top: 28px; }
.encabezado__marca { color: var(--acento); font-size: 36px; }
.titulo { font-weight: 300; font-style: italic; }
.eyebrow { color: var(--salvia); }
.rama { width: 220px; height: 36px; color: var(--salvia); display: block; margin: 18px auto; }
.rama--clara { color: rgba(255,255,255,.75); }

/* Mariposas que vuelan */
.mariposas { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.mariposa { position: absolute; width: 46px; height: 36px; display: block; animation: volar 16s ease-in-out infinite; perspective: 200px; }
.mariposa::before { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 24px; margin-left: -1.5px; border-radius: 3px; background: #4b3a63; z-index: 1; }
.ala { position: absolute; top: 0; width: 23px; height: 36px; fill: var(--acento); opacity: .9; }
.ala--i { left: 0; transform-origin: 100% 50%; animation: aletear .45s ease-in-out infinite alternate; }
.ala--d { right: 0; transform-origin: 0 50%; animation: aletear-d .45s ease-in-out infinite alternate; }
.m1 { top: 16%; left: 6%; }
.m2 { top: 40%; right: 8%; animation-duration: 20s; animation-delay: -6s; }
.m2 .ala { fill: #c99bb7; }
.m3 { top: 72%; left: 14%; animation-duration: 18s; animation-delay: -11s; transform: scale(.8); }
.m3 .ala { fill: var(--salvia); }
@keyframes aletear { from { transform: rotateY(0deg); } to { transform: rotateY(50deg); } }
@keyframes aletear-d { from { transform: rotateY(0deg); } to { transform: rotateY(-50deg); } }
@keyframes volar {
  0%, 100% { transform: translate(0, 0) rotate(-8deg); }
  25% { transform: translate(40px, -30px) rotate(6deg); }
  50% { transform: translate(10px, -60px) rotate(-4deg); }
  75% { transform: translate(-30px, -24px) rotate(8deg); }
}

/* Portada */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; gap: 28px; padding: calc(96px + env(safe-area-inset-top, 0px)) 16px 64px;
  background: radial-gradient(ellipse at 20% 10%, #f3ecdc 0%, transparent 55%), radial-gradient(ellipse at 90% 80%, #e7ecdc 0%, transparent 60%), var(--fondo); }
.hero__ventana { position: relative; width: min(84vw, 460px); }
.hero__ventana::before { content: ""; position: absolute; inset: -12px; border: 1px solid var(--linea); border-radius: 260px 260px 22px 22px; }
.hero__foto { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 240px 240px 14px 14px; }
.hero__texto { text-align: center; display: grid; justify-items: center; }
.hero__mis { font-size: 13px; letter-spacing: .34em; text-transform: uppercase; color: var(--salvia); font-weight: 700; }
.hero__nombre { font-size: clamp(90px, 22vw, 160px); line-height: .95; color: var(--acento); }
.hero__fecha { font: italic 300 22px var(--fuente-display); }
.hero__acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
@media (min-width: 900px) {
  .hero { grid-template-columns: auto minmax(0, 480px); justify-content: center; gap: 72px; }
  .hero__texto { justify-items: start; text-align: left; }
  .hero__texto .rama { margin-left: 0; }
  .hero__acciones { justify-content: flex-start; }
}

/* Invitación */
.invitacion { background: var(--fondo-2); }
.frase { font: italic 300 clamp(24px, 4vw, 32px)/1.45 var(--fuente-display); max-width: 30ch; margin: 0 auto; }
.invitacion__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 36px; margin: 40px auto 0; max-width: 820px; }
.padres { display: grid; gap: 2px; font: 400 clamp(22px, 4vw, 27px)/1.3 var(--fuente-display); }
.padres__y { font: 400 36px/1 var(--fuente-script); color: var(--acento); }
.padrinos { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.padrino { display: grid; }
.padrino__rol { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--acento); font-weight: 700; }
.padrino__nombre { font: 400 20px var(--fuente-display); }
.invitacion__cierre { margin-top: 48px; font: italic 300 22px var(--fuente-display); }
.invitacion__fecha { font: 400 clamp(26px, 5vw, 36px) var(--fuente-display); color: var(--acento); }

/* Cuenta regresiva */
.cuenta-sec { background: var(--fondo); }
.cuenta-sec .titulo { font-family: var(--fuente-script); font-style: normal; font-size: 72px; color: var(--acento); }
.cuenta__item { border-radius: 120px 120px 12px 12px; background: var(--suave); padding: 22px 6px 14px; }
.cuenta__num { color: var(--texto); font-weight: 300; }
.cuenta__lbl { color: var(--salvia); font-weight: 700; }

/* Celebración */
#celebracion { background: var(--fondo); }
.cabecera { text-align: center; }
.evento { background: #fff; border-radius: 200px 200px 18px 18px; padding-top: 56px; border: 1px solid var(--linea); }
.evento__tipo { color: var(--salvia); }
.evento__hora { color: var(--acento); font-weight: 300; }
.evento__mapa { border-radius: 14px; }
.sendero { margin-top: 72px; text-align: center; }
.subtitulo { font: italic 300 32px var(--fuente-display); }
.itin { grid-template-columns: 1fr 30px 1fr; }
.itin__hora { color: var(--acento); }
.itin__txt { text-align: left; }
.itin__punto { width: 18px; height: 10px; border-radius: 0 100% 0 100%; background: var(--salvia); transform: rotate(-30deg); }
.itin:not(:last-child) .itin__punto::after { background: var(--linea); top: 10px; transform: rotate(30deg) translateX(-50%); }

/* Detalles */
.detalles { background: var(--fondo-2); }
.detalles__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.hoja { background: var(--fondo); border-radius: 26px; padding: 40px 24px; border: 1px solid var(--linea); }
.vest__codigo, .regalo__tienda { font-style: italic; font-weight: 300; color: var(--acento); }
.regalo { padding: 18px 10px; }

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

/* Confirmar */
.confirmar { background: linear-gradient(160deg, #6f8c6c 0%, #7d63a8 100%); color: #fff; }
.confirmar__texto { max-width: 44ch; margin: 14px auto 0; }
.boton--claro { background: #fff; color: var(--acento); border-color: #fff; }
.boton--linea-claro { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }

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