:root {
            --primary-color: #3f51b5; /* Índigo principal */
            --primary-dark: #303f9f;
            --primary-light: #7986cb;
            --accent-color: #ffd700; /* Dorado para acentos */
            --text-light: #ffffff;
            --text-dark: #212121;
            --background-dark: #1a237e;
            --background-gradient: linear-gradient(135deg, #1a237e 0%, #3f51b5 50%, #7986cb 100%);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Poppins', sans-serif;
            background-color: var(--background-dark);
            color: var(--text-light);
            overflow-x: hidden;
        }
        
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Header y navegación */
        header {
            background-color: rgba(0, 0, 0, 0.5);
            padding: 15px 0;
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 100;
            backdrop-filter: blur(10px);
        }

        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            font-size: 20px;
            font-weight: 600;
            color: var(--text-light);
            text-decoration: none;
            display: flex;
            align-items: center;
            font-family: 'Inter', sans-serif;
            letter-spacing: -0.5px;
            text-transform: none;
        }
        
        .logo i {
            color: var(--accent-color);
            margin-right: 8px;
            font-size: 22px;
        }
        
        .nav-links {
            display: flex;
            gap: 20px;
        }

        .nav-links a {
            color: var(--text-light);
            text-decoration: none;
            font-weight: 500;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        .nav-links a:hover {
            color: var(--accent-color);
        }

        .btn {
            background-color: var(--primary-color);
            color: var(--text-light);
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .btn:hover {
            background-color: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }

        .btn-accent {
            background-color: var(--accent-color);
            color: var(--text-dark);
        }

        .btn-accent:hover {
            background-color: #e6c200;
        }

        /* Hero Section */
        .hero {
            height: auto;
            min-height: 100vh;
            background: var(--background-gradient);
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
            padding: 120px 0 80px;
        }
        
        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('https://images.unsplash.com/photo-1516321497487-e288fb19713f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
            background-size: cover;
            background-position: center;
            opacity: 0.2;
            z-index: 0;
        }
        
        .hero-content {
            position: relative;
            z-index: 1;
            max-width: 600px;
            margin-bottom: 50px;
        }
        
        .hero h1 {
            font-size: 3.5rem;
            margin-bottom: 20px;
            line-height: 1.2;
        }
        
        .hero p {
            font-size: 1.2rem;
            margin-bottom: 30px;
            line-height: 1.6;
        }
        
        .hero-btns {
            display: flex;
            gap: 15px;
        }

        /* Animación para el título */
        .glowing-text {
            animation: glow 2s ease-in-out infinite alternate;
        }

        @keyframes glow {
            from {
                text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
            }
            to {
                text-shadow: 0 0 20px rgba(255, 215, 0, 1), 0 0 30px rgba(255, 215, 0, 0.7);
            }
        }

        /* Estilos para el formulario de login/registro */
        .auth-container {
            position: relative;
            z-index: 10;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(10px);
            max-width: 400px;
            border-radius: 10px;
            padding: 30px;
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .tabs {
            display: flex;
            margin-bottom: 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .tab {
            padding: 10px 20px;
            cursor: pointer;
            flex: 1;
            text-align: center;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .tab.active {
            color: var(--accent-color);
            border-bottom: 3px solid var(--accent-color);
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
        }

        .form-group input {
            width: 100%;
            padding: 12px;
            border: none;
            border-radius: 5px;
            background-color: rgba(255, 255, 255, 0.1);
            color: var(--text-light);
            font-size: 16px;
        }

        .form-group input:focus {
            outline: 2px solid var(--accent-color);
            background-color: rgba(255, 255, 255, 0.2);
        }

        .form-footer {
            text-align: center;
            margin-top: 15px;
            font-size: 0.9rem;
        }

        .form-footer a {
            color: var(--accent-color);
            text-decoration: none;
        }

        /* Sección de Programas */
        .programs-section {
            padding: 100px 0;
            background-color: #141b41;
        }

        .section-title {
            text-align: center;
            margin-bottom: 60px;
        }

        .section-title h2 {
            font-size: 2.5rem;
            margin-bottom: 15px;
            position: relative;
            display: inline-block;
        }

        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 70px;
            height: 3px;
            background-color: var(--accent-color);
        }

        .program-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

        .program-card {
            background-color: rgba(63, 81, 181, 0.1);
            border-radius: 10px;
            overflow: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .program-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
        }

        .program-header {
            background: var(--background-gradient);
            padding: 20px;
            text-align: center;
        }

        .program-header h3 {
            font-size: 1.5rem;
            margin-bottom: 10px;
        }

        .program-body {
            padding: 20px;
        }

        .program-body ul {
            list-style: none;
        }

        .program-body li {
            padding: 12px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            position: relative;
            padding-left: 25px;
        }

        .program-body li::before {
            content: '\f00c';
            font-family: 'Font Awesome 5 Free';
            font-weight: 900;
            color: var(--accent-color);
            position: absolute;
            left: 0;
        }

        .program-body li:last-child {
            border-bottom: none;
        }

        .program-footer {
            padding: 20px;
            text-align: center;
        }

        /* Sección de características */
        .features {
            padding: 100px 0;
            background-color: #1a1a2e;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
        }

        .feature-card {
            background-color: rgba(63, 81, 181, 0.1);
            border-radius: 10px;
            padding: 30px;
            text-align: center;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            background-color: rgba(63, 81, 181, 0.2);
        }

        .feature-icon {
            font-size: 40px;
            color: var(--accent-color);
            margin-bottom: 20px;
        }

        .feature-card h3 {
            font-size: 1.5rem;
            margin-bottom: 15px;
        }

        /* Testimonios */
        .testimonials {
            padding: 100px 0;
            background: var(--background-gradient);
            position: relative;
        }

        .testimonials::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('https://images.unsplash.com/photo-1501877008226-4fca48ee50c1?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80');
            background-size: cover;
            background-position: center;
            opacity: 0.2;
            z-index: 0;
        }

        .testimonial-slider {
            position: relative;
            z-index: 1;
            max-width: 800px;
            margin: 0 auto;
        }

        .testimonial-item {
            text-align: center;
            padding: 20px;
        }

        .testimonial-avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            overflow: hidden;
            margin: 0 auto 20px;
            border: 3px solid var(--accent-color);
        }

        .testimonial-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .testimonial-content {
            font-size: 1.1rem;
            line-height: 1.8;
            margin-bottom: 20px;
            position: relative;
            padding: 0 30px;
        }

        .testimonial-content::before,
        .testimonial-content::after {
            content: '"';
            font-size: 4rem;
            position: absolute;
            color: var(--accent-color);
            opacity: 0.3;
            font-family: Georgia, serif;
        }

        .testimonial-content::before {
            top: -20px;
            left: 0;
        }

        .testimonial-content::after {
            bottom: -60px;
            right: 0;
            transform: rotate(180deg);
        }

        .testimonial-author {
            font-weight: 700;
            color: var(--accent-color);
        }

        .testimonial-role {
            font-size: 0.9rem;
            opacity: 0.8;
        }

        /* Footer */
        footer {
            background-color: #0d1030;
            padding: 50px 0 20px;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 30px;
            margin-bottom: 40px;
        }

        .footer-column h3 {
            font-size: 1.2rem;
            margin-bottom: 20px;
            position: relative;
        }

        .footer-column h3::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 40px;
            height: 2px;
            background-color: var(--accent-color);
        }

        .footer-column ul {
            list-style: none;
        }

        .footer-column ul li {
            margin-bottom: 10px;
        }

        .footer-column a {
            color: var(--text-light);
            text-decoration: none;
            opacity: 0.8;
            transition: all 0.3s ease;
        }

        .footer-column a:hover {
            opacity: 1;
            color: var(--accent-color);
        }

        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 0.9rem;
            opacity: 0.7;
        }

        /* Animaciones para elementos */
        .fade-in {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.8s ease, transform 0.8s ease;
        }

        .fade-in.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* Responsive */
        @media (max-width: 992px) {
            .hero {
                flex-direction: column;
                height: auto;
                padding: 120px 0 60px;
            }

            .hero-content {
                margin-bottom: 50px;
                text-align: center;
            }

            .hero-btns {
                justify-content: center;
            }

            .auth-container {
                margin: 0 auto;
            }
        }

        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }
            
            .hero h1 {
                font-size: 2rem;
                word-break: break-word;
            }
            
            .logo {
                font-size: 18px;
            }
            
            .logo i {
                font-size: 20px;
            }

            .section-title h2 {
                font-size: 2rem;
            }
        }

        /* Hamburger menu */
        .hamburger-menu {
            display: none;
            flex-direction: column;
            justify-content: space-between;
            width: 30px;
            height: 21px;
            cursor: pointer;
            z-index: 200;
            margin-right: 15px;
        }

        .hamburger-menu span {
            display: block;
            height: 3px;
            width: 100%;
            background-color: var(--accent-color);
            transition: all 0.3s ease;
            border-radius: 3px;
        }

        .hamburger-menu.active span:nth-child(1) {
            transform: translateY(9px) rotate(45deg);
        }

        .hamburger-menu.active span:nth-child(2) {
            opacity: 0;
        }

        .hamburger-menu.active span:nth-child(3) {
            transform: translateY(-9px) rotate(-45deg);
        }

        @media (max-width: 768px) {
            .hamburger-menu {
                display: flex;
            }
            
            .nav-container {
                position: relative;
            }
            
            .nav-links {
                display: flex;
                flex-direction: column;
                position: fixed;
                top: 0;
                right: -100%;
                width: 80%;
                max-width: 300px;
                height: 100vh;
                background: var(--background-dark);
                padding: 80px 20px 20px;
                transition: right 0.3s ease;
                z-index: 150;
                backdrop-filter: blur(10px);
                box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
            }
            
            .nav-links.active {
                right: 0;
            }
            
            .nav-links a {
                padding: 15px 0;
                font-size: 18px;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            }
            
            .nav-links a:last-child {
                border-bottom: none;
            }
            
            .overlay {
                display: none;
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(0, 0, 0, 0.5);
                z-index: 100;
                opacity: 0;
                transition: opacity 0.3s ease;
            }
            
            .overlay.active {
                display: block;
                opacity: 1;
            }
        }

        /* Estilos para el bloqueador de controles de YouTube */
        .youtube-blocker {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 10;
            cursor: pointer;
            background: transparent;
        }

        /* Asegurar que el iframe esté detrás del bloqueador */
        .youtube-iframe {
            pointer-events: none !important;
        }

        /* Visual refresh: mobile first motion and depth */
        :root {
            --surface-soft: rgba(255, 255, 255, 0.08);
            --surface-strong: rgba(255, 255, 255, 0.14);
            --gold-glow: rgba(255, 215, 0, 0.34);
            --shadow-soft: 0 18px 45px rgba(6, 10, 38, 0.28);
            --shadow-strong: 0 24px 70px rgba(4, 7, 26, 0.44);
            --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
        }

        body {
            background:
                radial-gradient(circle at 12% 4%, rgba(255, 215, 0, 0.16), transparent 28rem),
                radial-gradient(circle at 88% 10%, rgba(121, 134, 203, 0.30), transparent 24rem),
                linear-gradient(180deg, #101747 0%, #1a237e 40%, #111636 100%);
        }

        body::before {
            content: '';
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: -1;
            background-image:
                linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
            background-size: 42px 42px;
            mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 70%);
        }

        header {
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(11, 16, 56, 0.74);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
        }

        .nav-container {
            gap: 12px;
        }

        .logo {
            max-width: min(64vw, 310px);
            font-size: clamp(0.95rem, 4vw, 1.25rem);
            line-height: 1.1;
        }

        .logo img {
            height: auto;
            max-width: 280px;
            width: 100%;
            flex: 0 0 auto;
        }

        .hero {
            min-height: auto;
            padding: 104px 0 52px;
            background:
                radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.16), transparent 24rem),
                var(--background-gradient);
        }

        .hero::before {
            opacity: 0.28;
            filter: saturate(1.1);
        }

        .hero .container {
            gap: 28px;
        }

        .hero-content {
            margin-bottom: 0;
        }

        .hero h1 {
            font-size: clamp(2.2rem, 12vw, 4rem);
            line-height: 1.02;
            letter-spacing: 0;
        }

        .hero p {
            font-size: clamp(1rem, 4.5vw, 1.16rem);
            color: rgba(255, 255, 255, 0.88);
        }

        .hero-btns a,
        .program-footer a,
        .featured-course a {
            position: relative;
        }

        .hero-btns a::after,
        .program-footer a::after,
        .featured-course a::after {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            bottom: -6px;
            height: 2px;
            border-radius: 999px;
            background: currentColor;
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 260ms ease;
        }

        .hero-btns a:hover::after,
        .program-footer a:hover::after,
        .featured-course a:hover::after {
            transform: scaleX(1);
        }

        .auth-container {
            width: 100%;
            border-radius: 18px;
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.07));
            box-shadow: var(--shadow-strong);
            border: 1px solid rgba(255, 255, 255, 0.16);
        }

        .tabs {
            gap: 8px;
            padding: 5px;
            border: 1px solid rgba(255, 255, 255, 0.10);
            border-radius: 999px;
            background: rgba(0, 0, 0, 0.16);
        }

        .tab {
            border-radius: 999px;
            padding: 10px 12px;
            border-bottom: 0;
        }

        .tab.active {
            color: var(--text-dark);
            border-bottom: 0;
            background: var(--accent-color);
            box-shadow: 0 10px 28px rgba(255, 215, 0, 0.20);
        }

        .form-group input {
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.10);
        }

        .btn {
            border-radius: 999px;
            background: linear-gradient(135deg, var(--accent-color), #ffb300);
            color: var(--text-dark);
            box-shadow: 0 12px 28px rgba(255, 179, 0, 0.18);
        }

        .btn:hover {
            background: linear-gradient(135deg, #ffe45c, #ffb300);
            box-shadow: 0 14px 34px rgba(255, 179, 0, 0.24);
        }

        .featured-course {
            position: relative;
            overflow: hidden;
            background:
                radial-gradient(circle at 0% 0%, rgba(255, 215, 0, 0.12), transparent 22rem),
                linear-gradient(180deg, #111636, #0d1030) !important;
        }

        .featured-course h2 {
            font-size: clamp(1.9rem, 9vw, 2.8rem) !important;
            line-height: 1.1;
        }

        #video-container {
            border-radius: 18px !important;
            border: 1px solid rgba(255, 255, 255, 0.12);
            box-shadow: var(--shadow-strong) !important;
            transform: rotate(-1.2deg);
            transition: transform 420ms var(--ease-out), box-shadow 420ms var(--ease-out);
        }

        #video-container:hover {
            transform: rotate(0deg) scale(1.015);
        }

        #video-overlay > div {
            animation: softPulse 2.6s ease-in-out infinite;
        }

        .programs-section,
        .features {
            padding: 62px 0;
            background:
                radial-gradient(circle at top, rgba(63, 81, 181, 0.28), transparent 30rem),
                #111636;
        }

        .section-title {
            margin-bottom: 36px;
        }

        .section-title h2 {
            font-size: clamp(1.85rem, 9vw, 2.7rem);
            line-height: 1.1;
        }

        .program-grid,
        .features-grid {
            grid-template-columns: 1fr;
            gap: 18px;
        }

        .program-card,
        .feature-card {
            border-radius: 18px;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
            border: 1px solid rgba(255, 255, 255, 0.12);
            box-shadow: var(--shadow-soft);
        }

        .program-header {
            background:
                radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.16), transparent 18rem),
                linear-gradient(135deg, #23307f, #4a5bd0);
        }

        .program-card:hover,
        .feature-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-strong);
        }

        .feature-icon {
            width: 64px;
            height: 64px;
            margin: 0 auto 18px;
            display: grid;
            place-items: center;
            border-radius: 18px;
            background: rgba(255, 215, 0, 0.12);
            box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.22);
        }

        .testimonials {
            overflow: hidden;
        }

        .testimonial-item {
            border-radius: 18px;
            background: rgba(0, 0, 0, 0.20);
            box-shadow: var(--shadow-soft);
            backdrop-filter: blur(10px);
        }

        .reveal-on-scroll {
            opacity: 0;
            transform: translateY(24px) scale(0.98);
            filter: blur(8px);
            transition:
                opacity 720ms var(--ease-out),
                transform 720ms var(--ease-out),
                filter 720ms var(--ease-out);
            transition-delay: var(--reveal-delay, 0ms);
            will-change: opacity, transform, filter;
        }

        .reveal-on-scroll.active,
        .reveal-on-scroll.is-visible,
        .fade-in.active,
        .fade-in.is-visible {
            opacity: 1;
            transform: translateY(0) scale(1);
            filter: blur(0);
        }

        @keyframes softPulse {
            0%, 100% {
                transform: scale(1);
                box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(255, 215, 0, 0.35);
            }
            50% {
                transform: scale(1.06);
                box-shadow: 0 9px 24px rgba(0, 0, 0, 0.45), 0 0 0 12px rgba(255, 215, 0, 0);
            }
        }

        @media (min-width: 640px) {
            .program-grid,
            .features-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (min-width: 769px) {
            .logo img {
                height: auto;
                max-width: 280px;
                width: 100%;
            }

            .hero {
                min-height: 100vh;
                padding: 120px 0 80px;
            }

            .auth-container {
                width: min(100%, 400px);
            }

            .programs-section,
            .features {
                padding: 96px 0;
            }
        }

        @media (max-width: 768px) {
            .nav-links {
                right: 0;
                transform: translateX(110%);
                transition: transform 0.32s var(--ease-out);
            }

            .nav-links.active {
                right: 0;
                transform: translateX(0);
            }
        }

        @media (min-width: 1024px) {
            .program-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }

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

        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                scroll-behavior: auto !important;
                transition-duration: 0.01ms !important;
            }

            .reveal-on-scroll {
                opacity: 1;
                transform: none;
                filter: none;
            }
        }

        @media (min-width: 769px) and (max-width: 1180px) {
            .nav-links {
                gap: 12px;
            }

            .nav-links a {
                font-size: 0.88rem;
            }

            .logo {
                max-width: 300px;
            }
        }
