:root {
            --primary-color: #6C5CE7;
            --secondary-color: #A8E6CF;
            --accent-color: #FF6B6B;
            --dark-color: #2D3436;
            --light-color: #DDD6FE;
            --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        }

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

        body {
            font-family: 'Poppins', sans-serif;
            line-height: 1.6;
            color: var(--dark-color);
            overflow-x: hidden;
        }

        /* Navbar */
        .navbar-brand {
            font-weight: 800;
            font-size: 1.8rem;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .navbar {
            padding: 1rem 0;
            backdrop-filter: blur(10px);
            background: rgba(255, 255, 255, 0.95) !important;
            border-bottom: 1px solid rgba(108, 92, 231, 0.1);
        }

        .nav-link {
            font-weight: 500;
            color: var(--dark-color) !important;
            transition: all 0.3s ease;
            position: relative;
        }

        .nav-link:hover {
            color: var(--primary-color) !important;
            transform: translateY(-2px);
        }

        .nav-link::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: 0;
            left: 50%;
            background: var(--gradient-primary);
            transition: all 0.3s ease;
        }

        .nav-link:hover::after {
            width: 100%;
            left: 0;
        }

        .btn-primary-outline-custom {
            background: transparent;
            border: 2px solid #5DADE2; /* borde turquesa */
            padding: 12px 30px;
            border-radius: 50px;
            font-weight: 600;
            color: #5DADE2; /* texto turquesa */
            transition: all 0.3s ease;
            box-shadow: none;
        }

        .btn-primary-outline-custom:hover {
            background: #5DADE2;   /* relleno turquesa al pasar */
            color: white;          /* texto blanco */
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
        }

        .btn-primary-custom {
            background: var(--gradient-primary);
            border: none;
            padding: 12px 30px;
            border-radius: 50px;
            font-weight: 600;
            color: white;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
        }

        .btn-primary-custom:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
            color: white;
        }

        .btn-secondary-custom {
            background: var(--gradient-secondary);
            border: none;
            padding: 12px 30px;
            border-radius: 50px;
            font-weight: 600;
            color: white;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
        }

        .btn-secondary-custom:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
            color: white;
        }

        /* Hero Section - Geometric Dark + Particles */
        .hero-section {
            min-height: 100vh;
            background-color: #0f172a;
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
            padding-top: 100px;
        }

        /* Capa 1: Grid de puntos */
        .hero-section::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image: radial-gradient(circle, rgba(139, 92, 246, 0.38) 1.2px, transparent 1.2px);
            background-size: 30px 30px;
            z-index: 0;
        }

        /* Capa 2: líneas diagonales (efecto X-grid) + orbs de color para profundidad */
        .hero-section::after {
            content: '';
            position: absolute;
            inset: 0;
            background:
                repeating-linear-gradient(45deg, transparent, transparent 29px, rgba(139, 92, 246, 0.08) 29px, rgba(139, 92, 246, 0.08) 30px),
                repeating-linear-gradient(-45deg, transparent, transparent 29px, rgba(139, 92, 246, 0.08) 29px, rgba(139, 92, 246, 0.08) 30px),
                radial-gradient(ellipse 700px 500px at 5% 40%,  rgba(108, 92, 231, 0.28) 0%, transparent 65%),
                radial-gradient(ellipse 500px 600px at 95% 70%, rgba(124, 58, 237, 0.22) 0%, transparent 65%),
                radial-gradient(ellipse 400px 300px at 70% 5%,  rgba(236, 72, 153, 0.14) 0%, transparent 60%);
            background-size: 60px 60px, 60px 60px, 100% 100%, 100% 100%, 100% 100%;
            z-index: 0;
            animation: orbPulse 10s ease-in-out infinite alternate;
        }

        @keyframes orbPulse {
            from { opacity: 0.75; }
            to   { opacity: 1; }
        }

        /* Partículas flotantes */
        .hero-particles {
            position: absolute;
            inset: 0;
            z-index: 1;
            pointer-events: none;
        }

        .hero-particles span {
            position: absolute;
            width: 4px;
            height: 4px;
            background: rgba(139, 92, 246, 0.85);
            border-radius: 50%;
            box-shadow: 0 0 8px 2px rgba(139, 92, 246, 0.45);
            animation: particleFloat linear infinite;
        }

        .hero-particles span:nth-child(1)  { left: 8%;  top: 15%; animation-duration: 9s;  animation-delay: 0s;   }
        .hero-particles span:nth-child(2)  { left: 20%; top: 70%; animation-duration: 13s; animation-delay: -2s;  }
        .hero-particles span:nth-child(3)  { left: 35%; top: 40%; animation-duration: 10s; animation-delay: -5s;  }
        .hero-particles span:nth-child(4)  { left: 50%; top: 82%; animation-duration: 8s;  animation-delay: -1s;  }
        .hero-particles span:nth-child(5)  { left: 65%; top: 25%; animation-duration: 15s; animation-delay: -7s;  }
        .hero-particles span:nth-child(6)  { left: 80%; top: 55%; animation-duration: 11s; animation-delay: -3s;  background: rgba(236, 72, 153, 0.8); box-shadow: 0 0 8px 2px rgba(236, 72, 153, 0.4); }
        .hero-particles span:nth-child(7)  { left: 92%; top: 10%; animation-duration: 12s; animation-delay: -9s;  }
        .hero-particles span:nth-child(8)  { left: 14%; top: 90%; animation-duration: 7s;  animation-delay: -4s;  background: rgba(236, 72, 153, 0.7); box-shadow: 0 0 8px 2px rgba(236, 72, 153, 0.35); }
        .hero-particles span:nth-child(9)  { left: 45%; top: 8%;  animation-duration: 14s; animation-delay: -6s;  }
        .hero-particles span:nth-child(10) { left: 72%; top: 87%; animation-duration: 10s; animation-delay: -8s;  }
        .hero-particles span:nth-child(11) { left: 57%; top: 52%; animation-duration: 9s;  animation-delay: -2s;  width: 6px; height: 6px; background: rgba(139, 92, 246, 0.5); }
        .hero-particles span:nth-child(12) { left: 30%; top: 28%; animation-duration: 16s; animation-delay: -11s; width: 5px; height: 5px; }

        @keyframes particleFloat {
            0%,  100% { transform: translateY(0px)   translateX(0px);   opacity: 0.8; }
            25%        { transform: translateY(-28px)  translateX(14px);  opacity: 1;   }
            50%        { transform: translateY(-10px)  translateX(-20px); opacity: 0.5; }
            75%        { transform: translateY(-38px)  translateX(9px);   opacity: 0.9; }
        }

        .hero-content {
            position: relative;
            z-index: 3;
            padding-top: 20px;
            padding-bottom: 20px;
        }

        .hero-title {
            font-size: 3.5rem;
            font-weight: 800;
            color: white;
            margin-bottom: 1.5rem;
            line-height: 1.2;
        }

        .hero-subtitle {
            font-size: 1.4rem;
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 2rem;
            font-weight: 400;
        }

        /* Floating Cards */
        .floating-card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 20px;
            padding: 2rem;
            position: absolute;
            animation: floatCard 6s ease-in-out infinite;
        }

        .floating-card-1 {
            top: 20%;
            right: 10%;
            animation-delay: 0s;
        }

        .floating-card-2 {
            top: 60%;
            right: 20%;
            animation-delay: 2s;
        }

        .floating-card-3 {
            top: 40%;
            left: 80%;
            animation-delay: 4s;
        }

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

        /* Hero Image Container - Wrapper para la imagen */
        .hero-image-container {
            position: relative;
            z-index: 3;
            display: inline-block;
            width: 100%;
            filter: drop-shadow(0 15px 40px rgba(139, 92, 246, 0.35));
        }

        /* Hero Image - Optimizado para PNG transparente */
        .hero-image {
            position: relative;
            z-index: 1;
            display: block;
            width: 100%;
            /* Animación suave al cargar */
            animation: fadeInImage 1s ease-in-out;
            /* Transición suave para hover */
            transition: transform 0.3s ease;
        }

        /* Efecto hover suave */
        .hero-image-container:hover .hero-image {
            transform: scale(1.05);
        }

        @keyframes fadeInImage {
            from {
                opacity: 0;
                transform: scale(0.95);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        /* Opción 1: Overlay con gradiente púrpura - DESACTIVADO (imagen sin fondo)
        .hero-image-container::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
            pointer-events: none;
            border-radius: 1rem;
            z-index: 2;
        }
        */

        /* ========================================
           SOLUCIONES ALTERNATIVAS
           Descomenta la que prefieras y comenta la Opción 1
           ======================================== */

        /* Opción 2: Blend mode - fusiona la imagen con el fondo
        .hero-image {
            mix-blend-mode: multiply;
            opacity: 0.85;
        }
        */

        /* Opción 3: Filtros CSS - ajusta tono/saturación/brillo
        .hero-image {
            filter: hue-rotate(-15deg) saturate(1.3) brightness(0.9) contrast(1.1);
        }
        */

        /* Opción 4: Overlay MÁS INTENSO - para imágenes con fondo muy diferente
        .hero-image-container::after {
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.5) 0%, rgba(118, 75, 162, 0.5) 100%) !important;
        }
        */

        /* Opción 5: Overlay SUAVE - para imágenes que ya tienen tonos púrpura
        .hero-image-container::after {
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%) !important;
        }
        */

        /* Opción 6: Combinación Blend + Overlay - integración máxima
        .hero-image {
            mix-blend-mode: screen;
            opacity: 0.95;
        }
        .hero-image-container::after {
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.4) 100%) !important;
        }
        */

        /* Opción 7: Efecto difuminado en los bordes
        .hero-image-container::after {
            background: radial-gradient(ellipse at center, transparent 30%, rgba(102, 126, 234, 0.6) 100%);
        }
        */

        /* Sections */
        .section-title {
            font-size: 2.5rem;
            font-weight: 700;
            text-align: center;
            margin-bottom: 1rem;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            background-clip: text;
        }

        .section-subtitle {
            font-size: 1.2rem;
            text-align: center;
            color: #666;
            margin-bottom: 3rem;
        }

        /* Feature Cards */
        .feature-card {
            background: white;
            border-radius: 20px;
            padding: 2.5rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            border: none;
            height: 100%;
        }

        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        }

        .feature-icon {
            width: 80px;
            height: 80px;
            background: var(--gradient-primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
            font-size: 2rem;
            color: white;
        }

        /* Stats Section */
        .stats-flex {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 3rem 5rem;
            text-align: center;
        }

        .stats-section {
            background: linear-gradient(135deg, #1e1b4b 0%, #3b1f6b 50%, #4c1d95 100%);
            color: white;
            padding: 4rem 0;
        }

        .stats-flex .stat-item {
            text-align: center;
            min-width: 180px;
        }

        .stat-number {
            font-size: 3rem;
            font-weight: 800;
            display: block;
            color: #ffffff;
            text-shadow: 0 0 20px rgba(167, 139, 250, 0.6);
        }

        .stat-label {
            font-size: 1.1rem;
            color: rgba(216, 180, 254, 0.95);
            font-weight: 500;
            letter-spacing: 0.02em;
        }

        /* Institution Cards */
        .institution-card {
            background: white;
            border-radius: 15px;
            padding: 1.5rem;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            text-align: center;
        }

        .institution-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        }

        .institution-logo {
            width: 80px;
            height: 80px;
            margin: 0 auto 1rem;
            background: #f8f9fa;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            color: var(--primary-color);
        }

        /* Exam Cards */
        .exam-card {
            background: white;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            overflow: hidden;
            position: relative;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .exam-card:hover {
            transform: translateY(-15px);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
        }

        .exam-card-header {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            padding: 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .exam-badge {
            background: rgba(255, 255, 255, 0.9);
            color: #e74c3c;
            padding: 0.3rem 0.8rem;
            border-radius: 50px;
            font-weight: 700;
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }

        .exam-difficulty {
            color: white;
            font-size: 0.9rem;
        }

        .exam-card-body {
            padding: 1.5rem;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .exam-title {
            font-size: 1.3rem;
            font-weight: 700;
            margin-bottom: 0.8rem;
        }

        .exam-description {
            color: #666;
            font-size: 0.95rem;
            line-height: 1.5;
            margin-bottom: 1.5rem;
            flex: 1;
        }

        .exam-stats {
            display: flex;
            justify-content: space-between;
            margin-bottom: 1rem;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .exam-stats .stat-item {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            font-size: 0.85rem;
            color: #666;
        }

        .exam-card-footer {
            padding: 1.5rem;
            background: #f8f9fa;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .btn-exam-primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border: none;
            padding: 0.8rem 1.5rem;
            border-radius: 50px;
            color: white;
            font-weight: 600;
            transition: all 0.3s ease;
            text-decoration: none;
            font-size: 0.9rem;
        }

        .btn-exam-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
            color: white;
        }

        .exam-score {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            font-size: 0.85rem;
            color: #666;
            font-weight: 500;
        }

        .empty-exams {
            padding: 3rem;
        }

        /* CTA Section */
        .cta-section {
            background: var(--gradient-secondary);
            color: white;
            padding: 5rem 0;
            text-align: center;
        }

        /* Footer */
        .footer {
            background: var(--dark-color);
            color: white;
            padding: 3rem 0 1rem;
        }

        .footer-links a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer-links a:hover {
            color: white;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .hero-section {
                padding-top: 120px; /* Más espacio en móviles */
                min-height: 100vh;
            }

            .hero-title {
                font-size: 2.5rem;
            }

            .hero-subtitle {
                font-size: 1.1rem;
            }

            .floating-card {
                display: none;
            }

            /* Hero Image en tablets */
            .hero-image-container {
                margin-top: 2rem;
                filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.2));
            }

            /* Desactivar hover en móviles */
            .hero-image-container:hover .hero-image {
                transform: none;
            }

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

            .navbar {
                padding: 0.5rem 0;
            }

            .navbar-brand {
                font-size: 1.5rem;
            }
        }

        @media (max-width: 576px) {
            .hero-section {
                padding-top: 100px;
                padding-bottom: 50px;
            }

            .hero-content {
                padding-top: 30px;
            }

            .hero-title {
                font-size: 2rem;
                line-height: 1.3;
                margin-bottom: 1rem;
            }

            .hero-subtitle {
                font-size: 1rem;
                margin-bottom: 1.5rem;
            }

            /* Hero Image en móviles pequeños */
            .hero-image-container {
                margin-top: 2.5rem;
                max-width: 90%;
                margin-left: auto;
                margin-right: auto;
                filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.18));
            }

            /* Animación más sutil en móviles */
            @keyframes fadeInImage {
                from {
                    opacity: 0;
                    transform: scale(0.98);
                }
                to {
                    opacity: 1;
                    transform: scale(1);
                }
            }

            .btn-lg {
                padding: 10px 20px;
                font-size: 1rem;
            }

            .d-flex.gap-3 {
                flex-direction: column;
                gap: 1rem !important;
            }

            .d-flex.gap-3 .btn {
                width: 100%;
                text-align: center;
            }
        }

        /* News Cards */
        .news-card {
            background: white;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            overflow: hidden;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .news-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        }

        .news-card-header {
            background: var(--gradient-primary);
            padding: 1.2rem 1.5rem;
            display: flex;
            align-items: flex-end;
            position: relative;
            height: 175px;
            overflow: hidden;
        }

        .news-card-header img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .news-date {
            display: flex;
            flex-direction: column;
            align-items: center;
            background: rgba(0, 0, 0, 0.45);
            border-radius: 12px;
            padding: 0.5rem 1rem;
            backdrop-filter: blur(6px);
            position: relative;
            z-index: 1;
        }

        .news-date-day {
            font-size: 1.5rem;
            font-weight: 800;
            color: white;
            line-height: 1;
        }

        .news-date-month {
            font-size: 0.75rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.9);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .news-card-body {
            padding: 1.5rem;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .news-card-title {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 0.8rem;
            color: var(--dark-color);
            line-height: 1.4;
        }

        .news-card-text {
            color: #666;
            font-size: 0.9rem;
            line-height: 1.6;
            flex: 1;
        }

        .news-card-footer {
            padding: 1rem 1.5rem;
            border-top: 1px solid #f0f0f0;
        }

        .news-read-more {
            color: var(--primary-color);
            font-weight: 600;
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
        }

        .news-read-more:hover {
            color: #764ba2;
            gap: 0.3rem;
        }

        .news-read-more i {
            transition: transform 0.3s ease;
        }

        .news-read-more:hover i {
            transform: translateX(4px);
        }

        /* News Page Styles */
        .news-page-header {
            background: var(--gradient-primary);
            padding-top: 140px;
            padding-bottom: 4rem;
            color: white;
            text-align: center;
        }

        .news-page-header h1 {
            font-size: 2.8rem;
            font-weight: 800;
            margin-bottom: 1rem;
        }

        .news-page-header p {
            font-size: 1.2rem;
            opacity: 0.9;
        }

        .news-list-card {
            background: white;
            border-radius: 20px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            overflow: hidden;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .news-list-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
        }

        .news-list-card .news-card-body {
            padding: 1.5rem;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .news-list-meta {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1rem;
            font-size: 0.85rem;
            color: #999;
        }

        .news-list-meta i {
            color: var(--primary-color);
        }

        .news-detail-header {
            background: var(--gradient-primary);
            padding-top: 140px;
            padding-bottom: 3rem;
            color: white;
        }

        .news-detail-content {
            background: white;
            border-radius: 20px;
            padding: 3rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            margin-top: -2rem;
            position: relative;
            z-index: 2;
        }

        .news-detail-content img {
            max-width: 100%;
            height: auto;
            border-radius: 10px;
        }

        /* Contact Form */
        .contact-form {
            background: white;
            border-radius: 20px;
            padding: 2rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

        .form-control {
            border: 2px solid #e9ecef;
            border-radius: 10px;
            padding: 12px 15px;
            transition: all 0.3s ease;
        }

        .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.25);
        }