/* ==========================================================================
   CHMODX - Python 3 de 0 a MASTER
   Dark landing page stylesheet
   ========================================================================== */

/* ---------- Reset & base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Base */
    --bg: #000000;
    --bg-soft: #070707;
    --bg-card: #0c0c0c;
    --bg-elevated: #111111;
    --border: #1e1e1e;
    --border-soft: #161616;

    /* Text */
    --text: #f5f5f5;
    --text-muted: #a1a1a1;
    --text-dim: #6b6b6b;

    /* Brand */
    --brand: #00e676;
    --brand-2: #00e5ff;
    --brand-dark: #00a854;
    --py-blue: #4b8bbe;
    --py-yellow: #ffd43b;

    /* Accents */
    --telegram: #2aabee;
    --telegram-deep: #0088cc;
    --danger: #ff4d4d;

    /* Gradients */
    --grad-brand: linear-gradient(135deg, #00e676 0%, #00e5ff 100%);
    --grad-brand-soft: linear-gradient(135deg, rgba(0,230,118,.15) 0%, rgba(0,229,255,.12) 100%);
    --grad-text: linear-gradient(120deg, #00e676 0%, #00e5ff 55%, #ffd43b 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,.6);
    --shadow-md: 0 8px 24px rgba(0,0,0,.7);
    --shadow-lg: 0 20px 45px rgba(0,0,0,.75);
    --glow-brand: 0 0 40px rgba(0,230,118,.25);
    --glow-brand-strong: 0 0 60px rgba(0,230,118,.4);

    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;

    --container: 1200px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

section { padding: 96px 0; position: relative; }

.grad {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight {
    color: var(--brand);
    font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
    white-space: nowrap;
    line-height: 1.2;
    text-align: center;
    border: 1px solid transparent;
    min-height: 44px; /* área táctil cómoda en móvil */
}

.btn i { font-size: 1rem; }

.btn-sm { padding: 10px 18px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-xl { padding: 20px 40px; font-size: 17px; border-radius: 14px; }

.btn-primary {
    background: var(--grad-brand);
    color: #00130a;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(0,230,118,.22);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 44px rgba(0,230,118,.4);
}

.btn-telegram {
    background: var(--telegram);
    color: #fff;
    box-shadow: 0 10px 30px rgba(42,171,238,.25);
}

.btn-telegram:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 44px rgba(42,171,238,.45);
    background: #1c98d8;
}

.btn-outline {
    background: transparent;
    border-color: #2a2a2a;
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-3px);
}

/* ---------- Terminal CTA buttons (hero / comunidad) ---------- */
.btn-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 62px;
    padding: 17px 26px;
    font-family: 'Fira Code', monospace;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .01em;
    text-align: center;
    border-radius: 12px;
    border: 1.5px solid transparent;
    overflow: hidden;
    isolation: isolate;
    transition: transform .25s ease, box-shadow .25s ease,
                border-color .25s ease, color .25s ease, background .25s ease;
}

.btn-cta .cta-bracket { opacity: .5; font-weight: 600; }
.btn-cta .cta-icon { font-size: 1.1em; line-height: 1; }
.btn-cta .cta-label { display: inline; }

.btn-cta-primary {
    background: linear-gradient(135deg, #00ff85 0%, #00d96b 48%, #00b45c 100%);
    color: #00160a;
    border-color: rgba(0,230,118,.55);
    box-shadow: 0 12px 34px rgba(0,230,118,.28), inset 0 0 0 1px rgba(255,255,255,.1);
}

/* barrido de brillo al pasar el cursor */
.btn-cta-primary::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 55%;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,.6), transparent);
    transform: translateX(-160%) skewX(-18deg);
    transition: transform .65s ease;
    z-index: -1;
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    border-color: var(--py-yellow);
    box-shadow: 0 18px 50px rgba(0,230,118,.5),
                0 0 0 1px rgba(255,212,59,.4);
}

.btn-cta-primary:hover::after { transform: translateX(320%) skewX(-18deg); }

.btn-cta-telegram {
    background: rgba(0,136,204,.1);
    color: #52c0f2;
    border-color: var(--telegram-deep);
    box-shadow: inset 0 0 0 1px rgba(0,136,204,.25);
}

.btn-cta-telegram:hover {
    background: var(--telegram-deep);
    color: #fff;
    border-color: #1ea6ef;
    transform: translateY(-3px);
    box-shadow: 0 16px 42px rgba(0,136,204,.45);
}

.btn-cta-lg { min-height: 68px; padding: 20px 30px; font-size: 16px; }

/* ---------- Announcement bar ---------- */
.announcement-bar {
    position: relative;
    z-index: 60;
    background: linear-gradient(90deg, #003d21 0%, #002a33 100%);
    border-bottom: 1px solid rgba(0,230,118,.25);
    padding: 10px 0;
}

.announcement-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.announcement-text {
    font-size: 14px;
    font-weight: 600;
    color: #d8fff0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.announcement-text i { color: var(--py-yellow); }
.announcement-text strong { color: var(--brand); }

/* ---------- Countdown ---------- */
.countdown,
.offer-countdown {
    display: flex;
    align-items: center;
    gap: 10px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 46px;
}

.countdown-value {
    font-family: 'Fira Code', monospace;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    color: var(--text);
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(0,230,118,.25);
    border-radius: 8px;
    padding: 6px 8px;
    min-width: 42px;
    text-align: center;
}

.countdown-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-dim);
    margin-top: 4px;
}

.countdown-sep {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand);
    transform: translateY(-6px);
}

/* ---------- Header ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(0,0,0,.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
}

.navbar { padding: 14px 0; }

.nav-container {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.01em;
}

.brand-logo {
    width: auto;
    height: 42px;
    display: block;
    filter: drop-shadow(0 0 12px rgba(0,230,118,.35));
    transition: transform .25s ease;
}

.nav-logo:hover .brand-logo { transform: scale(1.05); }

.brand-logo-footer { height: 48px; }

.brand-name { color: var(--text); }
.brand-x {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 28px;
    margin-left: auto;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color .2s ease;
    position: relative;
}

.nav-links a:hover { color: var(--brand); }

.nav-cta { margin-left: 8px; }

.nav-toggle {
    display: none;
    font-size: 20px;
    color: var(--text);
    margin-left: auto;
    padding: 8px;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 16px 24px 24px;
    border-top: 1px solid var(--border-soft);
    background: #050505;
}

.mobile-menu a {
    padding: 12px 4px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-soft);
}

.mobile-menu a.btn {
    border-bottom: none;
    color: #00130a;
    margin-top: 8px;
}

.mobile-menu a.btn-telegram { color: #fff; }

.mobile-menu.open { display: flex; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 88px 0 64px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.hero-glow-1 {
    width: 520px; height: 520px;
    background: rgba(0,230,118,.14);
    top: -160px; left: -120px;
}

.hero-glow-2 {
    width: 520px; height: 520px;
    background: rgba(0,229,255,.12);
    top: 40px; right: -160px;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 56px;
    align-items: center;
}

.hero-text { display: flex; flex-direction: column; gap: 22px; }

.pill {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(0,230,118,.08);
    border: 1px solid rgba(0,230,118,.28);
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .01em;
}

.pill i { color: var(--py-yellow); }

.hero-title {
    font-size: clamp(2.6rem, 5.4vw, 4.2rem);
    font-weight: 800;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-title-gradient {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 620px;
}

.hero-subtitle strong { color: var(--text); }

/* Hero price */
.hero-price {
    position: relative;
    display: flex;
    align-items: stretch;
    align-self: stretch;
    padding: 0;
    background:
        linear-gradient(135deg, rgba(0,230,118,.07) 0%, rgba(0,229,255,.04) 100%),
        var(--bg-card);
    border: 1px solid rgba(0,230,118,.32);
    border-radius: 14px;
    box-shadow: var(--shadow-md), 0 0 30px rgba(0,230,118,.1);
    overflow: hidden;
}

/* barra de acento lateral */
.hero-price::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--grad-brand);
}

.price-old,
.price-new {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 16px 22px 16px 24px;
}

.price-old { border-right: 1px dashed rgba(255,255,255,.12); }
.price-new { border-right: 1px dashed rgba(255,255,255,.12); }

.price-old-tag,
.price-new-tag {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .13em;
    line-height: 1;
}
.price-old-tag { color: var(--text-dim); }
.price-new-tag { color: var(--brand); }

.price-old-value {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    color: var(--text-dim);
    text-decoration: line-through;
    text-decoration-color: var(--danger);
    text-decoration-thickness: 2px;
}

.price-new-value {
    font-size: 46px;
    font-weight: 800;
    line-height: 1;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Segmento de descuento: ocupa el ancho restante (sin huecos) */
.price-badge {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px 18px;
    background:
        repeating-linear-gradient(135deg, rgba(255,212,59,.07) 0 10px, transparent 10px 20px),
        linear-gradient(135deg, rgba(255,212,59,.16) 0%, rgba(255,140,0,.1) 100%);
    color: var(--py-yellow);
    text-align: center;
}

.price-badge-off {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 19px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .01em;
    white-space: nowrap;
    text-shadow: 0 0 18px rgba(255,212,59,.45);
}

.price-badge-off i { color: #ff9d2e; font-size: .95em; }

.price-badge-save {
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: rgba(255,212,59,.8);
    white-space: nowrap;
}

.hero-ctas { display: flex; flex-direction: column; gap: 12px; }

.hero-checks {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 14px;
}

.hero-checks li { display: inline-flex; align-items: center; gap: 8px; }
.hero-checks i { color: var(--brand); }

/* Hero visual / code window */
.hero-visual { position: relative; }

.code-window {
    background: #050505;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--glow-brand);
}

.code-window-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: #0b0b0b;
    border-bottom: 1px solid var(--border);
}

.window-dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.window-title {
    margin-left: auto;
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    color: var(--text-dim);
}

.code-content {
    padding: 22px 20px;
    overflow-x: auto;
}

.code-content code {
    font-family: 'Fira Code', monospace;
    font-size: 13.5px;
    line-height: 1.85;
    color: #d4d4d4;
    white-space: pre;
}

.c-comment { color: #5f6b7a; }
.c-keyword { color: #c792ea; }
.c-class { color: #ffd43b; }
.c-fn { color: #82d2ff; }
.c-str { color: #7ee787; }
.c-num { color: #f78c6c; }

.hero-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(12,12,12,.92);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(8px);
    animation: floaty 5s ease-in-out infinite;
}

.hero-float-card i { font-size: 22px; color: var(--brand); }
.hero-float-card div { display: flex; flex-direction: column; line-height: 1.2; }
.hero-float-card strong { font-size: 15px; }
.hero-float-card span { font-size: 12px; color: var(--text-dim); }

.float-1 { top: -18px; left: -22px; }
.float-2 { bottom: -20px; right: -14px; animation-delay: 2.5s; }

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Social proof strip */
.social-strip {
    margin-top: 64px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-soft);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    overflow: hidden;
}

.social-item {
    background: var(--bg-soft);
    padding: 22px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

.social-item i { color: var(--brand); font-size: 18px; }
.social-item strong { color: var(--text); }

/* ---------- Section headers ---------- */
.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 56px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-header .section-title { font-size: clamp(2rem, 4vw, 2.9rem); }

.section-eyebrow {
    display: inline-block;
    align-self: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand);
}

.section-eyebrow.left { align-self: flex-start; }

.section-title { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; }
.section-title.left { text-align: left; }

.section-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
}

/* ---------- Ranking chart ---------- */
.ranking { background: var(--bg-soft); }

.ranking-chart {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 860px;
    margin: 0 auto;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.chart-row { display: flex; align-items: center; gap: 18px; }

.chart-lang {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 190px;
    flex-shrink: 0;
}

.chart-icon {
    width: 34px; height: 34px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    font-size: 15px;
    color: var(--text-muted);
}

.chart-name { font-weight: 600; font-size: 15px; }

/* "JavaScript" es el nombre mas largo de la lista: en pantallas pequenas se
   reduce un poco para que no comprima el icono de su fila (siempre a 28px). */
.chart-name-sm { font-weight: 600; font-size: 15px; letter-spacing: -.2px; }

.chart-bar-track {
    flex: 1;
    height: 30px;
    background: #0a0a0a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
}

.chart-bar {
    height: 100%;
    width: 0;
    border-radius: 8px;
    background: linear-gradient(90deg, #2a2a2a, #3a3a3a);
    transition: width 1.4s cubic-bezier(.22,1,.36,1);
}

/* El porcentaje vive fuera de la barra: columna fija a la derecha,
   siempre visible y alineada, sin recortes en anchos pequenos. */
.chart-bar-value {
    flex: 0 0 auto;
    min-width: 52px;
    text-align: right;
    font-family: 'Fira Code', monospace;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.chart-row-top .chart-lang { width: 190px; }
.chart-row-top .chart-icon {
    background: var(--grad-brand);
    color: #00130a;
    border-color: transparent;
    box-shadow: var(--glow-brand);
    font-size: 17px;
}
.chart-row-top .chart-name { font-size: 17px; font-weight: 800; color: var(--text); }

.chart-crown {
    font-size: 11px;
    font-weight: 800;
    color: var(--py-yellow);
    background: rgba(255,212,59,.12);
    border: 1px solid rgba(255,212,59,.3);
    border-radius: 999px;
    padding: 2px 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.chart-bar-python {
    background: var(--grad-brand);
    box-shadow: 0 0 26px rgba(0,230,118,.45);
}

/* Python es el n.º 1: su porcentaje va en verde para destacarlo */
.chart-row-top .chart-bar-value { color: var(--brand); font-size: 14px; }

.chart-source {
    text-align: center;
    margin-top: 22px;
    font-size: 13px;
    color: var(--text-dim);
}

.chart-source a { color: var(--brand); text-decoration: underline; }

/* ---------- Why Python ---------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 56px;
}

.why-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.why-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0,230,118,.4);
    box-shadow: var(--shadow-lg), var(--glow-brand);
}

.why-icon {
    width: 52px; height: 52px;
    border-radius: 13px;
    background: var(--grad-brand-soft);
    border: 1px solid rgba(0,230,118,.25);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    margin-bottom: 18px;
}

.why-card h3 { font-size: 19px; margin-bottom: 10px; }
.why-card p { color: var(--text-muted); font-size: 15px; }

/* Quote card */
.quote-card {
    position: relative;
    text-align: center;
    padding: 48px 32px;
    border-radius: var(--radius-lg);
    background: var(--grad-brand-soft);
    border: 1px solid rgba(0,230,118,.25);
}

.quote-icon { font-size: 28px; color: var(--brand); margin-bottom: 16px; opacity: .8; }
.quote-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text);
    max-width: 760px;
    margin: 0 auto 12px;
}
.quote-author { color: var(--brand); font-weight: 700; }

/* ---------- Achieve ---------- */
.achieve { background: var(--bg-soft); }

.achieve-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.achieve-card {
    display: flex;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: transform .3s ease, border-color .3s ease;
}

.achieve-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,230,118,.35);
}

.achieve-check {
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--grad-brand);
    color: #00130a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.achieve-card h3 { font-size: 17px; margin-bottom: 6px; }
.achieve-card p { color: var(--text-muted); font-size: 14.5px; }

/* ---------- Modules ---------- */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.module-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--brand);
    border-radius: 12px;
    transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.module-item:hover {
    transform: translateX(4px);
    background: var(--bg-elevated);
    border-color: rgba(0,230,118,.35);
    border-left-color: var(--brand-2);
}

.module-number {
    font-family: 'Fira Code', monospace;
    font-size: 15px;
    font-weight: 700;
    color: var(--brand);
    flex-shrink: 0;
}

.module-title { font-size: 15px; font-weight: 600; }

.module-bonus { border-left-color: var(--py-yellow); }
.module-bonus .module-number { color: var(--py-yellow); }

.modules-cta { text-align: center; margin-top: 44px; }

/* ---------- Instructor ---------- */
.instructor { background: var(--bg-soft); }

.instructor-content {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 64px;
    align-items: center;
}

.instructor-avatar-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-frame {
    position: relative;
    width: 320px; height: 320px;
    border-radius: 50%;
    padding: 6px;
    background: var(--grad-brand);
    box-shadow: var(--shadow-lg), var(--glow-brand);
    /* crea contexto de apilado: la foto y su respaldo quedan DEBAJO del marco */
    z-index: 1;
    animation: avatarPulse 4.5s ease-in-out infinite;
}

/* Halo animado del marco (por delante de la imagen) */
.avatar-frame::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: var(--grad-brand);
    opacity: .35;
    filter: blur(18px);
    z-index: -1;
    animation: avatarHalo 4.5s ease-in-out infinite;
}

@keyframes avatarPulse {
    0%, 100% { box-shadow: var(--shadow-lg), 0 0 40px rgba(0,230,118,.22); }
    50%      { box-shadow: var(--shadow-lg), 0 0 75px rgba(0,230,118,.5); }
}

@keyframes avatarHalo {
    0%, 100% { transform: scale(1);    opacity: .28; }
    50%      { transform: scale(1.06); opacity: .45; }
}

.avatar-img,
.avatar-fallback {
    position: absolute;
    inset: 6px;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    border-radius: 50%;
    object-fit: cover;
}

.avatar-img { z-index: 2; }

.avatar-fallback {
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    color: var(--brand);
    font-size: 76px;
}

.avatar-frame.no-photo .avatar-img { display: none; }

.instructor-badge {
    position: absolute;
    bottom: 6px;
    right: 50%;
    transform: translateX(150px);
    z-index: 10; /* por delante del marco y de la foto */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #0c0c0c;
    border: 1px solid rgba(0,230,118,.35);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    box-shadow: var(--shadow-md), 0 0 22px rgba(0,230,118,.25);
}

.instructor-badge i { color: var(--brand); }

.instructor-info { display: flex; flex-direction: column; gap: 14px; }
.instructor-info .section-title { margin: 0; }
.instructor-role { color: var(--brand); font-weight: 600; font-size: 16px; }
.instructor-bio { color: var(--text-muted); font-size: 16px; }
.instructor-bio strong { color: var(--text); }

.instructor-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 10px;
}

.instructor-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
}

.instructor-stat-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    font-weight: 800;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.instructor-stat-label { font-size: 12.5px; color: var(--text-dim); }

/* ---------- Testimonials ---------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.testimonial {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 24px;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.testimonial:hover {
    transform: translateY(-6px);
    border-color: rgba(0,229,255,.35);
    box-shadow: var(--shadow-lg);
}

.testimonial-stars { color: var(--py-yellow); font-size: 14px; display: flex; gap: 3px; }

.testimonial-text { color: var(--text-muted); font-size: 15px; flex: 1; }

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
}

.testimonial-avatar {
    position: relative;
    width: 46px; height: 46px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--grad-brand-soft);
    border: 1px solid rgba(0,230,118,.3);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

.avatar-initials {
    font-size: 15px;
    font-weight: 800;
    color: var(--brand);
    z-index: 1;
}

.testimonial-avatar.no-photo img { display: none; }

.testimonial-meta { display: flex; flex-direction: column; line-height: 1.3; }
.testimonial-meta strong { font-size: 15px; }
.testimonial-meta span { font-size: 13px; color: var(--text-dim); }

/* ---------- Audience ---------- */
.audience { background: var(--bg-soft); text-align: center; }

.audience-description {
    max-width: 720px;
    margin: 0 auto 36px;
    color: var(--text-muted);
    font-size: 17px;
}

.requirements-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.requirement-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 500;
}

.requirement-item i { color: var(--brand); font-size: 17px; }
.requirement-item.no-req { border-color: rgba(255,212,59,.3); }
.requirement-item.no-req i { color: var(--py-yellow); }

/* ---------- FAQ ---------- */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0 22px;
    transition: border-color .25s ease;
}

.faq-item[open] { border-color: rgba(0,230,118,.35); }

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 0;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { color: var(--brand); transition: transform .3s ease; font-size: 13px; }
.faq-item[open] summary i { transform: rotate(180deg); }
.faq-item p { padding: 0 0 20px; color: var(--text-muted); font-size: 15px; }

/* ---------- Offer ---------- */
.offer { background: var(--bg-soft); position: relative; overflow: hidden; }

.offer-glow {
    position: absolute;
    width: 600px; height: 600px;
    background: rgba(0,230,118,.1);
    filter: blur(140px);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    pointer-events: none;
}

.offer-card {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding: 56px 40px 44px;
    background: var(--bg-card);
    border: 1px solid rgba(0,230,118,.35);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), var(--glow-brand-strong);
}

.offer-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, #b3002d, #ff4d4d);
    color: #fff;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .06em;
    margin-bottom: 22px;
}

.offer-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 12px; }
.offer-subtitle { color: var(--text-muted); margin-bottom: 28px; }

.offer-countdown { justify-content: center; margin-bottom: 32px; }

.offer-price {
    position: relative;
    display: flex;
    align-items: stretch;
    padding: 0;
    margin-bottom: 28px;
    background:
        linear-gradient(135deg, rgba(0,230,118,.07) 0%, rgba(0,229,255,.04) 100%),
        rgba(0,0,0,.25);
    border: 1px solid rgba(0,230,118,.32);
    border-radius: 14px;
    box-shadow: var(--shadow-md), 0 0 30px rgba(0,230,118,.1);
    overflow: hidden;
}

/* barra de acento lateral */
.offer-price::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--grad-brand);
}

.offer-price-old,
.offer-price-new {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 18px 24px 18px 26px;
}

.offer-price-old { border-right: 1px dashed rgba(255,255,255,.12); }
.offer-price-new { border-right: 1px dashed rgba(255,255,255,.12); }

.offer-price-old-label,
.offer-price-new-label {
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .13em;
}
.offer-price-old-label { color: var(--text-dim); }
.offer-price-new-label { color: var(--brand); }

.offer-price-old-value {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    color: var(--text-dim);
    text-decoration: line-through;
    text-decoration-color: var(--danger);
    text-decoration-thickness: 2px;
}

.offer-price-new-value {
    font-size: 54px;
    font-weight: 800;
    line-height: 1;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Segmento de descuento: ocupa el ancho restante (sin huecos) */
.offer-price-save {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px 20px;
    text-align: center;
    color: var(--py-yellow);
    background:
        repeating-linear-gradient(135deg, rgba(255,212,59,.07) 0 10px, transparent 10px 20px),
        linear-gradient(135deg, rgba(255,212,59,.16) 0%, rgba(255,140,0,.1) 100%);
}

.offer-price-save-off {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .01em;
    white-space: nowrap;
    text-shadow: 0 0 18px rgba(255,212,59,.45);
}
.offer-price-save-off i { color: #ff9d2e; font-size: .95em; }

.offer-price-save-txt {
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: rgba(255,212,59,.8);
    white-space: nowrap;
}

.offer-includes {
    text-align: left;
    max-width: 380px;
    margin: 0 auto 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.offer-includes li { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 15px; }
.offer-includes i { color: var(--brand); }

.offer-buttons { display: flex; flex-direction: column; gap: 12px; }
.offer-buttons .btn { width: 100%; }

.offer-note { margin-top: 18px; font-size: 13px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 8px; }
.offer-note i { color: var(--brand); }

/* ---------- Final CTA ---------- */
.final-cta { background: var(--bg); }

.final-cta-content {
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.final-cta-title { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.final-cta-subtitle { color: var(--text-muted); font-size: 18px; }
.final-cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Termux ---------- */
.termux { background: var(--bg-soft); position: relative; overflow: hidden; }

.termux-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.termux-prompt {
    font-family: 'Fira Code', monospace;
    font-size: .78em;
    font-weight: 700;
    color: var(--brand);
    background: rgba(0,230,118,.08);
    border: 1px solid rgba(0,230,118,.3);
    border-radius: 10px;
    padding: 6px 12px;
    line-height: 1;
    box-shadow: var(--glow-brand);
}

.termux-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.termux-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.termux-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0,230,118,.4);
    box-shadow: var(--shadow-lg), var(--glow-brand);
}

.termux-card-icon {
    width: 54px; height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    color: var(--brand);
    border-radius: 14px;
    background: var(--grad-brand-soft);
    border: 1px solid rgba(0,230,118,.25);
    margin-bottom: 18px;
}

.termux-card h3 { font-size: 19px; margin-bottom: 10px; }
.termux-card p { color: var(--text-muted); font-size: 15px; }

.termux-terminal {
    max-width: 860px;
    margin: 0 auto;
    background: #050505;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--glow-brand);
}

.termux-terminal-body {
    padding: 20px 22px;
    font-family: 'Fira Code', monospace;
    font-size: 13.5px;
    line-height: 2;
}

.termux-line { color: #d4d4d4; }
.termux-user { color: var(--brand); font-weight: 600; }
.termux-ok { color: #7ee787; }
.termux-out { color: var(--py-yellow); }

.termux-cursor {
    display: inline-block;
    width: 8px; height: 15px;
    background: var(--brand);
    margin-left: 4px;
    vertical-align: middle;
    animation: blink 1.1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ---------- Comunidad Telegram ---------- */
.community { position: relative; overflow: hidden; }

.community-card {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 40px;
    align-items: center;
    padding: 48px 44px;
    background: linear-gradient(135deg, rgba(0,136,204,.12) 0%, rgba(0,230,118,.06) 100%), var(--bg-card);
    border: 1px solid rgba(0,136,204,.35);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.community-card::before {
    content: "";
    position: absolute;
    width: 420px; height: 420px;
    background: rgba(0,136,204,.18);
    filter: blur(120px);
    border-radius: 50%;
    top: -140px; right: -100px;
    pointer-events: none;
}

.community-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.community-tag {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(0,136,204,.14);
    border: 1px solid rgba(0,136,204,.45);
    color: #52c0f2;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.community-title { font-size: clamp(1.5rem, 3vw, 2.05rem); }
.community-bracket { opacity: .45; color: var(--brand); }
.community-text { color: var(--text-muted); font-size: 16px; }

.community-list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
    background: rgba(0,0,0,.45);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.community-list li { display: flex; align-items: flex-start; gap: 12px; }
.community-icon { font-size: 18px; line-height: 1.5; color: var(--brand); }
.community-list div { display: flex; flex-direction: column; }
.community-list strong { font-size: 15px; }
.community-list span { font-size: 13.5px; color: var(--text-dim); }
.community-list code {
    font-family: 'Fira Code', monospace;
    color: var(--brand);
    font-size: 13px;
}

.community-actions { margin-top: 6px; }
.community-actions .btn-cta { width: 100%; }

.community-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-dim);
}

.community-note i { color: var(--brand); }

/* ---------- Puente al hub de contenido ---------- */
.nav-telegram-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-right: 6px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--telegram);
    font-size: 16px;
    transition: border-color .2s ease, transform .2s ease;
}

.nav-telegram-link:hover {
    border-color: var(--telegram);
    transform: translateY(-2px);
}

.academy-resources { padding-top: 0; }

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 38px;
}

.resource-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg-card), #080808);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.resource-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,230,118,.4);
    box-shadow: 0 18px 40px rgba(0,0,0,.55);
}

.resource-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--grad-brand-soft);
    border: 1px solid rgba(0,230,118,.25);
    color: var(--brand);
    font-size: 17px;
}

.resource-card strong { font-size: 16.5px; line-height: 1.35; }
.resource-card > span:not(.resource-icon):not(.resource-link) {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.resource-link {
    margin-top: auto;
    padding-top: 8px;
    color: var(--brand);
    font-size: 13.5px;
    font-weight: 700;
}

.resource-link i { margin-left: 4px; transition: transform .2s ease; }
.resource-card:hover .resource-link i { transform: translateX(3px); }

@media (max-width: 900px) {
    .resources-grid { grid-template-columns: 1fr; }
}

/* Utilidad de accesibilidad (solo visible para lectores de pantalla) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Captura de correo ---------- */
.lead-band { padding: 0 0 84px; }

.lead-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 30px;
    border: 1px solid rgba(0, 230, 118, .22);
    border-radius: 18px;
    background:
        radial-gradient(520px 220px at 8% 0%, rgba(0, 230, 118, .09), transparent 70%),
        linear-gradient(135deg, rgba(0, 230, 118, .05), rgba(0, 229, 255, .03));
}

.lead-copy { max-width: 560px; }
.lead-copy .section-title { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.lead-copy p { margin-top: 8px; color: var(--text-muted); font-size: 14px; }

.lead-form { flex-shrink: 0; width: min(430px, 100%); }

.lead-field {
    display: flex;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-card);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.lead-field:focus-within {
    border-color: rgba(0, 230, 118, .55);
    box-shadow: 0 0 0 3px rgba(0, 230, 118, .10);
}

.lead-field input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: none;
    outline: none;
    background: none;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
}

.lead-field input[type="email"]::placeholder { color: var(--text-dim); }

.lead-field .btn {
    padding: 11px 18px;
    font-size: 13px;
    white-space: nowrap;
}

.lead-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.lead-status {
    min-height: 18px;
    margin-top: 8px;
    padding-left: 2px;
    font-size: 12px;
    line-height: 1.4;
}

.lead-status.is-ok { color: var(--brand); }
.lead-status.is-error { color: var(--danger); }
.lead-status.is-pending { color: var(--text-dim); }

.lead-form-wide {
    width: 100%;
    margin-top: 22px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-card);
}

.lead-form-wide .lead-copy-inline {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
}

.lead-form-wide .lead-copy-inline strong { font-size: 14.5px; }
.lead-form-wide .lead-copy-inline span { font-size: 12.5px; color: var(--text-dim); }

@media (max-width: 900px) {
    .lead-band-inner { flex-direction: column; align-items: flex-start; }
    .lead-form { width: 100%; }
}

@media (max-width: 560px) {
    .lead-field { flex-direction: column; }
    .lead-field .btn { width: 100%; }
}

/* ---------- Footer ---------- */
.footer {
    background: #030303;
    border-top: 1px solid var(--border-soft);
    padding: 64px 0 28px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
}

.footer-logo { margin-bottom: 16px; }
.footer-description { color: var(--text-muted); font-size: 14.5px; max-width: 400px; }

.footer-social { display: flex; gap: 12px; margin-top: 20px; }

.footer-social a {
    width: 42px; height: 42px;
    border-radius: 11px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: var(--text-muted);
    transition: all .25s ease;
}

.footer-social a:hover {
    color: #00130a;
    background: var(--grad-brand);
    border-color: transparent;
    transform: translateY(-3px);
}

.footer-links h4 { font-size: 15px; margin-bottom: 16px; }
.footer-links ul { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { color: var(--text-muted); font-size: 14.5px; transition: color .2s ease; }
.footer-links a:hover { color: var(--brand); }

.footer-bottom {
    padding-top: 26px;
    border-top: 1px solid var(--border-soft);
    text-align: center;
    color: var(--text-dim);
    font-size: 13.5px;
}

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(5,5,5,.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    transform: translateY(100%);
    transition: transform .35s ease;
}

.sticky-cta.visible { transform: translateY(0); }

/* Chip de precio: mismo lenguaje visual que los bloques de precio de la pagina */
.sticky-price {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px 6px 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0,230,118,.10) 0%, rgba(0,229,255,.05) 100%);
    border: 1px solid rgba(0,230,118,.25);
    box-shadow: 0 6px 18px rgba(0,0,0,.45);
    overflow: hidden;
}

/* entrada del chip cuando aparece la barra */
.sticky-cta.visible .sticky-price {
    animation: stickyIn .5s cubic-bezier(.34,1.4,.5,1) both;
}

/* barrido de brillo periodico sobre el chip */
.sticky-price::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 45%;
    background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,.14) 50%, transparent 100%);
    transform: translateX(-140%);
    animation: stickyShine 3.8s ease-in-out infinite;
    pointer-events: none;
}

.sticky-old {
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: var(--text-dim);
    text-decoration: line-through;
    text-decoration-color: var(--danger);
    text-decoration-thickness: 2px;
    white-space: nowrap;
}

/* Precio final con degradado en movimiento */
.sticky-new {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 21px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    background: linear-gradient(120deg, #00e676 0%, #00e5ff 30%, #00e676 60%, #00e5ff 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: stickyFlow 3.4s linear infinite;
}

.sticky-off {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--py-yellow);
    background:
        repeating-linear-gradient(135deg, rgba(255,212,59,.10) 0 6px, transparent 6px 12px),
        linear-gradient(135deg, rgba(255,212,59,.18) 0%, rgba(255,140,0,.12) 100%);
    border: 1px solid rgba(255,212,59,.35);
    text-shadow: 0 0 10px rgba(255,212,59,.5);
    animation: stickyPulse 3.4s ease-in-out infinite;
}

@keyframes stickyIn {
    from { opacity: 0; transform: translateY(8px) scale(.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes stickyShine {
    0%, 58% { transform: translateX(-140%); }
    86%, 100% { transform: translateX(240%); }
}

@keyframes stickyFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes stickyPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.07); }
}

/* En pantallas muy angostas el badge de descuento ya no cabe */
@media (max-width: 340px) {
    .sticky-off { display: none; }
}

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 70;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--grad-brand);
    color: #00130a;
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md), var(--glow-brand);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all .3s ease;
}

.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

/* ---------- Aviso para navegadores internos (TikTok, Instagram...) ---------- */
.inapp-modal {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

.inapp-modal.open { opacity: 1; visibility: visible; }

.inapp-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.74);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.inapp-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 30px 26px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(18px);
    transition: transform .3s ease;
}

.inapp-modal.open .inapp-card { transform: translateY(0); }

.inapp-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 36px; height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg-elevated);
    color: var(--text-muted);
    font-size: 15px;
    cursor: pointer;
    transition: color .25s ease, border-color .25s ease;
}

.inapp-close:hover { color: var(--text); border-color: var(--brand); }

.inapp-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,212,59,.12);
    border: 1px solid rgba(255,212,59,.3);
    color: var(--py-yellow);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* El aviso es solo del canal de Telegram, asi que el distintivo va en azul */
.inapp-badge-tg {
    background: rgba(42, 171, 238, .12);
    border-color: rgba(42, 171, 238, .32);
    color: var(--telegram);
}

.inapp-title {
    margin: 0 40px 12px 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--text);
}

.inapp-desc {
    margin: 0 0 20px;
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
}

.inapp-desc strong { color: var(--text); font-weight: 700; }

.inapp-steps {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: inapp;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inapp-steps li {
    position: relative;
    padding-left: 38px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
    counter-increment: inapp;
}

.inapp-steps li::before {
    content: counter(inapp);
    position: absolute;
    left: 0; top: 0;
    width: 24px; height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--grad-brand-soft);
    border: 1px solid rgba(0,230,118,.3);
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
}

.inapp-steps li strong { color: var(--text); font-weight: 700; }

.inapp-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inapp-btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    padding: 13px 18px;
    font-size: 14.5px;
}

.inapp-url-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 20px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
    font-size: 12px;
}

.inapp-url-label {
    flex-shrink: 0;
    color: var(--text-dim);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 10px;
}

.inapp-url {
    color: var(--brand-2);
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    word-break: break-all;
}

/* Si el copiado automatico falla, el enlace queda seleccionado y marcado
   para que al usuario le baste con mantenerlo pulsado y elegir Copiar. */
.inapp-url.destacar {
    padding: 2px 6px;
    border: 1px solid var(--brand-2);
    border-radius: 6px;
    background-color: rgba(0, 229, 255, .12);
}

.inapp-status {
    margin: 14px 0 0;
    color: var(--py-yellow);
    font-size: 13px;
    line-height: 1.55;
}

/* ---------- Espera mientras carga el pago incrustado ---------- */
.pago-cargando {
    position: fixed;
    inset: 0;
    z-index: 299;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, .82);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

/* el atributo hidden debe seguir mandando sobre el flex */
.pago-cargando[hidden] { display: none !important; }

.pago-cargando-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: min(90vw, 340px);
    padding: 26px 32px;
    border: 1px solid rgba(0, 230, 118, .3);
    border-radius: 14px;
    background-color: #0b0b0b;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
    text-align: center;
}

.pago-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(0, 230, 118, .18);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: pagoGirar .8s linear infinite;
}

@keyframes pagoGirar {
    to { transform: rotate(360deg); }
}

.pago-cargando-txt {
    margin: 0;
    font-size: 14px;
    color: var(--text);
}

/* Respaldo: el widget no cargo y se ofrece copiar el enlace del curso */
.pago-cargando-acciones {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 4px;
}

.pago-cargando-acciones[hidden] { display: none !important; }

.pago-cargando-acciones .btn { width: 100%; justify-content: center; }

/* ---------- Checkout incrustado de Hotmart ----------
   Dentro de TikTok (u otro navegador interno) el pago se hace aqui mismo
   con el checkout oficial de Hotmart en un iframe: al no haber salto a
   otro dominio, la app no tiene nada que bloquear.

   La caja de luz la crea la propia libreria de Hotmart y la inserta en el
   <body> sin z-index, mientras que nuestros elementos fijos usan 80 y 95;
   por eso se sube de capa explicitamente. Se antepone "body " porque la
   libreria inyecta sus estilos al final del <head> y, a igualdad de
   especificidad, ganarian los suyos. La altura del iframe necesita
   !important porque la libreria la fija en linea (nace con 300 px, que en
   un movil se queda corta). */
body .custom-element__lightbox-overlay {
    z-index: 300;
    background-color: rgba(0, 0, 0, .86);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

body .custom-element__lightbox-modal {
    z-index: 301;
    width: 92%;
    max-width: 560px;
    background-color: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(0, 230, 118, .35);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .65);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

body .custom-element__lightbox-modal .custom-element__iframe {
    height: 78vh !important;
    min-height: 78vh !important;
    width: 100% !important;
    background-color: #ffffff;
}

@media (min-width: 620px) {
    body .custom-element__lightbox-modal .custom-element__iframe {
        height: 80vh !important;
        min-height: 80vh !important;
    }
}

@media (min-width: 620px) {
    .inapp-modal { align-items: center; }
    .inapp-card { transform: translateY(18px) scale(.97); }
    .inapp-modal.open .inapp-card { transform: translateY(0) scale(1); }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
    .nav-links { gap: 20px; }
    .nav-telegram-link { display: none; }
}

@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { order: -1; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .achieve-grid { grid-template-columns: repeat(2, 1fr); }
    .modules-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .instructor-content { grid-template-columns: 1fr; gap: 44px; text-align: center; }
    .instructor-info { align-items: center; }
    .instructor-info .section-title.left,
    .instructor-info .section-eyebrow.left { text-align: center; align-self: center; }
    .social-strip { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 32px; }

    /* el menú se colapsa antes para dar espacio a los nuevos enlaces */
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: inline-flex; }

    .community-card { grid-template-columns: 1fr; gap: 28px; padding: 38px 30px; }
}

@media (max-width: 768px) {
    section { padding: 64px 0; }
    .container { padding: 0 18px; }

    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: inline-flex; }

    .hero { padding: 56px 0 48px; }
    .price-old, .price-new { padding: 14px 16px 14px 18px; gap: 3px; }
    .price-new-value { font-size: 38px; }
    .price-old-value { font-size: 24px; }
    .price-old-tag, .price-new-tag { font-size: 9.5px; letter-spacing: .08em; }
    .price-badge { padding: 12px 14px; }
    .price-badge-off { font-size: 15px; }
    .price-badge-save { font-size: 10.5px; }

    .hero-ctas { flex-direction: column; }
    .hero-ctas .btn { width: 100%; }
    .btn-cta { width: 100%; min-height: 58px; padding: 16px 18px; font-size: 15px; }
    .btn-cta-lg { min-height: 62px; }

    .float-1, .float-2 { display: none; }

    .chart-row { gap: 12px; }
    .chart-lang, .chart-row-top .chart-lang { width: 118px; }
    .chart-bar-value { min-width: 48px; font-size: 12px; }
    .chart-row-top .chart-bar-value { font-size: 13px; }
    .chart-name { font-size: 13.5px; }
    .chart-row-top .chart-name { font-size: 14px; }
    .chart-crown { display: none; }
    .ranking-chart { padding: 20px 16px; }

    .why-grid, .achieve-grid, .modules-grid, .testimonials-grid, .termux-grid { grid-template-columns: 1fr; }

    .instructor-stats { grid-template-columns: 1fr 1fr 1fr; }
    .avatar-frame { width: 250px; height: 250px; }
    .avatar-fallback { font-size: 58px; }
    .instructor-badge { transform: translateX(70px); }

    .community-card { grid-template-columns: 1fr; gap: 26px; padding: 32px 22px; }
    .community-actions .btn-cta { width: 100%; }

    .offer-card { padding: 40px 22px 32px; }
    .offer-price-old, .offer-price-new { padding: 16px 18px 16px 20px; gap: 3px; }
    .offer-price-new-value { font-size: 44px; }
    .offer-price-old-value { font-size: 28px; }
    .offer-price-old-label, .offer-price-new-label { font-size: 10px; letter-spacing: .08em; }
    .offer-price-save { padding: 14px 16px; }
    .offer-price-save-off { font-size: 18px; }
    .offer-price-save-txt { font-size: 11px; }

    .final-cta-buttons { flex-direction: column; }
    .final-cta-buttons .btn { width: 100%; }

    .footer-content { grid-template-columns: 1fr; gap: 28px; }

    /* show sticky CTA on mobile */
    .sticky-cta { display: flex; }
    .back-to-top { bottom: 84px; }
    /* la barra fija no debe tapar la ultima linea del pie */
    .footer { padding-bottom: 92px; }
}

@media (max-width: 480px) {
    .announcement-inner { justify-content: center; text-align: center; }
    .announcement-text { font-size: 12.5px; }
    .countdown-value { font-size: 15px; min-width: 34px; padding: 5px 6px; }
    .countdown-unit { min-width: 38px; }
    .countdown-label { font-size: 9px; }

    .hero-title { font-size: 2.15rem; }
    .hero-subtitle { font-size: 16px; }
    .btn-xl { padding: 17px 22px; font-size: 15.5px; }

    .section-title { font-size: 1.75rem; }

    .chart-lang, .chart-row-top .chart-lang { width: 100px; }
    .chart-icon { width: 28px; height: 28px; font-size: 12px; }
    .chart-name-sm { font-size: 12px; }
    .chart-bar-value { min-width: 44px; font-size: 11.5px; }
    .chart-row-top .chart-bar-value { font-size: 12.5px; }

    .instructor-stats { grid-template-columns: 1fr; }
    .avatar-frame { width: 210px; height: 210px; }
    .avatar-fallback { font-size: 48px; }
    .instructor-badge { transform: none; right: 0; }

    .offer-price-new-value { font-size: 40px; }
    .offer-price-save-off { font-size: 17px; }
    .code-content code { font-size: 11.5px; }

    .btn-cta { font-size: 14.5px; padding: 15px 14px; gap: 8px; }
    .termux-card { padding: 22px 20px; }
    .termux-terminal-body { font-size: 11.5px; line-height: 1.9; }
    .community-title { font-size: 1.3rem; }
    .community-list { padding: 18px 16px; }
}

/* Precio del hero y de la oferta en dos filas para pantallas pequeñas (sin desbordes) */
@media (max-width: 620px) {
    .hero-price { flex-wrap: wrap; }
    .price-old, .price-new {
        flex: 1 1 0;
        min-width: 0;
        align-items: center;
        text-align: center;
        border-bottom: 1px dashed rgba(255,255,255,.12);
    }
    .price-new { border-right: none; }
    .price-badge { flex: 1 1 100%; }

    .offer-price { flex-wrap: wrap; }
    .offer-price-old, .offer-price-new {
        flex: 1 1 0;
        min-width: 0;
        align-items: center;
        text-align: center;
        border-bottom: 1px dashed rgba(255,255,255,.12);
    }
    .offer-price-new { border-right: none; }
    .offer-price-save { flex: 1 1 100%; }
}

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