:root {
            /* Brand Colors */
            --primary: #040038;
            --primary-light: #0a0552;
            --accent-yellow: #f5b800;
            --accent-red: #c8102e;
            --accent-blue: #3b82f6;
            --accent-blue-hover: #1d4ed8;

            /* Neutrals */
            --bg-light: #f8fafc;
            --white: #ffffff;
            --text-dark: #0f172a;
            --text-muted: #64748b;
            --border: #e2e8f0;

            /* Typography */
            --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
            --font-body: 'Inter', system-ui, -apple-system, sans-serif;

            /* Layout */
            --radius: 12px;
            --radius-lg: 16px;
            --shadow-card: 0 4px 12px rgba(4, 0, 56, 0.05);
            --shadow-hover: 0 12px 24px rgba(4, 0, 56, 0.12);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: var(--font-body);
        }

        h1, h2, h3, h4 {
            font-family: var(--font-heading);
        }

        body {
            background-color: var(--bg-light);
            color: var(--text-dark);
            line-height: 1.6;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        /* Header Navigation */
        header {
            background-color: var(--white);
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 10px rgba(0,0,0,0.03);
        }

        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 75px;
        }

        .logo img {
            display: block;
            height: auto;
            max-height: 48px;
        }

        .btn-secondary {
            background-color: transparent;
            color: var(--primary);
            border: 2px solid var(--primary);
            padding: 0.6rem 1.25rem;
            border-radius: var(--radius);
            text-decoration: none;
            font-weight: 700;
            font-size: 0.9rem;
            transition: all 0.2s ease;
            display: inline-block;
            text-align: center;
        }

        .btn-secondary:hover {
            background-color: var(--primary);
            color: var(--white);
        }

        .btn-whatsapp {
            background-color: #25d366;
            color: white;
            padding: 0.6rem 1.25rem;
            border-radius: var(--radius);
            text-decoration: none;
            font-weight: 700;
            font-size: 0.9rem;
            display: inline-block;
            text-align: center;
            border: none;
            transition: background-color 0.2s ease;
        }

        .btn-whatsapp:hover {
            background-color: #128c7e;
        }

        /* Hero Section */
        .hero {
            position: relative;
            background-color: var(--primary);
            background-image: linear-gradient(135deg, rgba(4, 0, 56, 0.92) 0%, rgba(10, 5, 82, 0.75) 100%), url('img/hero-bg.jpg');
            background-size: cover;
            background-position: center;
            color: var(--white);
            padding: 4.5rem 0 5.5rem 0;
            text-align: center;
        }

        .hero-kicker {
            color: var(--accent-yellow);
            font-weight: 700;
            text-transform: uppercase;
            font-size: 0.85rem;
            letter-spacing: 1.5px;
            margin-bottom: 0.75rem;
        }

        .hero h1 {
            font-size: 3rem;
            font-weight: 800;
            margin-bottom: 1rem;
            line-height: 1.15;
            color: var(--white);
        }

        .hero-description {
            font-size: 1.15rem;
            color: #d1d5db;
            max-width: 680px;
            margin: 0 auto 2.5rem auto;
        }

        /* Search Box Container */
        .search-banner-container {
            background: var(--accent-yellow);
            padding: 1.5rem;
            border-radius: var(--radius-lg);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
            max-width: 850px;
            margin: 0 auto;
        }

        .search-banner-title {
            color: var(--primary);
            font-weight: 800;
            font-size: 1.2rem;
            margin-bottom: 1rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .search-box {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .search-input {
            flex: 1 1 200px;
            padding: 0.95rem 1.1rem;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            font-size: 0.95rem;
            outline: none;
            color: var(--text-dark);
            background: var(--white);
        }

        .search-input:focus {
            border-color: var(--primary);
        }

        .btn-search {
            background-color: var(--primary);
            color: var(--white);
            border: none;
            padding: 0.95rem 2rem;
            border-radius: var(--radius);
            font-weight: 700;
            font-size: 1rem;
            cursor: pointer;
            transition: background-color 0.2s ease, transform 0.1s ease;
        }

        .btn-search:hover {
            background-color: var(--primary-light);
            transform: translateY(-1px);
        }

        /* Hero Quick Filters */
        .quick-tags {
            margin-top: 1.75rem;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0.5rem;
            flex-wrap: wrap;
            font-size: 0.85rem;
            color: #d1d5db;
        }

        .tag-pill {
            background: rgba(255, 255, 255, 0.12);
            color: var(--white);
            padding: 0.35rem 0.85rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.2s ease;
            backdrop-filter: blur(4px);
            cursor: pointer;
        }

        .tag-pill:hover {
            background: var(--accent-yellow);
            color: var(--primary);
            font-weight: 700;
        }

        /* AdSpace Container */
        .adsense-container {
            margin: 2.5rem auto;
            padding: 1rem;
            background-color: #f1f5f9;
            border: 1px dashed #cbd5e1;
            border-radius: var(--radius);
            text-align: center;
            min-height: 90px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .adsense-placeholder {
            font-size: 0.8rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 600;
        }

        /* Section Global Styles */
        section {
            padding: 3.5rem 0;
        }

        .section-title {
            font-size: 2rem;
            color: var(--primary);
            margin-bottom: 2rem;
            font-weight: 800;
        }

        /* Grid Cards Layout */
        .grid-3 {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.75rem;
        }

        .card {
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 1.75rem;
            box-shadow: var(--shadow-card);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }

        .card img.course-img {
            width: 100%;
            height: 180px;
            object-fit: cover;
            border-radius: calc(var(--radius) - 2px);
            margin-bottom: 1rem;
            background-color: #f1f5f9;
        }

        .card h3 {
            font-size: 1.25rem;
            color: var(--primary);
            margin-bottom: 0.5rem;
            font-weight: 700;
        }

        .card-badge {
            display: inline-block;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            padding: 0.25rem 0.6rem;
            background-color: #e2e8f0;
            color: var(--primary);
            border-radius: 4px;
            margin-bottom: 0.75rem;
            width: fit-content;
        }

        .card-list {
            list-style: none;
        }

        .card-list li {
            margin-bottom: 0.65rem;
        }

        .card-list a {
            color: var(--text-muted);
            text-decoration: none;
            font-size: 0.95rem;
            font-weight: 500;
            transition: color 0.2s ease;
        }

        .card-list a:hover {
            color: var(--accent-blue);
        }

        /* ANIMACIONES Y LOADER CON ISOTIPO PALPITANTE */
        .loader-wrapper {
            grid-column: 1 / -1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 3rem 1rem;
        }

        .loader-logo-container {
            position: relative;
            width: 110px;
            height: 110px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.2rem;
        }

        /* Círculo Giratorio Alrededor */
        .loader-spinner {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 4px solid rgba(4, 0, 56, 0.1);
            border-top: 4px solid var(--accent-yellow);
            border-right: 4px solid var(--primary);
            border-radius: 50%;
            animation: spinCircle 1.2s linear infinite;
        }

        /* Logo Palpitando */
        .loader-logo {
            width: 60px;
            height: 60px;
            object-fit: contain;
            border-radius: 50%;
            animation: pulseLogo 1.4s ease-in-out infinite;
        }

        .loader-text {
            font-weight: 700;
            color: var(--primary);
            font-size: 1.05rem;
            letter-spacing: 0.3px;
        }

        @keyframes spinCircle {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        @keyframes pulseLogo {
            0% { transform: scale(0.85); opacity: 0.7; }
            50% { transform: scale(1.1); opacity: 1; }
            100% { transform: scale(0.85); opacity: 0.7; }
        }

        .animated-card {
            animation: fadeInCard 0.5s ease-out forwards;
            opacity: 0;
        }

        @keyframes fadeInCard {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ESTILOS FAQ SECCIÓN AZUL */
        .faq-blue-box {
            background-color: var(--primary);
            color: var(--white);
            padding: 3rem 2.5rem;
            border-radius: var(--radius-lg);
            box-shadow: 0 10px 30px rgba(4, 0, 56, 0.2);
            margin: 2rem 0;
        }

        .faq-blue-box .section-title {
            color: var(--white);
            text-align: center;
            margin-bottom: 2rem;
        }

        .faq-category-accordion {
            background-color: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: var(--radius);
            margin-bottom: 1.25rem;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .faq-category-accordion[open] {
            background-color: rgba(255, 255, 255, 0.1);
            border-color: var(--accent-yellow);
        }

        .faq-category-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.25rem 1.5rem;
            cursor: pointer;
            list-style: none;
            user-select: none;
        }

        .faq-category-header::-webkit-details-marker {
            display: none;
        }

        .faq-category-title {
            font-size: 1.25rem;
            color: var(--accent-yellow);
            font-weight: 700;
            margin: 0;
        }

        .category-icon {
            color: var(--accent-yellow);
            transition: transform 0.3s ease;
            flex-shrink: 0;
        }

        .faq-category-accordion[open] .category-icon {
            transform: rotate(180deg);
        }

        .faq-category-body {
            padding: 0 1.5rem 1.5rem 1.5rem;
        }

        .faq-sub-accordion {
            background-color: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            margin-top: 0.85rem;
            transition: all 0.2s ease;
        }

        .faq-sub-accordion[open] {
            background-color: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .faq-sub-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 1.2rem;
            cursor: pointer;
            list-style: none;
            user-select: none;
        }

        .faq-sub-header::-webkit-details-marker {
            display: none;
        }

        .faq-question {
            font-size: 0.98rem;
            font-weight: 600;
            color: var(--white);
            padding-right: 1rem;
        }

        .faq-sub-icon {
            color: var(--white);
            flex-shrink: 0;
            transition: transform 0.25s ease;
        }

        .faq-sub-accordion[open] .faq-sub-icon {
            transform: rotate(180deg);
        }

        .faq-content {
            padding: 0 1.2rem 1.25rem 1.2rem;
            color: #e2e8f0;
            font-size: 0.92rem;
            line-height: 1.6;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            margin-top: 0.25rem;
            padding-top: 0.85rem;
        }

        /* Footer */
        footer {
            background-color: var(--primary);
            color: #94a3b8;
            padding: 3.5rem 0 1.5rem 0;
            margin-top: 3rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
            margin-bottom: 2.5rem;
        }

        .footer-col h4 {
            color: var(--white);
            margin-bottom: 1.2rem;
            font-size: 1.05rem;
            font-weight: 700;
        }

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

        .footer-col li {
            margin-bottom: 0.6rem;
        }

        .footer-col a {
            color: #94a3b8;
            text-decoration: none;
            font-size: 0.9rem;
            transition: color 0.2s ease;
        }

        .footer-col a:hover {
            color: var(--accent-yellow);
        }

        .footer-bottom {
            text-align: center;
            padding-top: 1.75rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 0.85rem;
            color: #64748b;
        }

        @media (max-width: 768px) {
            .hero h1 { font-size: 2.25rem; }
            .hero-description { font-size: 1rem; }
            .search-banner-container { padding: 1.25rem; }
            .search-box { flex-direction: column; }
            .btn-search { width: 100%; }
            .faq-blue-box { padding: 2rem 1.25rem; }
        }

        /* ===== Modal "Registrar Curso" ===== */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(4, 0, 56, 0.65);
            display: none;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
            z-index: 1000;
            backdrop-filter: blur(3px);
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal-box {
            background: var(--white);
            border-radius: var(--radius-lg);
            padding: 2.5rem 2rem;
            max-width: 420px;
            width: 100%;
            text-align: center;
            box-shadow: 0 20px 50px rgba(4, 0, 56, 0.35);
            position: relative;
            animation: modalPop 0.25s ease-out;
        }

        @keyframes modalPop {
            from { opacity: 0; transform: scale(0.92) translateY(10px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }

        .modal-close {
            position: absolute;
            top: 0.85rem;
            right: 0.95rem;
            background: none;
            border: none;
            font-size: 1.4rem;
            line-height: 1;
            color: var(--text-muted);
            cursor: pointer;
            padding: 0.25rem;
        }

        .modal-close:hover {
            color: var(--primary);
        }

        .modal-box img {
            width: 64px;
            height: 64px;
            object-fit: contain;
            margin: 0 auto 1.25rem auto;
            display: block;
        }

        .modal-box h3 {
            color: var(--primary);
            font-size: 1.3rem;
            margin-bottom: 0.75rem;
        }

        .modal-box p {
            color: var(--text-muted);
            font-size: 0.95rem;
            margin-bottom: 1.5rem;
        }

        .modal-box .btn-search {
            width: 100%;
        }

        /* ===== Páginas Legales ===== */
        .legal-main {
            padding: 3rem 0 4rem 0;
        }

        .legal-content {
            max-width: 780px;
            margin: 0 auto;
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-card);
            padding: 2.5rem;
        }

        .legal-content .updated {
            color: var(--text-muted);
            font-size: 0.85rem;
            margin-bottom: 2rem;
        }

        .legal-content h2 {
            color: var(--primary);
            font-size: 1.3rem;
            margin: 2rem 0 0.75rem 0;
        }

        .legal-content h2:first-of-type {
            margin-top: 0;
        }

        .legal-content p, .legal-content li {
            color: #334155;
            font-size: 0.98rem;
            margin-bottom: 0.9rem;
        }

        .legal-content ul {
            padding-left: 1.25rem;
            margin-bottom: 0.9rem;
        }

        .legal-content strong {
            color: var(--text-dark);
        }

        .legal-highlight {
            background: #fff8e1;
            border-left: 4px solid var(--accent-yellow);
            padding: 1rem 1.25rem;
            border-radius: 0 var(--radius) var(--radius) 0;
            margin: 1.25rem 0;
        }

        .breadcrumb {
            font-size: 0.85rem;
            color: var(--text-muted);
            max-width: 780px;
            margin: 0 auto 1.25rem auto;
        }

        .breadcrumb a {
            color: var(--accent-blue);
            text-decoration: none;
        }

        .breadcrumb a:hover {
            text-decoration: underline;
        }
