/* ===== Landing AMPTA: minimalista, con movimiento suave ===== */
html:has(body.landing-active) { scroll-behavior: smooth; }
body.landing-active { background: #05080f; }
/* Portada: fondo oscuro de punta a punta (también detrás de las barras del celular), aunque la app use un tema claro. */
html.lp-boot, html:has(body.landing-active), html body.landing-active, html.lp-boot body { background: #05080f !important; }
/* La portada se ve apenas abre la página (sin esperar a saber si hay sesión) y la barra de la app nunca aparece antes. */
html.lp-boot #landing-page.hidden { display: block !important; }
html:not(.app-active) .bottomnav { display: none !important; }
.lp-root {
  --bg: #05080f; --bg2: #0a1020; --txt: #eef3fc; --muted: #8e9ab4; --line: rgba(255,255,255,.08);
  --glass: rgba(255,255,255,.04); --accent: #3b82f6; --accent2: #7db4ff; --green: #34d27b; --red: #ff6b80;
  --ease: cubic-bezier(.22,.8,.24,1);
  color: var(--txt); background: var(--bg); font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh; overflow-x: clip; -webkit-font-smoothing: antialiased;
}
.lp-root * { box-sizing: border-box; }
.lp-root a { color: inherit; text-decoration: none; }
.lp-wrap { width: min(calc(100% - 40px), 1160px); margin: 0 auto; }
.lp-grad { background: linear-gradient(100deg, #7db4ff 0%, #3b82f6 45%, #8b7bff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Revelado al hacer scroll */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
/* La portada se muestra enseguida: sin esperar al script ni animaciones largas. */
.lp-hero [data-reveal] { animation: lp-hero-in .5s var(--ease) both; animation-delay: var(--d, 0s); transition: none; opacity: 1; transform: none; }
@keyframes lp-hero-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* En celulares, los brillos de fondo quedan quietos (moverlos con desenfoque es lo que más gasta). */
@media (max-width: 760px) { .lp-glow { animation: none; } }
@media (prefers-reduced-motion: reduce) { .lp-hero [data-reveal] { animation: none; } .lp-glow { animation: none; } }

/* Botones */
.lp-btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 700; font-size: 15px; line-height: 1; font-family: inherit; color: #fff; background: linear-gradient(135deg, #4f94ff, #2563eb);
  box-shadow: 0 8px 30px rgba(59,130,246,.35), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.lp-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(59,130,246,.5), inset 0 1px 0 rgba(255,255,255,.3); }
.lp-btn:active { transform: translateY(0) scale(.98); }
.lp-btn .lp-arrow { display: inline-block; transition: transform .25s var(--ease); }
.lp-btn:hover .lp-arrow { transform: translateX(4px); }
.lp-btn.ghost { background: var(--glass); color: var(--txt); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(8px); }
.lp-btn.ghost:hover { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.lp-btn.small { padding: 10px 18px; font-size: 14px; }
.lp-btn.big { padding: 18px 34px; font-size: 17px; }
.lp-link { background: none; border: 0; color: var(--muted); font-weight: 600; font-size: 14px; font-family: inherit; cursor: pointer; padding: 8px 12px; border-radius: 999px; transition: color .2s; }
.lp-link:hover { color: #fff; }

/* Encabezado */
.lp-header {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%); width: min(calc(100% - 28px), 1080px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 14px 10px 20px;
  border-radius: 999px; background: rgba(10,16,32,.72); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .3s, box-shadow .3s, top .3s;
}
.lp-header.scrolled { background: rgba(8,12,24,.85); box-shadow: 0 10px 40px rgba(0,0,0,.4); top: 10px; }
.lp-brand img { display: block; height: 34px; width: auto; }
.lp-nav { display: flex; gap: 4px; }
.lp-nav a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .2s, background .2s; }
.lp-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.lp-header-actions { display: flex; align-items: center; gap: 6px; }

/* Hero */
.lp-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; width: min(calc(100% - 40px), 1240px); margin: 0 auto; padding: 150px 0 90px; min-height: 100vh; }
/* Brillos de fondo: degradados suaves sin filtro de desenfoque (el blur animado era lo que más trababa el scroll en Chrome). */
.lp-glow { position: absolute; border-radius: 50%; pointer-events: none; opacity: .55; animation: lp-float 14s ease-in-out infinite alternate; will-change: transform; contain: strict; }
.lp-glow-a { width: 520px; height: 520px; left: -160px; top: 40px; background: radial-gradient(circle, rgba(29,78,216,.9) 0%, rgba(29,78,216,.35) 38%, transparent 68%); }
.lp-glow-b { width: 460px; height: 460px; right: -120px; top: 120px; background: radial-gradient(circle, rgba(109,93,252,.9) 0%, rgba(109,93,252,.35) 38%, transparent 68%); animation-delay: -6s; opacity: .4; }
.lp-glow-c { width: 640px; height: 640px; left: 50%; top: -180px; transform: translateX(-50%); background: radial-gradient(circle, rgba(37,99,235,.9) 0%, rgba(37,99,235,.35) 38%, transparent 68%); opacity: .35; }
@keyframes lp-float { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(30px,-24px,0) scale(1.08); } }
.lp-glow-c { animation-name: lp-float-c; }
@keyframes lp-float-c { from { transform: translateX(-50%) scale(1); } to { transform: translateX(-46%) scale(1.1); } }
.lp-hero-copy { position: relative; z-index: 1; }
.lp-pill { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--accent2); backdrop-filter: blur(8px); transition: background .25s, transform .25s var(--ease); }
.lp-pill:hover { background: rgba(255,255,255,.08); transform: translateY(-1px); }
.lp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52,210,123,.6); animation: lp-pulse 2s infinite; }
@keyframes lp-pulse { 70% { box-shadow: 0 0 0 9px rgba(52,210,123,0); } 100% { box-shadow: 0 0 0 0 rgba(52,210,123,0); } }
.lp-hero h1 { margin: 22px 0 0; font-size: clamp(44px, 6.4vw, 84px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
.lp-hero-copy > p { margin: 22px 0 0; max-width: 520px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: var(--muted); }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.lp-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 40px; font-size: 13px; color: var(--muted); }
.lp-trust b { color: var(--txt); font-weight: 700; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); }

/* Maqueta del panel */
.lp-stage { position: relative; z-index: 1; perspective: 1400px; }
.lp-tilt { position: relative; transform-style: preserve-3d; transition: transform .25s var(--ease); will-change: transform; }
.lp-app { border-radius: 24px; overflow: hidden; background: linear-gradient(160deg, #101a33, #0a1122); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 40px 100px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.03) inset; }
.lp-app-top { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.lp-app-top i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.16); }
.lp-app-top span { margin-left: 10px; font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.lp-app-body { padding: 22px; display: grid; gap: 14px; }
.lp-total { padding: 22px; border-radius: 18px; background: linear-gradient(135deg, #1b4fb8, #2f6fe0 60%, #5b8def); text-align: center; position: relative; overflow: hidden; }
.lp-total::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%); transform: translateX(-100%); animation: lp-shine 5s ease-in-out infinite; }
@keyframes lp-shine { 55%, 100% { transform: translateX(100%); } }
.lp-total small { display: block; font-size: 12px; letter-spacing: .16em; font-weight: 700; opacity: .85; }
.lp-total strong { display: block; margin: 6px 0 4px; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; }
.lp-total em { font-style: normal; font-size: 13px; opacity: .8; }
.lp-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lp-chips > div { padding: 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); text-align: center; }
.lp-chips small { display: block; font-size: 12px; color: var(--muted); }
.lp-chips b { font-size: 15px; }
.lp-chips .g b { color: var(--green); } .lp-chips .r b { color: var(--red); }
.lp-bars { display: flex; align-items: flex-end; gap: 8px; height: 70px; padding: 0 4px; }
.lp-bars span { flex: 1; height: 4%; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #5b9bff, #2563eb); opacity: .9; transition: height 1.1s var(--ease); }
.lp-hero.go .lp-bars span { height: var(--h); }
.lp-hero.go .lp-bars span:nth-child(2) { transition-delay: .08s; } .lp-hero.go .lp-bars span:nth-child(3) { transition-delay: .16s; }
.lp-hero.go .lp-bars span:nth-child(4) { transition-delay: .24s; } .lp-hero.go .lp-bars span:nth-child(5) { transition-delay: .32s; }
.lp-hero.go .lp-bars span:nth-child(6) { transition-delay: .4s; } .lp-hero.go .lp-bars span:nth-child(7) { transition-delay: .48s; }
.lp-float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(14,22,42,.94); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 20px 50px rgba(0,0,0,.5); transform: translateZ(60px); }
.lp-float b { display: block; font-size: 13px; } .lp-float small { font-size: 13px; color: var(--muted); }
.lp-float-a { left: -34px; bottom: 54px; animation: lp-bob 6s ease-in-out infinite; }
.lp-float-b { right: -18px; bottom: -26px; animation: lp-bob 7s ease-in-out -2s infinite; }
@keyframes lp-bob { 50% { transform: translateZ(60px) translateY(-10px); } }
.lp-ic { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 11px; background: rgba(59,130,246,.18); color: var(--accent2); font-weight: 800; font-size: 15px; }
.lp-ic.ok { background: rgba(52,210,123,.16); color: var(--green); }

/* Números */
.lp-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 30px 0 90px; border-top: 0; }
.lp-nums > div { text-align: center; padding: 10px; }
.lp-nums strong { display: block; font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; letter-spacing: -.03em; background: linear-gradient(180deg, #fff, #8aa7e0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-nums span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }

/* Secciones */
.lp-section { padding: 110px 0; }
.lp-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.lp-eyebrow { display: inline-block; margin-bottom: 16px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent2); background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.26); }
.lp-head h2, .lp-tg-copy h2, .lp-final h2 { margin: 0; font-size: clamp(34px, 5vw, 60px); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
.lp-head p { margin: 18px auto 0; max-width: 560px; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* Funciones (tabs) */
.lp-tabs { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.lp-tablist { display: flex; flex-direction: column; gap: 6px; }
.lp-tab { position: relative; text-align: left; padding: 16px 18px; border-radius: 16px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font-family: inherit; overflow: hidden; transition: background .3s var(--ease), color .3s, border-color .3s; }
.lp-tab b { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 700; color: var(--txt); }
.lp-tab b .lp-ic { width: 30px; height: 30px; border-radius: 10px; font-size: 13px; }
.lp-tab span.d { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease), margin .4s; margin-top: 0; }
.lp-tab span.d > span { overflow: hidden; font-size: 14px; line-height: 1.55; opacity: 0; transition: opacity .3s; }
.lp-tab:hover { background: rgba(255,255,255,.03); }
.lp-tab.on { background: var(--glass); border-color: var(--line); }
.lp-tab.on span.d { grid-template-rows: 1fr; margin-top: 10px; }
.lp-tab.on span.d > span { opacity: 1; }
.lp-tab i.p { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: linear-gradient(90deg, #3b82f6, #8b7bff); }
.lp-tab.on i.p { animation: lp-progress var(--dur, 7s) linear forwards; }
.lp-tabs.paused .lp-tab.on i.p { animation-play-state: paused; }
@keyframes lp-progress { to { width: 100%; } }
.lp-tabpanel { position: relative; min-height: 460px; padding: 26px; border-radius: 26px; overflow: hidden; background: linear-gradient(160deg, rgba(20,32,62,.9), rgba(9,14,28,.95)); border: 1px solid var(--line); }
.lp-tabpanel::before { content: ""; position: absolute; width: 340px; height: 340px; right: -100px; top: -120px; background: radial-gradient(circle, rgba(59,130,246,.3), transparent 70%); pointer-events: none; }
.lp-pane { position: relative; animation: lp-in .55s var(--ease) both; }
@keyframes lp-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.lp-how { margin: 0 0 18px; padding: 12px 16px; border-radius: 14px; background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.22); font-size: 13.5px; line-height: 1.55; color: #c9d8f5; }
.lp-how b { color: var(--accent2); }

/* Mini maquetas */
.m-card { padding: 18px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.m-card + .m-card { margin-top: 12px; }
.m-hero { padding: 20px; border-radius: 18px; text-align: center; background: linear-gradient(135deg, #1b4fb8, #4a88f0); }
.m-hero small { font-size: 12px; letter-spacing: .14em; font-weight: 700; opacity: .85; } .m-hero b { display: block; font-size: 34px; margin-top: 4px; letter-spacing: -.03em; }
.m-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.m-row:first-child { border-top: 0; }
.m-row > div { flex: 1; min-width: 0; } .m-row b { display: block; } .m-row small { color: var(--muted); font-size: 13px; }
.m-row em { font-style: normal; font-weight: 700; }
.m-g { color: var(--green); } .m-r { color: var(--red); } .m-a { color: #f0b44a; }
.m-tag { display: inline-block; padding: 2px 8px; margin-left: 6px; border-radius: 999px; font-size: 11px; font-weight: 800; background: rgba(59,130,246,.2); color: var(--accent2); }
.m-bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 8px; }
.m-bar i { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, #3b82f6, #6aa5ff); animation: lp-grow 1.2s var(--ease) .25s forwards; }
.m-bar i.w { background: linear-gradient(90deg, #f0b44a, #f5c451); } .m-bar i.o { background: linear-gradient(90deg, #ff6b80, #ff8f9f); }
@keyframes lp-grow { to { width: var(--w); } }
.m-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.m-chip { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.m-chip.r { background: rgba(255,107,128,.16); color: var(--red); } .m-chip.a { background: rgba(240,180,74,.16); color: #f0b44a; } .m-chip.g { background: rgba(52,210,123,.16); color: var(--green); }
.m-chart { display: flex; align-items: flex-end; gap: 9px; height: 160px; padding-top: 10px; }
.m-chart span { flex: 1; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #6aa5ff, #2563eb); height: 6%; animation: lp-up 1.1s var(--ease) forwards; animation-delay: calc(var(--i) * .07s); }
.m-chart span.o { background: linear-gradient(180deg, #ff8f9f, #e5384f); }
@keyframes lp-up { to { height: var(--h); } }
.m-ring { position: relative; width: 96px; height: 96px; flex: 0 0 auto; }
.m-ring svg { transform: rotate(-90deg); } .m-ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.m-ring .bg { stroke: rgba(255,255,255,.08); } .m-ring .fg { stroke: #4f94ff; stroke-dasharray: 251; stroke-dashoffset: 251; animation: lp-ring 1.4s var(--ease) .2s forwards; }
@keyframes lp-ring { to { stroke-dashoffset: var(--o); } }
.m-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; }

/* Flujo Mercado Pago */
.lp-flow { display: grid; grid-template-columns: 1fr 70px 1fr 70px 1fr; align-items: start; gap: 0; }
.lp-step { text-align: center; }
.lp-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; margin-bottom: 14px; font-size: 13px; font-weight: 800; background: rgba(59,130,246,.18); color: var(--accent2); border: 1px solid rgba(59,130,246,.3); }
.lp-mock { height: 150px; display: grid; place-items: center; padding: 14px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); }
.lp-step h3 { margin: 18px 0 6px; font-size: 18px; } .lp-step p { margin: 0 auto; max-width: 260px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.lp-line { position: relative; height: 2px; margin-top: 90px; background: var(--line); border-radius: 2px; overflow: hidden; }
.lp-line i { position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, #4f94ff, transparent); animation: lp-run 2.4s ease-in-out infinite; }
@keyframes lp-run { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.lp-pay { text-align: left; width: 100%; padding: 14px 16px; border-radius: 14px; background: #10172a; border: 1px solid rgba(255,255,255,.1); animation: lp-bob2 4s ease-in-out infinite; }
.lp-pay small { color: #5cb3ff; font-weight: 700; font-size: 12px; } .lp-pay b { display: block; font-size: 20px; margin: 3px 0; } .lp-pay span { font-size: 13px; color: var(--muted); }
@keyframes lp-bob2 { 50% { transform: translateY(-6px); } }
.lp-scan { display: grid; justify-items: center; gap: 6px; }
.lp-scan span { width: 150px; height: 8px; border-radius: 6px; background: rgba(255,255,255,.1); position: relative; overflow: hidden; }
.lp-scan span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #4f94ff, transparent); transform: translateX(-100%); animation: lp-run 1.8s ease-in-out infinite; }
.lp-scan span:nth-child(2)::after { animation-delay: .3s; } .lp-scan span:nth-child(3)::after { animation-delay: .6s; }
.lp-scan b { margin-top: 6px; font-size: 13px; } .lp-scan small { font-size: 12px; color: var(--muted); }
.lp-tx { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: 14px; background: #10172a; border: 1px solid rgba(255,255,255,.1); text-align: left; animation: lp-pop 5s ease-in-out infinite; }
.lp-tx b { display: block; font-size: 14px; } .lp-tx small { font-size: 12px; color: var(--muted); } .lp-tx em { margin-left: auto; font-style: normal; font-weight: 800; color: var(--red); }
@keyframes lp-pop { 0%, 12% { opacity: 0; transform: translateY(14px) scale(.96); } 24%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.lp-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; }
.lp-cards article { padding: 24px 22px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); transition: transform .35s var(--ease), background .3s, border-color .3s; }
.lp-cards article:hover { transform: translateY(-6px); background: rgba(255,255,255,.07); border-color: rgba(59,130,246,.35); }
.lp-cards h3 { margin: 16px 0 8px; font-size: 17px; } .lp-cards p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.lp-note { max-width: 760px; margin: 36px auto 0; text-align: center; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* Telegram */
.lp-tg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 70px; align-items: center; }
.lp-tg-copy p { margin: 18px 0 0; max-width: 480px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.lp-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; font-size: 14px; color: var(--muted); }
.lp-list b { color: var(--txt); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; padding: 3px 9px; border-radius: 8px; background: rgba(255,255,255,.07); }
.lp-phone { border-radius: 30px; overflow: hidden; background: #0b1220; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 90px rgba(0,0,0,.5); }
.lp-phone-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #101a30; border-bottom: 1px solid var(--line); }
.lp-phone-top b { display: block; font-size: 14px; } .lp-phone-top small { font-size: 13px; color: var(--green); }
.lp-chat-body { display: flex; flex-direction: column; gap: 10px; padding: 18px; min-height: 360px; }
.lp-msg { max-width: 86%; padding: 11px 15px; border-radius: 18px; font-size: 14px; line-height: 1.5; animation: lp-msg .45s var(--ease) both; }
.lp-msg.me { align-self: flex-end; background: linear-gradient(135deg, #4f94ff, #2563eb); border-bottom-right-radius: 6px; }
.lp-msg.bot { align-self: flex-start; background: #172238; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.lp-msg small { display: block; margin-top: 4px; color: var(--muted); }
@keyframes lp-msg { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.lp-typing { align-self: flex-start; display: flex; gap: 4px; padding: 14px 16px; border-radius: 18px; background: #172238; }
.lp-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: lp-dots 1s infinite; } .lp-typing i:nth-child(2) { animation-delay: .15s; } .lp-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes lp-dots { 40% { transform: translateY(-5px); opacity: 1; } 0%, 80%, 100% { opacity: .5; } }

/* Estilos */
.lp-theme-demo { display: grid; justify-items: center; gap: 26px; }
.lp-theme-card { --tbg: #fffdf9; --ttx: #2b2720; --tmu: #81796a; --tac: #b87c4f; --tcard: #f7f2e8; width: min(100%, 440px); padding: 26px; border-radius: 26px; text-align: center; background: var(--tbg); color: var(--ttx); border: 1px solid rgba(0,0,0,.06); box-shadow: 0 30px 80px rgba(0,0,0,.45); transition: background .5s var(--ease), color .5s var(--ease), box-shadow .5s; }
.lp-theme-card small { letter-spacing: .14em; font-size: 12px; font-weight: 700; color: var(--tmu); transition: color .5s; }
.lp-theme-card strong { display: block; margin: 8px 0 14px; font-size: 40px; letter-spacing: -.03em; }
.lp-theme-row { display: flex; justify-content: center; gap: 22px; font-size: 13px; color: var(--tmu); } .lp-theme-row b { color: var(--ttx); }
.lp-theme-bar { display: block; height: 8px; margin-top: 18px; border-radius: 8px; background: var(--tcard); overflow: hidden; } .lp-theme-bar b { display: block; width: 62%; height: 100%; border-radius: 8px; background: var(--tac); transition: background .5s; }
.lp-theme-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.lp-theme-controls > div { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); }
.lp-theme-controls button { border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 14px; font-family: inherit; padding: 9px 20px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s; }
.lp-theme-controls button.on { background: #fff; color: #0a1020; }

/* FAQ */
.lp-faq .lp-head { margin-bottom: 40px; }
.lp-acc { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.lp-q { border-radius: 18px; background: var(--glass); border: 1px solid var(--line); transition: background .3s, border-color .3s; }
.lp-q:hover { background: rgba(255,255,255,.06); }
.lp-q button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; background: none; border: 0; color: var(--txt); font-weight: 700; font-size: 16px; font-family: inherit; text-align: left; cursor: pointer; }
.lp-q button i { position: relative; width: 18px; height: 18px; flex: 0 0 auto; }
.lp-q button i::before, .lp-q button i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--accent2); transition: transform .3s var(--ease); }
.lp-q button i::after { transform: rotate(90deg); }
.lp-q.open { border-color: rgba(59,130,246,.35); } .lp-q.open button i::after { transform: rotate(0); }
.lp-q > div { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.lp-q.open > div { grid-template-rows: 1fr; } .lp-q > div > div { overflow: hidden; }
.lp-q p { margin: 0; padding: 0 22px 22px; font-size: 15px; line-height: 1.65; color: var(--muted); }

/* Cierre y pie */
.lp-final { position: relative; text-align: center; padding: 130px 0 140px; overflow: hidden; border-top: 1px solid var(--line); }
.lp-final .lp-wrap { position: relative; z-index: 1; }
.lp-final p { margin: 20px 0 34px; font-size: 18px; color: var(--muted); }
.lp-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; width: min(calc(100% - 40px), 1160px); margin: 0 auto; padding: 30px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.lp-footer .lp-brand img { height: 28px; }

/* Responsive */
@media (max-width: 960px) {
  .lp-hero { grid-template-columns: 1fr; padding: 130px 0 60px; min-height: 0; text-align: center; }
  .lp-hero-copy > p { margin-inline: auto; } .lp-cta, .lp-trust { justify-content: center; }
  .lp-stage { max-width: 520px; margin: 24px auto 0; width: 100%; }
  .lp-float-a { left: -8px; } .lp-float-b { right: -6px; }
  .lp-nav { display: none; }
  .lp-nums { grid-template-columns: repeat(2, 1fr); padding-bottom: 60px; }
  .lp-section { padding: 80px 0; }
  .lp-tabs { grid-template-columns: 1fr; }
  .lp-tablist { flex-direction: row; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .lp-tablist::-webkit-scrollbar { display: none; }
  .lp-tab { flex: 0 0 auto; padding: 12px 16px; } .lp-tab span.d { display: none; }
  .lp-tabpanel { min-height: 0; padding: 18px; }
  .lp-flow { grid-template-columns: 1fr; gap: 22px; } .lp-line { display: none; }
  .lp-cards { grid-template-columns: repeat(2, 1fr); }
  .lp-tg { grid-template-columns: 1fr; gap: 40px; } .lp-phone { max-width: 420px; margin: 0 auto; width: 100%; }
}
@media (max-width: 560px) {
  .lp-header { padding: 8px 10px 8px 14px; } .lp-brand img { height: 28px; } .lp-header-actions .lp-link { padding: 8px 8px; font-size: 13px; }
  .lp-hero h1 { font-size: 44px; }
  .lp-cards { grid-template-columns: 1fr; }
  .lp-float { display: none; }
  .lp-total { padding: 18px; } .lp-app-body { padding: 14px; }
  .lp-btn.big { width: 100%; justify-content: center; }
  .lp-cta .lp-btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(body.landing-active) { scroll-behavior: auto; }
  .lp-root *, .lp-root *::before, .lp-root *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
.m-split .m-card + .m-card { margin-top: 0; }

/* Acceso para quien ya tiene cuenta */
.lp-login-line { margin-top: 14px; font-size: 14px; color: var(--muted); }
.lp-login-line button { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lp-login-line button:hover { color: #fff; }
@media (max-width: 380px) { .lp-header-actions .lp-btn.small { padding-inline: 10px; font-size: 13.5px; } }

/* ===== Beta ===== */
.lp-brand { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.lp-beta { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; color: #0b1120; background: linear-gradient(135deg, #7db4ff, #a5f3c4); }

/* ===== Comunidad: Mejorá AMPTA ===== */
.lp-comm .lp-head p { margin: 16px auto 0; max-width: 600px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.lp-comm-steps { list-style: none; margin: -24px auto 40px; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.lp-comm-steps li { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.lp-comm-steps b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--accent); color: #fff; }
.lp-comm-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 22px; align-items: start; }
.lp-comm-form, .lp-comm-board { border-radius: 24px; background: var(--glass); border: 1px solid var(--line); padding: 24px; }
.lp-comm-form { position: sticky; top: 100px; display: grid; gap: 14px; }
.lp-comm-form h3 { margin: 0; font-size: 19px; }
.lp-comm-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-comm-kinds input { position: absolute; opacity: 0; pointer-events: none; }
.lp-comm-kinds span { display: inline-block; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .2s; }
.lp-comm-kinds input:checked + span { color: var(--txt); background: rgba(59,130,246,.18); border-color: rgba(125,180,255,.5); }
.lp-comm-kinds input:focus-visible + span { outline: 2px solid var(--accent2); outline-offset: 2px; }
.lp-comm-field { position: relative; display: block; }
.lp-comm-field textarea, .lp-comm-field input { width: 100%; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.25); color: var(--txt); font-weight: 500; font-size: 15px; font-family: inherit; resize: vertical; transition: border-color .2s; }
.lp-comm-field textarea:focus, .lp-comm-field input:focus { outline: none; border-color: rgba(125,180,255,.6); }
.lp-comm-count { position: absolute; right: 12px; bottom: 10px; font-size: 12.5px; color: var(--muted); }
.lp-comm-form .lp-btn { justify-content: center; }
.lp-comm-captcha { min-height: 65px; } .lp-comm-captcha.hidden { display: none; }
.lp-comm-msg { margin: 0; font-size: 14px; min-height: 1em; }
.lp-comm-msg.ok { color: var(--green); } .lp-comm-msg.err { color: var(--red); }
.lp-comm-note { margin: 0; font-size: 13px; color: var(--muted); }
.lp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lp-comm-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.lp-comm-tabs button { border: 1px solid var(--line); background: none; color: var(--muted); font-weight: 600; font-size: 13.5px; font-family: inherit; padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: all .2s; }
.lp-comm-tabs button.on { color: var(--txt); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.lp-comm-tabs em { font-style: normal; opacity: .7; margin-left: 3px; }
.lp-comm-list { display: grid; gap: 10px; max-height: 620px; overflow-y: auto; padding-right: 4px; }
.lp-comm-card { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; padding: 16px; border-radius: 18px; background: rgba(0,0,0,.2); border: 1px solid var(--line); animation: lpCommIn .35s var(--ease) both; }
@keyframes lpCommIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lp-comm-card p { margin: 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.lp-comm-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--muted); }
.lp-comm-tag { padding: 3px 9px; border-radius: 999px; font-weight: 700; font-size: 12.5px; background: rgba(255,255,255,.06); color: var(--txt); }
.lp-comm-tag.en_camino { background: rgba(240,180,74,.16); color: #f5c76f; }
.lp-comm-tag.listo { background: rgba(52,210,123,.16); color: var(--green); }
.lp-comm-vote { grid-row: 1; grid-column: 2; align-self: start; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 72px; padding: 9px 10px; border-radius: 14px; border: 1px solid var(--line); background: none; color: var(--muted); font-weight: 700; font-size: 13px; font-family: inherit; cursor: pointer; transition: all .2s var(--ease); }
.lp-comm-vote b { font-size: 17px; color: var(--txt); }
.lp-comm-vote:hover { border-color: rgba(125,180,255,.5); color: var(--txt); }
.lp-comm-vote.on { background: rgba(59,130,246,.2); border-color: rgba(125,180,255,.6); color: var(--accent2); }
.lp-comm-vote:active { transform: scale(.96); }
.lp-comm-empty { margin: 0; padding: 30px 10px; text-align: center; color: var(--muted); }
@media (max-width: 860px) {
  .lp-comm-grid { grid-template-columns: 1fr; }
  .lp-comm-form { position: static; }
  .lp-comm-steps { margin-top: -28px; }
  .lp-comm-list { max-height: none; }
}
@media (prefers-reduced-motion: reduce) { .lp-comm-card { animation: none; } }
.lp-nav a, .lp-header-actions .lp-link, .lp-header-actions .lp-btn { white-space: nowrap; }
@media (max-width: 1100px) and (min-width: 961px) { .lp-nav a { padding: 8px 10px; font-size: 13.5px; } .lp-nav a[href="#lp-telegram"] { display: none; } }
@media (max-width: 560px) {
  .lp-brand { gap: 5px; }
  .lp-beta { font-size: 8.5px; padding: 2px 6px; letter-spacing: .05em; }
  .lp-header-actions { gap: 2px; }
  .lp-header-actions .lp-link { padding: 8px 6px; font-size: 13.5px; }
  .lp-header-actions .lp-btn.small { padding: 9px 12px; font-size: 13.5px; }
}
@media (max-width: 400px) { .lp-header .lp-brand img { height: 24px; } }
@media (max-width: 560px) { .lp-hide-sm { display: none; } }

/* Los controles toman la tipografía de la página (si no, el navegador usa una letra chica por defecto). */
.lp-root button, .lp-root input, .lp-root textarea, .lp-root select { font-family: inherit; }
.lp-link { font-size: 15px; }
.lp-comm-join { gap: 16px; }
.lp-comm-join p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.lp-comm-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.lp-header-actions .lp-btn.small { gap: 0; }

/* Las animaciones de una sección se pausan mientras no se ve (menos trabajo al hacer scroll). */
.lp-off, .lp-off * { animation-play-state: paused !important; }
