/* =========================
   RESET Y BASE APPLE STYLE
========================= */

:root {
    /* Colores Apple Style actualizados */
    --blue: #007AFF;
    --blue-light: #5AC8FA;
    --blue-dark: #0040DD;
    --blue-pale: rgba(0, 122, 255, 0.1);
    
    --gray-1: #F2F2F7;
    --gray-2: #E5E5EA;
    --gray-3: #D1D1D6;
    --gray-4: #C7C7CC;
    --gray-5: #8E8E93;
    --gray-6: #48484A;
    --gray-7: #1C1C1E;
    --gray-8: #121214;
    
    --green: #30D158;
    --green-pale: rgba(52, 199, 89, 0.1);
    
    --red: #FF453A;
    --yellow: #FFD60A;
    --orange: #FF9F0A;
    
        /* Colores por año */
         --primero: #FF3B5C;        /* Rojo intenso */
        --primero-light: #FF6F91;
        --primero-pale: rgba(255, 59, 92, 0.2);

        --segundo: #007AFF;        /* Azul Apple */
        --segundo-light: #5AB0FF;
        --segundo-pale: rgba(0, 122, 255, 0.2);

        --tercero: #30D158;        /* Verde brillante */
        --tercero-light: #6EE68E;
        --tercero-pale: rgba(48, 209, 88, 0.2);

        --cuarto: #AF52DE;         /* Morado vivo */
        --cuarto-light: #D580FF;
        --cuarto-pale: rgba(175, 82, 222, 0.2);

        --gradient-primero: linear-gradient(135deg, #FF6F91 0%, #FF3B5C 50%, #C7003C 100%);
        --gradient-segundo: linear-gradient(135deg, #5AB0FF 0%, #007AFF 50%, #0041CC 100%);
        --gradient-tercero: linear-gradient(135deg, #6EE68E 0%, #30D158 50%, #1C9F40 100%);
        --gradient-cuarto: linear-gradient(135deg, #D580FF 0%, #AF52DE 50%, #7A2AB5 100%);

    /* Gradientes Apple */
    --gradient-primary: linear-gradient(135deg, #5AC8FA 0%, #007AFF 50%, #5856D6 100%);
    --gradient-secondary: linear-gradient(135deg, #FFFFFF 0%, #5AC8FA 50%, #5856D6 100%);
    --gradient-dark: linear-gradient(135deg, #1C1C1E 0%, #2C2C2E 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    
    /* Sombras Apple */
    --shadow-sm: 0 2px 20px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
    
    /* Bordes redondeados Apple */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 30px;
    
    /* Espaciado */
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* =========================
   DYNAMIC COURSE VARIABLES
========================= */

/* Variables por curso para dark */

body.curso-primero {
    --curso-color-primary: #FF3B5C;
    --curso-color-primary-dark: #C7003C;
    --curso-color-secondary: #FF6F91;
    --curso-color-gradient: linear-gradient(135deg, #FF6F91 0%, #FF3B5C 50%, #C7003C 100%);
    --curso-color-shadow: rgba(255, 59, 92, 0.4);
    --curso-color-border: rgba(255, 59, 92, 0.25);
    --curso-color-pale: rgba(255, 59, 92, 0.15);
}

body.curso-segundo {
    --curso-color-primary: #007AFF;
    --curso-color-primary-dark: #0041CC;
    --curso-color-secondary: #5AB0FF;
    --curso-color-gradient: linear-gradient(135deg, #5AB0FF 0%, #007AFF 50%, #0041CC 100%);
    --curso-color-shadow: rgba(0, 122, 255, 0.4);
    --curso-color-border: rgba(0, 122, 255, 0.25);
    --curso-color-pale: rgba(0, 122, 255, 0.15);
}

body.curso-tercero {
    --curso-color-primary: #30D158;
    --curso-color-primary-dark: #1C9F40;
    --curso-color-secondary: #6EE68E;
    --curso-color-gradient: linear-gradient(135deg, #6EE68E 0%, #30D158 50%, #1C9F40 100%);
    --curso-color-shadow: rgba(48, 209, 88, 0.4);
    --curso-color-border: rgba(48, 209, 88, 0.25);
    --curso-color-pale: rgba(48, 209, 88, 0.15);
}

body.curso-cuarto {
    --curso-color-primary: #AF52DE;
    --curso-color-primary-dark: #7A2AB5;
    --curso-color-secondary: #D580FF;
    --curso-color-gradient: linear-gradient(135deg, #D580FF 0%, #AF52DE 50%, #7A2AB5 100%);
    --curso-color-shadow: rgba(175, 82, 222, 0.4);
    --curso-color-border: rgba(175, 82, 222, 0.25);
    --curso-color-pale: rgba(175, 82, 222, 0.15);
}

/* =========================
   COURSE CARD STYLES BY YEAR
========================= */

/* Estilos por año para las tarjetas */
        .curso-card.primero:hover {
            border-left: 4px solid var(--primero);
            border-color: var(--primero);
        }

        .curso-card.segundo:hover {
            border-left: 4px solid var(--segundo);
			border-color: var(--segundo);
        }

        .curso-card.tercero:hover {
            border-left: 4px solid var(--tercero);
			border-color: var(--tercero);
        }

        .curso-card.cuarto:hover {
            border-left: 4px solid var(--cuarto);
			border-color: var(--cuarto);
        }

        /* Títulos por año */
        .curso-card.primero .curso-title {
            background: var(--gradient-primero);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .curso-card.segundo .curso-title {
            background: var(--gradient-segundo);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .curso-card.tercero .curso-title {
            background: var(--gradient-tercero);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .curso-card.cuarto .curso-title {
            background: var(--gradient-cuarto);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* Precios por año */
        .curso-card.primero .curso-price {
            background: var(--gradient-primero);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .curso-card.segundo .curso-price {
            background: var(--gradient-segundo);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .curso-card.tercero .curso-price {
            background: var(--gradient-tercero);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .curso-card.cuarto .curso-price {
            background: var(--gradient-cuarto);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

		/* Precios por año */
        .curso-card.primero .curso-price:after {
            background: var(--gradient-primero);
        }

        .curso-card.segundo .curso-price:after {
            background: var(--gradient-segundo);
        }

        .curso-card.tercero .curso-price:after {
            background: var(--gradient-tercero);
        }

        .curso-card.cuarto .curso-price:after {
            background: var(--gradient-cuarto);
        }

        /* Botón primario por año */
        .curso-card.primero .btn-primary {
            background: var(--gradient-primero);
        }

        .curso-card.segundo .btn-primary {
            background: var(--gradient-segundo);
        }

        .curso-card.tercero .btn-primary {
            background: var(--gradient-tercero);
        }

        .curso-card.cuarto .btn-primary {
            background: var(--gradient-cuarto);
        }

        /* Badge por año */
        .curso-card.primero .curso-badge:not(.completed-badge):not(.progress-badge) {
            background: var(--primero-pale);
            color: var(--primero-light);
            border: 1px solid var(--primero);
        }

        .curso-card.segundo .curso-badge:not(.completed-badge):not(.progress-badge) {
            background: var(--segundo-pale);
            color: var(--segundo-light);
            border: 1px solid var(--segundo);
        }

        .curso-card.tercero .curso-badge:not(.completed-badge):not(.progress-badge) {
            background: var(--tercero-pale);
            color: var(--tercero-light);
            border: 1px solid var(--tercero);
        }

        .curso-card.cuarto .curso-badge:not(.completed-badge):not(.progress-badge) {
            background: var(--cuarto-pale);
            color: var(--cuarto-light);
            border: 1px solid var(--cuarto);
        }

/* Botones de filtro por año */
.filter-btn[onclick*="primero"].active {
    background: var(--primero-pale);
    color: var(--primero-light);
    border: 1px solid var(--primero);
}

.filter-btn[onclick*="segundo"].active {
    background: var(--segundo-pale);
    color: var(--segundo-light);
    border: 1px solid var(--segundo);
}

.filter-btn[onclick*="tercero"].active {
    background: var(--tercero-pale);
    color: var(--tercero-light);
    border: 1px solid var(--tercero);
}

.filter-btn[onclick*="cuarto"].active {
    background: var(--cuarto-pale);
    color: var(--cuarto-light);
    border: 1px solid var(--cuarto);
}

/* Badge "Comprado" personalizado por año */
.curso-card.primero .completed-badge {
    background: rgba(48, 209, 88, 0.2);
    color: var(--green);
    border: 1px solid rgba(48, 209, 88, 0.3);
}

.curso-card.segundo .completed-badge {
    background: rgba(48, 209, 88, 0.2);
    color: var(--green);
    border: 1px solid rgba(48, 209, 88, 0.3);
}

/* Efecto hover para botones primarios por año */
.curso-card.primero .btn-primary:hover {
    background: linear-gradient(135deg, #FF3B5C 0%, #FF6F91 50%, #C7003C 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 59, 92, 0.4);
}

.curso-card.segundo .btn-primary:hover {
    background: linear-gradient(135deg, #007AFF 0%, #5AB0FF 50%, #0041CC 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.4);
}

.curso-card.tercero .btn-primary:hover {
    background: linear-gradient(135deg, #30D158 0%, #6EE68E 50%, #1C9F40 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(48, 209, 88, 0.4);
}

.curso-card.cuarto .btn-primary:hover {
    background: linear-gradient(135deg, #AF52DE 0%, #D580FF 50%, #7A2AB5 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(175, 82, 222, 0.4);
}

/* =========================
   MAIN STYLES
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    background: #000;
    color: white;
    min-height: 100vh;
    padding-top: var(--safe-area-top);
    padding-bottom: var(--safe-area-bottom);
    /* Fondo degradado sutil estilo Apple */
    background: linear-gradient(135deg, 
        #000000 0%, 
        #121214 30%, 
        #1C1C1E 70%, 
        #2C2C2E 100%);
    background-attachment: fixed;
}

/* =========================
   BACKGROUND PATTERNS
========================= */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(90, 200, 250, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 122, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(88, 86, 214, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* =========================
   BARRA DE ESTADO DEL SERVIDOR
========================= */
.server-status-bar {
    position: fixed;
    top: 70px; /* Debajo del header */
    left: 0;
    right: 0;
    height: 40px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
}

/* Estados de la barra */
.server-status-bar.connecting {
    background: rgba(255, 159, 10, 0.15); /* Naranja */
    border-top: 1px solid rgba(255, 159, 10, 0.3);
}

.server-status-bar.connected {
    background: rgba(48, 209, 88, 0.15); /* Verde */
    border-top: 1px solid rgba(48, 209, 88, 0.3);
    animation: slideUp 0.5s ease forwards;
    animation-delay: 2s;
}

.server-status-bar.warning {
    background: rgba(255, 159, 10, 0.15); /* Naranja */
    border-top: 1px solid rgba(255, 159, 10, 0.3);
}

.server-status-bar.error {
    background: rgba(255, 69, 58, 0.15); /* Rojo */
    border-top: 1px solid rgba(255, 69, 58, 0.3);
}

.server-status-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 20px;
    height: 100%;
    position: relative;
    z-index: 2;
}

/* Indicador de estado */
.status-indicator {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.connecting-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FF9F0A;
    animation: pulse 1.5s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(255, 159, 10, 0.5);
}

.connected-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #30D158;
    box-shadow: 0 0 10px rgba(48, 209, 88, 0.5);
}

.error-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FF453A;
    box-shadow: 0 0 10px rgba(255, 69, 58, 0.5);
}

/* Texto de estado */
.status-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.server-status-bar.connecting .status-text {
    color: #FFB340;
}

.server-status-bar.connected .status-text {
    color: #5CDD7C;
}

.server-status-bar.warning .status-text {
    color: #FFB340;
}

.server-status-bar.error .status-text {
    color: #FF7A70;
}

/* Contador */
.status-counter {
    font-size: 12px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
    color: var(--gray-3);
    display: none;
}

/* Botón de acción */
.status-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    letter-spacing: 0.3px;
}

.status-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Barra de progreso */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF9F0A, #FFB340);
    animation: loading 2s linear infinite;
    width: 100%;
    transform-origin: left;
}

/* Animaciones */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.9);
    }
}

@keyframes loading {
    0% {
        transform: scaleX(0);
        transform-origin: left;
    }
    50% {
        transform: scaleX(1);
        transform-origin: left;
    }
    51% {
        transform: scaleX(1);
        transform-origin: right;
    }
    100% {
        transform: scaleX(0);
        transform-origin: right;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-40px);
        opacity: 0;
    }
}

/* =========================
   HEADER ANIMATIONS
========================= */
@keyframes spaceFloat {
    0%   { background-position: 10% 40%, 90% 60%, 50% 20%, 50% 90%, 30% 70%, 70% 30%, 45% 50%, 0 0; }
    25%  { background-position: 15% 45%, 85% 55%, 55% 25%, 45% 85%, 35% 65%, 65% 35%, 50% 55%, 0 0; }
    50%  { background-position: 20% 50%, 80% 50%, 60% 30%, 40% 80%, 40% 60%, 60% 40%, 55% 60%, 0 0; }
    75%  { background-position: 15% 45%, 85% 55%, 55% 25%, 45% 85%, 35% 65%, 65% 35%, 50% 55%, 0 0; }
    100% { background-position: 10% 40%, 90% 60%, 50% 20%, 50% 90%, 30% 70%, 70% 30%, 45% 50%, 0 0; }
}

@keyframes starPulse {
    0%, 100% {
        box-shadow:
            inset 0 1px 0 rgba(100, 180, 255, 0.05),
            inset 0 -1px 0 rgba(0, 0, 0, 0.3),
            0 8px 32px rgba(0, 0, 0, 0.9),
            0 4px 8px rgba(0, 0, 0, 0.6),
            0 0 0 1px rgba(0, 60, 120, 0.15);
    }
    50% {
        box-shadow:
            inset 0 1px 0 rgba(100, 180, 255, 0.10),
            inset 0 -1px 0 rgba(0, 0, 0, 0.3),
            0 8px 40px rgba(0, 0, 0, 0.95),
            0 4px 8px rgba(0, 0, 0, 0.6),
            0 0 0 1px rgba(0, 60, 120, 0.25);
    }
}

@keyframes nebulaShift {
    0%   { background-size: 400% 400%, 350% 350%, 450% 450%, 400% 400%, 300% 300%, 320% 320%, 280% 280%, 100% 100%; }
    33%  { background-size: 420% 420%, 370% 370%, 430% 430%, 420% 420%, 320% 320%, 300% 300%, 300% 300%, 100% 100%; }
    66%  { background-size: 380% 380%, 330% 330%, 470% 470%, 380% 380%, 280% 280%, 340% 340%, 260% 260%, 100% 100%; }
    100% { background-size: 400% 400%, 350% 350%, 450% 450%, 400% 400%, 300% 300%, 320% 320%, 280% 280%, 100% 100%; }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .server-status-bar {
        top: 60px; /* Header móvil más pequeño */
        height: 36px;
    }
    
    .server-status-content {
        padding: 0 12px;
        gap: 8px;
    }
    
    .status-text {
        font-size: 13px;
    }
    
    .status-counter {
        font-size: 11px;
        padding: 2px 6px;
    }
    
    .status-action-btn {
        font-size: 11px;
        padding: 4px 10px;
    }
}

/* =========================
   HEADER GENERAL CON LOGO ANCHO
========================= */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
    overflow: visible;

    /* Tus fondos espaciales existentes... */
    background:       
        radial-gradient(circle at 10% 40%, rgba(8, 25, 50, 0.8) 0%, transparent 45%),
        radial-gradient(circle at 90% 60%, rgba(5, 18, 40, 0.7) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 20%, rgba(12, 35, 65, 0.6) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 90%, rgba(10, 30, 60, 0.7) 0%, transparent 60%),
        radial-gradient(circle at 30% 70%, rgba(20, 50, 90, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(25, 60, 100, 0.3) 0%, transparent 45%),
        radial-gradient(circle at 45% 50%, rgba(15, 45, 85, 0.25) 0%, transparent 35%),
        linear-gradient(145deg, 
            #010712 0%, 
            #020a18 15%, 
            #031022 30%, 
            #05162d 50%, 
            #031022 70%, 
            #020a18 85%, 
            #010712 100%);
    
    background-size: 400% 400%, 350% 350%, 450% 450%, 400% 400%, 300% 300%, 320% 320%, 280% 280%, 100% 100%;
    background-position: 10% 40%, 90% 60%, 50% 20%, 50% 90%, 30% 70%, 70% 30%, 45% 50%, 0 0;
    
    animation: 
        spaceFloat 120s linear infinite,
        starPulse 4s ease-in-out infinite,
        nebulaShift 180s ease-in-out infinite;

    backdrop-filter: blur(50px) saturate(200%) brightness(0.85);
    -webkit-backdrop-filter: blur(50px) saturate(200%) brightness(0.85);
    border-bottom: 1px solid rgba(0, 40, 80, 0.3);
    box-shadow:
        inset 0 1px 0 rgba(100, 180, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.9),
        0 4px 8px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(0, 60, 120, 0.15);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Logo - Ancho fijo de 180px */
.logo-container {
    display: flex;
    align-items: center;
    position: relative;
    text-decoration: none;
    color: inherit;
    width: 180px; /* Ancho fijo para el logo */
    flex-shrink: 0; /* Evita que se encoja */
    /* Resetear cualquier fondo degradado heredado */
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
}

.logo-img {
    width: 100%;
    height: auto;
    max-height: 50px;
    object-fit: contain;
    filter: brightness(1) saturate(100%) contrast(100%);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Reset de estilos heredados */
.logo-container::before,
.logo-container::after {
    display: none !important;
    content: none !important;
}

.logo-container:hover,
.logo-container:focus,
.logo-container:active {
    background: none !important;
    color: inherit !important;
}

/* ===========================
   LOGO TEXTO (sin imagen)
=========================== */
.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
    text-decoration: none;
    white-space: nowrap;
}

.logo-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text-fallback {
    font-size: 20px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
    white-space: nowrap;
    align-items: center;
    gap: 0;
}

/* Botón usuario móvil */
.mobile-user-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #C7C7CC;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mobile-user-btn:hover {
    background: rgba(90, 200, 250, 0.2);
    color: #5AC8FA;
    border-color: rgba(90, 200, 250, 0.3);
}

/* Mostrar botón usuario móvil solo en móvil */
@media (max-width: 768px) {
    .mobile-user-btn {
        display: flex;
    }
}

/* Ocultar botón usuario móvil en desktop */
@media (min-width: 769px) {
    .mobile-user-btn {
        display: none;
    }
}

/* =========================
   NAVEGACIÓN DESKTOP - CENTRADA CON COMPENSACIÓN
========================= */
.desktop-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin: 0 20px; /* Espacio a los lados */
}

.desktop-nav-items {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.desktop-nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.desktop-nav-link {
    color: var(--gray-2);
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    padding: 10px 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.desktop-nav-link:hover,
.desktop-nav-link.active {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.desktop-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.desktop-nav-link .material-icons {
    font-size: 20px;
}

/* =========================
   ÁREA DE USUARIO - Ancho fijo de 180px
========================= */
.desktop-user-area {
    display: none;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    width: 180px; /* Mismo ancho que el logo */
    flex-shrink: 0;
}

.user-avatar-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
}

.user-avatar-small {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
    transition: transform 0.3s ease;
}

.user-avatar-small:hover {
    transform: scale(1.05);
}

/* =========================
   RESPONSIVE PARA LOGO ANCHO
========================= */
@media (max-width: 1024px) {
    .desktop-nav-items {
        gap: 25px; /* Reduce espacio en tablets */
    }
    
    .desktop-nav-link {
        font-size: 15px; /* Texto más pequeño */
    }
}

@media (max-width: 900px) {
    .logo-container {
        width: 160px; /* Reduce un poco en tablets pequeñas */
    }
    
    .desktop-user-area {
        width: 160px;
    }
    
    .desktop-nav-items {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* En móvil, todo se oculta y aparece el menú hamburguesa */
    .desktop-nav,
    .desktop-user-area {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .logo-container {
        width: 140px; /* Logo más pequeño en móvil */
    }
}

@media (max-width: 480px) {
    .logo-container {
        width: 120px;
    }
}

/* Área de usuario desktop - adaptada a oscuro */
.desktop-user-area {
    display: none;
    align-items: center;
    gap: 20px;
}

.user-avatar-small {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #5AC8FA 0%, #007AFF 50%, #5856D6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.4);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-avatar-small:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.6);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    background: rgba(18, 18, 20, 0.95);
    backdrop-filter: blur(50px) saturate(200%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 1001;
}

/* Menú móvil - adaptado a oscuro */
.mobile-menu-toggle {
    display: block;    
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    color: #C7C7CC;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mobile-menu-toggle:hover {
    background: rgba(90, 200, 250, 0.2);
    color: #5AC8FA;
    transform: scale(1.05);
    border-color: rgba(90, 200, 250, 0.3);
    box-shadow: 0 0 20px rgba(90, 200, 250, 0.2);
}

/* Para móviles */
@media (max-width: 768px) {
    .site-header {
        height: 60px;
        padding: 0 12px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .desktop-nav,
    .desktop-user-area {
        display: none !important;
    }
}

/* Desktop */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .desktop-nav,
    .desktop-user-area {
        display: flex;
    }
}

/* Efecto de brillo al hacer scroll */
.site-header.scrolled {
    background: 
        linear-gradient(135deg, 
            rgba(18, 18, 20, 0.99) 0%,
            rgba(28, 28, 30, 0.98) 30%,
            rgba(38, 42, 50, 0.97) 100%
        );
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 40px rgba(0, 0, 0, 0.5),
        0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Animación sutil de entrada */
@keyframes headerSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.site-header {
    animation: headerSlideDown 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Ajustar los iconos de material en el header */
.desktop-nav-link .material-icons {
    font-size: 20px;
    color: #8E8E93;
    transition: all 0.3s ease;
}

.desktop-nav-link:hover .material-icons,
.desktop-nav-link.active .material-icons {
    color: #5AC8FA;
}

/* Ajustar el logo-container hover */
.logo-container::before {
    content: '';
    position: absolute;
    left: -10px;
    right: -10px;
    top: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, 
        rgba(90, 200, 250, 0.1) 0%,
        transparent 50%
    );
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-container:hover::before {
    opacity: 1;
}


/* =========================
   NAVEGACIÓN DESKTOP - CENTRADA
========================= */
.desktop-nav {
    flex: 1;
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center;
    height: 100%;
}

.desktop-nav-items {
    display: flex;
    gap: 40px; /* Aumenté un poco el espacio entre elementos */
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.desktop-nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.desktop-nav-link {
    color: var(--gray-2);
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    padding: 10px 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap; /* Evita que el texto se rompa */
}

.desktop-nav-link:hover,
.desktop-nav-link.active {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.desktop-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.desktop-nav-link .material-icons {
    font-size: 20px;
}

/* =========================
   USER AREA DESKTOP
========================= */
.desktop-user-area {
    display: none;
    align-items: center;
    gap: 20px;
}

.user-avatar-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
}

.user-avatar-small {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
    transition: transform 0.3s ease;
}

.user-avatar-small:hover {
    transform: scale(1.05);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(50px) saturate(200%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-dropdown-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.user-dropdown-email {
    font-size: 14px;
    color: var(--gray-4);
}

.user-dropdown-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.user-dropdown-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.user-dropdown-link .material-icons {
    font-size: 20px;
    color: var(--blue-light);
}

/* =========================
   MENÚ MÓVIL
========================= */
.mobile-menu-toggle {
    display: block;    
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
        background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    backdrop-filter: blur(20px);
}

.mobile-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

/* =========================
   SIDEBAR MÓVIL
========================= */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background: rgba(28, 28, 30, 0.85);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999;
    transition: left 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    padding: 80px 0 100px 0;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 0 24px 30px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.sidebar-header:hover {
    transform: translateX(5px);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 22px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.user-avatar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 50%, rgba(255, 255, 255, 0.2) 100%);
}

.user-details h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #FFFFFF 0%, #5AC8FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-details p {
    font-size: 14px;
    color: var(--gray-4);
    opacity: 0.9;
    font-weight: 400;
}

.sidebar-nav {
    padding: 0 24px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    margin-bottom: 8px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    border: 1px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
    border-color: rgba(90, 200, 250, 0.2);
}

.nav-item.active {
    background: rgba(90, 200, 250, 0.15);
    border-color: rgba(90, 200, 250, 0.4);
    color: var(--blue-light);
    font-weight: 600;
}

.nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.nav-icon .material-icons {
    font-size: 22px;
    color: inherit;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(28, 28, 30, 0.5);
    backdrop-filter: blur(20px);
}

.sidebar-footer p {
    font-size: 13px;
    color: var(--gray-5);
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 768px) {
.sidebar-footer {
    position: sticky !important;
}
.sidebar {
    padding-bottom: 0 !important;
}
}
/* =========================
   CONTENIDO PRINCIPAL
========================= */
.main-content {
    min-height: calc(100vh - 70px);
    padding: 40px 20px;
    position: relative;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.page-title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #FFFFFF 0%, #5AC8FA 50%, #5856D6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 122, 255, 0.2);
}

.page-subtitle {
    font-size: 20px;
    color: var(--gray-4);
    margin-bottom: 35px;
    line-height: 1.5;
    font-weight: 400;
    max-width: 800px;
}

/* =========================
   HERO SECTION
========================= */
.hero-section {
    background: rgba(28, 28, 30, 0.7);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(90, 200, 250, 0.05) 50%, 
        transparent 100%);
    pointer-events: none;
}

.hero-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gray-4);
    margin-bottom: 35px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
    font-weight: 400;
    max-width: fit-content;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-3px);
    border-color: rgba(90, 200, 250, 0.2);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(90, 200, 250, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.feature-icon .material-icons {
    font-size: 24px;
    color: var(--blue-light);
}

.feature-text {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-md);
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.3);
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 122, 255, 0.4);
}

.hero-cta:hover::before {
    opacity: 1;
}

/* =========================
   CURSOS GRID CON TARJETAS DE ALTURA FIJA
========================= */
.cursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
    align-items: stretch; /* Asegura que todas las tarjetas tengan la misma altura */
}

.curso-card {
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid var(--gray-6);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    min-height: 320px; /* Altura mínima fija */
    border-left: 4px solid var(--gray-6); /* Borde izquierdo para el año */
    height: auto; /* Ocupa toda la altura disponible */
}

.curso-card > * {
    flex-shrink: 0; /* Evitar que se encojan */
}

.curso-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(90, 200, 250, 0.05) 100%);
    pointer-events: none;
}

.curso-card:hover {
    transform: translateY(-8px);
    background: rgba(44, 44, 46, 0.8);
    border-color: var(--blue-light);
    box-shadow: var(--shadow-lg);
}

/* Badge con color según año */
.curso-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    background: rgba(90, 200, 250, 0.2);
    color: var(--blue-light);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2; /* Asegurar que esté por encima */
    white-space: nowrap; /* Evita que el badge se rompa */
}

.completed-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(48, 209, 88, 0.2);
    color: var(--green);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.completed-badge .material-icons {
    font-size: 16px;
}

/* Badge "En progreso" - Opción sutil */
.progress-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 159, 10, 0.15); /* Fondo naranja suave */
    color: var(--primero-light); /* Naranja */
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 159, 10, 0.3);
}

.progress-badge .material-icons {
    font-size: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.curso-title {
    font-size: 26px; /* Tamaño ligeramente reducido */
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: calc(100% - 100px); /* Espacio reservado para el badge */
    line-height: 1.3;
    padding-right: 10px;
    word-break: break-word; /* Rompe palabras largas */
    overflow-wrap: break-word; /* Asegura que las palabras largas se rompan */
}

.curso-desc {
    font-size: 16px;
    color: var(--gray-4);
    margin-bottom: 20px;
    line-height: 1.5;
    font-weight: 400;
    flex-grow: 1; /* Ocupa el espacio disponible */
    min-height: 72px; /* Altura mínima para 3 líneas */
    max-height: 96px; /* Altura máxima para 4 líneas */
    overflow: hidden; /* Evita desbordamiento */
}

.curso-price {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: fit-content;
    flex-shrink: 0; /* Evita que se reduzca */
}

/* Línea decorativa bajo el precio */
.curso-price::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Botones fijos en la parte inferior */
.curso-actions {
    display: flex;
    gap: 15px;
    margin-top: auto; /* Empuja los botones hacia abajo */
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 18px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Añadir al CSS existente */
.btn-secondary:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

.curso-actions .btn-secondary:disabled:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Contenedor de precio y badges para mejor control */
.curso-header {
    position: relative;
    min-height: 40px; /* Espacio reservado para badges */
    margin-bottom: 20px;
}

/* Contenedor para título y badge */
.title-container {
    position: relative;
    padding-right: 80px; /* Espacio para el badge */
    margin-bottom: 20px;
}

/* Botones fijos en la parte inferior */
.curso-actions {
    display: flex;
    gap: 15px;
    margin-top: auto; /* Empuja los botones hacia abajo */
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0; /* Evita que se reduzcan */
}

.view-toggle {
    display: inline-flex;
    gap: 4px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.view-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--gray-4);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.view-toggle-btn:hover,
.view-toggle-btn.active {
    background: rgba(90, 200, 250, 0.18);
    color: var(--blue-light);
}

.view-toggle-btn .material-icons {
    font-size: 20px;
}

.purchase-cart {
    display: none;
    max-width: 1200px;
    margin: 0 auto 25px;
    padding: 22px;
    background: rgba(28, 28, 30, 0.72);
    border: 1px solid rgba(90, 200, 250, 0.24);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.purchase-cart.active {
    display: block;
}

.cart-header,
.cart-item,
.cart-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cart-header {
    margin-bottom: 14px;
}

.cart-header h3 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 24px;
    margin-bottom: 2px;
    color: var(--blue-light);
    background: rgba(90, 200, 250, 0.14);
    border-radius: 14px;
}

.cart-header p,
.cart-item {
    color: var(--gray-4);
    font-size: 15px;
}

.cart-header strong {
    font-size: 28px;
    color: var(--blue-light);
}

.cart-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.cart-total span {
    color: var(--gray-4);
    font-size: 13px;
    font-weight: 700;
}

.cart-items {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.cart-item {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
}

.cart-item button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--gray-3);
    cursor: pointer;
}

.cart-actions {
    justify-content: flex-end;
}

.cursos-grid.cursos-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cursos-grid.cursos-list .curso-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px 24px;
    min-height: 76px;
    overflow: visible;
    padding: 18px 20px;
}

.cursos-grid.cursos-list .curso-card:hover {
    transform: translateY(-2px);
}

.cursos-grid.cursos-list .curso-badge,
.cursos-grid.cursos-list .curso-desc,
.cursos-grid.cursos-list .curso-actions .btn-secondary {
    display: none;
}

.cursos-grid.cursos-list .curso-title {
    display: block;
    width: auto;
    margin: 0;
    padding: 3px 0 5px;
    font-size: 20px;
    line-height: 1.4;
    overflow: visible;
}

.cursos-grid.cursos-list .curso-actions {
    grid-column: 3;
    margin: 0;
    padding: 0;
    border: 0;
    flex-direction: row;
}

.cursos-grid.cursos-list .curso-price {
    grid-column: 2;
    margin: 0;
    font-size: 22px;
    white-space: nowrap;
}

.cursos-grid.cursos-list .curso-price::after {
    display: none;
}

.cursos-grid.cursos-list .curso-actions .btn-primary {
    flex: 0 0 auto;
    min-width: 120px;
    min-height: 48px;
    padding: 12px 22px;
    line-height: 1.2;
    width: auto;
}

@media (max-width: 640px) {
    .cart-header,
    .cart-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .cart-header strong {
        font-size: 24px;
    }

    .cursos-grid.cursos-list .curso-card {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .cursos-grid.cursos-list .curso-price,
    .cursos-grid.cursos-list .curso-actions {
        grid-column: 1;
    }

    .cursos-grid.cursos-list .curso-actions .btn-primary {
        width: 100%;
    }
}


/* =========================
   VER MÁS CONTAINER (RECUPERADO)
========================= */
.ver-mas-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 50px;
}

.btn-ver-mas {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    color: white;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.btn-ver-mas:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-md);
    border-color: rgba(90, 200, 250, 0.3);
}

.btn-ver-mas .material-icons {
    font-size: 22px;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-ver-mas:hover .material-icons {
    transform: translateX(8px);
}

/* =========================
   FILTROS
========================= */
.filters-container {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: none;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 5px;
}

.filters-container::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--gray-4);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.filter-btn.active {
    background: rgba(90, 200, 250, 0.2);
    color: var(--blue-light);
    border-color: rgba(90, 200, 250, 0.4);
    box-shadow: 0 4px 15px rgba(90, 200, 250, 0.2);
}

.filter-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* =========================
   HELP ITEM (RECUPERADO)
========================= */
.help-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: white;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    width: 100%;
    border: none;
    text-align: left;
    margin-bottom: 12px;
}

.help-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
    border-color: rgba(90, 200, 250, 0.2);
}

.help-item .material-icons {
    color: var(--blue-light);
    font-size: 22px;
    transition: transform 0.3s ease;
}

.help-item:hover .material-icons {
    transform: translateX(5px);
}

/* =========================
   FOOTER GENERAL
========================= */
/* =========================
   FOOTER REDISEÑADO CON LOGO Y REDES
========================= */
.site-footer {
    background: rgba(18, 18, 20, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 20px 30px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

/* Efecto de fondo sutil */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(90, 200, 250, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 122, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    position: relative;
    z-index: 2;
}

/* Columna de marca (logo + descripción) */
.brand-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo-link {
    display: inline-block;
    width: fit-content;
    transition: transform 0.3s ease;
}

.footer-logo-link:hover {
    transform: scale(1.02);
}

.footer-logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: brightness(1) saturate(100%) contrast(100%);
}

.footer-description {
    color: var(--gray-4);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    max-width: 300px;
}

/* Redes sociales */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-3);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-link:hover {
    transform: translateY(-5px);
    border-color: transparent;
    color: white;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link .material-icons {
    font-size: 22px;
}

/* Títulos de secciones */
.footer-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 25px;
    letter-spacing: -0.3px;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Enlaces del footer */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links a {
    color: var(--gray-4);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
}

.footer-links a:hover {
    color: white;
    transform: translateX(8px);
}

.footer-links a .material-icons {
    font-size: 18px;
    color: var(--blue-light);
    transition: transform 0.3s ease;
}

.footer-links a:hover .material-icons {
    transform: scale(1.1);
}

/* Newsletter */
.newsletter {
    margin-top: 30px;
}

.newsletter-text {
    color: var(--gray-3);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-input {
    flex: 1;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: white;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--blue-light);
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-btn {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.3);
}

.newsletter-btn .material-icons {
    font-size: 20px;
}

/* Footer bottom */
.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.copyright {
    font-size: 14px;
    color: var(--gray-5);
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mobile-break {
    display: none;
}

.separator {
    color: var(--gray-6);
}

.heart {
    font-size: 16px;
    color: var(--red);
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* =========================
   RESPONSIVE FOOTER
========================= */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .brand-section {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
    }
    
    .footer-description {
        max-width: 500px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 16px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-title {
        text-align: center;
        display: block;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .newsletter {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .newsletter-text {
        text-align: center;
    }
    
    .mobile-break {
        display: block;
    }
    
    .separator {
        display: none;
    }
    
    .copyright {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .social-links {
        gap: 8px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-link .material-icons {
        font-size: 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-btn {
        width: 100%;
    }
}
/* =========================
   LOGIN CONTAINER (RECUPERADO COMPLETO)
========================= */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: overlayFadeIn 0.4s ease;
}

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

.login-container {
    background: rgba(28, 28, 30, 0.98);
    backdrop-filter: blur(80px) saturate(200%);
    -webkit-backdrop-filter: blur(80px) saturate(200%);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 440px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: modalSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    margin: auto 0;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        transparent 0%, 
        rgba(90, 200, 250, 0.05) 30%,
        rgba(88, 86, 214, 0.03) 70%,
        transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.login-content {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    max-height: calc(90vh - 80px);
}

.login-content::-webkit-scrollbar {
    width: 5px;
}

.login-content::-webkit-scrollbar-track {
    background: transparent;
    margin: 10px 0;
}

.login-content::-webkit-scrollbar-thumb {
    background: rgba(90, 200, 250, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.login-content::-webkit-scrollbar-thumb:hover {
    background: rgba(90, 200, 250, 0.5);
}

.login-header {
    padding: 35px 35px 25px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1;
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(20px);
    flex-shrink: 0;
}

.login-logo {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: white;
    box-shadow: 
        0 10px 30px rgba(0, 122, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.login-logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.2) 100%);
}

.login-header h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #FFFFFF 0%, #5AC8FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.login-header p {
    color: var(--gray-4);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.login-form {
    padding: 30px 35px 40px;
    position: relative;
    z-index: 1;
}

.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    padding: 6px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-tab {
    flex: 1;
    padding: 15px 20px;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--gray-4);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.auth-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(90, 200, 250, 0.2) 0%, rgba(0, 122, 255, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-tab.active {
    background: rgba(90, 200, 250, 0.15);
    color: var(--blue-light);
    box-shadow: 0 4px 15px rgba(90, 200, 250, 0.2);
}

.auth-tab.active::before {
    opacity: 1;
}

.auth-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-1px);
}

.auth-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.auth-content.active {
    display: block;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-4);
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: white;
    font-size: 17px;
    font-family: inherit;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-control:focus {
    outline: none;
    border-color: var(--blue);
    background: rgba(90, 200, 250, 0.1);
    box-shadow: 
        0 0 0 3px rgba(0, 122, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.login-actions {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}

.btn-login, .btn-cancel {
    flex: 1;
    padding: 18px;
    border-radius: var(--radius-md);
    font-size: 17px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn-login {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 
        0 4px 15px rgba(0, 122, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(0, 122, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-login:hover::before {
    opacity: 1;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.login-form p {
    text-align: center;
    margin-top: 25px;
    color: var(--gray-4);
    font-size: 15px;
    font-weight: 500;
}

.login-form a {
    color: var(--blue-light);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.login-form a:hover {
    color: white;
    text-shadow: 0 0 20px rgba(90, 200, 250, 0.5);
}

/* =========================
   NOTIFICACIONES
========================= */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 20px 25px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(20px);
}

.notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.notification.success {
    border-left: 6px solid var(--green);
}

.notification.error {
    border-left: 6px solid var(--red);
}

.notification.info {
    border-left: 6px solid var(--blue);
}

/* =========================
   RESPONSIVE DESIGN
========================= */

/* Tablet */
@media (max-width: 1024px) {
    .site-header {
        height: 65px;
        padding: 0 16px;
    }
    
    .server-status-bar {
        top: 65px;
    }
    
    .main-content {
        margin-top: 65px;
        padding: 30px 16px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .cursos-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 20px;
    }
    
    .hero-section {
        padding: 30px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
}

/* Móvil */
@media (max-width: 768px) {
    .desktop-nav,
    .desktop-user-area {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .site-header {
        height: 60px;
        padding: 0 12px;
    }
    
    .server-status-bar {
        top: 60px;
        height: 36px;
    }
    
    .main-content {
        margin-top: 10px;
        padding: 20px 12px;
        margin-bottom: 80px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .page-subtitle {
        font-size: 18px;
    }
    
    .cursos-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .curso-card {
        min-height: 360px;
        padding: 25px;
    }

    .curso-badge {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .curso-desc {
        min-height: 80px; /* Más espacio para texto en móvil */
    }
    
    .curso-title {
        font-size: 22px;
        width: fit-content; /* Más espacio para el badge */
    }
    
    .curso-desc {
        min-height: 60px;
    }
    
    .hero-section {
        padding: 25px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
   
}

/* Desktop */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .desktop-nav,
    .desktop-user-area {
        display: flex;
    }
    
    .sidebar,
    .sidebar-overlay {
        display: none;
    }
}

/* Desktop grande */
@media (min-width: 1200px) {
    .main-content {
        padding: 50px 40px;
    }
    
    .page-title {
        font-size: 48px;
    }
    
    .hero-section {
        padding: 50px;
    }
    
    .cursos-grid {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
        gap: 30px;
    }
}

/* Pantallas pequeñas */
@media (max-width: 374px) {
    .site-header {
        height: 56px;
        padding: 0 10px;
    }
    
    .server-status-bar {
        top: 56px;
        height: 32px;
    }
    
    .main-content {
        margin-top: 10px;
        padding: 16px 10px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .hero-section {
        padding: 20px;
    }
    
    .curso-card {
        min-height: 380px;
    }
    
    .curso-title {
        font-size: 20px;
        width: fit-content;
    }
    
    .curso-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
}

/* =========================
   ANIMACIONES
========================= */
@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(50px);
    }
}

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

  /* =========================
   VERIFICACIÓN DE EMAIL
========================= */
.verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.verification-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.verification-container {
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(80px) saturate(200%);
    -webkit-backdrop-filter: blur(80px) saturate(200%);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
    animation: modalSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.verification-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        transparent 0%, 
        rgba(90, 200, 250, 0.05) 30%,
        rgba(88, 86, 214, 0.03) 70%,
        transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.verification-header {
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
}

.verification-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.verification-logo img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    filter: brightness(1) saturate(100%) contrast(100%);
}

.verification-logo h1 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #FFFFFF 0%, #5AC8FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.verification-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin: 0 0 10px 0;
}

.verification-header p {
    color: var(--gray-4);
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.verification-body {
    position: relative;
    z-index: 1;
}

.verification-spinner {
    margin: 30px auto;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(90, 200, 250, 0.1);
    border-top-color: var(--blue-light);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

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

.verification-actions {
    margin-top: 30px;
    display: none;
    flex-direction: column;
    gap: 15px;
}

.verification-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 16px 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.verification-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.verification-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.4);
}

.verification-btn:hover::before {
    opacity: 1;
}

.verification-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
}

.verification-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.verification-error {
    color: var(--red);
    background: rgba(255, 69, 58, 0.1);
    padding: 15px;
    border-radius: var(--radius-md);
    margin-top: 20px;
    font-size: 14px;
    font-weight: 600;
}

.verification-success {
    color: var(--green);
    background: rgba(48, 209, 88, 0.1);
    padding: 15px;
    border-radius: var(--radius-md);
    margin-top: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .verification-container {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .verification-logo {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .verification-logo h1 {
        font-size: 20px;
    }
    
    .verification-header h2 {
        font-size: 20px;
    }
    
    .verification-btn {
        padding: 14px 25px;
        font-size: 15px;
    }
}
  
  /* =========================
   ESTILOS PARA PÁGINA DE AYUDA
========================= */
.ayuda-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-section,
.contacto-section {
    background: rgba(28, 28, 30, 0.7);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.section-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h3 .material-icons {
    font-size: 24px;
    color: var(--blue-light);
}

.section-header p {
    color: var(--gray-4);
    font-size: 16px;
    margin: 0;
}

/* FAQ List */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 17px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question .material-icons {
    font-size: 20px;
    color: var(--gray-4);
    transition: transform 0.18s ease, color 0.18s ease;
}

.faq-item.active {
    background: rgba(90, 200, 250, 0.08);
    border-color: rgba(90, 200, 250, 0.28);
    box-shadow: 0 12px 30px rgba(0, 122, 255, 0.12);
}

.faq-item.active .faq-question {
    background: rgba(90, 200, 250, 0.16);
    color: var(--blue-light);
}

.faq-item.active .faq-question .material-icons {
    transform: rotate(180deg);
    color: var(--blue-light);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.18s ease, padding 0.18s ease;
    padding: 0 25px;
    background: rgba(0, 0, 0, 0.12);
    border-top: 1px solid transparent;
}

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

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
    padding: 16px 25px 18px;
    border-top-color: rgba(255, 255, 255, 0.08);
}

.faq-answer p,
.faq-answer ol,
.faq-answer ul {
    color: var(--gray-3);
    line-height: 1.6;
    margin-bottom: 10px;
}

.faq-answer p:last-child,
.faq-answer ol:last-child,
.faq-answer ul:last-child {
    margin-bottom: 0;
}

.faq-answer strong {
    color: var(--blue-light);
    font-weight: 700;
}

.faq-answer ol,
.faq-answer ul {
    padding-left: 20px;
    margin: 15px 0;
}

.faq-answer li {
    margin-bottom: 8px;
    color: var(--gray-3);
}

/* Contacto Section */
.contacto-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.contacto-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contacto-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--blue-light);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.2);
}

.contacto-icon {
    width: 60px;
    height: 60px;
    background: rgba(90, 200, 250, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.contacto-icon .material-icons {
    font-size: 28px;
    color: var(--blue-light);
}

.contacto-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.contacto-info p {
    color: var(--gray-4);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.contacto-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contacto-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.4);
}

.contacto-btn .material-icons {
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .ayuda-container {
        padding: 0 12px;
    }
    
    .faq-section,
    .contacto-section {
        padding: 20px;
        border-radius: var(--radius-md);
    }
    
    .faq-question {
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .faq-answer {
        padding: 0 20px;
    }
    
    .faq-item.active .faq-answer {
        padding: 14px 20px 16px;
    }
    
    .contacto-options {
        grid-template-columns: 1fr;
    }
    
    .contacto-item {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .section-header h3 {
        font-size: 20px;
    }
    
    .faq-question {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .contacto-btn {
        width: 100%;
        justify-content: center;
    }
}

/* =========================
   COURSE-SPECIFIC STYLES
========================= */

.curso-verificacion-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(50px) saturate(200%);
        -webkit-backdrop-filter: blur(50px) saturate(200%);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 10000;
        padding: 20px;
        opacity: 1;
        visibility: visible;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

.curso-verificacion-overlay.hidden {
        opacity: 0;
        visibility: hidden;
    }

.curso-verificacion-container {
        background: rgba(28, 28, 30, 0.95);
        backdrop-filter: blur(80px) saturate(200%);
        -webkit-backdrop-filter: blur(80px) saturate(200%);
        border-radius: var(--radius-xl);
        padding: 40px;
        max-width: 500px;
        width: 100%;
        text-align: center;
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: var(--shadow-lg);
        animation: modalSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        position: relative;
        overflow: hidden;
    }

.curso-verificacion-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, 
            transparent 0%, 
            rgba(90, 200, 250, 0.05) 30%,
            rgba(88, 86, 214, 0.03) 70%,
            transparent 100%);
        pointer-events: none;
        z-index: 0;
    }

.curso-verificacion-spinner {
        width: 50px;
        height: 50px;
        border: 4px solid rgba(90, 200, 250, 0.1);
        border-top-color: var(--curso-color-secondary);
        border-radius: 50%;
        margin: 0 auto 30px;
        animation: spin 1s linear infinite;
    }

.curso-verificacion-container h2 {
        font-size: 22px;
        font-weight: 700;
        color: white;
        margin: 0 0 15px 0;
        letter-spacing: -0.3px;
    }

.curso-verificacion-container p {
        color: var(--gray-4);
        margin: 0;
        line-height: 1.5;
        font-size: 16px;
    }

.curso-verificacion-container #verificacionMensaje {
        margin-top: 20px;
        color: var(--gray-4);
        font-size: 14px;
        line-height: 1.4;
    }

.curso-main-content {
        display: none;
        opacity: 0;
        transition: opacity 0.5s ease;
        padding-top: 20px;
        min-height: 100vh;
    }

.curso-main-content.visible {
        display: block;
        opacity: 1;
    }

.curso-content-wrapper {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
        position: relative;
    }

.curso-header-entry {
    background: var(--curso-color-gradient);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: var(--radius-lg);
    margin-top: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 10;
}

.curso-header-entry:hover {
    transform: translateY(-2px);
}

.curso-header-entry::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://i.postimg.cc/yxgSKHXW/Chat-GPT-Image-12-dic-2025-16-25-11.png') center / cover no-repeat;
    opacity: 0.08;
    z-index: 2;
    pointer-events: none;
}

.curso-title-entry {
    font-size: 48px;
    font-weight: 800;
    padding: 32px 40px;
    margin: 0;
    letter-spacing: -0.8px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 3;
}

@media (max-width: 360px) {
    .curso-title-entry {
        font-size: 22px;
        padding: 0px 16px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .curso-header-entry:hover {
        transform: none;
    }
}

.filtros-bar {
        background: rgba(28, 28, 30, 0.7);
        backdrop-filter: blur(40px) saturate(180%);
        -webkit-backdrop-filter: blur(40px) saturate(180%);
        border-radius: var(--radius-lg);
        padding: 25px;
        margin-bottom: 30px;
        border: 1px solid var(--curso-color-primary);
        box-shadow: var(--shadow-md);
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        position: relative;
        z-index: 100;
    }

.filtros-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
    }

.filtros-title {
        font-size: 18px;
        font-weight: 700;
        color: white;
        display: flex;
        align-items: center;
        gap: 10px;
        letter-spacing: -0.2px;
    }

.filtros-title .material-icons {
        font-size: 22px;
        color: var(--curso-color-secondary);
    }

.filtro-counter {
        background: var(--curso-color-secondary);
        color: white;
        border-radius: 12px;
        padding: 4px 10px;
        font-size: 13px;
        font-weight: 700;
        margin-left: 8px;
        min-width: 24px;
        text-align: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

.filtro-buttons-container {
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
    }

.filtro-dropdown {
        position: relative;
    }

.filtro-dropdown-btn {
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: var(--gray-2);
        padding: 15px 25px;
        border-radius: var(--radius-md);
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all var(--transition-base);
        display: flex;
        align-items: center;
        gap: 10px;
        letter-spacing: 0.3px;
        min-width: 160px;
    }

.filtro-dropdown-btn:hover {
        background: rgba(255, 255, 255, 0.12);
        transform: translateY(-2px);
        border-color: rgba(255, 255, 255, 0.25);
    }

.filtro-dropdown-btn.active {
        background: var(--curso-color-pale);
        border-color: var(--curso-color-border);
        color: var(--curso-color-secondary);
        box-shadow: 0 4px 15px var(--curso-color-shadow);
    }

.filtro-dropdown-btn.active .filtro-counter {
        background: white;
        color: var(--curso-color-primary);
    }

.filtro-dropdown-btn .material-icons {
        font-size: 20px;
        transition: transform var(--transition-fast);
    }

.filtro-dropdown-btn.active .material-icons {
        transform: rotate(180deg);
    }

.filtro-menu {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        background: rgba(28, 28, 30, 1);
        backdrop-filter: blur(50px) saturate(200%);
        -webkit-backdrop-filter: blur(50px) saturate(200%);
        border-radius: var(--radius-lg);
        padding: 20px;
        box-shadow: var(--shadow-lg);
        z-index: 1000;
        min-width: 280px;
        max-width: 350px;
        max-height: 400px;
        overflow-y: hidden;
        border: 1px solid rgba(255, 255, 255, 0.15);
        animation: slideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

.filtro-menu.active {
        display: block;
    }

.menu-header {
        font-size: 15px;
        font-weight: 700;
        color: white;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        justify-content: space-between;
        align-items: center;
        letter-spacing: -0.1px;
    }

.menu-actions {
        display: flex;
        gap: 8px;
    }

.menu-action-btn {
        background: transparent;
        border: 1px solid var(--gray-5);
        border-radius: 8px;
        padding: 6px 12px;
        font-size: 12px;
        cursor: pointer;
        transition: all var(--transition-fast);
        font-weight: 600;
        color: var(--gray-3);
    }

.menu-action-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: var(--curso-color-secondary);
        color: var(--curso-color-secondary);
    }

.menu-action-btn.seleccionar-todos {
        color: var(--curso-color-secondary);
    }

.menu-action-btn.limpiar {
        color: #FF453A;
    }

.menu-items {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

.menu-item {
        padding: 14px 16px;
        border-radius: 12px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: all var(--transition-fast);
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid transparent;
    }

.menu-item:hover {
        background: rgba(255, 255, 255, 0.08);
        transform: translateX(5px);
    }

.menu-item.selected {
        background: var(--curso-color-pale);
        border-color: var(--curso-color-border);
        color: var(--curso-color-secondary);
    }

.menu-item.selected .item-check {
        color: var(--curso-color-secondary);
        opacity: 1;
        transform: scale(1);
    }

.item-check {
        width: 22px;
        height: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        color: transparent;
        opacity: 0;
        transform: scale(0.5);
        transition: all var(--transition-fast);
    }

.menu-item .item-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        background: var(--curso-color-gradient);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 700;
        color: white;
        transition: all var(--transition-fast);
        flex-shrink: 0;
        margin-right: 12px;
    }

.menu-item-content {
        display: flex;
        align-items: center;
        gap: 12px;
        flex: 1;
    }

.menu-item-text {
        font-size: 15px;
        font-weight: 600;
        color: var(--gray-2);
    }

.menu-item.selected .menu-item-text {
        color: var(--curso-color-secondary);
        font-weight: 700;
    }

.filtros-activos-container {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: none;
        position: relative;
        z-index: 90;
    }

.filtros-activos-container.has-filters {
        display: block;
        animation: fadeIn 0.25s ease;
    }

.filtros-activos-title {
        font-size: 14px;
        font-weight: 600;
        color: var(--gray-4);
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.filtros-activos-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

.filtro-tag {
        background: var(--curso-color-pale);
        border: 1px solid var(--curso-color-border);
        color: var(--curso-color-secondary);
        padding: 8px 16px;
        border-radius: var(--radius-md);
        font-size: 14px;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        animation: fadeIn 0.25s ease;
        backdrop-filter: blur(10px);
    }

.filtro-tag .remove-tag {
        background: var(--curso-color-secondary);
        color: white;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 12px;
        transition: all var(--transition-fast);
        border: none;
        padding: 0;
        line-height: 1;
        font-weight: 700;
    }

.filtro-tag .remove-tag:hover {
        background: var(--curso-color-primary-dark);
        transform: scale(1.1);
    }

.limpiar-filtros-btn {
        background: rgba(255, 69, 58, 0.1);
        border: 1px solid rgba(255, 69, 58, 0.3);
        color: #FF453A;
        padding: 8px 16px;
        border-radius: var(--radius-md);
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: all var(--transition-fast);
        margin-left: 8px;
        backdrop-filter: blur(10px);
    }

.limpiar-filtros-btn:hover {
        background: rgba(255, 69, 58, 0.2);
        transform: translateY(-2px);
    }

.lessons-container {
        background: rgba(28, 28, 30, 0.7);
        backdrop-filter: blur(40px) saturate(180%);
        -webkit-backdrop-filter: blur(40px) saturate(180%);
        border-radius: var(--radius-lg);
        padding: 0;
        margin-bottom: 40px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: var(--shadow-md);
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        overflow: hidden;
        position: relative;
        z-index: 50;
    }

.lesson-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        position: relative;
        overflow: hidden;
        background: transparent;
        transition: all var(--transition-base);
    }

.lesson-item:last-child {
        border-bottom: none;
    }

.lesson-item:hover {
        background: rgba(255, 255, 255, 0.03);
    }

.tema-header {
        padding: 30px;
        cursor: pointer;
        transition: all var(--transition-base);
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        z-index: 2;
        border-left: 4px solid transparent;
    }

.tema-header:hover {
        background: rgba(255, 255, 255, 0.05);
    }

.tema-header.expanded {
        background: rgba(255, 255, 255, 0.08);
        border-left: 4px solid var(--curso-color-secondary);
    }

.tema-main-info {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 20px;
    }

.tema-badge {
        width: 50px;
        height: 50px;
        border-radius: var(--radius-md);
        background: var(--curso-color-gradient);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        font-size: 22px;
        flex-shrink: 0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        position: relative;
        overflow: hidden;
    }

.tema-badge::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.2) 100%);
    }

.tema-title-section {
        flex: 1;
    }

.tema-title {
        font-size: 24px;
        font-weight: 800;
        color: white;
        margin-bottom: 8px;
        letter-spacing: -0.4px;
        line-height: 1.3;
    }

.tema-desc {
        font-size: 16px;
        color: var(--gray-4);
        margin: 0;
        line-height: 1.5;
        font-weight: 400;
    }

.tema-toggle-icon .material-icons,
.apartado-toggle-icon .material-icons,
.seccion-toggle-icon .material-icons {
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-size: 24px; /* Asegura un tamaño consistente */
    color: var(--gray-4); /* Un color neutro por defecto */
}

.tema-header.expanded .tema-toggle-icon .material-icons,
.apartado-header.expanded .apartado-toggle-icon .material-icons,
.seccion-header.expanded .seccion-toggle-icon .material-icons {
    transform: rotate(180deg);
}

.tema-contenido {
        overflow: hidden;
        height: 0;
        opacity: 0;
        transform: translateY(-10px);
        transition: all var(--transition-smooth);
        position: relative;
        will-change: height, opacity, transform;
    }

.tema-contenido.expanded {
        height: auto;
        opacity: 1;
        transform: translateY(0);
    }

.tema-seccion {
        position: relative;
    }

.tema-seccion::before {
        content: '';
        position: absolute;
        left: 30px;
        top: 0;
        bottom: 0;
        width: 3px;
        background: linear-gradient(to bottom, 
            var(--curso-color-secondary) 0%, 
            rgba(var(--curso-color-secondary-rgb, 199, 44, 65), 0.3) 50%,
            transparent 100%);
        opacity: 0.3;
        z-index: 1;
    }

.seccion-header {
        padding: 25px 30px;
        background: rgba(255, 255, 255, 0.03);
        display: flex;
        align-items: center;
        gap: 20px;
        cursor: pointer;
        transition: all var(--transition-base);
        position: relative;
        z-index: 2;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        margin-left: 30px;
        border-radius: 0 12px 12px 0;
    }

.seccion-header:hover {
        background: rgba(255, 255, 255, 0.06);
    }

.seccion-header.expanded {
        background: rgba(255, 255, 255, 0.08);
        box-shadow: inset 3px 0 0 0 var(--curso-color-secondary);
    }

.seccion-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        background: rgba(0, 0, 0, 0.3);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        position: relative;
        overflow: hidden;
    }

.seccion-icon::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.1) 100%);
    }

.seccion-header.video .seccion-icon {
        background: rgba(255, 59, 48, 0.2);
        color: #FF3B30;
        border: 1px solid rgba(255, 59, 48, 0.3);
    }

.seccion-header.teoria .seccion-icon {
        background: rgba(90, 200, 250, 0.2);
        color: var(--blue-light);
        border: 1px solid rgba(90, 200, 250, 0.3);
    }

.seccion-header.ejercicios .seccion-icon {
        background: rgba(52, 199, 89, 0.2);
        color: #34C759;
        border: 1px solid rgba(52, 199, 89, 0.3);
    }

.seccion-header.otros .seccion-icon {
        background: rgba(88, 86, 214, 0.2);
        color: #5856D6;
        border: 1px solid rgba(88, 86, 214, 0.3);
    }

.seccion-icon .material-icons {
        font-size: 22px;
    }

.seccion-info {
        flex: 1;
    }

.seccion-titulo {
        font-size: 18px;
        font-weight: 700;
        color: white;
        margin-bottom: 6px;
        display: flex;
        align-items: center;
        gap: 10px;
        letter-spacing: -0.2px;
    }

.seccion-count {
        background: rgba(0, 0, 0, 0.3);
        color: var(--gray-4);
        padding: 4px 10px;
        border-radius: 12px;
        font-size: 13px;
        font-weight: 700;
    }

.seccion-desc {
        font-size: 15px;
        color: var(--gray-4);
        margin: 0;
        line-height: 1.4;
        font-weight: 400;
    }

.seccion-contenido {
        overflow: hidden;
        height: 0;
        opacity: 0;
        transform: translateY(-5px);
        transition: all var(--transition-smooth);
        background: rgba(0, 0, 0, 0.1);
        margin-left: 30px;
        border-radius: 0 0 12px 12px;
        will-change: height, opacity, transform;
        border-left: 3px solid transparent;
    }

.seccion-contenido.expanded {
        height: auto;
        opacity: 1;
        transform: translateY(0);
        border-left: 3px solid rgba(var(--curso-color-secondary-rgb, 199, 44, 65), 0.2);
    }

.reproductor-integrado {
        padding: 30px;
        display: none;
        opacity: 0;
        animation: fadeIn 0.4s ease forwards;
    }

.seccion-contenido.expanded .reproductor-integrado {
        display: block;
        opacity: 1;
    }

.reproductor-tema-integrado {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 25px;
        background: transparent;
        border-radius: var(--radius-lg);
        overflow: hidden;
        margin-bottom: 25px;
    }

.video-panel {
        background: #000;
        border-radius: var(--radius-md);
        overflow: hidden;
        position: relative;
        min-height: 400px;
        display: flex;
        flex-direction: column;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    }

.video-container {
        width: 100%;
        height: 100%;
        min-height: 400px;
        position: relative;
        flex: 1;
    }

.vimeo-player-wrapper {
        width: 100%;
        height: 100%;
        position: relative;
    }

.vimeo-player-container {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }

.vimeo-player-container iframe {
        width: 100%;
        height: 100%;
        border: none;
        display: block;
    }

.lista-videos-panel {
        background: rgba(28, 28, 30, 0.6);
        backdrop-filter: blur(30px);
        border-radius: var(--radius-md);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        max-height: 500px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

.lista-videos-header {
        padding: 20px;
        background: rgba(0, 0, 0, 0.3);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

.lista-videos-header h4 {
        font-size: 18px;
        font-weight: 700;
        color: white;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.lista-videos-header .material-icons {
        font-size: 22px;
        color: var(--curso-color-secondary);
    }

.lista-videos-contenido {
        flex: 1;
        overflow-y: auto;
        padding: 15px;
    }

.item-video-lista {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 15px;
        border-radius: 12px;
        cursor: pointer;
        transition: all var(--transition-base);
        margin-bottom: 8px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid transparent;
        position: relative;
    }

.item-video-lista:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(5px);
        border-color: rgba(255, 255, 255, 0.1);
    }

.item-video-lista.activo {
        background: var(--curso-color-pale);
        border-color: var(--curso-color-border);
    }

.numero-video {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: rgba(0, 0, 0, 0.3);
        color: var(--gray-4);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 16px;
        flex-shrink: 0;
        position: relative;
        transition: all var(--transition-base);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

.item-video-lista.activo .numero-video {
        background: var(--curso-color-gradient);
        color: white;
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

.numero-video::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.1) 100%);
        border-radius: 12px;
        opacity: 0;
        transition: opacity var(--transition-base);
    }

.item-video-lista.activo .numero-video::after {
        opacity: 1;
    }

.info-item-lista {
        flex: 1;
        min-width: 0;
    }

.titulo-item-lista {
        font-size: 15px;
        font-weight: 600;
        margin-bottom: 5px;
        color: white;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.4;
    }

.estado-item-lista {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 13px;
    }

.tiempo-item-lista {
        color: var(--gray-4);
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 5px;
    }

.tiempo-item-lista .material-icons {
        font-size: 14px;
    }

.lista-pdfs-completa {
        background: rgba(28, 28, 30, 0.6);
        backdrop-filter: blur(30px);
        border-radius: var(--radius-lg);
        padding: 0;
        margin-bottom: 25px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

.pdf-item-completo {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        background: transparent;
        transition: all var(--transition-base);
        position: relative;
    }

.pdf-item-completo:last-child {
        border-bottom: none;
    }

.pdf-item-completo:hover {
        background: rgba(255, 255, 255, 0.05);
    }

.pdf-item-completo::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: var(--curso-color-gradient);
        opacity: 0;
        transition: opacity var(--transition-base);
    }

.pdf-item-completo:hover::before {
        opacity: 1;
    }

.pdf-item-lista {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 25px 30px;
        background: transparent;
        transition: all var(--transition-base);
    }

.pdf-info-basica {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 20px;
    }

.pdf-numero {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: rgba(0, 0, 0, 0.3);
        color: var(--curso-color-secondary);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 18px;
        flex-shrink: 0;
        border: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
        overflow: hidden;
    }

.pdf-numero::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.1) 100%);
    }

.pdf-datos {
        flex: 1;
    }

.pdf-titulo {
        font-size: 18px;
        font-weight: 700;
        color: white;
        margin-bottom: 8px;
        line-height: 1.4;
    }

.pdf-descripcion {
        font-size: 15px;
        color: var(--gray-4);
        margin-bottom: 12px;
        line-height: 1.4;
        font-weight: 400;
    }

.pdf-metadata {
        display: flex;
        gap: 15px;
        font-size: 14px;
        color: var(--gray-5);
    }

.pdf-metadata span {
        display: flex;
        align-items: center;
        gap: 6px;
    }

.pdf-metadata .material-icons {
        font-size: 16px;
    }

.pdf-acciones {
        display: flex;
        gap: 10px;
        flex-shrink: 0;
    }

.pdf-btn {
        padding: 12px 20px;
        border-radius: var(--radius-md);
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        border: none;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: all var(--transition-base);
        letter-spacing: 0.3px;
        backdrop-filter: blur(10px);
        min-width: 120px;
        justify-content: center;
    }

.pdf-btn.comentarios {
        background: var(--curso-color-pale);
        color: var(--curso-color-secondary);
        border: 1px solid var(--curso-color-border);
    }

.pdf-btn.comentarios:hover {
        background: var(--curso-color-secondary);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px var(--curso-color-shadow);
    }

.pdf-btn.ver {
        background: rgba(0, 122, 255, 0.1);
        color: var(--blue);
        border: 1px solid rgba(0, 122, 255, 0.2);
    }

.pdf-btn.ver:hover {
        background: var(--blue);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2);
    }

.pdf-btn.descargar {
        background: rgba(52, 199, 89, 0.1);
        color: var(--green);
        border: 1px solid rgba(52, 199, 89, 0.2);
    }

.pdf-btn.descargar:hover {
        background: var(--green);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(52, 199, 89, 0.2);
    }

.pdf-btn .material-icons {
        font-size: 18px;
    }

.pdf-btn.compact {
        min-width: auto;
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
        border-radius: 12px;
    }

.pdf-btn.compact .btn-text {
        display: none;
    }

.pdf-dudas-contenido {
        display: none;
        padding: 25px 30px;
        background: rgba(0, 0, 0, 0.2);
        border-top: 1px dashed rgba(255, 255, 255, 0.1);
        animation: fadeIn 0.25s ease;
        width: 95%;
        margin: 10px auto 20px;
        border-radius: var(--radius-md);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
        border-left: 3px solid var(--curso-color-secondary);
    }

.pdf-dudas-contenido.expanded {
        display: block;
        transform: translateY(0);
        opacity: 1;
    }

.seccion-dudas {
        background: rgba(28, 28, 30, 0.6);
        backdrop-filter: blur(30px);
        border-radius: var(--radius-lg);
        padding: 0;
        margin-top: 25px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        overflow: hidden;
    }

.dudas-header {
        padding: 20px 25px;
        background: rgba(0, 0, 0, 0.3);
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all var(--transition-base);
    }

.dudas-header:hover {
        background: rgba(0, 0, 0, 0.4);
    }

.dudas-header.expanded {
        background: rgba(0, 0, 0, 0.4);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

.dudas-titulo {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 18px;
        font-weight: 700;
        color: white;
        margin: 0;
        letter-spacing: -0.2px;
    }

.dudas-titulo .material-icons {
        font-size: 22px;
        color: var(--curso-color-secondary);
    }

.dudas-contenido {
        overflow: hidden;
        height: 0;
        opacity: 0;
        transform: translateY(-5px);
        transition: all var(--transition-smooth);
    }

.dudas-contenido.expanded {
        height: auto;
        opacity: 1;
        transform: translateY(0);
    }

.giscus-global {
        display: none;
        min-height: 300px;
        position: relative;
        border-radius: var(--radius-md);
        overflow: hidden;
        padding: 20px;
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 20px;
    }

.giscus-loading {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(28, 28, 30, 0.9);
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: var(--radius-md);
        z-index: 2;
    }

.giscus-frame {
        width: 100%;
        min-height: 300px;
        border: none;
        border-radius: var(--radius-md);
        background: white;
    }

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

@keyframes checkPop {
        0% {
            transform: scale(0.8);
            opacity: 0;
        }
        50% {
            transform: scale(1.2);
        }
        100% {
            transform: scale(1);
            opacity: 1;
        }
    }

.sin-resultados {
        text-align: center;
        padding: 60px 40px;
        color: var(--gray-4);
    }

.sin-resultados .material-icons {
        font-size: 64px;
        margin-bottom: 20px;
        opacity: 0.3;
        color: var(--curso-color-secondary);
    }

.sin-resultados h3 {
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 15px;
        color: white;
    }

.sin-resultados p {
        font-size: 16px;
        color: var(--gray-4);
        margin-bottom: 30px;
        line-height: 1.5;
    }

.lesson-item.hidden,
    .tema-seccion.hidden {
        display: none !important;
    }

.seccion-contenido.hidden {
        display: none !important;
    }

@media (prefers-reduced-motion: reduce) {
        * {
            animation: none !important;
            transition: none !important;
        }
    }

.tema-apartado {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-left: 20px;
    position: relative;
}

.apartado-header {
    padding: 20px 20px 20px 30px;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    border-left: 3px solid transparent;
}

.apartado-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.apartado-header.expanded {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--curso-color-secondary);
}

.apartado-main-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.apartado-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--curso-color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.apartado-title-section {
    flex: 1;
}

.apartado-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    letter-spacing: -0.3px;
}

.apartado-desc {
    font-size: 15px;
    color: var(--gray-4);
    margin: 0;
    font-weight: 400;
}

.apartado-contenido {
    overflow: hidden;
    height: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--transition-smooth);
    position: relative;
    will-change: height, opacity, transform;
}

.apartado-contenido.expanded {
    height: auto;
    opacity: 1;
    transform: translateY(0);
}

.sin-contenido {
    padding: 30px;
    text-align: center;
    color: var(--gray-4);
    font-size: 16px;
}

#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(circle at 30% 30%, #5a2ca055 0%, transparent 60%),
    radial-gradient(circle at 70% 60%, #1e88e555 0%, transparent 55%),
    linear-gradient(
      180deg,
      #03010a 0%,
      #090717 50%,
      #0f0b22 100%
    );
}

/* =========================
   MOBILE BOTTOM NAV
========================= */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(18, 18, 20, 0.92);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--gray-5);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
    flex: 1;
}

.mobile-bottom-nav .nav-item .material-icons {
    font-size: 22px;
}

.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item:hover {
    color: var(--blue-light);
}

/* Ocultar en desktop */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* =========================
   AUTH OVERLAY
========================= */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.auth-modal {
    background: rgba(28, 28, 30, 0.98);
    backdrop-filter: blur(80px) saturate(200%);
    -webkit-backdrop-filter: blur(80px) saturate(200%);
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.auth-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.auth-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.auth-header {
    margin-bottom: 24px;
    text-align: center;
}

.auth-header h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--gray-4);
    font-size: 15px;
}

.auth-message {
    display: none;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.auth-message.show {
    display: block;
}

.auth-message.error {
    background: rgba(255, 69, 58, 0.14);
    color: #FFB4AE;
    border: 1px solid rgba(255, 69, 58, 0.35);
}

.auth-message.info {
    background: rgba(90, 200, 250, 0.12);
    color: var(--blue-light);
    border: 1px solid rgba(90, 200, 250, 0.28);
}

.auth-provider-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 20px;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.95);
    color: #1f1f1f;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.auth-provider-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.18);
}

.auth-provider-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #4285F4 0%, #34A853 35%, #FBBC05 65%, #EA4335 100%);
    color: white;
    font-weight: 800;
    font-size: 14px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 22px;
    color: var(--gray-5);
    font-size: 13px;
    font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.clear-search {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: var(--gray-5);
            cursor: pointer;
            padding: 4px;
            border-radius: 50%;
            display: none;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

.clear-search:hover {
            color: var(--gray-3);
            background: rgba(255, 255, 255, 0.1);
        }

.search-input:not(:placeholder-shown) + .clear-search {
            display: flex;
        }

.advanced-filters {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
            margin: 25px auto 30px;
            max-width: 1200px;
            padding: 0 20px;
        }

.filter-options {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            flex: 1 1 auto;
        }

.filter-option {
            padding: 10px 18px;
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: var(--radius-md);
            color: var(--gray-4);
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
            flex-shrink: 0;
            letter-spacing: 0.3px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

.filter-option:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-2px);
        }

.filter-option.active {
            background: rgba(90, 200, 250, 0.2);
            color: var(--blue-light);
            border-color: rgba(90, 200, 250, 0.4);
        }

.filter-option .material-icons {
            font-size: 16px;
        }

.search-info {
            color: var(--gray-4);
            font-size: 14px;
            font-weight: 500;
            padding: 8px 16px;
            background: rgba(255, 255, 255, 0.03);
            border-radius: var(--radius-md);
            border: 1px solid rgba(255, 255, 255, 0.05);
            margin-left: auto;
            white-space: nowrap;
        }

.empty-courses-state {
            text-align: center;
            padding: 60px;
        }

.empty-courses-state .btn-primary {
            margin-top: 18px;
        }

.no-results {
            grid-column: 1 / -1;
            text-align: center;
            padding: 60px 20px;
        }

.no-results-icon {
            font-size: 48px;
            color: var(--gray-5);
            margin-bottom: 20px;
            opacity: 0.5;
        }

.no-results h3 {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 10px;
            color: white;
        }

.no-results p {
            color: var(--gray-4);
            font-size: 16px;
            margin-bottom: 25px;
        }

/* =========================
   SCROLL HERO CONTAINER
========================= */
.scroll-hero-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scroll-hero-container::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

.scroll-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: translateY(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px 0;
    margin: 0;
}

.scroll-section.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =========================
   HOME PAGE - HERO SECCIÓN 1
========================= */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.scroll-title {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: white;
    margin-bottom: 1.5rem;
}

.scroll-title .highlight {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.scroll-subtitle {
    font-size: 1.3rem;
    color: var(--gray-3);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-4);
    font-weight: 500;
    margin-top: 4px;
}

.hero-cta-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Indicador de scroll */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator.corner {
    bottom: 2.5rem;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    animation: wheelScroll 1.5s ease-in-out infinite;
}

.arrow-indicator .material-icons {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.6);
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(5px); }
}

@keyframes wheelScroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* =========================
   HOME PAGE - SECCIÓN 2 PROCESO
========================= */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.process-step {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.process-step:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-4px);
    border-color: rgba(90, 200, 250, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.step-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: white;
}

.step-icon {
    margin: 1rem auto 1rem;
    width: 56px;
    height: 56px;
    background: rgba(90, 200, 250, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon .material-icons {
    font-size: 28px;
    color: var(--blue-light);
}

.step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

/* =========================
   HOME PAGE - SECCIÓN 3 CURSOS DESTACADOS
========================= */
.featured-courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.loading-courses {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem;
    color: var(--gray-4);
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--blue-light);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* =========================
   SECTION NAV (DOTS)
========================= */
.section-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: var(--blue-light);
    transform: scale(1.3);
}

.nav-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.dot-tooltip {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(28, 28, 30, 0.9);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.nav-dot:hover .dot-tooltip {
    opacity: 1;
    visibility: visible;
}

.section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
}

.slide-gradient-3 {
    background: radial-gradient(ellipse at 50% 20%, rgba(88, 86, 214, 0.25) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 80%, rgba(90, 200, 250, 0.15) 0%, transparent 50%);
}

.gradient-text {
    background: linear-gradient(135deg, #FFFFFF 0%, #5AC8FA 50%, #5856D6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
    overflow-y: auto;
    max-height: calc(100vh - 80px);
    margin: 40px auto;
}

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

#section1.scroll-section {
    height: 100vh;
    min-height: 100vh;
}

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

.hero-cta.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
}

.hero-cta.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.hero-cta:hover .cta-icon {
    transform: translateX(5px);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #5AC8FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem !important;
    color: var(--gray-4) !important;
    max-width: 500px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

.step-description {
    color: var(--gray-4);
    line-height: 1.5;
    font-size: 0.9375rem;
}

.section-cta {
    text-align: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.4);
}

.cta-button.outline {
    background: transparent;
    border: 2px solid var(--blue-light);
    color: var(--blue-light);
}

.cta-button.outline:hover {
    background: rgba(90, 200, 250, 0.1);
}

.featured-courses-grid .curso-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.75rem;
    border-radius: 18px;
    background: rgba(28, 28, 30, 0.7);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease, background 0.3s ease;
}

.featured-courses-grid .curso-card:hover {
    background: rgba(44, 44, 46, 0.8);
    transform: translateY(-5px);
}

.curso-actions button {
    flex: 1;
}

.error-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--gray-4);
}

.error-state .material-icons {
    font-size: 48px;
    margin-bottom: 1rem;
    color: var(--red);
}

#section3 .section-content {
    margin-top: 100px !important;
}

#section4.scroll-section {
    height: 100vh !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    overflow: hidden !important;
}

#section4 .section-content {
    width: 100%;
    max-width: 1200px;
    height: auto;
    max-height: calc(100vh - 40px);
    padding: 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible !important;
    margin-top: 100px !important;
}

#section4 .content-wrapper {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.pricing-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px 0;
    overflow: visible;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 30px;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 520px;
    min-height: 520px;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-8px);
    background: rgba(44, 44, 46, 0.9);
    border-color: var(--blue-light);
    box-shadow: 0 20px 60px rgba(0, 122, 255, 0.3);
}

.pricing-card.featured {
    border-color: var(--orange);
    background: rgba(28, 28, 30, 0.9);
    height: 560px;
    min-height: 560px;
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(255, 159, 10, 0.2);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-8px);
    box-shadow: 0 25px 70px rgba(255, 159, 10, 0.3);
}

.pricing-card.ultra:hover {
    border-color: #AF52DE;
    box-shadow: 
        0 8px 25px rgba(175, 82, 222, 0.4),
        0 0 0 1px rgba(175, 82, 222, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.pricing-card-inner {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
}

.pricing-card-header {
    margin-bottom: 25px;
    text-align: center;
}

.plan-label {
    font-size: 0.875rem;
    color: var(--blue-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    font-weight: 700;
}

.pricing-card.featured .plan-label {
    color: var(--orange);
}

.pricing-card.ultra .plan-label {
    color: #AF52DE;
}

.pricing-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin: 0;
    background: linear-gradient(135deg, #FFFFFF 0%, #5AC8FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.pricing-card.featured .pricing-title {
    background: linear-gradient(135deg, #FF9F0A 0%, #FFD60A 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.pricing-card.ultra .pricing-title {
    background: linear-gradient(135deg, #5856D6 0%, #AF52DE 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.pricing-price {
    margin-bottom: 25px;
    text-align: center;
}

.price-savings {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.original-price {
    font-size: 0.875rem;
    color: var(--gray-4);
    text-decoration: line-through;
}

.savings-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--green);
    background: var(--green-pale);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.price-amount {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #FFFFFF 0%, #5AC8FA 50%, #5856D6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-card.featured .price-amount {
    background: linear-gradient(135deg, #FF9F0A 0%, #FFD60A 50%, #FF375F 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.pricing-card.ultra .price-amount {
    background: linear-gradient(135deg, #5856D6 0%, #AF52DE 50%, #FF2D55 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.price-unit {
    font-size: 0.875rem;
    color: var(--gray-4);
    font-weight: 500;
}

.pricing-features {
    flex: 1;
    margin-bottom: 30px;
    padding: 0 10px;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--gray-3);
    font-size: 0.9375rem;
    line-height: 1.4;
}

.pricing-feature.highlight {
    color: var(--orange);
    font-weight: 600;
}

.pricing-card.ultra .pricing-feature.highlight {
    color: #AF52DE;
    font-weight: 600;
}

.pricing-feature .material-icons {
    font-size: 1.25rem;
    color: var(--blue-light);
    flex-shrink: 0;
}

.pricing-card.featured .pricing-feature .material-icons {
    color: var(--orange);
}

.pricing-card.ultra .pricing-feature .material-icons {
    color: #AF52DE;
}

.pricing-feature.highlight .material-icons {
    color: var(--orange);
}

.pricing-btn {
    width: 100%;
    padding: 18px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-top: auto;
    flex-shrink: 0;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}

.basic-btn {
    background: var(--gradient-primary);
    color: white;
    backdrop-filter: blur(10px);
}

.basic-btn:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.premium-btn {
    background: linear-gradient(135deg, #FF9F0A 0%, #FFD60A 50%, #FF375F 100%);
    color: black;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.2);
}

.premium-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.4);
}

.ultra-btn {
    background: linear-gradient(135deg, #5856D6 0%, #AF52DE 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(88, 86, 214, 0.2);
}

.ultra-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(88, 86, 214, 0.4);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.faq-question.active .material-icons {
    transform: rotate(180deg);
}

.faq-answer.open {
    max-height: 500px;
}

.final-cta {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.final-cta h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.final-cta p {
    color: var(--gray-4);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (min-width: 1025px) {
    .scroll-indicator.corner {
        position: absolute;
        bottom: 30px;
        right: 30px;
        z-index: 100;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        opacity: 0.7;
        transition: opacity 0.3s ease;
    }
    
    .scroll-indicator.corner:hover {
        opacity: 1;
    }
    
    .mouse {
        width: 24px;
        height: 36px;
        border: 2px solid rgba(255, 255, 255, 0.5);
        border-radius: 12px;
        position: relative;
    }
    
    .wheel {
        width: 3px;
        height: 6px;
        background: white;
        border-radius: 2px;
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        animation: scrollWheel 2s infinite;
    }
    
    .arrow-indicator {
        animation: bounce 2s infinite;
    }
    
    .arrow-indicator .material-icons {
        font-size: 24px;
        color: rgba(255, 255, 255, 0.7);
    }
}

@keyframes scrollWheel {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0.5;
    }
}

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

.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.4);
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Ajustes de tipografía */
    .scroll-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    /* Mejor disposición de los process steps */
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Cursos destacados en 2 columnas */
    .featured-courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Precios con mejor distribución */
    .pricing-container {
        width: 100%;
        max-width: 700px;
        margin: 0 auto;
    }
    
    .pricing-grid {
        gap: 30px;
    }
    
    .pricing-card,
    .pricing-card.featured,
    .pricing-card.ultra {
        width: 100% !important;
        max-width: 100%;
        height: 500px;
    }
    
    .pricing-card.featured {
        height: 520px;
    }
    
    /* Botones más grandes para tacto */
    .hero-cta,
    .cta-button,
    .pricing-btn,
    .curso-actions button {
        min-height: 54px;
        font-size: 1.1rem;
    }
    
    /* Mejor espaciado */
    .section-content {
        padding: 30px 20px;
    }
    
    /* Header fijo ajustado */
    #section1.scroll-section {
        padding-top: 120px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .scroll-title {
        font-size: 2.4rem;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: center;
        gap: 2.5rem;
    }
    
    .process-steps {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .process-step {
        padding: 1.2rem;
    }
    
    .featured-courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Precios en 2 columnas para landscape */
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-card.ultra {
        grid-column: span 2;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .pricing-card,
    .pricing-card.featured {
        height: 480px;
    }
}

@media (max-width: 768px) and (max-height: 700px) {
    .scroll-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .scroll-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        margin-bottom: 1.5rem;
    }
    
    #section1 {
        padding: 80px 0 30px;
        min-height: 100vh;
    }
    
    #section1 .content-wrapper {
        min-height: calc(100vh - 110px);
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .scroll-title {
        font-size: 1.8rem;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: space-around;
        gap: 1rem;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .scroll-section {
        min-height: auto;
        padding: 60px 0 30px;
    }
    
    #section1.scroll-section {
        min-height: 100vh !important;
        padding: 100px 0 40px !important;
    } 
}

@media (max-width: 1024px) {
    .section-nav {
        display: none;
    }
    
    .scroll-hero-container {
        height: auto;
        overflow: visible;
    }
    
    .scroll-section {
        height: auto !important;
        min-height: 100vh;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
}

.post-body a.b-tooltip-container {
      position: relative;
      display: inline-block;
    }

.post-body a.b-tooltip-container .b-tooltip {
      display: block !important;
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translate(-20%, 1px);
      visibility: hidden;
      opacity: 0;
      z-index: 1;
      transition: opacity 0.2s ease-in-out;
    }

.post-body a.b-tooltip-container .b-tooltip iframe {
      width: 200px;
      height: 198px;
      max-width: none;
      border: none;
      border-radius: 20px;
      box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.2);
    }

@media (hover: hover) {
      .post-body a.b-tooltip-container:hover .b-tooltip {
        visibility: visible;
        opacity: 1;
      }
    }