/* Landing: escena nocturna navideña, interactiva y cinematográfica */
body.landing {
  --night: #05070f;
  --ink-l: #f5f1e8;
  --dim: rgba(245, 241, 232, .66);
  --gold: #f4c95d;
  --glass: rgba(255, 255, 255, .06);
  --glass-line: rgba(255, 255, 255, .12);
  background: var(--night);
  color: var(--ink-l);
}
body.landing #snow { opacity: .7; }

.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(16px, 4vw, 40px); background: linear-gradient(var(--night), transparent); }
.nav .brand { font-size: 1.5rem; }
.nav .links { display: flex; gap: 8px; align-items: center; }

/* ---------- héroe ---------- */
.hero-scene { position: relative; min-height: 100svh; overflow: hidden; display: grid; place-items: center; padding: 110px 16px 80px; isolation: isolate; }
/* Sin filter: blur (muy costoso en celulares): degradados radiales ya difuminados */
.aurora { position: absolute; inset: -20%; z-index: -2; opacity: .6; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; animation: drift 18s ease-in-out infinite alternate; will-change: transform; }
.aurora i:nth-child(1) { width: 70vw; height: 55vw; left: 0; top: 5%; background: radial-gradient(closest-side, rgba(15,122,74,.9), rgba(15,122,74,0)); }
.aurora i:nth-child(2) { width: 60vw; height: 50vw; right: -5%; top: -5%; background: radial-gradient(closest-side, rgba(163,23,43,.85), rgba(163,23,43,0)); animation-delay: -6s; }
.aurora i:nth-child(3) { width: 55vw; height: 45vw; left: 25%; bottom: -5%; background: radial-gradient(closest-side, rgba(184,134,27,.6), rgba(184,134,27,0)); animation-delay: -12s; }
@keyframes drift { to { transform: translate(6vw, 4vh) scale(1.15); } }
.hero-scene::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at center, transparent 30%, var(--night) 85%); pointer-events: none; }

.hero-copy { text-align: center; max-width: 900px; position: relative; z-index: 3; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--glass-line);
  background: rgba(255,255,255,.08); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.eyebrow b { color: var(--gold); }
.hero-copy h1 { font-size: clamp(2.8rem, 8.5vw, 6.6rem); line-height: .98; margin: 22px 0 18px; letter-spacing: -2px; color: var(--ink-l); text-shadow: none; }
.hero-copy h1 em { font-style: italic; font-weight: 500;
  background: linear-gradient(100deg, #f4c95d 10%, #fff3cf 40%, #f4c95d 60%, #d99a2b 90%); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 5s linear infinite; }
@keyframes shimmer { to { background-position: -200% center; } }
.hero-copy p { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--dim); max-width: 620px; margin: 0 auto 30px; line-height: 1.55; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn.glow { background: linear-gradient(135deg, #e23a4e, #a3172b); box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 10px 40px rgba(215, 38, 61, .55); }
.btn.glass { background: rgba(255,255,255,.08); border: 1px solid var(--glass-line); color: var(--ink-l); box-shadow: none; }
.btn.glass:hover { background: rgba(255,255,255,.12); }
.tap-hint { margin-top: 26px; font-size: .9rem; color: var(--dim); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }

/* Objetos flotantes (parallax con el mouse) */
.floaters { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.floater { position: absolute; pointer-events: auto; cursor: pointer; will-change: transform; border: 0; background: none; padding: 0; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.floater svg { display: block; animation: floaty 7s ease-in-out infinite; will-change: transform; }
.floater:nth-child(2n) svg { animation-duration: 9s; animation-delay: -3s; }
.floater:nth-child(3n) svg { animation-duration: 11s; animation-delay: -5s; }
@media (hover: hover) and (pointer: fine) { .floater:hover svg { filter: drop-shadow(0 0 18px rgba(244, 201, 93, .55)); } }
.floater:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; border-radius: 16px; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-18px) rotate(4deg); } }
.floater.popped svg { animation: popgift .7s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes popgift { 40% { transform: scale(1.3) rotate(10deg); } 100% { transform: scale(0) rotate(30deg); opacity: 0; } }
.floater .bubble-msg { position: absolute; left: 50%; top: -10px; transform: translate(-50%, -100%); white-space: nowrap; font-family: 'Fraunces', serif;
  font-style: italic; font-size: 1.15rem; color: var(--gold); text-shadow: 0 2px 20px rgba(0,0,0,.8); animation: rise 1.8s ease-out forwards; pointer-events: none; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, -60%); } 20% { opacity: 1; } to { opacity: 0; transform: translate(-50%, -260%); } }

/* Esferas colgantes */
.ornaments { position: absolute; top: 0; left: 0; right: 0; height: 0; z-index: 2; pointer-events: none; }
.ornament { position: absolute; top: 0; transform-origin: top center; animation: swing 4s ease-in-out infinite; will-change: transform; }
.ornament::before { content: ''; position: absolute; left: 50%; top: 0; width: 1px; background: linear-gradient(rgba(255,255,255,.05), rgba(255,255,255,.45)); height: var(--len); }
.ornament svg { position: absolute; top: var(--len); left: 50%; transform: translateX(-50%); }
@keyframes swing { 0%, 100% { transform: rotate(4deg); } 50% { transform: rotate(-4deg); } }

/* ---------- marquesina ---------- */
.marquee { border-block: 1px solid var(--glass-line); overflow: hidden; padding: 18px 0; background: rgba(255,255,255,.02); position: relative; z-index: 2; }
.marquee .track { display: flex; gap: 46px; width: max-content; animation: slide 40s linear infinite; }
.marquee span { font-family: 'Fraunces', serif; font-size: clamp(1.2rem, 2.5vw, 1.7rem); font-style: italic; color: var(--dim); white-space: nowrap; }
.marquee span::after { content: '✦'; margin-left: 46px; color: var(--gold); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- secciones ---------- */
.section { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; padding: clamp(70px, 10vw, 120px) 16px; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head .kicker { color: var(--gold); letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; font-weight: 700; }
.section-head h2 { color: var(--ink-l); font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; margin: 10px 0 12px; letter-spacing: -1px; }
.section-head p { color: var(--dim); font-size: 1.1rem; line-height: 1.6; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; counter-reset: s; }
.step { padding: 28px; border-radius: 24px; background: var(--glass); border: 1px solid var(--glass-line); position: relative; overflow: hidden; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: 'Fraunces', serif; font-size: 4.5rem; font-weight: 700;
  line-height: 1; display: block; margin-bottom: 14px; background: linear-gradient(180deg, var(--gold), transparent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 1.25rem; margin-bottom: 6px; }
.step p { color: var(--dim); margin: 0; line-height: 1.55; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { grid-column: span 2; padding: 26px; border-radius: 24px; background: var(--glass); border: 1px solid var(--glass-line); position: relative; overflow: hidden;
  transition: transform .3s, border-color .3s; }
.tile:hover { transform: translateY(-4px); border-color: rgba(244, 201, 93, .4); }
.tile.wide { grid-column: span 3; }
.tile .ico { font-size: 2rem; margin-bottom: 12px; display: block; }
.tile h3 { font-size: 1.15rem; margin: 0 0 6px; }
.tile p { color: var(--dim); margin: 0; line-height: 1.5; font-size: .97rem; }
.tile.red { background: linear-gradient(150deg, rgba(215, 38, 61, .35), rgba(215, 38, 61, .05)); }
.tile.green { background: linear-gradient(150deg, rgba(27, 158, 90, .32), rgba(27, 158, 90, .04)); }
.tile.gold { background: linear-gradient(150deg, rgba(244, 201, 93, .28), rgba(244, 201, 93, .04)); }
@media (max-width: 820px) { .tile, .tile.wide { grid-column: span 6; } }

/* Teléfono de muestra */
.showcase { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
@media (max-width: 820px) { .showcase { grid-template-columns: 1fr; } }
.phone { width: min(320px, 100%); margin: 0 auto; aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 12px; background: linear-gradient(145deg, #2a2d3a, #0d0f16);
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 40px 80px rgba(0,0,0,.6), 0 0 120px rgba(215, 38, 61, .25); transform: rotate(-4deg); }
.phone .screen { height: 100%; border-radius: 34px; overflow: hidden; position: relative; display: grid; place-items: center; text-align: center; padding: 26px;
  background: radial-gradient(circle at 50% 20%, #3a1030, transparent 60%), linear-gradient(160deg, #0b1d3a, #16325c); }
.phone .screen small { color: var(--dim); letter-spacing: .1em; text-transform: uppercase; font-size: .7rem; }
.phone .screen .name { font-family: 'Fraunces', serif; font-style: italic; font-size: 2.6rem; color: var(--gold); margin: 6px 0 14px; }
.phone .mini-gift { font-size: 4.5rem; animation: floaty 5s ease-in-out infinite; }
.phone .chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: .8rem; margin: 3px; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; }
.checklist li { padding: 12px 0; border-bottom: 1px solid var(--glass-line); display: flex; gap: 12px; color: var(--dim); }
.checklist li b { color: var(--ink-l); }
.checklist li::before { content: '✦'; color: var(--gold); }

/* Acceso */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .auth-wrap { grid-template-columns: 1fr; } }
.auth-card { background: var(--card); color: var(--ink); border-radius: 28px; padding: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.auth-card h3 { font-family: 'Fraunces', serif; font-size: 1.6rem; }

footer.site { position: relative; z-index: 2; text-align: center; padding: 40px 16px 60px; color: var(--dim); font-size: .9rem; border-top: 1px solid var(--glass-line); }

.reveal-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal-on-scroll.in { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .floater.hide-sm { display: none; }
  .floater svg { width: 60%; height: auto; opacity: .85; }
  .hero-copy h1 em { animation: none; }
  .eyebrow { font-size: .68rem; letter-spacing: .05em; padding: 6px 12px; }
  .ornaments { transform: scale(.75); transform-origin: top center; }
  .nav .links .btn.glass { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll { opacity: 1; transform: none; }
}

/* Botón de Google */
.google-btn { background: #fff; border-color: #dadce0; color: #1f1f1f; gap: 10px; }
.google-btn:hover { background: #f6f8fc; }
.or-sep { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; margin: 14px 0 2px; }
.or-sep::before, .or-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
