        /* ===== VARIABLES ===== */
        :root {
            --primary: #0900b9;
            --primary-light: #3a72f6;
            --accent: #ffffff;
            --dark: #1a1a2e;
            --gray-100: #f8f9fc;
            --gray-200: #e9ecef;
            --gray-300: #dee2e6;
            --gray-600: #6c757d;
            --gray-700: #495057;
            --gray-800: #343a40;
            --success: #10b981;
            --warning: #f59e0b;
            --gradient-1: linear-gradient(135deg, var(--primary) 0%, #1a1a4e 100%);
            --gradient-2: linear-gradient(145deg, #f8faff, white);
            --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.03);
            --shadow-md: 0 20px 40px rgba(9, 0, 185, 0.08);
            --shadow-lg: 0 30px 60px rgba(9, 0, 185, 0.15);
        }

        body {
            font-family: 'Poppins', sans-serif;
            background: var(--gray-100);
            overflow-x: hidden;
        }

        /* ===== HERO ===== */
        .cursos-hero {
            position: relative;
            height: 60vh;
            min-height: 450px;
            background: var(--gradient-1);
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: white;
            overflow: hidden;
        }

        .cursos-hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('../assets/img/fondos/cursos.webp');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            background-attachment: fixed;
            opacity: 0.4;
        }

        .hero-content {
            position: relative;
            z-index: 2;
            max-width: 900px;
            padding: 0 5%;
        }

        .hero-badge {
            display: inline-block;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            padding: 8px 20px;
            border-radius: 50px;
            font-size: 0.85rem;
            font-weight: 500;
            letter-spacing: 2px;
            margin-bottom: 20px;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .hero-title {
            font-size: 4rem;
            font-weight: 800;
            margin-bottom: 20px;
            text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
        }

        .hero-title span {
            color: var(--primary-light);
        }

        .hero-subtitle {
            font-size: 1.2rem;
            max-width: 700px;
            margin: 0 auto 30px;
            opacity: 0.9;
        }

        /* ===== INTRO ===== */
        .intro-section {
            padding: 60px 5%;
            background: white;
        }

        .intro-container {
            max-width: 1000px;
            margin: 0 auto;
            text-align: center;
        }

        .intro-text {
            font-size: 1.1rem;
            color: var(--gray-600);
            line-height: 1.8;
            margin-bottom: 30px;
        }

        .modalidades-grid {
            display: flex;
            justify-content: center;
            gap: 30px;
            flex-wrap: wrap;
            margin-top: 30px;
        }

        .modalidad-item {
            display: flex;
            align-items: center;
            gap: 10px;
            background: var(--gradient-2);
            padding: 12px 24px;
            border-radius: 60px;
            border: 1px solid var(--gray-200);
            box-shadow: var(--shadow-sm);
        }

        .modalidad-item i {
            color: var(--primary);
            font-size: 1.2rem;
        }

        .modalidad-item span {
            font-weight: 500;
            color: var(--gray-800);
        }

        /* ===== FILTROS ===== */
        .filtros-section {
            padding: 40px 5% 20px;
            background: var(--gray-100);
        }

        .filtros-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
        }

        .search-wrapper {
            flex: 2;
            min-width: 300px;
            position: relative;
        }

        .search-input {
            width: 100%;
            padding: 15px 25px;
            border: 2px solid var(--gray-200);
            border-radius: 60px;
            font-family: 'Poppins', sans-serif;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .search-input:focus {
            outline: none;
            border-color: var(--primary-light);
            box-shadow: 0 0 0 4px rgba(58, 114, 246, 0.1);
        }

        .search-btn {
            position: absolute;
            right: 8px;
            top: 8px;
            background: var(--primary);
            color: white;
            border: none;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .search-btn:hover {
            background: var(--primary-light);
            transform: scale(1.05);
        }

        .filter-select {
            flex: 1;
            min-width: 200px;
            padding: 15px 25px;
            border: 2px solid var(--gray-200);
            border-radius: 60px;
            font-family: 'Poppins', sans-serif;
            background: white;
            cursor: pointer;
        }

        .filter-select:focus {
            outline: none;
            border-color: var(--primary-light);
        }

        .results-counter {
            text-align: center;
            margin: 20px 0;
            font-size: 1.1rem;
            color: var(--gray-600);
        }

        .results-counter span {
            font-weight: 700;
            color: var(--primary);
            font-size: 1.5rem;
            margin: 0 5px;
        }

        /* ===== TARJETAS DE CURSOS (CORREGIDO) ===== */
        .cursos-section {
            padding: 20px 5% 60px;
        }

        .cursos-container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .cursos-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 30px;
            margin-top: 20px;
        }

        .curso-card {
            background: white;
            border-radius: 24px;
            overflow: hidden;
            transition: all 0.4s ease;
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--gray-200);
            display: flex;
            flex-direction: column;
            height: 100%;
            position: relative;
        }

        .curso-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-lg);
            border-color: transparent;
        }

        /* Badge movido a la izquierda */
        .card-badge {
            position: absolute;
            top: 20px;
            left: 20px;
            z-index: 2;
            padding: 6px 14px;
            border-radius: 50px;
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: white;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }

        .badge-presencial {
            background: var(--primary);
        }

        .badge-online {
            background: #10b981;
        }

        .badge-hibrido {
            background: #f59e0b;
        }

        /* Icono en gris oscuro (sin gradiente) */
        .curso-icon {
            width: 60px;
            height: 60px;
            background: var(--gray-700);
            border-radius: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.8rem;
            flex-shrink: 0;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        /* Ajuste del header para dar espacio al badge */
        .card-header {
            padding: 30px 25px 15px;
            padding-top: 70px;
            display: flex;
            align-items: center;
            gap: 15px;
            border-bottom: 1px solid var(--gray-200);
        }

        .curso-titulo {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--gray-800);
            line-height: 1.4;
            margin: 0;
        }

        .card-body {
            padding: 20px 25px;
            flex: 1;
        }

        .curso-descripcion {
            color: var(--gray-600);
            font-size: 0.95rem;
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .curso-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 15px;
        }

        .meta-item {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--gray-600);
            font-size: 0.85rem;
            background: var(--gray-100);
            padding: 6px 14px;
            border-radius: 50px;
            border: 1px solid var(--gray-200);
        }

        .meta-item i {
            color: var(--primary-light);
            font-size: 0.9rem;
        }

        .meta-item strong {
            color: var(--gray-800);
            font-weight: 600;
            margin-left: 2px;
        }

        .dirigido {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-top: 15px;
            padding: 12px;
            background: var(--gradient-2);
            border-radius: 12px;
            border: 1px solid var(--gray-200);
        }

        .dirigido i {
            color: var(--primary);
            font-size: 1rem;
            margin-top: 3px;
        }

        .dirigido p {
            color: var(--gray-600);
            font-size: 0.85rem;
            line-height: 1.5;
            margin: 0;
        }

        .card-footer {
            padding: 0 25px 25px;
        }

        .btn-curso {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: var(--primary-light);
            color: white;
            padding: 12px 24px;
            border-radius: 60px;
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            width: 100%;
            justify-content: center;
        }

        .btn-curso:hover {
            background: var(--primary);
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(9, 0, 185, 0.2);
        }

        .btn-curso i {
            font-size: 1rem;
        }

        .no-results {
            grid-column: 1 / -1;
            text-align: center;
            padding: 60px;
            background: white;
            border-radius: 30px;
        }

        .no-results i {
            font-size: 3rem;
            color: var(--gray-300);
            margin-bottom: 15px;
        }

        .no-results h3 {
            font-size: 1.5rem;
            color: var(--gray-600);
            margin-bottom: 10px;
        }

        .btn-clear {
            background: var(--primary);
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 60px;
            font-weight: 500;
            margin-top: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-clear:hover {
            background: var(--primary-light);
            transform: translateY(-2px);
        }

        /* ===== CTA ===== */
        .cta-section {
            padding: 60px 5%;
            background: white;
            border-top: 1px solid var(--gray-200);
        }

        .cta-container {
            max-width: 800px;
            margin: 0 auto;
            text-align: center;
        }

        .cta-title {
            font-size: 2rem;
            font-weight: 700;
            color: var(--gray-800);
            margin-bottom: 20px;
        }

        .cta-title span {
            color: var(--primary);
        }

        .cta-text {
            color: var(--gray-600);
            font-size: 1.1rem;
            margin-bottom: 30px;
        }

        .btn-cta {
            display: inline-block;
            background: var(--primary);
            color: white;
            padding: 16px 40px;
            border-radius: 60px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }

        .btn-cta:hover {
            background: var(--primary-light);
            transform: translateY(-3px);
            box-shadow: 0 15px 30px rgba(9, 0, 185, 0.2);
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 992px) {
            .hero-title {
                font-size: 3rem;
            }
        }

        @media (max-width: 768px) {
            .hero-title {
                font-size: 2.5rem;
            }

            .hero-subtitle {
                font-size: 1rem;
            }

            .filtros-container {
                flex-direction: column;
            }

            .search-wrapper,
            .filter-select {
                width: 100%;
            }

            .cursos-grid {
                grid-template-columns: 1fr;
            }

            .card-header {
                flex-direction: column;
                text-align: center;
                padding-top: 80px;
            }

            .hero-content{
                padding-top: 10%;
            }
        }

        @media (max-width: 480px) {
            .hero-title {
                font-size: 2rem;
            }

            .hero-badge {
                font-size: 0.75rem;
            }
        }