    :root {
        /* Refined Color Palette */
        --primary: #2563eb;
        --primary-deep: #1d4ed8;
        --accent-blue: #3b82f6;
        --accent-purple: #8b5cf6;
        --accent-green: #10b981;

        --gray-50: #f8fafc;
        --gray-100: #f1f5f9;
        --gray-200: #e2e8f0;
        --gray-300: #cbd5e1;
        --gray-400: #94a3b8;
        --gray-500: #64748b;
        --gray-600: #475569;
        --gray-700: #334155;
        --gray-800: #1e293b;
        --gray-900: #0f172a;

        /* Premium Theme Variables (Atomic Sync) */
        --v-bg: #ffffff;
        --v-bg-alt: #f5f5f7;
        --v-bg-deep: #fbfbfd;
        --v-text: #1d1d1f;
        --v-text-muted: #6e6e73;
        --v-border: rgba(0, 0, 0, 0.08);
        --v-logo-filter: brightness(0);

        /* Premium Shadow Tokens */
        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
        --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.04), 0 4px 6px -2px rgba(15, 23, 42, 0.02);
        --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.05), 0 10px 10px -5px rgba(15, 23, 42, 0.02);
        --shadow-premium: 0 25px 50px -12px rgba(15, 23, 42, 0.08);

        /* Layout Tokens */
        --container-max: 1280px;
        --section-spacing: 120px;
        --border-radius: 16px;

        /* Restored Colors for Previous Design */
        --blue-50: #eff6ff;
        --blue-600: #2563eb;
        --blue-700: #1d4ed8;
        --purple-50: #f5f3ff;
        --purple-600: #9333ea;
        --red-500: #ef4444;
        --white: #ffffff;
    }

    :root.dark {
        --v-bg: #000000;
        --v-bg-alt: #0a0a0b;
        --v-bg-deep: #050505;
        --v-text: #ffffff;
        --v-text-muted: #a1a1a6;
        --v-border: rgba(255, 255, 255, 0.1);
        --v-logo-filter: brightness(0) invert(1);
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    /* ============================================================
       APPLE-STYLE DESIGN SYSTEM
       ============================================================ */
    html {
        scroll-behavior: smooth;
    }


    body {
        font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', sans-serif !important;
        font-display: swap;
        background: var(--v-bg, #ffffff);
        color: var(--v-text, #1d1d1f);
        line-height: 1.6;
        min-height: 100vh;
        overflow-x: hidden;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        visibility: visible; /* Optimized for direct rendering */
        opacity: 1;
    }

    body.components-ready {
        visibility: visible !important;
        opacity: 1 !important;
        animation: fadeIn 0.4s ease-out forwards;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }




    main {
        display: block;
    }

    /* SECTION SYSTEM — Normal flow, full viewport height */
    .section {
        min-height: 100dvh;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    /* Hero gets extra top padding so headline clears the fixed navbar */
    #inicio .section-inner {
        padding-top: 180px; 
        padding-bottom: 100px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 600px; /* Lock height for Hero inner content */
    }

    .section-light {
        background: #ffffff;
        color: #1d1d1f;
    }

    .section-dark {
        background: #000000;
        color: #f5f5f7;
    }

    .section-gray {
        background: #f5f5f7;
        color: #1d1d1f;
    }


    .section-inner {
        width: 100%;
        max-width: 1080px;
        margin: 0 auto;
        padding: 100px 48px;
        min-height: 500px; /* Lock fundamental space */
        contain: layout paint; 
    }

    /* Platform Section Stability (Fix for 1.000 CLS) */
    #plataforma {
        min-height: 600px; 
        content-visibility: auto;
        contain: layout;
    }

    /* Prevent body-level shifts from dynamic font loading */
    body {
        min-height: 100vh;
        text-rendering: optimizeSpeed; /* Reduce initial layout complexity */
    }

    /* header-public visibility lock */
    header-public {
        display: block; 
        height: 80px; /* Force rigid height */
        contain: layout;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    #navbar {
        height: 80px !important;
        display: flex !important;
        align-items: center !important;
    }


    .logo {
        display: flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        min-width: 200px; /* Lock space for logo + text */
        height: 40px;
    }

    .logo-img {
        width: 160px;
        height: 40px;
        flex-shrink: 0;
    }

    .logo-text-edu {
        font-family: 'Outfit', sans-serif;
        font-weight: 800;
        font-size: 17px;
        line-height: 1;
        min-width: 80px; /* Pre-reserve space for "Education" */
    }

    .kpi-counter {
        display: inline-block;
        min-width: 1.5ch;
        min-height: 48px; /* Reservado para el tamaño de fuente 40px/48px */
        line-height: 48px;
        contain: layout paint;
    }

    .footer-logo {
        display: flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        margin-bottom: 20px;
    }

    .footer-logo-img {
        height: 28px;
        width: 82px;
        filter: brightness(0) invert(1);
        flex-shrink: 0;
    }


    /* ============================================================
       APPLE TYPOGRAPHY
       ============================================================ */
    .apple-eyebrow {
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        margin-bottom: 20px;
        display: block;
    }

    .section-dark .apple-eyebrow {
        color: #a1a1a6;
    }

    .section-light .apple-eyebrow {
        color: #6e6e73;
    }

    .apple-headline,
    .font-heading {
        font-family: 'Outfit', 'Inter', -apple-system, sans-serif !important;
        font-size: clamp(32px, 7vw, 64px) !important;
        font-weight: 800;
        line-height: 1.05;
        letter-spacing: -0.05em;
        margin-bottom: 32px;
        contain: paint;
    }


    .section-dark .apple-headline {
        background: linear-gradient(180deg, #ffffff 0%, #86868b 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .section-light .apple-headline {
        color: #1d1d1f;
    }

    .apple-subheadline {
        font-size: clamp(19px, 2.2vw, 24px);
        font-weight: 400;
        line-height: 1.45;
        margin-bottom: 48px;
        max-width: 600px;
    }

    .section-dark .apple-subheadline {
        color: #d2d2d7;
        font-weight: 500;
        letter-spacing: -0.015em;
    }

    .section-light .apple-subheadline {
        color: #6e6e73;
    }

    .apple-body {
        font-size: clamp(17px, 1.5vw, 19px);
        font-weight: 400;
        line-height: 1.7;
    }

    .section-dark .apple-body {
        color: #d2d2d7;
    }

    .section-light .apple-body {
        color: #6e6e73;
    }

    /* ============================================================
       APPLE BUTTONS
       ============================================================ */
    .apple-btn-primary {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 16px 36px;
        background: #0071e3;
        color: #fff;
        font-size: 17px;
        font-weight: 500;
        border-radius: 980px;
        text-decoration: none;
        transition: transform 0.3s var(--apple-ease), background 0.3s ease, box-shadow 0.3s ease;
        will-change: transform;
        border: none;
        cursor: pointer;
    }

    .apple-btn-primary:hover {
        background: #0077ed;
        transform: scale(1.02) translateY(-1px);
        box-shadow: 0 8px 20px rgba(0, 113, 227, 0.25);
    }

    .apple-btn-ghost {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 16px 36px;
        font-size: 17px;
        font-weight: 500;
        border-radius: 980px;
        text-decoration: none;
        transition: transform 0.3s var(--apple-ease), background 0.3s ease, border-color 0.3s ease;
        will-change: transform;
        border: 1.5px solid currentColor;
        background: transparent;
    }

    .apple-btn-ghost:hover {
        background: rgba(0, 113, 227, 0.05);
        transform: scale(1.02) translateY(-1px);
    }

    /* Card Hover Restored */
    .course-card, .step-card, .features-card {
        transition: transform 0.4s var(--apple-ease), box-shadow 0.4s var(--apple-ease);
        will-change: transform;
    }

    .course-card:hover, .step-card:hover, .features-card:hover {
        transform: translateY(-8px) scale(1.01);
        box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    }


    /* ============================================================
       APPLE BUTTONS
       ============================================================ */
    .apple-btn-primary {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 16px 36px;
        background: #0071e3;
        color: #fff;
        font-size: 17px;
        font-weight: 500;
        border-radius: 980px;
        text-decoration: none;
        transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
        border: none;
        cursor: pointer;
    }

    .apple-btn-primary:hover {
        background: #0077ed;
        transform: scale(1.04) translateY(-1px);
        box-shadow: 0 12px 24px rgba(0, 113, 227, 0.3);
    }

    .apple-btn-primary:active {
        transform: scale(0.98);
    }

    .apple-btn-ghost {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 16px 36px;
        font-size: 17px;
        font-weight: 500;
        border-radius: 980px;
        text-decoration: none;
        transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
        border: 1.5px solid currentColor;
        background: transparent;
    }

    .section-dark .apple-btn-ghost {
        color: #f5f5f7;
    }

    .section-light .apple-btn-ghost {
        color: #0071e3;
    }

    .apple-btn-ghost:hover {
        background: rgba(255, 255, 255, 0.08);
        transform: scale(1.04) translateY(-1px);
        /* Reducción de box-shadow o cambios que causen repaints masivos */
    }


    .apple-btn-ghost:active {
        transform: scale(0.98);
    }

    /* ============================================================
       SCROLL REVEAL / ANIMATIONS STABILIZATION
       ============================================================ */
    .anim {
        opacity: 0;
        transform: translateY(20px); 
        transition: opacity 0.6s var(--apple-ease), transform 0.6s var(--apple-ease);
        will-change: opacity, transform;
        pointer-events: none;
        visibility: hidden;
        content-visibility: auto; /* Optimization for off-screen items */
    }

    .anim.visible {
        opacity: 1;
        transform: translate(0, 0);
        pointer-events: auto;
        visibility: visible;
    }
/* Utilities to replace inline styles that cause CLS/Non-composited animations */
.headline-xl { font-size: clamp(36px, 5vw, 64px) !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mb-40 { margin-bottom: 40px !important; }
.mb-48 { margin-bottom: 48px !important; }
.mb-56 { margin-bottom: 56px !important; }
.mb-64 { margin-bottom: 64px !important; }
.mb-80 { margin-bottom: 80px !important; }
.mt-48 { margin-top: 48px !important; }
.text-center { text-align: center !important; }
.text-blue { color: #0071e3 !important; }
.kpi-value { font-size: 40px; font-weight: 800; line-height: 1; margin-bottom: 4px; font-variant-numeric: tabular-nums; }

/* FAQ & Layout Utilities */
.flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.gap-8 { gap: 8px !important; }
.faq-item { border-top: 1px solid #e5e5ea; padding: 28px 24px; border-radius: 12px; margin: 0 -24px; cursor: pointer; transition: background 0.3s ease; }
.faq-item:hover { background: rgba(0,0,0,0.02); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: none; text-align: left; gap: 16px; }
.faq-text { font-size: 19px; font-weight: 600; color: #1d1d1f; }
.faq-icon { width: 20px; height: 20px; color: #6e6e73; flex-shrink: 0; transition: transform 0.3s ease; }
.faq-p { font-size: 17px; color: #6e6e73; padding: 16px 0 0; line-height: 1.7; }




    .anim.from-left {
        transform: translateX(-40px);
    }

    .anim.from-right {
        transform: translateX(40px);
    }

    .anim.from-scale {
        transform: scale(0.93);
    }

    .anim.visible {
        opacity: 1;
        transform: translate(0, 0) scale(1);
        pointer-events: auto;
        visibility: visible !important; /* Force immediate visibility without transition */
    }

    .anim-d2 {
        transition-delay: 0.22s;
    }

    .anim-d3 {
        transition-delay: 0.34s;
    }

    .anim-d4 {
        transition-delay: 0.46s;
    }

    .anim-d5 {
        transition-delay: 0.58s;
    }

    /* ============================================================
       PREMIUM ANIMATIONS — Ambient, Hover, Hero, Interactive
       ============================================================ */

    /* 1. Animated gradient text on hero headline */
    .gradient-anim {
        background: linear-gradient(135deg, #ffffff 0%, #a0c4ff 25%, #cbdbff 50%, #a0c4ff 75%, #ffffff 100%) !important;
        background-size: 200% auto !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        animation: textShimmer 8s linear infinite !important;
    }

    /* Noise texture overlay */
    /* Noise texture overlay - REMOVED */
    .section-dark::after {
        content: none;
    }

    @keyframes textShimmer {
        0% {
            background-position: 200% center;
        }

        100% {
            background-position: -200% center;
        }
    }

    /* 2. Floating ambient orbs in hero background */
    .hero-orb {
        position: absolute;
        border-radius: 50%;
        filter: blur(80px);
        pointer-events: none;
        will-change: transform;
    }

    .hero-orb-1 {
        width: 700px;
        height: 700px;
        background: radial-gradient(circle, rgba(0, 113, 227, 0.22) 0%, transparent 70%);
        top: -150px;
        left: -150px;
        animation: orbFloat1 20s ease-in-out infinite;
    }

    .hero-orb-2 {
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(100, 60, 255, 0.15) 0%, transparent 70%);
        bottom: -100px;
        right: -100px;
        animation: orbFloat2 25s ease-in-out infinite;
    }

    .hero-orb-3 {
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(0, 200, 150, 0.10) 0%, transparent 70%);
        top: 50%;
        right: 15%;
        animation: orbFloat1 22s ease-in-out infinite reverse;
    }

    @keyframes orbFloat1 {

        0%,
        100% {
            transform: translate(0, 0) scale(1);
        }

        33% {
            transform: translate(30px, -40px) scale(1.08);
        }

        66% {
            transform: translate(-20px, 20px) scale(0.96);
        }
    }

    @keyframes orbFloat2 {

        0%,
        100% {
            transform: translate(0, 0) scale(1);
        }

        40% {
            transform: translate(-25px, 30px) scale(1.05);
        }

        80% {
            transform: translate(15px, -20px) scale(0.95);
        }
    }

    /* 3. Methodology step number count-up shimmer */
    .step-number {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0.06) 100%);
        background-size: 200% 100%;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: stepShimmer 4s ease-in-out infinite;
    }

    @keyframes stepShimmer {
        0% {
            background-position: 200% 0;
        }

        100% {
            background-position: -200% 0;
        }
    }

    /* 4. Card hover — lift + blue border glow */
    .hover-lift {
        transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
            box-shadow 0.35s ease;
    }

    .hover-lift:hover {
        transform: translateY(-8px) scale(1.015);
        box-shadow: 0 24px 60px rgba(0, 113, 227, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    /* 5. Primary button persistent glow pulse */
    .apple-btn-primary {
        position: relative;
        overflow: hidden;
    }

    .apple-btn-primary::after {
        content: '';
        position: absolute;
        inset: -3px;
        border-radius: inherit;
        background: linear-gradient(135deg, rgba(0, 113, 227, 0.5), rgba(100, 60, 255, 0.4));
        filter: blur(8px);
        opacity: 0;
        transition: opacity 0.4s ease;
        z-index: -1;
    }

    .apple-btn-primary:hover::after {
        opacity: 1;
    }

    .apple-btn-primary:hover {
        transform: scale(1.04);
        box-shadow: 0 8px 32px rgba(0, 113, 227, 0.35);
    }

    /* 6. Section line reveal (horizontal rule that draws in) */
    .line-reveal {
        display: block;
        height: 1px;
        background: rgba(255, 255, 255, 0.15);
        transform-origin: left;
        transform: scaleX(0);
        transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .line-reveal.visible {
        transform: scaleX(1);
    }

    /* 7. Certificate image parallax glow ring */
    #proof-premium .anim.from-left {
        position: relative;
    }

    #proof-premium .anim.from-left::before {
        content: '';
        position: absolute;
        inset: -20px;
        border-radius: 32px;
        background: radial-gradient(ellipse at center, rgba(0, 113, 227, 0.12) 0%, transparent 70%);
        pointer-events: none;
        animation: certGlow 5s ease-in-out infinite;
    }

    @keyframes certGlow {

        0%,
        100% {
            opacity: 0.6;
            transform: scale(1);
        }

        50% {
            opacity: 1;
            transform: scale(1.04);
        }
    }

    /* Step card — static border, transform-only hover */
    .step-card {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        padding-top: 32px;
        transition: transform 0.4s var(--apple-ease); /* Solo transform */
        will-change: transform;
    }

    .step-card:hover {
        transform: translateY(-4px); /* Animación compuesta */
    }

    .section-dark .step-card:hover {
        border-top-color: #0071e3; /* Color es seguro, pero border-width no lo sería */
    }


    .step-number {
        margin-bottom: 24px !important;
        display: block;
        min-height: 48px;
    }


    /* 8. FAQ item hover highlight */
    .faq-item {
        transition: background 0.3s ease;
        cursor: pointer;
        user-select: none;
    }

    .faq-item:hover {
        background: rgba(0, 113, 227, 0.04);
    }

    /* 9. Stats strip number glow on visibility */
    #statCourses {
        transition: opacity 0.5s ease;
    }

    /* 10. Hero section background noise texture overlay */
    #inicio::after {
        content: '';
        position: absolute;
        inset: 0;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
        opacity: 0.03;
        pointer-events: none;
        z-index: 0;
    }

    #inicio .section-inner {
        position: relative;
        z-index: 1;
    }

    /* ============================================================
       DIVIDER
       ============================================================ */
    .apple-divider {
        border: none;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        margin: 0;
    }

    .section-dark .apple-divider {
        border-top-color: rgba(255, 255, 255, 0.08);
    }


    /* Grid Accordion Animation */
    .faq-answer {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
    }

    .faq-item.faq-open .faq-answer {
        grid-template-rows: 1fr;
        opacity: 1;
    }

    .faq-answer>div {
        overflow: hidden;
    }

    /* Icon rotation controlled by class */
    .faq-question i,
    .faq-question svg {
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .faq-item.faq-open .faq-question i,
    .faq-item.faq-open .faq-question svg {
        transform: rotate(45deg);
    }

    .faq-question {
        outline: none !important;
        -webkit-tap-highlight-color: transparent;
    }



    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-100px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes pulse {

        0%,
        100% {
            transform: scale(1);
            opacity: 1;
        }

        50% {
            transform: scale(1.3);
            opacity: 0.7;
        }
    }

    @keyframes float {

        0%,
        100% {
            transform: translateY(0) scale(1);
        }

        50% {
            transform: translateY(-30px) scale(1.1);
        }
    }

    @keyframes floatReverse {

        0%,
        100% {
            transform: translateY(0) scale(1.1);
        }

        50% {
            transform: translateY(20px) scale(1);
        }
    }

    .animate-fadeInUp {
        animation: fadeInUp 0.6s ease-out forwards;
    }

    .animate-fadeInRight {
        animation: fadeInRight 0.8s ease-out forwards;
    }

    .animate-slideDown {
        animation: slideDown 0.6s ease-out forwards;
    }

    .delay-100 {
        animation-delay: 0.1s;
        opacity: 0;
    }

    .delay-200 {
        animation-delay: 0.2s;
        opacity: 0;
    }

    .delay-300 {
        animation-delay: 0.3s;
        opacity: 0;
    }

    .delay-400 {
        animation-delay: 0.4s;
        opacity: 0;
    }

    .delay-500 {
        animation-delay: 0.5s;
        opacity: 0;
    }

    .delay-600 {
        animation-delay: 0.6s;
        opacity: 0;
    }

    .delay-700 {
        animation-delay: 0.7s;
        opacity: 0;
    }

    .navbar {
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 1000;
        background: transparent;
        backdrop-filter: blur(0px);
        transition: all 0.5s cubic-bezier(0.28, 0.11, 0.32, 1);
        border-bottom: 1px solid transparent;
        height: 80px; /* Unificado con el contenedor de la navbar */
    }

    .navbar.scrolled {
        background: #ffffff;
        border-bottom: 1px solid #e5e5e7;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    }

    .navbar-inner {
        max-width: 1280px;
        margin: 0 auto;
        padding: 16px 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    @media (max-width: 1280px) {
        .navbar-inner {
            padding: 16px 16px;
        }
    }

    @media (max-width: 1200px) {
        .nav-links {
            gap: 18px !important;
        }
    }

    .logo {
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        background: linear-gradient(135deg, var(--blue-600), var(--purple-600));
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo-icon svg {
        width: 20px;
        height: 20px;
        color: white;
    }

    .logo-img {
        width: 165px; /* Dimensión exacta de PageSpeed */
        height: 56px;
        flex-shrink: 0;
        display: block;
        object-fit: contain; /* Mantener proporciones sin saltos */
    }
    
    .logo-text {
        font-size: 14px;
        font-weight: 500;
        color: var(--gray-900);
    }

    .logo-text strong {
        font-weight: 700;
    }

    .logo-text .accent {
        color: var(--blue-600);
        margin-left: 8px;
    }

    .nav-links {
        display: flex;
        align-items: center;
        gap: 32px;
        list-style: none;
    }

    .nav-link {
        position: relative;
        font-size: 14px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        padding: 8px 0;
        transition: all 0.4s ease;
    }

    .navbar.scrolled .nav-link {
        color: #1d1d1f;
    }

    html.dark .navbar.scrolled .nav-link,
    .dark .navbar.scrolled .nav-link {
        color: rgba(255, 255, 255, 0.85);
    }

    .nav-link:hover {
        color: #ffffff;
    }

    .navbar.scrolled .nav-link:hover {
        color: #0071e3;
    }

    html.dark .navbar.scrolled .nav-link:hover,
    .dark .navbar.scrolled .nav-link:hover {
        color: #0a84ff;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--blue-600);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(-50%);
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 100%;
    }

    /* Auth Header Back Link */
    .nav-link-back {
        font-size: 14px;
        font-weight: 600;
        color: #6e6e73;
        text-decoration: none;
        padding: 8px 16px;
        border-radius: 980px;
        background: rgba(0, 0, 0, 0.05);
        transition: all 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .nav-link-back:hover {
        background: rgba(0, 0, 0, 0.1);
        color: #1d1d1f;
        transform: translateX(-4px);
    }

    .nav-link-back::before {
        content: '←';
        font-size: 16px;
        line-height: 1;
    }

    .nav-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .btn-link {
        padding: 10px 24px;
        font-size: 14px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        transition: all 0.3s;
    }

    .navbar.scrolled .btn-link {
        color: var(--blue-600);
    }

    .btn-link:hover {
        color: #ffffff;
        transform: scale(1.05);
    }

    .navbar.scrolled .btn-link:hover {
        color: var(--blue-700);
    }

    .btn-primary {
        padding: 10px 24px;
        font-size: 14px;
        font-weight: 600;
        color: white;
        background: var(--blue-600);
        border: none;
        border-radius: 12px;
        text-decoration: none;
        cursor: pointer;
        transition: all 0.3s;
        box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    }

    .btn-primary:hover {
        background: var(--blue-700);
        transform: scale(1.05) translateY(-2px);
    }

    /* === HERO SECTION === */
    .hero {
        position: relative;
        background: var(--white);
        overflow: hidden;
        padding: 80px 0 100px;
    }

    .hero-bg-circle-1 {
        position: absolute;
        top: 0;
        right: 0;
        width: 600px;
        height: 600px;
        background: var(--blue-50);
        border-radius: 50%;
        filter: blur(80px);
        opacity: 0.3;
        animation: float 15s ease-in-out infinite;
    }

    .hero-bg-circle-2 {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 500px;
        height: 500px;
        background: var(--purple-50);
        border-radius: 50%;
        filter: blur(80px);
        opacity: 0.2;
        animation: floatReverse 12s ease-in-out infinite;
    }

    .hero-inner {
        position: relative;
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 24px;
    }

    .hero-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 64px;
        align-items: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    /* Live Badge */
    .live-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        background: var(--red-500);
        color: white;
        border-radius: 50px;
        font-size: 14px;
        font-weight: 600;
        width: fit-content;
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
        transition: transform 0.3s;
    }

    .live-badge:hover {
        transform: scale(1.05);
    }

    .live-dot {
        width: 8px;
        height: 8px;
        background: white;
        border-radius: 50%;
        animation: pulse 2s infinite;
    }

    /* Hero Title */
    .hero-title {
        font-size: clamp(40px, 6vw, 72px);
        font-weight: 900;
        line-height: 1.1;
        color: var(--gray-900);
    }

    .hero-title .gradient-text {
        background: linear-gradient(135deg, var(--blue-600), var(--purple-600), var(--blue-600));
        background-size: 200% 200%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .hero-subtitle {
        font-size: 20px;
        color: var(--gray-600);
        max-width: 520px;
        line-height: 1.7;
    }

    .hero-subtitle .accent {
        color: var(--blue-600);
        font-weight: 600;
    }

    /* Hero Buttons */
    .hero-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
    }

    .btn-hero {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 16px 32px;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 700;
        text-decoration: none;
        cursor: pointer;
        transition: all 0.3s;
    }

    .btn-hero-primary {
        background: var(--blue-600);
        color: white;
        border: none;
        box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
    }

    .btn-hero-primary:hover {
        background: var(--blue-700);
        transform: scale(1.05) translateY(-2px);
    }

    .btn-hero-secondary {
        background: white;
        color: var(--gray-900);
        border: 2px solid var(--gray-200);
    }

    .btn-hero-secondary:hover {
        border-color: var(--blue-600);
        color: var(--blue-600);
        transform: scale(1.05) translateY(-2px);
    }

    /* Hero Stats */
    .hero-stats {
        display: flex;
        gap: 48px;
        padding-top: 16px;
    }

    .stat-item {
        cursor: pointer;
        transition: transform 0.3s;
    }

    .stat-item:hover {
        transform: translateY(-5px);
    }

    .stat-value {
        font-size: 32px;
        font-weight: 900;
        color: var(--gray-900);
    }

    .stat-label {
        font-size: 14px;
        color: var(--gray-600);
    }

    /* Hero Image */
    .hero-image-wrapper {
        position: relative;
    }

    .hero-image-container {
        position: relative;
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
        transition: transform 0.3s;
    }

    .hero-image-container:hover {
        transform: scale(1.02);
    }

    .hero-image-container img {
        width: 100%;
        height: auto;
        display: block;
    }

    .hero-image-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(37, 99, 235, 0.1), transparent);
        pointer-events: none;
    }

    /* Stats Cards below image */
    .hero-stats-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-top: 24px;
    }

    .stat-card {
        background: white;
        border-radius: 12px;
        padding: 16px;
        text-align: center;
        border: 1px solid var(--gray-100);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        transition: all 0.3s;
    }

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    }

    .stat-card-value {
        font-size: 24px;
        font-weight: 900;
    }

    .stat-card-value.blue {
        color: var(--blue-600);
    }

    .stat-card-value.purple {
        color: var(--purple-600);
    }

    .stat-card-value.green {
        color: var(--green-600);
    }

    .stat-card-label {
        font-size: 12px;
        color: var(--gray-600);
    }

    /* === FEATURES SECTION === */
    .features {
        padding: 100px 0;
        background: var(--white);
    }

    .features-inner {
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 24px;
    }

    .section-header {
        text-align: center;
        margin-bottom: 64px;
    }

    .section-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        background: var(--blue-50);
        color: var(--blue-600);
        border-radius: 50px;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 24px;
        transition: transform 0.3s;
    }

    .section-badge:hover {
        transform: scale(1.05);
    }

    .section-title {
        font-size: clamp(32px, 4vw, 48px);
        font-weight: 900;
        color: var(--gray-900);
        margin-bottom: 16px;
    }

    .section-title .gradient-text {
        background: linear-gradient(135deg, var(--blue-600), var(--purple-600));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .section-subtitle {
        font-size: 20px;
        color: var(--gray-600);
        max-width: 640px;
        margin: 0 auto;
    }

    .features-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
    }

    .feature-card {
        background: white;
        border-radius: 20px;
        padding: 32px;
        border: 1px solid var(--gray-100);
        transition: all 0.4s;
        height: 100%;
    }

    .feature-card:hover {
        transform: translateY(-10px);
        border-color: var(--gray-200);
        box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
    }

    .feature-icon {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 24px;
        transition: all 0.4s;
    }

    .feature-icon svg {
        width: 28px;
        height: 28px;
    }

    .feature-card:hover .feature-icon {
        transform: rotate(360deg) scale(1.1);
    }

    .feature-icon.blue {
        background: var(--blue-50);
        color: var(--blue-600);
    }

    .feature-card:hover .feature-icon.blue {
        background: var(--blue-600);
        color: white;
    }

    .feature-icon.purple {
        background: var(--purple-50);
        color: var(--purple-600);
    }

    .feature-card:hover .feature-icon.purple {
        background: var(--purple-600);
        color: white;
    }

    .feature-icon.green {
        background: var(--green-50);
        color: var(--green-600);
    }

    .feature-card:hover .feature-icon.green {
        background: var(--green-600);
        color: white;
    }

    .feature-icon.orange {
        background: var(--orange-50);
        color: var(--orange-600);
    }

    .feature-card:hover .feature-icon.orange {
        background: var(--orange-600);
        color: white;
    }

    .feature-title {
        font-size: 20px;
        font-weight: 700;
        color: var(--gray-900);
        margin-bottom: 12px;
    }

    .feature-desc {
        font-size: 15px;
        color: var(--gray-600);
        line-height: 1.6;
    }

    /* === COURSES SECTION === */
    .courses {
        padding: 100px 0;
        background: var(--gray-50);
    }

    .courses-inner {
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 24px;
    }

    .courses-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        background: white;
        color: var(--gray-900);
        border-radius: 50px;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 24px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        border: 1px solid var(--gray-100);
    }

    .courses-badge i {
        color: var(--blue-600);
    }

    .courses-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 32px;
        margin-bottom: 48px;
    }



    .course-image {
        position: relative;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    }

    .course-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s;
    }

    .course-card:hover .course-image img {
        transform: scale(1.1);
    }





    /* === DASHBOARD STYLE COURSE CARD === */
    .course-card {
        background: white;
        border-radius: 16px;
        overflow: hidden;
        border: 1px solid var(--gray-200);
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        height: 100%;
        cursor: pointer;
        position: relative;
    }

    .course-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        /* Premium Shadow */
        border-color: var(--blue-200);
    }

    .course-image {
        aspect-ratio: 16 / 9;
        width: 100%;
        background-color: var(--gray-100);
        position: relative;
        overflow: hidden;
    }

    .course-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

    .course-card:hover .course-image img {
        transform: scale(1.06);
    }

    /* Badges - Premium Glassmorphism */
    .course-badges {
        position: absolute;
        top: 10px;
        left: 10px;
        right: 10px;
        display: flex;
        justify-content: space-between;
        pointer-events: none;
        z-index: 10;
        gap: 6px;
    }

    .badge-group-left,
    .badge-group-right {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
    }

    .badge {
        padding: 3px 8px;
        border-radius: 6px;
        font-size: 9px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        display: inline-flex;
        align-items: center;
        gap: 3px;
        background: #ffffff;
        border: 1px solid #e5e5e7;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
        white-space: nowrap;
    }

    /* Level Badge Style */
    .badge-level {
        background: #f8f9fa;
        color: #1e293b;
    }

    .badge-level.junior,
    .badge-level.basico {
        border-left: 3px solid #3b82f6;
    }

    .badge-level.mid,
    .badge-level.intermedio {
        border-left: 3px solid #a855f7;
    }

    .badge-level.senior,
    .badge-level.avanzado {
        border-left: 3px solid #f59e0b;
    }

    /* Special Badges - Vibrant Gradiente */
    .badge-status.en-clase {
        background: linear-gradient(135deg, #ef4444, #dc2626);
        color: white;
        border: none;
    }

    .badge-status.inscripciones {
        background: linear-gradient(135deg, #10b981, #059669);
        color: white;
        border: none;
    }

    .badge-oferta {
        background: linear-gradient(135deg, #fbbf24, #f59e0b);
        color: #78350f;
        border: 1px solid rgba(255, 255, 255, 0.4);
        font-weight: 900;
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    }

    .badge-urgent {
        background: rgba(239, 68, 68, 0.9);
        color: white;
        animation: pulse-premium 2s infinite;
    }

    /* Free Overlay */
    .free-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
        padding: 16px;
        padding-top: 32px;
        display: flex;
        align-items: flex-end;
        z-index: 5;
    }

    .free-tag {
        background: #10b981;
        color: white;
        font-size: 9px;
        font-weight: 800;
        padding: 3px 8px;
        border-radius: 4px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .course-content {
        padding: 24px;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        gap: 12px;
    }

    .course-top-meta {
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--blue-600);
        letter-spacing: 0.5px;
    }

    .course-title {
        font-size: 18px;
        font-weight: 800;
        color: var(--gray-900);
        margin: 0;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .course-desc {
        font-size: 13px;
        color: var(--gray-500);
        line-height: 1.6;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Price Section - High Contrast */
    .course-price-container {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .course-price-label {
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        color: #64748b;
        letter-spacing: 0.5px;
    }

    .course-price {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .price-original {
        font-size: 0.85rem;
        color: #94a3b8;
        text-decoration: line-through;
        font-weight: 500;
        line-height: 1;
    }

    .price-final {
        font-size: 1.5rem;
        font-weight: 900;
        color: #0f172a;
        line-height: 1.1;
        letter-spacing: -0.5px;
    }

    .price-final.discounted {
        color: #16a34a;
    }

    /* Card Footer */
    .course-footer {
        margin-top: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 20px;
        border-top: 1px solid #f1f5f9;
    }

    .btn-course {
        padding: 12px 24px;
        background: #0071e3;
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
    }

    .btn-course:hover {
        background: #0077ed;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 113, 227, 0.3);
    }

    @keyframes pulse-premium {

        0%,
        100% {
            transform: scale(1);
            opacity: 1;
        }

        50% {
            transform: scale(1.05);
            opacity: 0.9;
        }
    }

    /* Free Overlay */
    .free-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
        padding: 16px;
        padding-top: 32px;
        display: flex;
        align-items: flex-end;
        z-index: 5;
    }

    .free-tag {
        background: #10b981;
        color: white;
        font-size: 9px;
        font-weight: 800;
        padding: 3px 8px;
        border-radius: 4px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .course-content {
        padding: 24px;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        gap: 12px;
    }

    .course-top-meta {
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--blue-600);
        letter-spacing: 0.5px;
    }

    .course-title {
        font-size: 18px;
        font-weight: 800;
        color: var(--gray-900);
        margin: 0;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .course-desc {
        font-size: 13px;
        color: var(--gray-500);
        line-height: 1.6;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Price Section - High Contrast */
    .course-price-container {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .course-price-label {
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        color: #64748b;
        letter-spacing: 0.5px;
    }

    .course-price {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .price-original {
        font-size: 0.85rem;
        color: #94a3b8;
        text-decoration: line-through;
        font-weight: 500;
        line-height: 1;
    }

    .price-final {
        font-size: 1.5rem;
        font-weight: 900;
        color: #0f172a;
        line-height: 1.1;
        letter-spacing: -0.5px;
    }

    .price-final.discounted {
        color: #16a34a;
        /* Vibrant Green for discounts */
    }

    /* Card Footer Improvements */
    .course-footer {
        margin-top: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 20px;
        border-top: 1px solid #f1f5f9;
    }

    .btn-course {
        padding: 12px 24px;
        background: #2563eb;
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    }

    .btn-course:hover {
        background: #1d4ed8;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    }

    .btn-view-all {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        padding: 16px 32px;
        background: var(--blue-600);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        text-decoration: none;
        transition: all 0.3s;
        box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
    }

    .btn-view-all:hover {
        background: var(--blue-700);
        transform: scale(1.05) translateY(-2px);
    }

    /* === CTA SECTION === */
    .cta {
        padding: 100px 0;
        background: linear-gradient(135deg, var(--blue-600), var(--purple-600), var(--blue-600));
        position: relative;
        overflow: hidden;
    }

    .cta-bg-circle {
        position: absolute;
        top: 0;
        right: 0;
        width: 400px;
        height: 400px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        filter: blur(80px);
        animation: float 10s ease-in-out infinite;
    }

    .cta-inner {
        position: relative;
        max-width: 800px;
        margin: 0 auto;
        padding: 0 24px;
        text-align: center;
        z-index: 1;
    }

    .cta-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(12px);
        color: white;
        border-radius: 50px;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 32px;
        transition: transform 0.3s;
    }

    .cta-badge:hover {
        transform: scale(1.05);
    }

    .cta-badge i {
        color: #fbbf24;
    }

    .cta-title {
        font-size: clamp(32px, 4vw, 48px);
        font-weight: 900;
        color: white;
        margin-bottom: 24px;
    }

    .cta-subtitle {
        font-size: 20px;
        color: rgba(255, 255, 255, 0.9);
        max-width: 600px;
        margin: 0 auto 40px;
    }

    .cta-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }

    .btn-cta-white {
        padding: 20px 40px;
        background: white;
        color: var(--blue-600);
        border: none;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 900;
        cursor: pointer;
        text-decoration: none;
        transition: all 0.3s;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }

    .btn-cta-white:hover {
        transform: scale(1.05) translateY(-2px);
    }

    .btn-cta-outline {
        padding: 20px 40px;
        background: transparent;
        color: white;
        border: 2px solid white;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        text-decoration: none;
        transition: all 0.3s;
    }

    .btn-cta-outline:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(1.05) translateY(-2px);
    }

    /* === FOOTER === */
    .footer {
        background: white;
        border-top: 1px solid var(--gray-100);
        padding: 48px 0 24px;
    }

    .footer-inner {
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 24px;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 48px;
        margin-bottom: 32px;
    }

    .footer-brand {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 16px;
    }

    .footer-brand-icon {
        width: 32px;
        height: 32px;
        background: linear-gradient(135deg, var(--blue-600), var(--purple-600));
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer-brand-icon svg {
        width: 18px;
        height: 18px;
        color: white;
    }

    .footer-brand-text {
        font-size: 18px;
        font-weight: 700;
        color: var(--gray-900);
    }

    .footer-desc {
        font-size: 14px;
        color: var(--gray-600);
        line-height: 1.6;
    }

    .footer-title {
        font-size: 15px;
        font-weight: 700;
        color: var(--gray-900);
        margin-bottom: 20px;
    }

    .footer-links {
        list-style: none;
    }

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        font-size: 14px;
        color: var(--gray-600);
        text-decoration: none;
        transition: all 0.3s;
    }

    .footer-links a:hover {
        color: var(--blue-600);
        transform: translateX(3px);
        display: inline-block;
    }

    .footer-bottom {
        padding-top: 24px;
        border-top: 1px solid var(--gray-100);
        text-align: center;
        font-size: 13px;
        color: var(--gray-600);
    }

    /* === RESPONSIVE === */
    @media (max-width: 1024px) {
        .hero-grid {
            grid-template-columns: 1fr;
            text-align: center;
        }

        .hero-content {
            align-items: center;
        }

        .hero-subtitle {
            margin: 0 auto;
        }

        .hero-buttons {
            justify-content: center;
        }

        .hero-stats {
            justify-content: center;
        }

        .hero-image-wrapper {
            max-width: 600px;
            margin: 0 auto;
        }

        .features-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .courses-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .footer-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 32px;
        }
    }

    @media (max-width: 768px) {
        .nav-links {
            display: none;
        }

        .features-grid {
            grid-template-columns: 1fr;
        }

        .courses-grid {
            grid-template-columns: 1fr;
        }

        .cta-buttons {
            flex-direction: column;
            align-items: center;
        }

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

    /* Loading spinner */
    .spinner {
        width: 40px;
        height: 40px;
        border: 3px solid var(--gray-200);
        border-top-color: var(--blue-600);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto;
    }

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

    /* Mobile menu */
    .nav-toggle {
        display: none;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        background: none;
        border: none;
        padding: 8px;
    }

    .nav-toggle span {
        width: 24px;
        height: 2px;
        background: var(--gray-900);
        border-radius: 2px;
        transition: 0.3s;
    }

    @media (max-width: 768px) {
        .nav-toggle {
            display: flex;
        }
    }

    /* === RESPONSIVE STYLES === */
    @media (max-width: 968px) {
        .hero-grid {
            grid-template-columns: 1fr;
            gap: 48px;
            text-align: center;
        }

        .hero-content {
            align-items: center;
        }

        .hero-subtitle {
            margin: 0 auto;
        }

        .hero-stats {
            justify-content: center;
        }

        .hero-image-wrapper {
            max-width: 600px;
            margin: 0 auto;
        }
    }

    @media (max-width: 768px) {

        /* Navbar Mobile */
        .navbar-inner {
            flex-wrap: wrap;
        }

        .nav-links {
            width: 100%;
            flex-direction: column;
            gap: 16px;
            display: none;
            order: 3;
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px solid var(--gray-100);
        }

        .nav-actions {
            width: 100%;
            flex-direction: column;
            gap: 12px;
            display: none;
            order: 4;
            margin-bottom: 8px;
        }

        .nav-links.active,
        .nav-actions.active {
            display: flex;
            animation: slideDown 0.3s ease-out;
        }

        .btn-link,
        .btn-primary {
            width: 100%;
            text-align: center;
            justify-content: center;
        }

        /* Hero Mobile */
        .hero-title {
            font-size: 40px;
        }

        .hero-stats {
            flex-direction: column;
            gap: 32px;
        }

        .stat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        /* === MOBILE VISUAL ENHANCEMENTS === */

        /* Snappier animations for mobile (less floaty) */
        .reveal {
            transform: translateY(20px);
        }

        /* Tactile Feedback (Touch Press Effect) */
        .course-card:active,
        .btn-primary:active,
        .btn-hero-primary:active,
        .btn-hero-secondary:active,
        .cta-buttons .btn:active {
            transform: scale(0.96) !important;
            transition: transform 0.1s ease-out;
        }

        /* Density Improvements */
        .hero,
        .features,
        .courses,
        .cta,
        .faq-section {
            padding: 60px 0 !important;
        }

        /* Fix Background Distractions */
        .hero-bg-circle-1,
        .hero-bg-circle-2 {
            opacity: 0.15;
            filter: blur(60px);
        }
    }

    /* =============================================================
       APPLE SECTIONS \u2014 MOBILE (≤ 768px)
       ============================================================= */
    @media (max-width: 768px) {

        .section-inner {
            padding: 80px 24px 60px;
        }

        #inicio .section-inner {
            padding-top: 110px;
            padding-bottom: 60px;
        }

        .apple-headline {
            font-size: clamp(32px, 9vw, 52px) !important;
        }

        .apple-subheadline {
            font-size: 17px !important;
        }

        /* Hero orbs: shrink */
        .hero-orb {
            width: 220px !important;
            height: 220px !important;
            animation-duration: 14s !important;
        }

        /* Hero buttons: stack */
        #inicio div[style*="display: flex"][style*="justify-content: center"] {
            flex-direction: column;
            align-items: stretch;
            gap: 12px !important;
        }

        /* Hero stats strip: tighten gap */
        #inicio div[style*="margin-top: 80px"] {
            gap: 32px !important;
            margin-top: 48px !important;
        }

        /* Methodology: 3-col → 1-col stacked */
        .steps-grid {
            grid-template-columns: 1fr !important;
            gap: 0 !important;
        }

        .step-card {
            padding: 28px 0 !important;
            border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
            border-right: none !important;
        }

        /* Platform + Certificate: 2-col → 1-col stacked */
        .two-col-grid {
            grid-template-columns: 1fr !important;
            gap: 48px !important;
        }

        /* Certificate KPI cards: 3-col \u2192 1-col */
        #proof-premium div[style*="grid-template-columns:repeat(3,1fr)"] {
            grid-template-columns: 1fr !important;
        }

        /* Remove right border, add bottom border on KPI cells */
        #proof-premium div[style*="border-right:1px solid #e0e0e5"] {
            border-right: none !important;
            border-bottom: 1px solid #e0e0e5 !important;
        }

        /* Apple buttons full-width on mobile */
        .apple-btn-primary,
        .apple-btn-ghost {
            width: 100%;
            justify-content: center;
            text-align: center;
            box-sizing: border-box;
        }

        /* Footer: collapse to 2-col */
        footer div[style*="grid-template-columns:2fr"] {
            grid-template-columns: 1fr 1fr !important;
            gap: 40px !important;
        }

        /* Hide noise texture on mobile (performance) */
        #inicio::after {
            display: none;
        }

        /* Courses: Carousel on mobile */
        .courses-grid {
            display: flex !important;
            overflow-x: auto !important;
            gap: 20px !important;
            padding-bottom: 24px !important;
            margin: 0 -24px !important;
            padding: 0 24px !important;
            scroll-snap-type: x mandatory !important;
            -webkit-overflow-scrolling: touch;
            grid-template-columns: none !important;
        }

        .courses-grid::-webkit-scrollbar {
            display: none;
        }

        .course-card {
            flex: 0 0 calc(100vw - 80px) !important;
            max-width: 340px !important;
            scroll-snap-align: center !important;
        }
    }

    @media (max-width: 480px) {

        .section-inner {
            padding: 72px 20px 48px;
        }

        #inicio .section-inner {
            padding-top: 90px;
        }

        /* Footer: full single column */
        footer div[style*="grid-template-columns:2fr"] {
            grid-template-columns: 1fr !important;
        }
    }
    /* ============================================================
       STABILITY FIXES (CLS)
       ============================================================ */
    .course-image {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        background: #f1f5f9;
        overflow: hidden;
    }
    .course-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    /* ============================================================
       STABILITY FIXES (CLS) - FINAL SURGERY
       ============================================================ */
    .logo-img {
        width: 165px !important;
        height: 56px !important;
        flex-shrink: 0 !important;
        object-fit: contain !important;
        display: block !important;
    }

    /* Reserve space for animations to prevent content shifting */
    .anim {
        visibility: hidden;
        min-height: 20px; /* Pre-reserve minimum space */
    }
    
    .anim.visible {
        visibility: visible;
    }

    /* Font display swap already handled at top, but forced here for safety */
    html {
        font-display: swap;
    }
    .loading-state {
        min-height: 480px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: radial-gradient(circle at center, #ffffff 0%, #f8fafc 100%);
    }

/* ============================================================
   HONESTIA PREMIUM COURSE CARDS (PSYCHOLOGY-DRIVEN)
   ============================================================ */
.course-card-premium {
    border-radius: 24px !important;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
    background: #ffffff !important;
}

.course-card-premium:hover {
    transform: translateY(-8px) scale(1.01) !important;
    /* Sharp multi-layered shadow (Anti-blur) */
    box-shadow: 
        0 10px 20px -5px rgba(0, 0, 0, 0.05),
        0 20px 40px -10px rgba(0, 0, 0, 0.08) !important;
}

.instructor-avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #64748b;
    font-size: 14px;
    overflow: hidden;
}

.star-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #fbbf24; /* Amber-400 */
    font-size: 11px;
    font-weight: 700;
}

.price-label-premium {
    font-size: 8px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3em !important;
    color: #94a3b8 !important;
    margin-bottom: 6px;
}

.btn-premium-blue {
    background: linear-gradient(135deg, #2563eb, #1e40af) !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    padding: 12px 32px !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 20px -6px rgba(37, 99, 235, 0.35) !important;
    border: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-premium-blue:hover {
    transform: translateY(-3px) scale(1.03) !important;
    box-shadow: 0 20px 30px -8px rgba(37, 99, 235, 0.45) !important;
    filter: brightness(1.1);
}

.price-value-gratis {
    color: #10b981 !important; /* Emerald 500 */
    font-weight: 900 !important;
    font-size: 1.5rem !important;
    letter-spacing: -0.02em;
    animation: emeraldPulse 3s ease-in-out infinite;
}

@keyframes emeraldPulse {
    0%, 100% { opacity: 1; filter: drop-shadow(0 0 0px rgba(16, 185, 129, 0)); }
    50% { opacity: 0.9; filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.3)); }
}

.price-anchor {
    font-size: 0.85rem !important;
    color: #94a3b8 !important;
    text-decoration: line-through !important;
    font-weight: 500 !important;
    margin-right: 8px;
}

.price-final {
    font-weight: 900 !important;
    font-size: 1.5rem !important;
    color: #2563eb !important;
    letter-spacing: -0.02em;
}
