/* ══════════════════════
   PROGRAM PAGES
   /coding · /creatividad · /future-networks
══════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --purple: #9424FF;
    --cyan: #06DDF9;
    --magenta: #D229FF;
    --dark: #242E3D;
    --gradient: linear-gradient(90deg, #06DDF9 0%, #D229FF 100%);
    --font-h: 'Visby CF', 'Trebuchet MS', 'Arial Black', sans-serif;
    --font-b: 'Avenir Next LT Pro', 'Avenir Next', 'Segoe UI', sans-serif;
}

body {
    font-family: var(--font-b);
    background: #fff;
    color: #222;
}

/* ── NAVBAR (igual a agenda/contacto) ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 200;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px clamp(24px, 5vw, 80px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    text-decoration: none;
}

.nav-logo .logo-nav {
    height: 36px;
    width: auto;
}

.btn-login {
    padding: 9px 20px;
    border-radius: 999px;
    border: 1.8px solid var(--accent, var(--purple));
    background: transparent;
    color: var(--accent-text, var(--purple));
    font-family: var(--font-b);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
}

.btn-login:hover {
    background: var(--accent, var(--purple));
    color: var(--btn-text, #fff);
}

/* ── PROGRAM HERO ── */
.program-hero {
    padding: 150px 24px 70px;
    text-align: center;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent, var(--purple)) 8%, #fff) 0%, #fff 100%);
}

.program-tag {
    display: inline-block;
    color: var(--accent-text, var(--purple));
    font-weight: 800;
    letter-spacing: .08em;
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.program-hero h1 {
    font-family: var(--font-h);
    font-size: clamp(32px, 6vw, 52px);
    font-weight: 800;
    max-width: 760px;
    margin: 0 auto 18px;
    line-height: 1.15;
}

.program-hero p {
    font-size: clamp(16px, 2.2vw, 19px);
    color: #444;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.btn-accent {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 999px;
    background: var(--accent, var(--purple));
    color: var(--btn-text, #fff);
    font-family: var(--font-b);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: transform .2s, opacity .2s;
}

.btn-accent:hover {
    transform: translateY(-2px);
    opacity: .9;
}

/* ── SECTION SHELL ── */
.program-section {
    max-width: 980px;
    margin: 0 auto;
    padding: 70px 24px;
}

.program-section h2 {
    font-family: var(--font-h);
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    color: var(--accent-text, var(--purple));
    margin-bottom: 28px;
    text-align: center;
}

.program-section.alt {
    background: #f7f8fb;
    max-width: 100%;
}

.program-section.alt>.inner {
    max-width: 980px;
    margin: 0 auto;
}

/* ── TOPICS GRID ── */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.topic-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 14.5px;
    color: #333;
}

.topic-item::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent, var(--purple));
    flex-shrink: 0;
}

/* ── STACK BADGES ── */
.stack-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.stack-badge {
    padding: 9px 18px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent, var(--purple)) 12%, #fff);
    color: var(--accent-text, var(--purple));
    font-weight: 700;
    font-size: 13.5px;
}

/* ── LEVELS ── */
.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.level-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .06);
}

.level-card .age {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #888;
    margin-bottom: 6px;
}

.level-card h3 {
    font-family: var(--font-h);
    font-size: 18px;
    color: var(--accent-text, var(--purple));
    margin-bottom: 8px;
}

.level-card p {
    font-size: 13.5px;
    color: #555;
    line-height: 1.55;
}

/* ── PROJECTS ── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.project-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 16px;
    padding: 22px;
}

.project-card h3 {
    font-family: var(--font-h);
    font-size: 17px;
    margin-bottom: 8px;
}

.project-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* ── MENTOR NOTE ── */
.mentor-note {
    text-align: center;
    background: color-mix(in srgb, var(--accent, var(--purple)) 6%, #fff);
    border-radius: 16px;
    padding: 32px 24px;
    max-width: 640px;
    margin: 0 auto;
}

.mentor-note p {
    color: #444;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* ── PRICING TEASER ── */
.pricing-teaser {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.pricing-teaser p {
    color: #444;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ── FAQ ── */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    padding: 18px 20px;
}

.faq-item h3 {
    font-size: 15px;
    margin-bottom: 6px;
}

.faq-item p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* ── CLOSING CTA ── */
.program-closing {
    text-align: center;
    padding: 70px 24px;
    background: var(--gradient);
}

.program-closing h2 {
    font-family: var(--font-h);
    color: #000;
    font-size: clamp(22px, 4vw, 30px);
    margin-bottom: 20px;
}

.program-closing .btn-accent {
    background: #000;
    color: #fff;
}

/* ── CODEX GLOSSARY (explore.html) ── */
.codex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.codex-item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 14px;
    padding: 18px 20px;
}

.codex-item dt {
    font-family: var(--font-h);
    font-weight: 800;
    color: var(--accent-text, var(--purple));
    font-size: 15px;
    margin-bottom: 4px;
}

.codex-item dd {
    font-size: 13.5px;
    color: #555;
    line-height: 1.55;
}

/* ── COMPASS TRACK (progresión de niveles) ── */
.compass-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}

.compass-step {
    flex: 1 1 160px;
    text-align: center;
    padding: 20px 14px;
    position: relative;
}

.compass-step:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -6px;
    top: 34px;
    color: #ccc;
    font-size: 18px;
}

.compass-step .age {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #888;
    margin-bottom: 4px;
}

.compass-step h3 {
    font-family: var(--font-h);
    font-size: 16px;
    color: var(--accent-text, var(--purple));
}

/* ── CYCLE TRACK (modelo instruccional) ── */
.cycle-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.cycle-step {
    background: #fff;
    border-radius: 14px;
    padding: 22px 18px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .06);
}

.cycle-step .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent, var(--purple));
    color: var(--btn-text, #fff);
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 10px;
}

.cycle-step h3 {
    font-size: 15px;
    margin-bottom: 6px;
}

.cycle-step p {
    font-size: 13.5px;
    color: #555;
    line-height: 1.55;
}

/* ── FOOTER (igual al resto del sitio) ── */
footer {
    background: linear-gradient(135deg, #06DDF9 0%, #9424FF 50%, #D229FF 100%);
    padding: 56px 0 28px;
    color: rgba(255, 255, 255, .9);
    border-radius: 24px 24px 0 0;
}

.section-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 80px);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    margin-bottom: 22px;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-footer {
    width: clamp(100px, 16vw, 160px);
    margin-bottom: 16px;
}

.logo-footer img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.footer-brand>p {
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
    line-height: 1.65;
    margin-bottom: 18px;
    max-width: 220px;
    font-weight: 600;
}

.btn-contact {
    padding: 10px 28px;
    border-radius: 999px;
    background: linear-gradient(90deg, #06DDF9 0%, #D229FF 100%);
    color: #000;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: opacity .2s;
}

.btn-contact:hover {
    opacity: .85;
}

.footer-col {
    padding-top: 4px;
    padding-left: 20px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, .95);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 11px;
}

.footer-col ul li a {
    text-decoration: none;
    font-size: 14px;
    color: rgba(255, 255, 255, .72);
    transition: color .2s;
}

.footer-col ul li a:hover {
    color: #06DDF9;
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, .42);
}

@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* ── STICKY MOBILE CTA ── */
.sticky-cta {
    display: none;
}

@media (max-width: 640px) {
    .sticky-cta {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 150;
        padding: 12px 16px;
        background: #fff;
        border-top: 1px solid rgba(0, 0, 0, .08);
        text-align: center;
    }

    .sticky-cta .btn-accent {
        width: 100%;
        padding: 13px;
    }

    body {
        padding-bottom: 64px;
    }
}
