/* =============================================================================
   home.css - aspecto de la home (solo se aplica con <body class="page-home">)
   Los colores oscuros de la home cuelgan de html[data-theme="dark"] (ver theme.css y app.js).
   ============================================================================= */

.page-home {
    --h-bg: #f3f6fc;
    --h-surface: #ffffff;
    --h-surface-alt: #f8f9fc;
    --h-text: #111827;
    --h-text-soft: #4b5563;
    --h-border: #e5e7eb;
    --h-accent: #4f46e5;
    --h-accent-soft: rgba(79, 70, 229, 0.10);
    --h-shadow: 0 10px 30px rgba(17, 24, 39, 0.07);
    --h-hero-a: #eef2ff;
    --h-hero-b: #dbeafe;
    background: var(--h-bg);
    color: var(--h-text);
}

html[data-theme="dark"] .page-home {
    --h-bg: #0b1020;
    --h-surface: #131a2e;
    --h-surface-alt: #0f1528;
    --h-text: #e5e7eb;
    --h-text-soft: #a5b0c5;
    --h-border: #26304f;
    --h-accent: #818cf8;
    --h-accent-soft: rgba(129, 140, 248, 0.14);
    --h-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --h-hero-a: #141b3a;
    --h-hero-b: #0b1020;
    color-scheme: dark;
}

/* La cabecera, el menu y el pie en modo oscuro estan en theme.css (todo el sitio). */

/* ---------- Hero ---------- */
.page-home .hero {
    padding: 5rem 1.5rem 5.5rem;
    background:
        radial-gradient(60rem 28rem at 15% -10%, rgba(99, 102, 241, 0.22), transparent 60%),
        radial-gradient(50rem 24rem at 95% 0%, rgba(56, 189, 248, 0.20), transparent 60%),
        linear-gradient(180deg, var(--h-hero-a), var(--h-hero-b));
}

.page-home .hero-content { max-width: 1040px; margin: 0 auto; position: relative; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1.25rem;
    border-radius: 999px;
    background: var(--h-accent-soft);
    color: var(--h-accent);
    border: 1px solid color-mix(in srgb, var(--h-accent) 30%, transparent);
    font-size: 0.85rem;
    font-weight: 600;
}

.hero-badge::before {
    content: "";
    width: 8px; height: 8px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.page-home .hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    letter-spacing: -0.02em;
    color: var(--h-text);
}

.page-home .hero p { color: var(--h-text-soft); }

.page-home .hero-buttons { margin-bottom: 3rem; }

.page-home .btn-primary {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}
.page-home .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(79, 70, 229, 0.45); }

.page-home .btn-secondary {
    background: var(--h-surface);
    color: var(--h-text);
    border: 1px solid var(--h-border);
}
.page-home .btn-secondary:hover { transform: translateY(-2px); border-color: var(--h-accent); background: var(--h-surface); }

/* Tarjeta de codigo del hero */
.code-card {
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
    border-radius: 16px;
    background: #0f172a;
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
    overflow: hidden;
    animation: fadeInUp 0.6s ease forwards;
}

.code-card-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1rem;
    background: #1e293b;
    font-size: 0.8rem;
    color: #94a3b8;
}
.code-card-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.code-card-bar i:nth-child(1) { background: #ef4444; }
.code-card-bar i:nth-child(2) { background: #f59e0b; }
.code-card-bar i:nth-child(3) { background: #22c55e; }
.code-card-bar span { margin-left: 0.75rem; font-family: 'Fira Code', ui-monospace, monospace; }

.code-card pre {
    margin: 0;
    padding: 1.25rem 1.4rem;
    font-family: 'Fira Code', ui-monospace, Consolas, monospace;
    font-size: 0.95rem;
    line-height: 1.7;
    overflow-x: auto;
}
.code-card .k { color: #c084fc; }
.code-card .f { color: #60a5fa; }
.code-card .s { color: #86efac; }
.code-card .c { color: #64748b; font-style: italic; }

.code-card-out {
    padding: 0.9rem 1.4rem 1.1rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.3);
    font-family: 'Fira Code', ui-monospace, Consolas, monospace;
    font-size: 0.9rem;
    color: #a7f3d0;
}
.code-card-out small { display: block; color: #64748b; margin-bottom: 0.2rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Secciones (mismo sistema que curso y practica: un fondo, mismo radio, etiqueta + titulo) ---------- */
.hm-sec { max-width: 1120px; margin: 0 auto; padding: 6rem 1.5rem 0; }
.hm-sec:last-of-type { padding-bottom: 6rem; }
.hm-head { text-align: center; max-width: 640px; margin: 0 auto 2.8rem; }
.hm-eyebrow { display: inline-block; padding: .22rem .7rem; margin-bottom: .8rem; border-radius: 999px; background: var(--h-accent-soft); color: var(--h-accent); font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.hm-head h2, .hm-cta h2, .hm-app h2 { margin: 0 0 .6rem; font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.2; letter-spacing: -.02em; color: var(--h-text); }
.hm-head p { margin: 0; color: var(--h-text-soft); line-height: 1.6; }

/* contadores */
.hm-stats-sec { padding-top: 4rem; }
.hm-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.hm-stat { --a: #4f46e5; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; padding: 1.6rem 1.5rem 1.4rem; overflow: hidden;
    background: var(--h-surface); border: 1px solid var(--h-border); border-radius: var(--c-radius, 12px); box-shadow: var(--h-shadow); transition: transform .15s, border-color .15s; }
.hm-stat::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--a); opacity: .9; }
.hm-stat::after { content: ""; position: absolute; right: -2.2rem; top: -2.2rem; width: 8rem; height: 8rem; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--a) 16%, transparent), transparent 70%); pointer-events: none; }
.hm-stat:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--a) 55%, var(--h-border)); }
.hm-stat-a { --a: #3b82f6; } .hm-stat-b { --a: #16a34a; } .hm-stat-c { --a: #7c3aed; } .hm-stat-d { --a: #ea580c; }
.hm-stat-ico { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: .9rem; border-radius: 13px; background: color-mix(in srgb, var(--a) 13%, transparent); color: var(--a); }
html:not(.zz) .hm-stat-ico .lucide-icon, .hm-stat-ico svg { width: 24px; height: 24px; margin: 0; display: block; color: var(--a); }
.hm-stat-n { font-size: 2.7rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--h-text); font-variant-numeric: tabular-nums; }
.hm-stat-l { margin-top: .35rem; font-size: .92rem; font-weight: 600; color: var(--h-text-soft); }

/* tarjetas "por que": texto + mini vista previa de la funcion */
.hm-feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.hm-feat { display: flex; flex-direction: column; justify-content: space-between; gap: 1.6rem; padding: 2rem 2rem 1.8rem; background: var(--h-surface); border: 1px solid var(--h-border); border-radius: var(--c-radius, 12px); box-shadow: var(--h-shadow); transition: border-color .15s, transform .15s; }
.hm-feat:hover { border-color: color-mix(in srgb, var(--h-accent) 55%, var(--h-border)); transform: translateY(-2px); }
.hm-feat .lucide-icon { box-sizing: content-box; width: 22px; height: 22px; padding: 11px; border-radius: 12px; background: var(--h-accent-soft); color: var(--h-accent); margin-bottom: 1rem; }
.hm-feat h3 { margin: 0 0 .45rem; font-size: 1.2rem; letter-spacing: -.01em; color: var(--h-text); }
.hm-feat p { margin: 0; max-width: 46ch; font-size: .95rem; line-height: 1.6; color: var(--h-text-soft); }

.hm-win { border-radius: 10px; overflow: hidden; background: #0f172a; color: #e2e8f0; border: 1px solid rgba(148, 163, 184, .22); text-align: left; }
.hm-win-bar { display: flex; align-items: center; gap: .35rem; padding: .5rem .8rem; background: #1e293b; font: 500 .72rem 'Fira Code', ui-monospace, monospace; color: #94a3b8; }
.hm-win-bar i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.hm-win-bar i:nth-child(1) { background: #ef4444; } .hm-win-bar i:nth-child(2) { background: #f59e0b; } .hm-win-bar i:nth-child(3) { background: #22c55e; }
.hm-win-bar span { margin-left: .6rem; }
.hm-run { margin-left: auto; padding: .15rem .6rem; border-radius: 6px; background: var(--h-accent, #4f46e5); color: #fff; font-weight: 700; font-size: .7rem; }
.hm-win pre { margin: 0; padding: .8rem 1rem; font: .8rem/1.65 'Fira Code', ui-monospace, monospace; }
.hm-win .k { color: #c084fc; } .hm-win .f { color: #60a5fa; } .hm-win .s { color: #86efac; } .hm-win .n { color: #fdba74; }
.hm-win .hl { display: inline-block; width: 100%; margin: 0 -1rem; padding: 0 1rem; background: rgba(250, 204, 21, .13); box-shadow: inset 3px 0 0 #facc15; }
.hm-win-out { padding: .55rem 1rem .65rem; border-top: 1px dashed rgba(148, 163, 184, .3); font: .76rem 'Fira Code', ui-monospace, monospace; color: #a7f3d0; }
.hm-win-out.is-ok { color: #4ade80; font-weight: 700; }
.hm-lines { display: flex; flex-direction: column; gap: .35rem; padding: .7rem 1rem .8rem; }
.hm-lines i { display: block; height: 7px; border-radius: 4px; background: rgba(148, 163, 184, .28); width: 88%; }
.hm-lines i + i { width: 62%; }

.hm-path { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.4rem; border-radius: 10px; background: var(--h-surface-alt); border: 1px solid var(--h-border); min-height: 128px; }
.hm-path::before { content: ""; position: absolute; left: 2.2rem; right: 2.2rem; top: 50%; border-top: 2px dashed color-mix(in srgb, var(--h-text-soft) 35%, transparent); }
.hm-dot { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 30% 22%, color-mix(in srgb, var(--c) 72%, #fff), var(--c) 62%, color-mix(in srgb, var(--c) 82%, #000)); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14), 0 6px 12px color-mix(in srgb, var(--c) 28%, transparent); }
.hm-dot::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: rgba(255, 255, 255, .92); }
.hm-dot.done::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; font-weight: 800; font-size: .95rem; color: var(--c); }
.hm-dot.now { transform: scale(1.18); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 22%, transparent), inset 0 -3px 0 rgba(0, 0, 0, .14); }
.hm-dot:not(.done):not(.now) { opacity: .55; }

/* pasos: linea continua con las burbujas de las lecciones y una tarjeta por paso */
.hm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; position: relative; }
.hm-steps::before { content: ""; position: absolute; top: 35px; left: 12.5%; right: 12.5%; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #3b82f6, #16a34a, #7c3aed, #ea580c); opacity: .45; }
.hm-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hm-step-badge { position: relative; z-index: 1; display: inline-flex; width: 70px; height: 70px; border-radius: 50%;
    background: radial-gradient(circle at 30% 22%, color-mix(in srgb, var(--c) 72%, #fff), var(--c) 62%, color-mix(in srgb, var(--c) 82%, #000));
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .14), 0 8px 18px color-mix(in srgb, var(--c) 30%, transparent), 0 0 0 6px var(--h-bg); }
.hm-step-ico { position: absolute; inset: 13px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--c); }
html:not(.zz) .hm-step-ico .lucide-icon, .hm-step-ico svg { width: 24px; height: 24px; margin: 0; display: block; color: var(--c); }
.hm-step-badge em { position: absolute; right: -4px; bottom: -2px; z-index: 2; min-width: 24px; height: 24px; padding: 0 .3rem; box-sizing: border-box; display: grid; place-items: center; border-radius: 999px; background: #4f46e5; color: #fff; border: 2px solid var(--h-bg); font: 800 .75rem/1 inherit; font-style: normal; }
.hm-step-card { width: 100%; margin-top: 1.3rem; padding: 1.4rem 1.3rem 1.5rem; flex: 1; background: var(--h-surface); border: 1px solid var(--h-border); border-top: 3px solid var(--c); border-radius: var(--c-radius, 12px); box-shadow: var(--h-shadow); transition: transform .15s, border-color .15s; }
.hm-step:hover .hm-step-card { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 55%, var(--h-border)); border-top-color: var(--c); }
.hm-step h3 { margin: 0 0 .4rem; font-size: 1.05rem; color: var(--h-text); }
.hm-step p { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--h-text-soft); }

/* temario: una tarjeta por leccion con su burbuja, numero y contadores */
.hm-lessons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.hm-lesson { position: relative; display: flex; flex-direction: column; gap: .9rem; padding: 1.4rem 1.4rem 1.3rem; overflow: hidden; background: var(--h-surface); border: 1px solid var(--h-border); border-top: 3px solid var(--c); border-radius: var(--c-radius, 12px); box-shadow: var(--h-shadow); color: var(--h-text); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.hm-lesson::after { content: ""; position: absolute; right: -2.5rem; top: -2.5rem; width: 9rem; height: 9rem; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%); pointer-events: none; }
.hm-lesson:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 55%, var(--h-border)); border-top-color: var(--c); box-shadow: 0 12px 26px color-mix(in srgb, var(--c) 16%, transparent); }
.hm-lesson:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.hm-lesson-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.hm-ico { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: radial-gradient(circle at 30% 22%, color-mix(in srgb, var(--c) 72%, #fff), var(--c) 62%, color-mix(in srgb, var(--c) 82%, #000)); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14), 0 6px 12px color-mix(in srgb, var(--c) 26%, transparent); }
.hm-ico .li { width: 27px; height: 27px; color: #fff; }
.hm-lesson-num { font-size: 1.9rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: color-mix(in srgb, var(--c) 32%, transparent); font-variant-numeric: tabular-nums; transition: color .15s; }
.hm-lesson:hover .hm-lesson-num { color: var(--c); }
.hm-lesson-name { position: relative; z-index: 1; font-size: 1.08rem; line-height: 1.3; letter-spacing: -.01em; }
.hm-lesson-meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-right: 1.6rem; }
.hm-lesson-meta span { padding: .15rem .6rem; border: 1px solid var(--h-border); border-radius: 999px; font-size: .74rem; font-weight: 600; color: var(--h-text-soft); }
.hm-lesson-go { position: absolute; right: 1.3rem; bottom: 1.2rem; z-index: 1; font-weight: 800; color: var(--c); opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; }
.hm-lesson:hover .hm-lesson-go, .hm-lesson:focus-visible .hm-lesson-go { opacity: 1; transform: none; }
.hm-more { text-align: center; margin: 2.4rem 0 0; }

/* Android */
.hm-app { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; padding: 3.4rem 4rem; border: 1px solid var(--h-border); border-radius: var(--c-radius, 12px); box-shadow: var(--h-shadow);
    background: radial-gradient(30rem 18rem at 88% 50%, color-mix(in srgb, var(--h-accent) 18%, transparent), transparent 70%), var(--h-surface); }
.hm-app-text { max-width: 560px; position: relative; z-index: 1; }
.hm-app p { margin: 0 0 1.2rem; color: var(--h-text-soft); line-height: 1.6; }
.hm-app-pts { list-style: none; margin: 0 0 1.6rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; font-size: .85rem; font-weight: 600; color: var(--h-text); }
.hm-app-pts li { display: inline-flex; align-items: center; padding: .3rem .75rem; border: 1px solid var(--h-border); border-radius: 999px; background: var(--h-surface); }
.hm-app-pts li::before { content: "✓"; margin-right: .4rem; color: #16a34a; font-weight: 800; }
.hm-phone { position: relative; flex: 0 0 auto; width: 210px; margin-right: 1.5rem; transform: rotate(4deg); }
.hm-phone-body { border: 7px solid #111827; border-radius: 30px; background: #f3f6fc; padding: 1rem .8rem 1.1rem; box-shadow: 0 24px 50px rgba(17, 24, 39, .25); display: flex; flex-direction: column; gap: .6rem; min-height: 300px; position: relative; }
.hm-phone-body::before { content: ""; position: absolute; top: 6px; left: 50%; width: 46px; height: 5px; margin-left: -23px; border-radius: 4px; background: #111827; }
.hm-phone-bar { display: flex; align-items: center; gap: .4rem; margin-top: .6rem; font-size: .72rem; color: #111827; }
.hm-phone-bar img { border-radius: 6px; }
.hm-phone-card { background: #fff; border: 1px solid #e3e8f2; border-top: 3px solid #16a34a; border-radius: 10px; padding: .6rem .7rem; display: flex; flex-direction: column; gap: .15rem; }
.hm-phone-card small { font-size: .62rem; color: #6b7280; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.hm-phone-card strong { font-size: .85rem; color: #111827; }
.hm-phone-prog { display: block; height: 5px; border-radius: 4px; background: #e5e7eb; margin-top: .3rem; overflow: hidden; }
.hm-phone-prog i { display: block; width: 62%; height: 100%; background: #16a34a; border-radius: 4px; }
.hm-phone-code { background: #0f172a; color: #e2e8f0; border-radius: 10px; padding: .6rem .7rem; font: 600 .68rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; display: flex; flex-direction: column; }
.hm-phone-ok { background: #dcfce7; color: #15803d; border-radius: 8px; padding: .4rem .6rem; font-size: .68rem; font-weight: 700; }
.hm-phone-row { display: flex; gap: .4rem; margin-top: auto; }
.hm-phone-row span { flex: 1; height: 26px; border-radius: 8px; background: #e3e8f2; }
.hm-phone-chip { position: absolute; left: -26px; bottom: 46px; background: var(--h-surface); color: var(--h-text); border: 1px solid var(--h-border); border-radius: 999px; padding: .35rem .8rem; font-size: .78rem; font-weight: 700; box-shadow: var(--h-shadow); transform: rotate(-4deg); }

/* cierre */
.hm-cta { position: relative; overflow: hidden; text-align: center; padding: 4.6rem 1.5rem; border-radius: var(--c-radius, 12px); color: #fff;
    background: radial-gradient(30rem 14rem at 15% 0%, rgba(255,255,255,.18), transparent 70%), linear-gradient(135deg, #4338ca, #6d28d9 60%, #7c3aed); box-shadow: 0 24px 50px rgba(79, 70, 229, .28); }
.hm-cta h2 { color: #fff; font-size: clamp(1.7rem, 3.8vw, 2.4rem); position: relative; }
.hm-cta p { margin: 0 0 1.9rem; color: rgba(255,255,255,.85); font-size: 1.05rem; position: relative; }
.hm-cta-btns { position: relative; display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.page-home .hm-cta .btn-primary { background: #fff; color: #4338ca; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.page-home .hm-cta .btn-primary:hover { box-shadow: 0 14px 30px rgba(0,0,0,.28); }
.page-home .hm-cta .btn-secondary { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.45); box-shadow: none; }
.page-home .hm-cta .btn-secondary:hover { background: rgba(255,255,255,.22); border-color: #fff; }
.hm-cta-pts { position: relative; list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: center; font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.9); }
.hm-cta-pts li::before { content: "✓"; margin-right: .4rem; color: #86efac; font-weight: 800; }
.hm-cta-deco { position: absolute; font: 600 .85rem ui-monospace, SFMono-Regular, Menlo, monospace; color: rgba(255,255,255,.28); white-space: nowrap; pointer-events: none; }
.hm-cta-deco-a { left: 3%; top: 9%; transform: rotate(-5deg); }
.hm-cta-deco-b { right: 5%; bottom: 16%; transform: rotate(4deg); }
@media (max-width: 1000px) { .hm-cta-deco { display: none; } }

@media (max-width: 860px) { .hm-feats { grid-template-columns: 1fr; } }
@media (max-width: 960px) {
    .hm-stats { grid-template-columns: repeat(2, 1fr); }
    .hm-steps { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
    .hm-steps::before { display: none; }
    .hm-sec { padding-top: 5rem; }
    .hm-lessons { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .hm-sec { padding: 4rem 1rem 0; }
    .hm-sec:last-of-type { padding-bottom: 4rem; }
    .hm-stats-sec { padding-top: 3rem; }
    .hm-stats { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
    .hm-stat { padding: 1.2rem 1.1rem 1.1rem; }
    .hm-stat-n { font-size: 2.1rem; }
    .hm-stat-ico { width: 40px; height: 40px; margin-bottom: .7rem; }
    .hm-feats, .hm-lessons { grid-template-columns: 1fr; }
    .hm-steps { grid-template-columns: 1fr; gap: 1.1rem; }
    .hm-steps::before { display: block; top: 35px; bottom: 35px; left: 33px; right: auto; width: 4px; height: auto; background: linear-gradient(180deg, #3b82f6, #16a34a, #7c3aed, #ea580c); }
    .hm-step { flex-direction: row; align-items: flex-start; text-align: left; gap: 1rem; }
    .hm-step-badge { flex: 0 0 auto; width: 62px; height: 62px; margin-left: 2px; }
    .hm-step-ico { inset: 11px; }
    .hm-step-card { margin-top: 0; padding: 1.1rem 1.1rem 1.2rem; }
    .hm-feat { padding: 1.5rem 1.3rem 1.3rem; }
    .hm-dot { width: 36px; height: 36px; } .hm-dot::before { inset: 9px; }
    .hm-app { flex-direction: column; align-items: flex-start; padding: 2.2rem 1.5rem 2.6rem; }
    .hm-phone { align-self: center; margin: .5rem 0 0; }
}

/* ---------- Pagina de caracteristicas ---------- */
.ft-intro { padding-top: 4.5rem; }
.ft-intro > .hm-head h1 { margin: 0 0 .7rem; font-size: 2rem; line-height: 1.15; letter-spacing: -.02em; color: var(--h-text); }
html:not(.zz) .ft-intro > .hm-head h1 { color: var(--h-text); }
.ft-row { --c: #4f46e5; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 3.5rem; padding: 2.6rem 0; }
.ft-row + .ft-row { border-top: 1px solid var(--h-border); }
.ft-row.is-rev .ft-text { order: 2; }
.ft-text h2 { margin: 0 0 .6rem; font-size: clamp(1.4rem, 2.8vw, 1.8rem); line-height: 1.2; letter-spacing: -.02em; color: var(--h-text); }
.ft-text > p { margin: 0 0 1.1rem; max-width: 46ch; line-height: 1.65; color: var(--h-text-soft); }
.ft-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1rem; border-radius: 14px; background: color-mix(in srgb, var(--c) 14%, transparent); }
html:not(.zz) .ft-ico .lucide-icon, .ft-ico svg { width: 24px; height: 24px; margin: 0; padding: 0; display: block; background: none; color: var(--c); }
.ft-pts { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .45rem; font-size: .93rem; font-weight: 600; color: var(--h-text); }
.ft-pts li::before { content: "✓"; margin-right: .55rem; color: var(--c); font-weight: 800; }
.ft-vis { display: flex; justify-content: center; padding: 2rem; border-radius: var(--c-radius, 12px); background: radial-gradient(18rem 12rem at 50% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 75%), var(--h-surface-alt, var(--h-surface)); border: 1px solid var(--h-border); }
.ft-vis > .hm-win, .ft-vis > .hm-path { width: 100%; max-width: 420px; box-shadow: var(--h-shadow); }
.ft-vis .hm-phone { margin-right: 0; }
.ft-vis .hm-phone-chip { left: -34px; }
.ft-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.ft-tile { --c: #4f46e5; position: relative; padding: 1.6rem 1.5rem; background: var(--h-surface); border: 1px solid var(--h-border); border-top: 3px solid var(--c); border-radius: var(--c-radius, 12px); box-shadow: var(--h-shadow); transition: transform .15s; }
.ft-tile:hover { transform: translateY(-3px); }
.ft-tile h3 { margin: 0 0 .35rem; font-size: 1.05rem; color: var(--h-text); }
.ft-tile p { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--h-text-soft); }
.ft-soon { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.ft-soon li { --c: #4f46e5; display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; background: var(--h-surface); border: 1px dashed color-mix(in srgb, var(--h-accent) 40%, var(--h-border)); border-radius: var(--c-radius, 12px); }
.ft-soon .ft-ico { margin: 0; flex: 0 0 auto; }
.ft-soon strong { flex: 1; font-size: .98rem; color: var(--h-text); }
.ft-soon em { flex: 0 0 auto; padding: .15rem .6rem; border-radius: 999px; background: var(--h-accent-soft); color: var(--h-accent); font-size: .68rem; font-style: normal; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
@media (max-width: 860px) {
    .ft-row { grid-template-columns: 1fr; gap: 1.6rem; padding: 2rem 0; }
    .ft-row.is-rev .ft-text { order: 0; }
    .ft-tiles, .ft-soon { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { .ft-vis { padding: 1.2rem; } .ft-soon li { flex-wrap: wrap; } }

/* ---------- Contacto ---------- */
.ct-sec { padding-top: 4.5rem; padding-bottom: 6rem; }
.ct-sec > .hm-head h1 { margin: 0 0 .7rem; font-size: 2rem; line-height: 1.15; letter-spacing: -.02em; color: var(--h-text); }
html:not(.zz) .ct-sec > .hm-head h1 { color: var(--h-text); }
.ct-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.ct-card, .ct-side { background: var(--h-surface); border: 1px solid var(--h-border); border-radius: var(--c-radius, 12px); box-shadow: var(--h-shadow); }
.ct-card { padding: 2rem 2.2rem 2.2rem; border-top: 3px solid var(--h-accent); }
.ct-card h2 { margin: 0 0 1.2rem; font-size: 1.25rem; letter-spacing: -.01em; color: var(--h-text); }
.ct-form { display: grid; gap: 1rem; }
.ct-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ct-field { min-width: 0; }
html:not(.zz) .ct-form label { display: block; margin: 0 0 .4rem; font-size: .85rem; font-weight: 700; color: var(--h-text); }
html:not(.zz) .ct-form input[type="text"], html:not(.zz) .ct-form input[type="email"], html:not(.zz) .ct-form textarea {
    width: 100%; box-sizing: border-box; padding: .75rem .95rem; border: 1px solid var(--h-border); border-radius: 10px; background: var(--h-surface-alt, var(--h-surface)); color: var(--h-text); font: inherit; font-size: .95rem; box-shadow: none; transition: border-color .15s, box-shadow .15s, background .15s; }
html:not(.zz) .ct-form textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
html:not(.zz) .ct-form input:focus, html:not(.zz) .ct-form textarea:focus { outline: none; background: var(--h-surface); border-color: var(--h-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--h-accent) 22%, transparent); }
html[data-theme="dark"]:not(.zz) .ct-form input[type="text"], html[data-theme="dark"]:not(.zz) .ct-form input[type="email"], html[data-theme="dark"]:not(.zz) .ct-form textarea { background: #0f1528; border-color: #34456e; color: #e5e7eb; }
html[data-theme="dark"]:not(.zz) .ct-form input:focus, html[data-theme="dark"]:not(.zz) .ct-form textarea:focus { background: #0b1022; border-color: #818cf8; }
.ct-form .captcha-container { margin: .2rem 0 0; text-align: left; }
.ct-form .text-danger { display: block; margin-top: .3rem; font-size: .82rem; }
.ct-form .btn-minify { margin: .4rem 0 0; width: 100%; padding: .9rem 1.5rem; border: 0; border-radius: 10px; background: var(--h-accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 8px 20px rgba(79, 70, 229, .3); transition: transform .15s, box-shadow .15s; }
.ct-form .btn-minify:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(79, 70, 229, .4); }
.ct-card .summary-box { margin: 0 0 1.2rem; padding: .8rem 1rem; border-radius: 10px; font-size: .92rem; font-weight: 600; }
.ct-card .ct-ok { background: rgba(22, 163, 74, .12); color: #15803d; border: 1px solid rgba(22, 163, 74, .35); }
.ct-card .ct-err { background: rgba(229, 57, 53, .1); color: #e53935; border: 1px solid rgba(229, 57, 53, .35); }
.ct-side { padding: 1.8rem 1.8rem 1.6rem; text-align: center; background: radial-gradient(16rem 10rem at 50% 0%, color-mix(in srgb, var(--h-accent) 14%, transparent), transparent 75%), var(--h-surface); }
.ct-anim { min-height: 120px; }
.ct-side-text { margin: .8rem 0 1.4rem; line-height: 1.6; color: var(--h-text-soft); }
.ct-links { display: grid; gap: .5rem; text-align: left; padding-top: 1.2rem; border-top: 1px solid var(--h-border); }
.ct-links strong { font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; color: var(--h-text-soft); }
.ct-links a { display: flex; justify-content: space-between; align-items: center; padding: .6rem .9rem; border: 1px solid var(--h-border); border-radius: 10px; background: var(--h-surface-alt, var(--h-surface)); color: var(--h-text); font-size: .92rem; font-weight: 600; text-decoration: none; transition: border-color .15s, transform .15s; }
.ct-links a:hover { border-color: var(--h-accent); transform: translateX(2px); }
.ct-links a span { color: var(--h-accent); }
@media (max-width: 860px) { .ct-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ct-two { grid-template-columns: 1fr; } .ct-card { padding: 1.5rem 1.2rem 1.6rem; } }

/* ---------- Paginas de acceso (login / registro / recuperar contrasena) ---------- */
html:not(.zz) .auth-split { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 360px); justify-content: center; align-items: stretch; gap: 1.6rem; max-width: 1000px; margin: 0 auto; padding: 3.5rem 1.5rem 5rem; }
html:not(.zz) .auth-split .auth-card { max-width: none; padding: 2.2rem 2.2rem 2rem; background: var(--h-surface); border: 1px solid var(--h-border); border-top: 3px solid var(--h-accent); border-radius: var(--c-radius, 12px); box-shadow: var(--h-shadow); }
html:not(.zz) .auth-split .auth-card h1 { margin: 0 0 .5rem; font-size: 1.7rem; letter-spacing: -.02em; color: var(--h-text); }
html:not(.zz) .auth-split .auth-intro { color: var(--h-text-soft); line-height: 1.55; }
html:not(.zz) .auth-split .auth-form { gap: .3rem; }
html:not(.zz) .auth-split .auth-form label { margin-top: .75rem; font-size: .85rem; font-weight: 700; color: var(--h-text); }
html:not(.zz) .auth-split .auth-form input[type="email"], html:not(.zz) .auth-split .auth-form input[type="password"], html:not(.zz) .auth-split .auth-form input[type="text"] {
    padding: .75rem .95rem; border: 1px solid var(--h-border); border-radius: 10px; background: var(--h-surface-alt, var(--h-surface)); color: var(--h-text); font-size: .95rem; transition: border-color .15s, box-shadow .15s, background .15s; }
html:not(.zz) .auth-split .auth-form input:focus { outline: none; background: var(--h-surface); border-color: var(--h-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--h-accent) 22%, transparent); }
html[data-theme="dark"]:not(.zz) .auth-split .auth-form input[type="email"], html[data-theme="dark"]:not(.zz) .auth-split .auth-form input[type="password"], html[data-theme="dark"]:not(.zz) .auth-split .auth-form input[type="text"] { background: #0f1528; border-color: #34456e; color: #e5e7eb; }
html[data-theme="dark"]:not(.zz) .auth-split .auth-form input:focus { background: #0b1022; border-color: #818cf8; }
html:not(.zz) .auth-split .auth-btn { margin-top: 1.2rem; padding: .85rem 1.2rem; border: 0; border-radius: 10px; background: var(--h-accent); color: #fff; font-weight: 700; box-shadow: 0 8px 20px rgba(79, 70, 229, .3); transition: transform .15s, box-shadow .15s; }
html:not(.zz) .auth-split .auth-btn:hover { background: var(--h-accent); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(79, 70, 229, .4); }
html:not(.zz) .auth-split .auth-btn-social { padding: .7rem 1rem; border-radius: 10px; background: var(--h-surface); border: 1px solid var(--h-border); color: var(--h-text); transition: border-color .15s, transform .15s; }
html:not(.zz) .auth-split .auth-btn-social:hover { border-color: var(--h-accent); background: var(--h-surface); transform: translateY(-1px); }
html:not(.zz) .auth-split .auth-links { margin-top: 1rem; text-align: center; color: var(--h-text-soft); }
html:not(.zz) .auth-split .auth-card .auth-links a, html:not(.zz) .auth-split .auth-check a, html:not(.zz) .auth-split .auth-social-terms a { color: var(--h-accent); font-weight: 600; }
html:not(.zz) .auth-split .auth-check { color: var(--h-text-soft); }
html:not(.zz) .auth-split .auth-msg { border-radius: 10px; }
.auth-aside { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 2.4rem 2.2rem; border-radius: var(--c-radius, 12px); color: #fff;
    background: radial-gradient(22rem 12rem at 15% 0%, rgba(255,255,255,.18), transparent 70%), linear-gradient(135deg, #4338ca, #6d28d9 60%, #7c3aed); box-shadow: 0 24px 50px rgba(79, 70, 229, .25); }
.auth-aside-ico { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 1.2rem; border-radius: 14px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); position: relative; }
html:not(.zz) .auth-aside .lucide-icon, .auth-aside svg { width: 26px; height: 26px; margin: 0; padding: 0; display: block; color: #fff; background: none; }
.auth-aside h2 { position: relative; margin: 0 0 .6rem; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.02em; color: #fff; }
.auth-aside p { position: relative; margin: 0 0 1.3rem; line-height: 1.6; color: rgba(255,255,255,.85); }
.auth-aside ul { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .92rem; font-weight: 600; color: rgba(255,255,255,.95); }
.auth-aside li::before { content: "✓"; margin-right: .55rem; color: #86efac; font-weight: 800; }
.auth-aside-deco { position: absolute; font: 600 .8rem ui-monospace, SFMono-Regular, Menlo, monospace; color: rgba(255,255,255,.24); white-space: nowrap; pointer-events: none; }
.auth-aside-deco-a { right: 1.2rem; top: 1.1rem; transform: rotate(4deg); }
.auth-aside-deco-b { right: 1.6rem; bottom: 1.1rem; transform: rotate(-4deg); }
/* cuenta: confirmar email, revisar correo, nueva contrasena y ajustes */
html:not(.zz) .auth-split.auth-solo { grid-template-columns: minmax(0, 680px); }
html:not(.zz) .auth-split.auth-solo .auth-stack { max-width: none; gap: 1.2rem; }
html:not(.zz) .auth-split .auth-card h2 { margin: 0 0 .4rem; font-size: 1.15rem; letter-spacing: -.01em; color: var(--h-text); }
html:not(.zz) .auth-split .auth-card p { color: var(--h-text-soft); line-height: 1.6; }
html:not(.zz) .auth-split .auth-card p a:not(.auth-btn) { color: var(--h-accent); font-weight: 600; }
html:not(.zz) .auth-split a.auth-btn { display: block; text-decoration: none; text-align: center; }
html:not(.zz) .auth-split .auth-btn-secondary { background: transparent; color: var(--h-accent); border: 1px solid var(--h-accent); box-shadow: none; }
html:not(.zz) .auth-split .auth-btn-secondary:hover { background: var(--h-accent); color: #fff; box-shadow: none; }
html:not(.zz) .auth-split .auth-btn-secondary:disabled:hover { background: transparent; color: var(--h-accent); transform: none; }
html:not(.zz) .auth-split .auth-btn-danger { background: #dc2626; box-shadow: 0 8px 20px rgba(220, 38, 38, .28); }
html:not(.zz) .auth-split .auth-btn-danger:hover { background: #b91c1c; box-shadow: 0 12px 26px rgba(220, 38, 38, .38); }
html:not(.zz) .auth-split .auth-card.auth-danger { border-top-color: #dc2626; }
html:not(.zz) .auth-split .auth-card.auth-danger h2 { color: #dc2626; }
html:not(.zz) .auth-split .auth-hint { color: var(--h-text-soft); }

@media (max-width: 900px) { html:not(.zz) .auth-split { grid-template-columns: minmax(0, 440px); } .auth-aside { display: none; } }
@media (max-width: 520px) { html:not(.zz) .auth-split { padding: 2rem 1rem 3.5rem; } html:not(.zz) .auth-split .auth-card { padding: 1.6rem 1.3rem 1.5rem; } }

/* ---------- Progreso ---------- */
.prg-sec { padding-top: 3.5rem; padding-bottom: 5rem; max-width: 960px; }
.prg-sec > .hm-head { margin-bottom: 2rem; }
.prg-h1 { margin: 0; font-size: 2rem; line-height: 1.15; letter-spacing: -.02em; color: var(--h-text); }
html:not(.zz) main .prg-h1 { color: var(--h-text); }
.prg-h2 { margin: 3rem 0 1.1rem; font-size: 1.3rem; letter-spacing: -.01em; color: var(--h-text); }
.prg-h3 { margin: 1.2rem 0 .6rem; font-size: 1rem; color: var(--h-text); }
.prg-empty { margin: 1.2rem 0 0; padding: .9rem 1.1rem; border: 1px dashed var(--h-border); border-radius: var(--c-radius, 12px); color: var(--h-text-soft); text-align: center; }
.prg-level { position: relative; overflow: hidden; display: flex; align-items: center; gap: 1.6rem; padding: 1.8rem 2rem; border-radius: var(--c-radius, 12px); color: #fff;
    background: radial-gradient(26rem 12rem at 10% 0%, rgba(255,255,255,.18), transparent 70%), linear-gradient(135deg, #4338ca, #6d28d9 60%, #7c3aed); box-shadow: 0 24px 50px rgba(79, 70, 229, .25); }
.prg-level-badge { flex: 0 0 auto; width: 84px; height: 84px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255,255,255,.16); border: 2px solid rgba(255,255,255,.4); line-height: 1; }
.prg-level-badge small { font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.prg-level-badge b { font-size: 2.1rem; font-weight: 800; }
.prg-level-body { flex: 1; min-width: 0; display: grid; gap: .5rem; }
.prg-level-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.prg-level-head strong { font-size: 1.3rem; }
.prg-level-head span, .prg-level-body small { opacity: .85; font-size: .9rem; }
.prg-bar { display: block; height: .5rem; border-radius: 999px; background: color-mix(in srgb, var(--c, var(--h-accent)) 16%, var(--h-border)); overflow: hidden; }
.prg-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--c, var(--h-accent)); }
.prg-bar-light { height: .65rem; background: rgba(255,255,255,.25); }
.prg-bar-light > span { background: #fff; }
.prg-continue { flex: 0 0 auto; padding: .7rem 1.2rem; border-radius: 10px; background: #fff; color: #4338ca; font-weight: 700; text-decoration: none; box-shadow: 0 8px 20px rgba(0,0,0,.2); transition: transform .15s; }
.prg-continue:hover { transform: translateY(-2px); }
.prg-continue-solid { display: inline-block; background: var(--h-accent); color: #fff; box-shadow: 0 8px 20px rgba(79, 70, 229, .3); }
.prg-stats { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .9rem; }
.prg-stat { --a: #4f46e5; position: relative; display: flex; flex-direction: column; gap: .15rem; padding: 1.2rem 1.1rem 1.1rem; overflow: hidden; background: var(--h-surface); border: 1px solid var(--h-border); border-top: 3px solid var(--a); border-radius: var(--c-radius, 12px); box-shadow: var(--h-shadow); }
.prg-stat strong { font-size: 1.7rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--h-text); font-variant-numeric: tabular-nums; }
.prg-stat > span:last-child { font-size: .8rem; font-weight: 600; color: var(--h-text-soft); }
.prg-ico { --a: #4f46e5; display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: .7rem; border-radius: 12px; background: color-mix(in srgb, var(--a) 14%, transparent); }
html:not(.zz) .prg-ico .lucide-icon, .prg-ico svg { width: 21px; height: 21px; margin: 0; padding: 0; display: block; background: none; color: var(--a); }
.prg-lessons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.prg-lesson { --c: #3776ab; display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; background: var(--h-surface); border: 1px solid var(--h-border); border-left: 4px solid var(--c); border-radius: var(--c-radius, 12px); text-decoration: none; color: var(--h-text); transition: transform .15s, border-color .15s; }
.prg-lesson:hover { transform: translateY(-2px); border-color: var(--c); }
.prg-lesson-ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 22%, color-mix(in srgb, var(--c) 72%, #fff), var(--c) 70%); }
.prg-lesson-ico .li { width: 21px; height: 21px; color: #fff; }
.prg-lesson-body { flex: 1; min-width: 0; display: grid; gap: .45rem; }
.prg-lesson-body strong { font-size: .93rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prg-lesson small { flex: 0 0 auto; font-size: .8rem; font-weight: 700; color: var(--h-text-soft); font-variant-numeric: tabular-nums; }
.prg-lesson.is-done small { color: #16a34a; }
.prg-lesson.is-done small::before { content: "✓ "; }
.prg-ach { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .8rem; }
.prg-ach-item { display: flex; gap: .9rem; padding: 1rem 1.1rem; background: var(--h-surface); border: 1px solid var(--h-border); border-radius: var(--c-radius, 12px); opacity: .75; }
.prg-ach-item.is-on { opacity: 1; border-color: color-mix(in srgb, #f59e0b 55%, var(--h-border)); background: linear-gradient(180deg, color-mix(in srgb, #f59e0b 9%, var(--h-surface)), var(--h-surface)); box-shadow: var(--h-shadow); }
.prg-ach-ico { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--h-border); }
.prg-ach-item.is-on .prg-ach-ico { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
html:not(.zz) .prg-ach-ico .lucide-icon { width: 21px; height: 21px; margin: 0; padding: 0; display: block; background: none; color: var(--h-text-soft); }
html:not(.zz) .prg-ach-item.is-on .prg-ach-ico .lucide-icon { color: #fff; }
.prg-ach-body { flex: 1; min-width: 0; display: grid; gap: .3rem; align-content: start; }
.prg-ach-body strong { font-size: .95rem; color: var(--h-text); }
.prg-ach-body > span:not(.prg-bar) { font-size: .83rem; line-height: 1.45; color: var(--h-text-soft); }
.prg-ach-body small { font-size: .75rem; color: var(--h-text-soft); }
.prg-ach-item.is-on .prg-bar > span { background: #f59e0b; }
.prg-card { padding: 1.5rem 1.6rem; background: var(--h-surface); border: 1px solid var(--h-border); border-radius: var(--c-radius, 12px); box-shadow: var(--h-shadow); }
.prg-card .prg-h3:first-child { margin-top: 0; }
.prg-locked { text-align: center; display: flex; flex-direction: column; align-items: center; }
.prg-locked p { max-width: 46ch; margin: 0 0 1.2rem; color: var(--h-text-soft); line-height: 1.6; }
.prg-weeks { display: flex; align-items: flex-end; gap: 4px; height: 8.5rem; margin: .5rem 0 1.2rem; padding: .5rem .6rem 0; border-bottom: 1px solid var(--h-border); }
.prg-week { flex: 1; min-width: 6px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; }
.prg-week > span { width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #818cf8, var(--h-accent)); }
.prg-week small { font-size: .62rem; color: var(--h-text-soft); }
.prg-mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.prg-mini > div { padding: .9rem 1rem; border: 1px solid var(--h-border); border-radius: 10px; background: var(--h-surface-alt, var(--h-surface)); }
.prg-mini strong { display: block; font-size: 1.5rem; color: var(--h-text); }
.prg-mini span { font-size: .8rem; color: var(--h-text-soft); }
.prg-weak { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.prg-weak li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .9rem; border: 1px solid var(--h-border); border-radius: 10px; }
.prg-weak a { font-weight: 600; color: var(--h-accent); text-decoration: none; }
.prg-weak small { color: var(--h-text-soft); }
.prg-links { margin-top: 2.5rem; justify-content: center; }
@media (max-width: 860px) { .prg-stats { grid-template-columns: repeat(3, 1fr); } .prg-lessons { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    .prg-level { flex-wrap: wrap; padding: 1.4rem 1.3rem; gap: 1.1rem; }
    .prg-level-badge { width: 68px; height: 68px; } .prg-level-badge b { font-size: 1.7rem; }
    .prg-continue { width: 100%; text-align: center; box-sizing: border-box; }
    .prg-stats { grid-template-columns: repeat(2, 1fr); }
    .prg-mini { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .code-card { animation: none; opacity: 1; }
    .page-home * { transition: none !important; }
}

@media (max-width: 600px) {
    .page-home .hero { padding: 3.5rem 1rem 4rem; }
    .code-card pre { font-size: 0.82rem; }
}
