/* ============================================================
   GALA DE MEDIANOCHE — Landing de cenas de graduación
   Mobile first · Obsidiana + champagne · 100% conversión
   ============================================================ */

:root {
  --bg:        #0a0810;
  --bg-2:      #100b18;
  --panel:     rgba(255, 248, 235, 0.045);
  --panel-brd: rgba(243, 220, 166, 0.16);

  --ink:       #f7f1e8;
  --muted:     rgba(247, 241, 232, 0.62);

  --gold-1:    #f7e7bd;
  --gold-2:    #dcb46a;
  --gold-3:    #b07d34;
  --gold-grad: linear-gradient(135deg, #fbeed0 0%, #dcb46a 48%, #b07d34 100%);

  --wa:        #25d366;
  --wa-dk:     #128c4b;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Manrope', system-ui, sans-serif;

  --maxw: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 50% -10%, #1a1326 0%, transparent 60%),
    radial-gradient(90% 60% at 100% 100%, #14101f 0%, transparent 55%),
    var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }

/* Textura de grano global */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Tipografía base ---------- */
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold-2);
  padding-bottom: .1em;
}
.eyebrow--center { display: block; text-align: center; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.4rem; padding: 0 1.4rem; }
.section-title {
  font-family: var(--font-display);
  font-weight: 600; font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1.05; letter-spacing: -.01em; margin: .5rem 0 .8rem;
}
.section-sub { color: var(--muted); font-size: 1.02rem; }

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem; cursor: pointer; border: none; text-decoration: none;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 1rem 1.7rem; border-radius: 100px; letter-spacing: .01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .35s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(.96); }

.btn--gold {
  color: #2a1a05; background: var(--gold-grad);
  box-shadow: 0 10px 34px -8px rgba(220, 180, 106, .55), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn--gold::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 48%, transparent 66%);
  background-size: 250% 100%; background-position: 150% 0;
  transition: background-position .9s var(--ease); pointer-events: none;
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 18px 44px -10px rgba(220,180,106,.7); }
.btn--gold:hover::after { background-position: -120% 0; }

.btn--ghost {
  color: var(--ink); background: var(--panel);
  border: 1px solid var(--panel-brd); backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--gold-2); transform: translateY(-3px); }

.btn--xl { font-size: 1.15rem; padding: 1.25rem 2.4rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; z-index: 2;
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 5.5rem 1.4rem 3rem; overflow: hidden;
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: -1; }
.hero__glow--1 { width: 60vw; height: 60vw; top: -12%; left: -18%;
  background: radial-gradient(circle, rgba(220,180,106,.30), transparent 70%); animation: float1 14s ease-in-out infinite; }
.hero__glow--2 { width: 55vw; height: 55vw; bottom: -18%; right: -15%;
  background: radial-gradient(circle, rgba(122,47,74,.40), transparent 70%); animation: float2 18s ease-in-out infinite; }

@keyframes float1 { 50% { transform: translate(6%, 8%) scale(1.1); } }
@keyframes float2 { 50% { transform: translate(-7%, -6%) scale(1.12); } }

.sparkles { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(247,231,189,.9), transparent),
    radial-gradient(1.5px 1.5px at 75% 18%, rgba(247,231,189,.7), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.5px 1.5px at 35% 80%, rgba(247,231,189,.6), transparent),
    radial-gradient(1.5px 1.5px at 88% 60%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 10% 65%, rgba(247,231,189,.5), transparent);
  animation: twinkle 5s ease-in-out infinite;
}
@keyframes twinkle { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

.hero__inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 2.6rem; text-align: center;
}
.hero__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.4rem, 11vw, 5rem); line-height: 1.02; letter-spacing: -.02em;
}
.hero__subtitle { color: var(--muted); font-size: clamp(1.02rem, 4.4vw, 1.25rem); max-width: 30ch; margin: 1rem auto 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.8rem; }
.hero__actions .btn { flex: 1 1 auto; min-width: 200px; }

.hero__trust { display: flex; align-items: center; justify-content: center; gap: .55rem;
  margin-top: 1.4rem; font-size: .82rem; color: var(--muted); }
.stars { color: var(--gold-2); letter-spacing: .12em; }

/* Marco teléfono con video destacado */
.hero__phone { perspective: 1400px; width: 100%; max-width: 290px; }
.phone {
  position: relative; aspect-ratio: 9 / 18; border-radius: 34px;
  background: #000; padding: 8px;
  border: 1px solid rgba(247,231,189,.22);
  box-shadow:
    0 40px 80px -30px rgba(0,0,0,.85),
    0 0 0 1px rgba(255,255,255,.04),
    0 0 60px -10px rgba(220,180,106,.35);
  transform: rotateY(-9deg) rotateX(4deg) rotateZ(-1deg);
  transition: transform .6s var(--ease);
  animation: phoneIn 1s var(--ease) both .35s;
}
@keyframes phoneIn { from { opacity: 0; transform: rotateY(-22deg) translateY(30px); } }
.phone:hover { transform: rotateY(0) rotateX(0); }
.phone__notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 7px; background: #000; border-radius: 100px; z-index: 3;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.phone__video { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; background: #15101d; }
.phone__sound {
  position: absolute; bottom: 16px; right: 14px; z-index: 4;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .5rem .7rem; border-radius: 100px; cursor: pointer;
  color: #fff; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px); font-size: .72rem; font-weight: 700;
}
.phone__sound .ic-sound { display: none; }
.phone.is-unmuted .phone__sound .ic-sound { display: block; }
.phone.is-unmuted .phone__sound .ic-muted { display: none; }
.phone__live {
  position: absolute; top: 16px; left: 16px; z-index: 4;
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .66rem; font-weight: 800; letter-spacing: .1em; color: #fff;
  padding: .3rem .55rem; border-radius: 100px; background: rgba(0,0,0,.45); backdrop-filter: blur(6px);
}
.phone__live i { width: 7px; height: 7px; border-radius: 50%; background: #ff4d6d; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.scroll-cue { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 26px; height: 42px; border: 2px solid rgba(247,231,189,.4); border-radius: 100px; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 4px; background: var(--gold-2); animation: scrolly 1.8s infinite; }
@keyframes scrolly { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80%,100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ============================================================
   VIDEOS (Reel row)
   ============================================================ */
.videos { position: relative; z-index: 2; padding: 4.5rem 0 4rem; }

.reel-row {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .5rem 1.4rem 1.6rem; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.reel-row::-webkit-scrollbar { display: none; }

.reel {
  position: relative; flex: 0 0 auto; width: 70vw; max-width: 260px;
  aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; cursor: pointer;
  scroll-snap-align: center; border: 1px solid var(--panel-brd); background: #15101d;
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.8);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.reel:hover, .reel:focus-visible { transform: translateY(-6px); border-color: var(--gold-2);
  box-shadow: 0 30px 60px -24px rgba(220,180,106,.5); outline: none; }
.reel__img { width: 100%; height: 100%; object-fit: cover; }
.reel__shade { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,8,16,.05) 30%, rgba(10,8,16,.85) 100%); }
.reel__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  color: #2a1a05; background: var(--gold-grad);
  box-shadow: 0 8px 24px -4px rgba(0,0,0,.6); transition: transform .35s var(--ease);
}
.reel:hover .reel__play { transform: translate(-50%, -50%) scale(1.12); }
.reel__play svg { margin-left: 3px; }
.reel__tag {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 1.1rem; color: var(--ink); text-shadow: 0 2px 12px rgba(0,0,0,.7);
}

.videos__cta { text-align: center; margin-top: 1rem; padding: 0 1.4rem; }

/* ============================================================
   BENEFICIOS
   ============================================================ */
.benefits { position: relative; z-index: 2; padding: 4rem 1.4rem; max-width: var(--maxw); margin: 0 auto; }
.bgrid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.bcard {
  background: var(--panel); border: 1px solid var(--panel-brd); border-radius: 20px;
  padding: 1.6rem 1.5rem; backdrop-filter: blur(8px);
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.bcard:hover { transform: translateY(-4px); border-color: var(--gold-2); background: rgba(255,248,235,.07); }
.bcard__ic {
  display: inline-grid; place-items: center; width: 50px; height: 50px; margin-bottom: 1rem;
  font-size: 1.4rem; border-radius: 14px; color: var(--gold-1);
  background: linear-gradient(160deg, rgba(220,180,106,.22), rgba(220,180,106,.05));
  border: 1px solid rgba(220,180,106,.25);
}
.bcard h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin-bottom: .4rem; }
.bcard p { color: var(--muted); font-size: .96rem; }

/* ============================================================
   PROMOCIÓN
   ============================================================ */
.promo { position: relative; z-index: 2; padding: 2rem 1.4rem 4rem; max-width: var(--maxw); margin: 0 auto; }
.promo__card {
  position: relative; overflow: hidden; text-align: center;
  border-radius: 28px; padding: 3rem 1.6rem;
  background: linear-gradient(160deg, rgba(122,47,74,.28), rgba(20,14,28,.6));
  border: 1px solid rgba(220,180,106,.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 30px 70px -40px rgba(0,0,0,.9);
}
.promo__glow { position: absolute; width: 60%; height: 120%; top: -10%; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(220,180,106,.25), transparent 65%); filter: blur(40px); pointer-events: none; }
.promo__badge { position: relative; display: inline-block; font-weight: 700; font-size: .8rem;
  letter-spacing: .08em; color: var(--gold-1); padding: .4rem .9rem; border-radius: 100px;
  background: rgba(0,0,0,.3); border: 1px solid rgba(220,180,106,.3); margin-bottom: 1.2rem; }
.promo__title { position: relative; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.8rem, 7vw, 2.8rem); line-height: 1.05; margin-bottom: 1rem; }
.promo__text { position: relative; color: var(--muted); max-width: 46ch; margin: 0 auto 1.8rem; font-size: 1.05rem; }
.promo__text strong { color: var(--gold-1); font-weight: 700; }

/* ============================================================
   CTA FINAL
   ============================================================ */
.final { position: relative; z-index: 2; overflow: hidden; text-align: center; padding: 5rem 1.4rem 5.5rem; }
.final__glow { position: absolute; width: 80%; height: 80%; top: 0; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(220,180,106,.22), transparent 60%); filter: blur(60px); pointer-events: none; }
.final__title { position: relative; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 8vw, 3.4rem); line-height: 1.05; margin-bottom: 1rem; }
.final__sub { position: relative; color: var(--muted); max-width: 38ch; margin: 0 auto 2rem; font-size: 1.05rem; }
.final__fine { position: relative; margin-top: 1rem; font-size: .82rem; color: var(--muted); letter-spacing: .04em; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { position: relative; z-index: 2; text-align: center; padding: 2.5rem 1.4rem 7rem;
  border-top: 1px solid rgba(255,255,255,.06); color: var(--muted); font-size: .88rem; }
.footer__small { font-size: .78rem; opacity: .7; margin-top: .3rem; }

/* ============================================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================================ */
.wa-float {
  position: fixed; z-index: 60; right: 18px; bottom: 18px;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: linear-gradient(160deg, var(--wa), var(--wa-dk));
  box-shadow: 0 12px 30px -6px rgba(37,211,102,.6); text-decoration: none;
  animation: waIn .5s var(--ease) both 1s;
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float:active { transform: scale(.94); }
@keyframes waIn { from { opacity: 0; transform: scale(0) translateY(20px); } }
.wa-float__pulse { position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: waPulse 2.4s infinite; }
@keyframes waPulse { 70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ============================================================
   LIGHTBOX (reproductor inmersivo)
   ============================================================ */
.lb { position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(6,4,10,.92); backdrop-filter: blur(14px);
  align-items: center; justify-content: center; padding: env(safe-area-inset-top) 0 0; }
.lb.is-open { display: flex; animation: lbFade .3s ease; }
@keyframes lbFade { from { opacity: 0; } }
.lb__stage { position: relative; height: 86svh; aspect-ratio: 9/16; max-width: 94vw;
  border-radius: 20px; overflow: hidden; background: #000;
  box-shadow: 0 0 80px -10px rgba(220,180,106,.35); animation: lbPop .4s var(--ease); }
@keyframes lbPop { from { transform: scale(.9); opacity: 0; } }
.lb__video { width: 100%; height: 100%; object-fit: cover; }
.lb__close { position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer; color: #fff;
  background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.25); font-size: 1.3rem;
  display: grid; place-items: center; backdrop-filter: blur(6px); }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer; color: #fff;
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.2); font-size: 1.5rem;
  display: grid; place-items: center; backdrop-filter: blur(6px); transition: background .25s; }
.lb__nav:hover { background: rgba(220,180,106,.6); color: #2a1a05; }
.lb__nav--prev { left: -58px; }
.lb__nav--next { right: -58px; }
.lb__cta { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 5;
  white-space: nowrap; padding: .8rem 1.4rem; font-size: .92rem; }

/* ============================================================
   ANIMACIONES DE ENTRADA (scroll reveal)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-in { opacity: 1; transform: none;
  transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   DESKTOP / TABLET
   ============================================================ */
@media (min-width: 760px) {
  .hero__inner { flex-direction: row; text-align: left; gap: 3rem; align-items: center; }
  .hero__copy { flex: 1; }
  .hero__subtitle, .hero__trust { margin-left: 0; }
  .hero__subtitle { margin-right: auto; }
  .hero__actions, .hero__trust { justify-content: flex-start; }
  .hero__phone { max-width: 320px; flex: 0 0 auto; }
  .hero__actions .btn { flex: 0 1 auto; }

  .bgrid { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
  .reel-row { justify-content: center; flex-wrap: nowrap; }
  .reel { width: 230px; }
}

@media (min-width: 1024px) {
  .wa-float { width: 66px; height: 66px; right: 26px; bottom: 26px; }
}
