/* =====================================================================
 * Página de inicio pública (rediseño UI/UX Pro Max, 2026-10)
 * Computadora: página completa. Celular (≤760 px): pestañas abajo, estilo app.
 * ===================================================================== */

/* Colores de la portada; también los usan Entrar, Crear cuenta y Verificar */
:root { --lp-blue: #0a85c7; --lp-free: #047857; }
html[data-theme="dark"] { --lp-free: #34d399; }
.home { background: var(--bg); min-height: 100vh; }
.home [hidden] { display: none !important; }
.lp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.lp-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Botones propios de la portada */
.home .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.lp-btn-primary { background: var(--lp-blue); color: #fff !important; box-shadow: 0 8px 20px rgba(10, 133, 199, .3); }
.lp-btn-primary:hover { background: #0b93db; }
.lp-btn-white { background: #fff; color: #073b5e !important; font-weight: 800; min-height: 48px; padding: 0 22px; border-radius: 14px; box-shadow: 0 10px 24px rgba(0, 30, 60, .25); }
.lp-btn-white:hover { background: #f0f9ff; }
.lp-btn-outline { background: rgba(255, 255, 255, .08); color: #fff !important; font-weight: 800; min-height: 48px; padding: 0 22px; border-radius: 14px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.lp-btn-outline:hover { background: rgba(255, 255, 255, .16); }

/* Barra superior */
.lp-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--card) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.lp-top .lp-wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.lp-brand { display: flex; }
.lp-top img.logo { height: 46px; width: auto; display: block; mix-blend-mode: multiply; }
html[data-theme="dark"] .lp-top img.logo { mix-blend-mode: normal; background: #fff; border-radius: 12px; padding: 5px 10px; height: 38px; box-sizing: content-box; }
.lp-nav { display: flex; gap: 4px; }
.lp-nav a { text-decoration: none; font-weight: 600; color: var(--ink-2); padding: 10px 14px; border-radius: 10px; font-size: .95rem; }
.lp-nav a:hover { background: var(--brand-50); color: var(--brand); }
.lp-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* Banner principal */
.lp-hero { position: relative; color: #fff; overflow: hidden; padding: 72px 0 150px;
  background: radial-gradient(700px 420px at 85% 20%, rgba(56, 189, 248, .22), transparent 70%), linear-gradient(135deg, #0a4f7c 0%, #073b5e 50%, #041f33 100%); }
.lp-hero::before { content: ""; position: absolute; inset: 0; opacity: .22; pointer-events: none;
  background-image: radial-gradient(#fff 1.4px, transparent 1.5px); background-size: 26px 26px; mask-image: linear-gradient(100deg, #000 0%, transparent 55%); }
.lp-hero-in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.lp-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); padding: 7px 14px; border-radius: 999px; }
/* Punto verde "en vivo": titila y suelta una onda */
.lp-kicker b { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; animation: lp-titila 1.6s ease-in-out infinite; }
.lp-kicker b::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #4ade80; animation: lp-onda 1.6s ease-out infinite; }
@keyframes lp-titila { 0%, 100% { opacity: 1; box-shadow: 0 0 0 4px rgba(74, 222, 128, .25), 0 0 10px rgba(74, 222, 128, .8); } 50% { opacity: .45; box-shadow: 0 0 0 4px rgba(74, 222, 128, .1); } }
@keyframes lp-onda { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }
.lp-hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; margin: 20px 0 18px; font-weight: 800; color: #fff; }
.lp-hero h1 em { font-style: normal; background: linear-gradient(90deg, #7dd3fc, #fff 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-lead { font-size: 1.15rem; line-height: 1.6; color: #dbeefa; max-width: 34rem; margin: 0 0 40px; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Tarjetas en abanico (en celular: carrusel) */
.lp-fan { position: relative; height: 490px; width: 100%; max-width: 620px; margin-left: auto; }
.lp-fan-label, .lp-dots { display: none; }
.lp-fcard { position: absolute; background: #fff; color: #0f172a; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 50px rgba(0, 20, 45, .35); transition: transform .35s cubic-bezier(.3, .9, .4, 1.1); }
html[data-theme="dark"] .lp-fcard { background: #11263d; color: #e6ecf5; }
.lp-fcard .cv { aspect-ratio: 16 / 9; background: #e2e8f0 center / cover no-repeat; }
.lp-fcard .bd { padding: 12px 16px 14px; }
.lp-fcard b { display: block; font-size: .95rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-fcard small { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: .78rem; color: #56657b; font-weight: 600; }
html[data-theme="dark"] .lp-fcard small { color: #94a3b8; }
.lp-fcard .pill { font-weight: 800; font-size: .72rem; padding: 4px 10px; border-radius: 999px; background: #e7f7ef; color: #047857; }
.lp-fcard .pill.pay { background: #e6f2f8; color: #006298; }
html[data-theme="dark"] .lp-fcard .pill { background: rgba(16, 185, 129, .15); color: #34d399; }
html[data-theme="dark"] .lp-fcard .pill.pay { background: rgba(62, 168, 226, .15); color: #3ea8e2; }
/* Atrás abajo-izquierda, al frente al centro, arriba-derecha encima: solo se tapan esquinas de las portadas */
.lp-fcard.c1 { width: 230px; left: -6px; top: 285px; z-index: 1; transform: rotate(-5deg); }
.lp-fcard.c2 { width: 280px; left: 92px; top: 105px; z-index: 2; transform: rotate(-1deg); }
.lp-fcard.c2 b { font-size: .88rem; }
.lp-fcard.c3 { width: 220px; right: -6px; top: 0; z-index: 3; transform: rotate(4deg); }
.lp-fcard.photo .cv { aspect-ratio: 4 / 3; }
.lp-fan:hover .c1 { transform: rotate(-7deg) translate(-10px, 8px); } .lp-fan:hover .c3 { transform: rotate(6deg) translate(10px, -8px); }
.lp-chip { position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; background: #fff; color: #0f172a; border-radius: 16px; padding: 10px 14px;
  box-shadow: 0 16px 34px rgba(0, 20, 45, .3); font-size: .85rem; font-weight: 700; }
html[data-theme="dark"] .lp-chip { background: #11263d; color: #e6ecf5; }
.lp-chip small { display: block; font-weight: 600; color: #56657b; font-size: .74rem; }
html[data-theme="dark"] .lp-chip small { color: #94a3b8; }
.lp-chip .dot { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: #e7f7ef; color: #047857; }
.lp-chip-a { right: 0; bottom: 30px; } .lp-chip-b { left: 0; top: 30px; }
.lp-chip-b .dot { background: #fff4e0; color: #b45309; }
.lp-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; display: block; }
.lp-wave path { fill: var(--bg); }

/* Cifras */
.lp-stats { position: relative; z-index: 2; margin-top: -96px; }
.lp-stats .box { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 8px; }
html[data-theme="dark"] .lp-stats .box { border: 1px solid var(--line); }
.lp-stat { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.lp-stat + .lp-stat { border-left: 1px solid var(--line); }
.lp-stat b { display: block; font-size: 1.6rem; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.lp-stat span { font-size: .88rem; color: var(--ink-2); font-weight: 600; }
.si { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.si .lp-ico { width: 24px; height: 24px; }
.si-blue { background: var(--brand-50); color: var(--brand); } .si-green { background: var(--ok-50); color: var(--lp-free); }
.si-amber { background: #fff4e0; color: #b45309; } .si-violet { background: #efe8fd; color: #6d28d9; }
html[data-theme="dark"] .si-amber { background: rgba(245, 158, 11, .14); color: #fbbf24; }
html[data-theme="dark"] .si-violet { background: rgba(139, 92, 246, .18); color: #c4b5fd; }

/* Secciones */
.lp-block { padding: 84px 0 0; }
.lp-eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.lp-h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); letter-spacing: -.025em; line-height: 1.15; margin: 8px 0 10px; color: var(--ink); }
.lp-sub { color: var(--ink-2); font-size: 1.05rem; margin: 0; max-width: 40rem; }
.lp-center { text-align: center; } .lp-center .lp-sub { margin: 0 auto; }

/* Cómo funciona */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; text-align: left; }
.lp-step { position: relative; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 26px 24px 24px; }
html[data-theme="dark"] .lp-step { border: 1px solid var(--line); }
.lp-step .lp-n { position: absolute; top: 22px; right: 22px; font-size: 2.6rem; font-weight: 800; color: var(--line); line-height: 1; }
.lp-step .si { width: 54px; height: 54px; border-radius: 16px; margin-bottom: 16px; }
.lp-step h3 { margin: 0 0 6px; font-size: 1.15rem; color: var(--ink); }
.lp-step p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* CodeUp */
.lp-codeup { position: relative; margin-top: 84px; border-radius: 28px; overflow: hidden; color: #e8edff; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
  padding: 40px 48px; min-height: 260px;
  background: radial-gradient(700px 320px at 0% -20%, #1d2b64, transparent 65%), radial-gradient(600px 300px at 105% 20%, #3b1d6e, transparent 60%), #0b1020; }
html[data-theme="dark"] .lp-codeup { border: 1px solid #24305a; }
.lp-codeup::before { content: ""; position: absolute; inset: 0; opacity: .45; pointer-events: none;
  background-image: radial-gradient(#38bdf8 1.5px, transparent 1.5px), radial-gradient(#a855f7 1.5px, transparent 1.5px);
  background-size: 46px 46px, 70px 70px; background-position: 0 0, 23px 30px; mask-image: linear-gradient(180deg, #000, transparent 90%); }
.lp-codeup > * { position: relative; }
.lp-codeup .k { color: #fbbf24; font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.lp-codeup h2 { font-family: "Zen Dots", sans-serif; font-weight: 400; font-size: clamp(2rem, 4.5vw, 3.4rem); margin: 10px 0 8px; letter-spacing: .03em; line-height: 1.05;
  background: linear-gradient(90deg, #4ade80, #38bdf8, #a855f7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-codeup p { color: #9aa6d1; margin: 0 0 20px; max-width: 32rem; }
.lp-codeup .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.lp-cu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; font-weight: 800; text-decoration: none; color: #06210f !important;
  background: linear-gradient(180deg, #4ade80, #22c55e); box-shadow: 0 5px 0 #15803d; }
.lp-cu-tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .88rem; background: rgba(255, 255, 255, .06); border: 1px solid #24305a; border-radius: 999px; padding: 8px 14px; }
.lp-cu-tag i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
.lp-codeup img { width: 260px; display: block; animation: lp-flota 4.2s ease-in-out infinite; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .4)); }
@keyframes lp-flota { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
.lp-cu-more { display: none; }

/* Catálogo */
.lp-aporte { display: flex; gap: 14px; align-items: center; margin-top: 22px; padding: 14px 18px; border-radius: 16px; background: linear-gradient(90deg, #fff1f2, #fff7ed); border: 1px solid #fecdd3; }
html[data-theme="dark"] .lp-aporte { background: linear-gradient(90deg, rgba(244, 63, 94, .12), rgba(249, 115, 22, .08)); border-color: rgba(244, 63, 94, .3); }
.lp-aporte .ai { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #e11d48; color: #fff; flex: none; animation: lp-latido 2.4s ease-in-out infinite; }
.lp-aporte .ai .lp-ico { width: 21px; height: 21px; fill: currentColor; }
.lp-aporte b { display: block; font-size: 1rem; color: var(--ink); }
.lp-aporte small { display: block; color: var(--ink-2); font-size: .88rem; margin-top: 2px; }
@keyframes lp-latido { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.12); } 24% { transform: scale(1); } 36% { transform: scale(1.08); } 48% { transform: scale(1); } }
.lp-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 28px 0 22px; }
.lp-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.lp-chip-f { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink-2); font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.lp-chip-f .lp-ico { width: 16px; height: 16px; }
.lp-chip-f small { color: var(--ink-3); font-weight: 700; }
.lp-chip-f.on { background: var(--lp-blue); border-color: var(--lp-blue); color: #fff; } .lp-chip-f.on small { color: #cfe8f5; }
.lp-search { margin-left: auto; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink-3); min-width: 260px; }
.lp-search input { border: 0; outline: none; background: none; font: inherit; color: var(--ink); flex: 1; min-width: 0; padding: 0; box-shadow: none; }
.lp-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.lp-course { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
html[data-theme="dark"] .lp-course { border: 1px solid var(--line); }
.lp-course:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(15, 31, 51, .06), 0 18px 40px rgba(15, 31, 51, .14); }
.lp-course .cv { aspect-ratio: 16 / 9; background: var(--brand-50) center / cover no-repeat; position: relative; }
.lp-course .tag { position: absolute; left: 12px; top: 12px; background: rgba(255, 255, 255, .92); color: #0f172a; font-size: .74rem; font-weight: 800; padding: 5px 10px; border-radius: 999px; }
html[data-theme="dark"] .lp-course .tag { background: rgba(11, 26, 44, .85); color: #e6ecf5; }
.lp-course .bd { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lp-course h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; color: var(--ink); }
.lp-course p { margin: 0; color: var(--ink-2); font-size: .9rem; }
.lp-course .meta { display: flex; gap: 14px; font-size: .8rem; color: var(--ink-2); font-weight: 600; flex-wrap: wrap; }
.lp-course .meta span { display: inline-flex; align-items: center; gap: 5px; } .lp-course .meta .lp-ico { width: 15px; height: 15px; }
.lp-course .foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lp-price b { font-size: 1.15rem; color: var(--ink); } .lp-price small { display: block; font-size: .76rem; color: var(--ink-2); font-weight: 600; }
.lp-price.free b { color: var(--lp-free); }
.lp-price.na { font-size: .82rem; font-weight: 700; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.lp-price.na .lp-ico { width: 16px; height: 16px; }
.lp-go { min-height: 44px; display: inline-flex; align-items: center; gap: 4px; padding: 0 14px; border-radius: 12px; border: 0; cursor: pointer; font: inherit;
  background: var(--lp-blue); color: #fff; font-weight: 800; font-size: .9rem; white-space: nowrap; box-shadow: 0 6px 14px rgba(10, 133, 199, .25); transition: background .15s, transform .15s; }
.lp-go .lp-ico { width: 16px; height: 16px; }
.lp-go:hover { background: #0b93db; transform: translateY(-1px); }
.lp-empty { grid-column: 1 / -1; text-align: center; padding: 30px; color: var(--ink-2); }
.lp-rate { margin-top: 1.25rem; }
.lp-modal-cover { aspect-ratio: 16 / 9; border-radius: 14px; background: var(--brand-50) center / cover no-repeat; margin-bottom: 1rem; }

/* Preguntas */
.lp-faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.lp-qa { display: grid; gap: 12px; }
.lp-qa details { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); }
html[data-theme="dark"] .lp-qa details { border: 1px solid var(--line); }
.lp-qa summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; color: var(--ink); }
.lp-qa summary::-webkit-details-marker { display: none; }
.lp-qa summary .lp-ico { transition: transform .2s; color: var(--brand); }
.lp-qa details[open] summary .lp-ico { transform: rotate(45deg); }
.lp-qa details p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); }
.lp-help { margin-top: 22px; display: flex; gap: 12px; align-items: center; background: var(--ok-50); border-radius: 16px; padding: 14px 16px; font-size: .92rem; color: var(--ink); }
.lp-help .lp-ico { color: var(--lp-free); }
.lp-help a { font-weight: 800; color: var(--lp-free); }

/* Cierre y pie */
.lp-final { margin: 84px 0 0; border-radius: 28px; padding: 48px; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden;
  background: radial-gradient(500px 260px at 100% 0%, rgba(56, 189, 248, .25), transparent 70%), linear-gradient(135deg, #0a4f7c, #052a44); }
html[data-theme="dark"] .lp-final { border: 1px solid #1d3b57; }
.lp-final::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: radial-gradient(#fff 1.4px, transparent 1.5px); background-size: 26px 26px; mask-image: linear-gradient(270deg, #000, transparent 60%); }
.lp-final > * { position: relative; }
.lp-final h2 { margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; color: #fff; }
.lp-final p { margin: 0; color: #dbeefa; }
.lp-foot { margin-top: 72px; background: var(--card); border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-2); font-size: .9rem; }
.lp-foot .lp-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.lp-foot img.logo { height: 56px; width: auto; display: block; mix-blend-mode: multiply; }
html[data-theme="dark"] .lp-foot img.logo { mix-blend-mode: normal; background: #fff; border-radius: 12px; padding: 6px 10px; box-sizing: content-box; height: 48px; }
.lp-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.lp-foot a { text-decoration: none; font-weight: 600; color: var(--ink-2); } .lp-foot a:hover { color: var(--brand); }
.lp-foot small { color: var(--ink-2); }
.lp-tabs { display: none; }

/* Tablet */
@media (max-width: 1000px) {
  .lp-hero-in { grid-template-columns: 1fr; }
  .lp-fan { height: 440px; max-width: 560px; margin: 0 auto; }
  .lp-stats .box { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
  .lp-stat:nth-child(3) { border-left: 0; } .lp-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .lp-faq { grid-template-columns: 1fr; gap: 24px; }
  .lp-nav { display: none; }
}

/* ================= Celular: estilo app, una sección por pestaña ================= */
@media (max-width: 760px) {
  .home { padding-bottom: 80px; }
  .home[data-tab="inicio"] [data-sec]:not([data-sec="inicio"]), .home[data-tab="cursos"] [data-sec]:not([data-sec="cursos"]),
  .home[data-tab="codeup"] [data-sec]:not([data-sec="codeup"]), .home[data-tab="ayuda"] [data-sec]:not([data-sec="ayuda"]) { display: none !important; }
  .lp-final, .lp-lead-extra, .lp-hide-m { display: none !important; }
  .lp-wrap { padding: 0 16px; }

  /* Barra de pestañas (máx. 5; la del medio es la acción principal) */
  .lp-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; align-items: end;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--card) 95%, transparent); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15, 31, 51, .08); }
  .lp-tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 52px; justify-content: center; text-decoration: none;
    font-size: .68rem; font-weight: 700; color: var(--ink-2); border-radius: 12px; }
  .lp-tabs a .lp-ico { width: 22px; height: 22px; }
  .lp-tabs a.on { color: var(--brand); } .lp-tabs a.on .lp-ico { stroke-width: 2.4; }
  .lp-tabs .lp-tab-cta { color: var(--ink); }
  .lp-tabs .lp-tab-cta span { width: 48px; height: 48px; margin-top: -26px; border-radius: 16px; display: grid; place-items: center; color: #fff;
    background: var(--lp-blue); box-shadow: 0 8px 18px rgba(10, 133, 199, .4); border: 3px solid var(--card); }

  /* Barra superior */
  .lp-top .lp-wrap { height: 62px; gap: 12px; }
  .lp-top img.logo { height: 34px; }
  html[data-theme="dark"] .lp-top img.logo { height: 28px; }

  /* Inicio */
  .lp-hero { padding: 18px 0 70px; }
  .lp-hero-in { gap: 14px; }
  .lp-kicker { font-size: .64rem; padding: 5px 10px; }
  .lp-hero h1 { font-size: 2.05rem; margin: 10px 0 8px; }
  .lp-lead { font-size: .92rem; line-height: 1.5; margin-bottom: 14px; }
  .lp-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .lp-cta .btn { min-height: 46px; font-size: .86rem; padding: 0 8px; border-radius: 12px; white-space: nowrap; }
  .lp-cta .btn .lp-ico { display: none; }
  .lp-fan { position: relative; height: auto; max-width: none; margin: 0; padding: 22px 0 4px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .lp-fan::-webkit-scrollbar { display: none; }
  .lp-fan-label { display: block; position: absolute; left: 0; top: 0; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #9fd3f0; }
  .lp-fcard, .lp-fcard.c1, .lp-fcard.c2, .lp-fcard.c3 { position: relative; inset: auto; left: auto; right: auto; top: auto; width: auto; transform: none !important;
    flex: 0 0 calc(50% - 5px); scroll-snap-align: start; border-radius: 16px; box-shadow: 0 12px 26px rgba(0, 20, 45, .35); }
  .lp-fcard.c2 { order: -1; }
  .lp-fcard .bd { padding: 8px 10px 10px; }
  .lp-fcard b, .lp-fcard.c2 b { font-size: .78rem; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
  .lp-fcard small { margin-top: 4px; font-size: .66rem; } .lp-fcard .pill { font-size: .62rem; padding: 3px 8px; }
  .lp-fcard.photo .cv { aspect-ratio: 16 / 9; height: 100%; }
  .lp-chip { display: none !important; }
  .lp-dots { display: flex; justify-content: center; gap: 6px; position: relative; margin-top: 10px; }
  .lp-dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .35); transition: width .2s, background .2s; }
  .lp-dots i.on { width: 20px; background: #fff; }
  .lp-wave { height: 40px; }

  .lp-stats { margin-top: -46px; }
  .lp-stats .box { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 1fr; padding: 2px; border-radius: 16px; }
  .lp-stat, .lp-stat:nth-child(n) { flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 10px 4px; border-top: 0; }
  .lp-stat + .lp-stat { border-left: 1px solid var(--line); }
  .lp-stat .si { display: none; }
  .lp-stat b { font-size: 1.05rem; } .lp-stat span { font-size: .66rem; line-height: 1.25; display: block; }

  #como { padding-top: 22px; text-align: left; }
  #como .lp-eyebrow, #como .lp-sub { display: none; }
  #como .lp-h2 { font-size: 1.1rem; margin: 0; }
  .lp-steps { gap: 8px; margin-top: 10px; }
  .lp-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 12px 6px; border-radius: 14px; }
  .lp-step .lp-n, .lp-step p { display: none; }
  .lp-step .si { width: 38px; height: 38px; border-radius: 12px; margin: 0; } .lp-step .si .lp-ico { width: 19px; height: 19px; }
  .lp-step h3 { font-size: .74rem; margin: 0; line-height: 1.25; }

  /* Cursos */
  #cursos { padding-top: 16px; }
  #cursos .lp-eyebrow, #cursos .lp-sub { display: none; }
  #cursos .lp-h2 { font-size: 1.35rem; margin: 0; }
  .lp-aporte { margin-top: 10px; padding: 10px 12px; gap: 10px; align-items: flex-start; }
  .lp-aporte .ai { width: 34px; height: 34px; border-radius: 10px; } .lp-aporte .ai .lp-ico { width: 17px; height: 17px; }
  .lp-aporte b { font-size: .84rem; } .lp-aporte small { font-size: .74rem; line-height: 1.4; }
  .lp-tools { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin: 10px 0 12px; }
  .lp-search { order: -1; width: 100%; min-width: 0; margin: 0; min-height: 42px; }
  .lp-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; gap: 8px; scrollbar-width: none; }
  .lp-chips::-webkit-scrollbar { display: none; }
  .lp-chip-f { flex: none; min-height: 38px; padding: 0 14px; font-size: .84rem; }
  .lp-grid { grid-template-columns: 1fr; gap: 8px; }
  .lp-course { flex-direction: row; border-radius: 16px; }
  .lp-course:hover { transform: none; }
  .lp-course .cv { flex: 0 0 84px; aspect-ratio: auto; min-height: 100%; }
  .lp-course .tag, .lp-course p, .lp-course .meta, .lp-price small { display: none; }
  .lp-course .bd { padding: 10px 12px; gap: 4px; min-width: 0; }
  .lp-course h3 { font-size: .88rem; }
  .lp-course .foot { border-top: 0; padding-top: 4px; }
  .lp-price b { font-size: 1rem; } .lp-price.na { font-size: .74rem; }
  .lp-go { min-height: 38px; font-size: .8rem; padding: 0 10px; }
  .lp-rate { font-size: .74rem; }

  /* CodeUp: mascota arriba, fechas y categorías en cuadrículas para que quepa en una pantalla */
  .lp-codeup { margin-top: 16px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 16px 16px; min-height: 0; border-radius: 22px; gap: 0; }
  .lp-codeup > div { width: 100%; }
  .lp-codeup img { order: -1; width: 96px; margin: 0 auto; }
  .lp-codeup .k { font-size: .68rem; }
  .lp-codeup h2 { font-size: 1.7rem; margin: 4px 0 6px; }
  .lp-codeup p { font-size: .88rem; margin: 0 0 12px; max-width: none; }
  .lp-codeup .row { display: block; } .lp-cu-tag { display: none; }
  .lp-cu-btn { width: 100%; justify-content: center; min-height: 44px; white-space: nowrap; }
  .lp-cu-more { display: block; margin-top: 12px; }
  .lp-cu-more h3 { font-size: .9rem; margin: 0 0 6px; color: var(--ink); }
  .lp-fases { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .lp-fases li { display: flex; gap: 8px; align-items: flex-start; background: var(--card); box-shadow: var(--shadow); border-radius: 12px; padding: 8px 10px; }
  html[data-theme="dark"] .lp-fases li { border: 1px solid var(--line); }
  .lp-fases li.now { box-shadow: inset 0 0 0 2px #22c55e; }
  .lp-fases i { margin-top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; }
  .lp-fases li.now i { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
  .lp-fases b { display: block; font-size: .8rem; line-height: 1.25; color: var(--ink); } .lp-fases small { color: var(--ink-2); font-size: .7rem; }
  .lp-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .lp-cats div { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 8px 10px; border-left: 4px solid var(--c); }
  html[data-theme="dark"] .lp-cats div { border: 1px solid var(--line); border-left: 4px solid var(--c); }
  .lp-cats b { display: block; font-size: .8rem; color: var(--ink); } .lp-cats small { color: var(--ink-2); font-size: .68rem; }
  .lp-cu-tip { margin: 10px 0 0; font-size: .76rem; color: var(--ink-2); background: var(--brand-50); border-radius: 12px; padding: 8px 10px; }
  .lp-cu-tip b { color: var(--ink); }

  /* Ayuda */
  #preguntas { padding-top: 16px; }
  #preguntas .lp-eyebrow, #preguntas .lp-sub { display: none; }
  #preguntas .lp-h2 { font-size: 1.35rem; margin: 0 0 4px; }
  .lp-faq { gap: 10px; }
  .lp-help { margin-top: 8px; padding: 10px 12px; font-size: .85rem; }
  .lp-qa { gap: 8px; } .lp-qa summary { min-height: 48px; padding: 12px 14px; font-size: .9rem; } .lp-qa details p { padding: 0 14px 12px; font-size: .86rem; }
  .lp-foot { margin-top: 18px; padding: 16px 0; border-top: 0; background: none; }
  .lp-foot .lp-wrap { flex-direction: column; text-align: center; gap: 10px; }
  .lp-foot nav { justify-content: center; gap: 4px 16px; } .lp-foot a { display: inline-block; padding: 8px 0; }
  .lp-foot img.logo { height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-kicker b, .lp-kicker b::after, .lp-aporte .ai, .lp-codeup img { animation: none !important; }
  .lp-fcard, .lp-course, .lp-go { transition: none !important; }
}

/* Cifras que cuentan: dígitos de ancho fijo para que no salten */
[data-count] { font-variant-numeric: tabular-nums; }

/* Franja de CodeUp: botón de patrocinio */
.lp-cu-ghost { background: rgba(255, 255, 255, .06); color: #e8edff !important; box-shadow: inset 0 0 0 1.5px #3b4c8a; }
.lp-cu-ghost:hover { background: rgba(255, 255, 255, .12); }
@media (max-width: 760px) { .lp-codeup .row .lp-cu-ghost { margin-top: 8px; } }

/* Botón flotante de WhatsApp en la portada */
.lp-wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 55; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff !important; text-decoration: none; box-shadow: 0 10px 28px rgba(37, 211, 102, .45); animation: lp-wa-pulse 2.4s infinite; transition: transform .2s; }
.lp-wa-float:hover { transform: scale(1.06); }
.lp-wa-float:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
@keyframes lp-wa-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5), 0 10px 28px rgba(37, 211, 102, .45); } 50% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0), 0 10px 28px rgba(37, 211, 102, .45); } }
@media (prefers-reduced-motion: reduce) { .lp-wa-float { animation: none; } }
@media (max-width: 760px) { .lp-wa-float { right: 14px; bottom: calc(78px + env(safe-area-inset-bottom)); width: 52px; height: 52px; } }

/* Pie de la portada en dos líneas: menú arriba, datos legales abajo */
.lp-foot .lp-foot-bottom { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.lp-foot .lp-foot-bottom small { font-size: .82rem; color: var(--ink-3); }
.lp-foot .lp-legal { justify-content: flex-end; gap: 4px 18px; margin: 0; }
.lp-foot .lp-legal a { font-size: .82rem; font-weight: 500; color: var(--ink-3); }
.lp-foot .lp-legal a:hover { color: var(--brand); }
@media (max-width: 760px) {
  .lp-foot .lp-foot-bottom { margin-top: 6px; padding-top: 12px; }
  .lp-foot .lp-legal { justify-content: center; }
}

/* Tarjetas del inicio: borde neón suave (rojo, verde y amarillo) */
.lp-fcard { --neon: 255, 255, 255; box-shadow: 0 0 0 1.5px rgba(var(--neon), .85), 0 0 14px rgba(var(--neon), .45), 0 0 34px rgba(var(--neon), .18), 0 24px 50px rgba(0, 20, 45, .35); animation: lp-neon 4.5s ease-in-out infinite; }
.lp-fcard.c1 { --neon: 255, 77, 90; }
.lp-fcard.c2 { --neon: 74, 222, 128; animation-delay: -1.5s; }
.lp-fcard.c3 { --neon: 250, 204, 21; animation-delay: -3s; }
@keyframes lp-neon {
  0%, 100% { box-shadow: 0 0 0 1.5px rgba(var(--neon), .85), 0 0 14px rgba(var(--neon), .45), 0 0 34px rgba(var(--neon), .18), 0 24px 50px rgba(0, 20, 45, .35); }
  50% { box-shadow: 0 0 0 1.5px rgba(var(--neon), 1), 0 0 20px rgba(var(--neon), .6), 0 0 44px rgba(var(--neon), .26), 0 24px 50px rgba(0, 20, 45, .35); }
}
@media (prefers-reduced-motion: reduce) { .lp-fcard { animation: none; } }

/* Titileo tipo letrero de neón (cada tarjeta a su ritmo) */
.lp-fcard { animation: lp-neon-flick 3.2s linear infinite; }
.lp-fcard.c2 { animation-duration: 2.7s; animation-delay: -.9s; }
.lp-fcard.c3 { animation-duration: 3.6s; animation-delay: -2.1s; }
@keyframes lp-neon-flick {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { box-shadow: 0 0 0 1.5px rgba(var(--neon), 1), 0 0 18px rgba(var(--neon), .6), 0 0 42px rgba(var(--neon), .28), 0 24px 50px rgba(0, 20, 45, .35); }
  20%, 24%, 55% { box-shadow: 0 0 0 1.5px rgba(var(--neon), .35), 0 0 4px rgba(var(--neon), .15), 0 0 0 rgba(var(--neon), 0), 0 24px 50px rgba(0, 20, 45, .35); }
  75% { box-shadow: 0 0 0 1.5px rgba(var(--neon), .9), 0 0 24px rgba(var(--neon), .7), 0 0 52px rgba(var(--neon), .32), 0 24px 50px rgba(0, 20, 45, .35); }
}
@media (prefers-reduced-motion: reduce) { .lp-fcard { animation: none; } }

/* Onda de neón (como el botón de WhatsApp): sale del borde y se desvanece */
.lp-fcard { animation: lp-neon-wave 2.6s ease-out infinite; }
.lp-fcard.c2 { animation-duration: 2.6s; animation-delay: -.85s; }
.lp-fcard.c3 { animation-duration: 2.6s; animation-delay: -1.7s; }
@keyframes lp-neon-wave {
  0% { box-shadow: 0 0 0 1.5px rgba(var(--neon), .95), 0 0 14px rgba(var(--neon), .45), 0 0 0 0 rgba(var(--neon), .55), 0 24px 50px rgba(0, 20, 45, .35); }
  70% { box-shadow: 0 0 0 1.5px rgba(var(--neon), .95), 0 0 14px rgba(var(--neon), .45), 0 0 0 16px rgba(var(--neon), 0), 0 24px 50px rgba(0, 20, 45, .35); }
  100% { box-shadow: 0 0 0 1.5px rgba(var(--neon), .95), 0 0 14px rgba(var(--neon), .45), 0 0 0 0 rgba(var(--neon), 0), 0 24px 50px rgba(0, 20, 45, .35); }
}
@media (prefers-reduced-motion: reduce) { .lp-fcard { animation: none; } }

/* Tablet vertical (761–1000 px): texto a la izquierda y tarjetas a la derecha, más pequeñas (como en computadora) */
@media (min-width: 761px) and (max-width: 1000px) {
  .lp-hero { padding: 52px 0 120px; }
  .lp-hero-in { grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; }
  .lp-hero h1 { font-size: clamp(2.4rem, 5.4vw, 3.2rem); }
  .lp-fan { width: 520px; max-width: none; height: 490px; margin: 0; zoom: .68; }
}
@media (min-width: 761px) and (max-width: 860px) {
  .lp-fan { zoom: .58; }
}

/* Celular grande / tablet chica (481–760 px): tarjetas del carrusel de tamaño fijo, se ven varias a la vez */
@media (min-width: 481px) and (max-width: 760px) {
  .lp-fan > .lp-fcard { flex: 0 0 260px !important; max-width: 260px; }
}
/* Computadora pequeña (1001–1180 px): el abanico un poco más chico y separado del encabezado */
@media (min-width: 1001px) and (max-width: 1180px) {
  .lp-fan { zoom: .86; margin-top: 24px; }
}

/* Celular en horizontal (poca altura): el inicio más compacto */
@media (max-height: 500px) and (orientation: landscape) and (min-width: 761px) {
  .lp-hero { padding: 24px 0 80px; }
  .lp-hero h1 { font-size: 2.1rem; margin: 10px 0 8px; }
  .lp-hero .lp-lead, .lp-hero p { font-size: .95rem; }
  .lp-fan { zoom: .5; }
}
