/* === FONDO CON GRADIENTE PARA SECCIONES DE CURSOS === */
#cursosfree.content-section.active,
#cursospay.content-section.active {
    background: linear-gradient(to bottom, #0040ff00 0%, #000000d6 40%, #000 100%) !important;
    min-height: 100vh;
    padding: 40px 0;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    position: relative;
    overflow: hidden;
}

/* === HERO/BANNER DE LA SECCIÓN === */
.cursos-hero {
    background: url('https://i.pinimg.com/736x/8d/ad/8a/8dad8ae3fa8915b93754dfffdd421b62.jpg') center/cover no-repeat;
    border-radius: 28px;
    margin: 120px auto 40px auto;
    max-width: 1200px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0;
}

.cursos-hero .cursos-title {
    font-size: 4.5rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    text-align: center;
    letter-spacing: 3px;
    width: 100%;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.05;
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.cursos-hero:hover .cursos-title {
    color: #fff;
}

/* === HERO BANNER MODERNO PARA CURSOS SIN CONTENEDOR === */
.cursos-hero-banner.cursos-hero-modern {
    background: none !important;
    background-image: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    z-index: 2;
    overflow: visible;
}
.cursos-pill-modern {
    display: inline-block;
    background: linear-gradient(90deg, #0a58f2 0%, #3b82f6 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 10px 32px;
    border-radius: 999px;
    box-shadow: 0 2px 12px 0 rgba(59,130,246,0.15);
    margin-bottom: 18px;
    letter-spacing: 1px;
    border: 1.5px solid #1e293b;
    text-shadow: 0 1px 2px rgba(0,0,0,0.10);
    transition: background 0.3s;
}
.cursos-pill-modern i {
    margin-right: 8px;
    font-size: 1.2em;
    vertical-align: middle;
}
/* Unificación de estilos para banners de cursos gratuitos y de pago */
.cursos-hero-title-main {
    font-size: 4.2rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    letter-spacing: 2px;
    line-height: 1.05;
}
.cursos-hero-title-gradient {
    font-size: 3.2rem;
    font-weight: 900;
    margin: 0 0 10px 0;
    background: linear-gradient(90deg, #0a58f2 0%, #3b82f6 60%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    letter-spacing: 1.5px;
    line-height: 1.05;
}
.cursos-hero-desc-modern {
    font-size: 1.18rem;
    color: #cbd5e1;
    margin: 0 0 28px 0;
    max-width: 700px;
    line-height: 1.6;
}
.cursos-btn-primary {
    background: #2563eb;
    color: #fff;
    border: none;
}
.cursos-btn-primary:hover {
    background: #1d4ed8;
    color: #fff;
}
.cursos-btn-secondary {
    background: #181e29;
    color: #fff;
    border: 1.5px solid #334155;
}
.cursos-btn-secondary:hover {
    background: #232946;
    color: #60a5fa;
    border-color: #3b82f6;
}

.cursos-hero-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 10px;
    flex-wrap: wrap;
}
.cursos-btn {
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 12px 0 rgba(59,130,246,0.10);
    margin-bottom: 8px;
}

@media (max-width: 700px) {
    .cursos-hero-title-main {
        font-size: 2.2rem;
    }
    .cursos-hero-title-gradient {
        font-size: 1.5rem;
    }
    .cursos-hero-banner.cursos-hero-modern {
        padding: 32px 8px 24px 8px;
        border-radius: 18px;
    }
    .cursos-hero-desc-modern {
        font-size: 1rem;
    }
    .cursos-btn {
        font-size: 1rem;
        padding: 12px 18px;
    }
    .cursos-hero-buttons {
        gap: 10px;
    }
}

/* === SEPARADOR BLANCO === */
.cursos-separador {
    width: 80%;
    height: 5px;
    background: #fff;
    border-radius: 3px;
    margin: 48px auto 48px auto;
    display: block;
}

/* === TÍTULO DE SECCIÓN DESTACADO === */
.cursos-destacado-title {
    font-size: 2.5rem;
    color: white;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-align: center;
    margin-bottom: 32px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

/* === CARD DESTACADA === */
.curso-destacado-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    max-width: 700px;
    margin: 0 auto 48px auto;
    overflow: hidden;
    padding: 0;
    position: relative;
    transition: all 0.3s ease;
}

.curso-destacado-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.curso-destacado-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.curso-destacado-card:hover::before {
    opacity: 1;
}

.curso-destacado-img {
    width: 180px;
    height: 140px;
    object-fit: cover;
    border-radius: 18px 0 0 18px;
    display: block;
}

.curso-destacado-info {
    flex: 1;
    padding: 24px 32px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    position: relative;
    z-index: 2;
}

.curso-destacado-sub {
    color: #3b82f6;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: 700;
    display: block;
    position: relative;
    z-index: 2;
}

.curso-destacado-nombre {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.curso-destacado-desc {
    font-size: 1em;
    color: #a5b4fc;
    margin-bottom: 0;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

@media (max-width: 900px) {
    .curso-destacado-card {
        flex-direction: column;
        max-width: 98%;
    }
    .curso-destacado-img {
        width: 100%;
        height: 180px;
        border-radius: 18px 18px 0 0;
    }
    .curso-destacado-info {
        padding: 18px 12px;
        text-align: center;
    }
}

/* === GRID DE CURSOS === */
.cursos-list {
    padding: 40px 0 60px 0;
    background: transparent;
}

/* === ESTILO DE TARJETAS DE CURSOS (ESTILO PRODUCTOS) === */
.cursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-items: center;
    padding: 0 10px;
    margin-top: 40px;
}

/* Grid específico para tendencias - 3 columnas fijas */
.cursos-tendencias .cursos-grid {
    grid-template-columns: repeat(3, minmax(320px, 1fr));
    max-width: 1200px;
    margin: 20px auto;
    gap: 25px;
    justify-items: center;
}

/* Grid para cursos normales - también 3 columnas fijas */
.cursos-normales .cursos-grid {
    grid-template-columns: repeat(3, minmax(320px, 1fr));
    max-width: 1200px;
    margin: 20px auto;
    gap: 25px;
    justify-items: center;
}

/* Responsive para tendencias */
@media (max-width: 1200px) {
    .cursos-tendencias .cursos-grid,
    .cursos-normales .cursos-grid {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
        gap: 20px;
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .cursos-tendencias .cursos-grid,
    .cursos-normales .cursos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 100%;
    }
    
    .curso-card {
        min-width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .cursos-tendencias .cursos-grid,
    .cursos-normales .cursos-grid {
        grid-template-columns: 1fr;
        gap: 5px;
        max-width: 100%;
    }
    
    .curso-card {
        min-width: 100%;
        max-width: 100%;
    }
}

.curso-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 350px;
    max-width: 450px;
    min-height: 400px;
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0;
    color: #e0e0e0;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.curso-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.curso-card:hover {
    border-color: #00d4ff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.curso-card:hover::before {
    opacity: 1;
}

.curso-card img {
    width: 100%;
    height: 280px;
    border-radius: 20px 20px 0 0;
    object-fit: cover;
    margin-bottom: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.curso-card .curso-info {
    width: 100%;
    padding: 25px 25px 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.curso-card h2 {
    font-size: 1rem;
    margin: 0;
    margin-bottom: 15px;
    color: white;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    position: relative;
    z-index: 2;
}

.curso-card p {
    font-size: 0.9rem;
    color: #a5b4fc;
    margin-bottom: 20px;
    text-align: left;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

.curso-card .ver-curso-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(102, 126, 234, 0.2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    outline: none;
    margin-top: 15px;
    width: calc(100% - 40px);
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
}

.curso-card .ver-curso-btn:hover {
    background: rgba(102, 126, 234, 0.3);
    transform: scale(1.05);
}

@media (min-width: 1024px) {
    .curso-card img {
        height: 240px;
    }

    .curso-card h2 {
        font-size: 1.4rem;
    }

    .curso-card p {
        font-size: 1.2rem;
    }

    .curso-card .ver-curso-btn {
        font-size: 1rem;
    }
}

@media (max-width: 1024px) {
    .cursos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .cursos-grid {
        grid-template-columns: 1fr;
    }
}

/* === CARDS DE CURSOS: IMAGEN COMO HERO === */
.curso-card {
    background: #181a22;
    border-radius: 18px;
    border: 1px solid #23244a;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    min-height: 350px;
    max-width: 380px;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.curso-card:hover {
    border-color: #00d4ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

.curso-card img,
.curso-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 18px 18px 0 0;
    margin-bottom: 0;
    background: #181c2f;
    display: block;
}

.curso-info, .curso-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 18px 20px 20px 20px;
    background: none;
}

/* Botones de cursos con estilo de píldoras azules */
.curso-btn, .curso-card .buy-button, .curso-free, .curso-premium {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    color: white;
    border: 2px solid rgba(102, 126, 234, 0.6);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    outline: none;
    width: calc(100% - 50px);
    margin-top: 15px;
    font-size: 0.8rem;
}

/* Botón de corazón para guardar curso */
.curso-heart-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    color: #ff6b6b;
    border: 2px solid #ff6b6b;
    border-radius: 50%;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    outline: none;
    margin-top: 15px;
    margin-left: 10px;
}

.curso-heart-btn:hover {
    background: #ff6b6b;
    color: white;
    transform: scale(1.1);
}

.curso-heart-btn.active {
    background: #ff6b6b;
    color: white;
}

/* Contenedor de botones */
.curso-buttons-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 15px;
}

.curso-btn:hover, .curso-card .buy-button:hover, .curso-free:hover, .curso-premium:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 1);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* === TÍTULOS DE SECCIÓN (ESTILO NFT) === */
.cursos-section-header {
    margin: 60px 0 40px 0;
    text-align: left;
    padding: 0 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.cursos-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    text-transform: uppercase;
    padding-left: 20px;
    position: relative;
    z-index: 2;
}

.cursos-title-normal {
    color: white;
}

.cursos-title-highlight {
    color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === SECCIONES DE CURSOS === */
.cursos-tendencias,
.cursos-normales {
    margin-bottom: 80px;
}

.cursos-tendencias .cursos-grid,
.cursos-normales .cursos-grid {
    margin-top: 30px;
} 

.cursos-hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 90px;
    margin-bottom: 70px;
} 

.bio-separator, .cursos-hero-bar {
    margin: 80px auto 80px auto !important;
    display: block;
} 

.cursos-hero-bar {
    margin: 120px auto 120px auto !important;
    height: 3px;
    width: 80%;
    max-width: 800px;
    border: none;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(180,190,255,1) 50%, rgba(255,255,255,0) 100%);
    opacity: 1;
    border-radius: 2px;
    display: block;
} 

/* === TARJETAS DE CURSOS ESTILO BANNER === */
.curso-card {
    background: #181e29;
    border-radius: 28px;
    box-shadow: 0 4px 32px 0 rgba(30,41,59,0.18);
    overflow: hidden;
    border: 1.5px solid #232946;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: box-shadow 0.2s, transform 0.2s;
}
.curso-card:hover {
    box-shadow: 0 8px 40px 0 rgba(59,130,246,0.18);
    transform: translateY(-4px) scale(1.02);
}
.curso-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 28px 28px 0 0;
}
.curso-info {
    padding: 32px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}
.curso-info h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.curso-info p {
    color: #60a5fa;
    font-size: 1.08rem;
    font-weight: 500;
    margin: 0 0 24px 0;
    letter-spacing: 0.2px;
}
.ver-curso-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    font-size: 1.08rem;
    border: none;
    border-radius: 999px;
    padding: 14px 36px;
    margin-right: 12px;
    box-shadow: 0 2px 12px 0 rgba(59,130,246,0.10);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    text-decoration: none;
    gap: 8px;
}
.ver-curso-btn:hover {
    background: #1d4ed8;
    color: #fff;
    box-shadow: 0 4px 24px 0 rgba(59,130,246,0.18);
}
.curso-buttons-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.curso-heart-btn {
    background: none;
    border: 2px solid #60a5fa;
    color: #60a5fa;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.curso-heart-btn:hover {
    background: #232946;
    color: #fff;
    border-color: #2563eb;
}
@media (max-width: 700px) {
    .curso-card img {
        height: 160px;
    }
    .curso-info {
        padding: 18px 10px 18px 10px;
    }
    .curso-info h2 {
        font-size: 1.1rem;
    }
    .ver-curso-btn {
        font-size: 1rem;
        padding: 10px 18px;
    }
    .curso-heart-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
} 

/* === TARJETAS DE CURSOS EN TENDENCIAS (ESTILO PRICING CARD) === */
.cursos-tendencias .curso-card {
    background: #1e2746;
    border: 2px solid #2563eb;
    border-radius: 32px;
    box-shadow: 0 8px 40px 0 rgba(37,99,235,0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 38px 32px 32px 32px;
    margin-bottom: 32px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.cursos-tendencias .curso-card:hover {
    box-shadow: 0 16px 60px 0 rgba(37,99,235,0.28);
    transform: translateY(-6px) scale(1.03);
}
.cursos-tendencias .curso-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 24px;
    margin-bottom: 28px;
}
.cursos-tendencias .curso-info {
    width: 100%;
    text-align: center;
    padding: 0;
}
.cursos-tendencias .curso-info h2 {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 900;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
    text-transform: none;
}
.cursos-tendencias .curso-info p {
    color: #a5b4fc;
    font-size: 1.08rem;
    font-weight: 500;
    margin: 0 0 28px 0;
    letter-spacing: 0.2px;
}
.cursos-tendencias .ver-curso-btn {
    width: 100%;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    font-size: 1.08rem;
    border: none;
    border-radius: 16px;
    padding: 16px 0;
    margin: 0;
    box-shadow: 0 2px 12px 0 rgba(59,130,246,0.10);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    text-decoration: none;
    gap: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cursos-tendencias .ver-curso-btn:hover {
    background: #1d4ed8;
    color: #fff;
    box-shadow: 0 4px 24px 0 rgba(59,130,246,0.18);
}
.cursos-tendencias .curso-buttons-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 18px;
}
.cursos-tendencias .curso-heart-btn {
    background: none;
    border: 2px solid #60a5fa;
    color: #60a5fa;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-left: 12px;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.cursos-tendencias .curso-heart-btn:hover {
    background: #232946;
    color: #fff;
    border-color: #2563eb;
}

/* === TARJETAS DE CURSOS NORMALES (ESTILO PRICING CARD) === */
.cursos-normales .curso-card {
    background: #181e29;
    border: 2px solid #232946;
    border-radius: 32px;
    box-shadow: 0 8px 40px 0 rgba(30,41,59,0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 38px 32px 32px 32px;
    margin-bottom: 32px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.cursos-normales .curso-card:hover {
    box-shadow: 0 16px 60px 0 rgba(30,41,59,0.28);
    transform: translateY(-6px) scale(1.03);
}
.cursos-normales .curso-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 24px;
    margin-bottom: 28px;
}
.cursos-normales .curso-info {
    width: 100%;
    text-align: center;
    padding: 0;
}
.cursos-normales .curso-info h2 {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 900;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
    text-transform: none;
}
.cursos-normales .curso-info p {
    color: #a5b4fc;
    font-size: 1.08rem;
    font-weight: 500;
    margin: 0 0 28px 0;
    letter-spacing: 0.2px;
}
.cursos-normales .ver-curso-btn {
    width: 100%;
    background: #232946;
    color: #fff;
    font-weight: 700;
    font-size: 1.08rem;
    border: none;
    border-radius: 16px;
    padding: 16px 0;
    margin: 0;
    box-shadow: 0 2px 12px 0 rgba(59,130,246,0.10);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    text-decoration: none;
    gap: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cursos-normales .ver-curso-btn:hover {
    background: #181e29;
    color: #0073ff !important;
    box-shadow: 0 4px 24px 0 rgba(59,130,246,0.18);
}
.cursos-normales .curso-buttons-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 18px;
}
.cursos-normales .curso-heart-btn {
    background: none;
    border: 2px solid #60a5fa;
    color: #60a5fa;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-left: 12px;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.cursos-normales .curso-heart-btn:hover {
    background: #232946;
    color: #fff;
    border-color: #2563eb;
}

@media (max-width: 700px) {
    .cursos-tendencias .curso-card,
    .cursos-normales .curso-card {
        padding: 18px 8px 18px 8px;
        border-radius: 18px;
    }
    .cursos-tendencias .curso-card img,
    .cursos-normales .curso-card img {
        height: 120px;
        border-radius: 12px;
        margin-bottom: 14px;
    }
    .cursos-tendencias .curso-info h2,
    .cursos-normales .curso-info h2 {
        font-size: 1.1rem;
    }
    .cursos-tendencias .ver-curso-btn,
    .cursos-normales .ver-curso-btn {
        font-size: 1rem;
        padding: 10px 0;
        border-radius: 10px;
    }
    .cursos-tendencias .curso-heart-btn,
    .cursos-normales .curso-heart-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
} 

/* === ICONO EN LA CARD === */
.curso-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #232946 60%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #60a5fa;
    margin: 0 auto 18px auto;
    box-shadow: 0 2px 8px 0 rgba(59,130,246,0.10);
}
.cursos-normales .curso-icon {
    background: linear-gradient(135deg, #232946 60%, #181e29 100%);
    color: #a5b4fc;
}

/* === TÍTULO Y DESCRIPCIÓN === */
.curso-title {
    color: #fff;
    font-size: 1.7rem;
    font-weight: 900;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
    text-align: center;
}
.curso-desc {
    color: #cbd5e1;
    font-size: 1.08rem;
    font-weight: 500;
    margin: 0 0 28px 0;
    letter-spacing: 0.2px;
    text-align: center;
}

/* === LISTA DE CARACTERÍSTICAS === */
.curso-features {
    list-style: none;
    padding: 0;
    margin: 28px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}
.curso-features li {
    color: #a5b4fc;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
.curso-features i {
    color: #22d3ee;
    font-size: 1.1em;
}

.cursos-normales .curso-features i {
    color: #60a5fa;
}

/* === BOTÓN GRANDE === */
.ver-curso-btn {
    width: 100%;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    border: none;
    border-radius: 16px;
    padding: 18px 0;
    margin: 0 auto;
    box-shadow: 0 2px 12px 0 rgba(59,130,246,0.10);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-bottom: 0;
}
.cursos-normales .ver-curso-btn {
    background: #232946;
    color: #fff;
}
.ver-curso-btn:hover {
    background: #1d4ed8;
    color: #fff;
    box-shadow: 0 4px 24px 0 rgba(59,130,246,0.18);
}
.cursos-normales .ver-curso-btn:hover {
    background: #181e29;
    color: #60a5fa;
}

@media (max-width: 700px) {
    .curso-title {
        font-size: 1.1rem;
    }
    .curso-icon {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
        border-radius: 10px;
    }
    .ver-curso-btn {
        font-size: 1rem;
        padding: 12px 0;
        border-radius: 10px;
    }
    .curso-features {
        font-size: 0.95rem;
        gap: 6px;
    }
}

/* === CARD PRICING ESTILO OSCURO Y AZUL SUTIL === */
.curso-card {
    background: #151a23 !important;
    border: 1.5px solid #3b82f6 !important;
    border-radius: 20px;
    box-shadow: 0 4px 24px 0 rgba(59,130,246,0.10);
    color: #fff;
}
.curso-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}
.curso-icon-left {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #2563eb 0%, #1e2746 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 2px 8px 0 rgba(37,99,235,0.18);
}
.curso-title-left {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 900;
    margin: 0 0 4px 0;
    letter-spacing: 1px;
    text-align: left;
}
.curso-desc-left {
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.2px;
    text-align: left;
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.curso-card-precio-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}
.curso-precio-tachado {
    color: #64748b;
    font-size: 0.98rem;
    text-decoration: line-through;
    font-weight: 600;
}
.curso-descuento {
    background: #22c55e;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 5px;
    padding: 2px 8px;
    margin-left: 2px;
}
.curso-precio-grande {
    color: #3b82f6;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 8px;
    margin-top: 0;
    text-align: left;
}
.curso-precio-info {
    color: #a5b4fc;
    font-size: 0.92rem;
    font-weight: 400;
    margin-left: 4px;
}
.ver-curso-btn-full {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    border: 1px solid transparent;
    border-radius: 40px !important;
    padding: 12px 0;
    margin: 0 auto 32px auto;
    box-shadow: 0 1px 6px 0 rgba(59,130,246,0.10);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: block;
    text-align: center;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.ver-curso-btn-full:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 8px 32px 0 rgba(59,130,246,0.25);
    transform: scale(1.05) translateY(-2px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.1);
}

.ver-curso-btn-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.ver-curso-btn-full:hover::before {
    left: 100%;
}
.curso-caracteristicas {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    margin-top: 8px;
}

/* Información adicional debajo del botón */
.curso-info-adicional {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.curso-nivel,
.curso-categoria,
.curso-horas {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #a5b4fc;
    justify-content: flex-start;
    padding: 4px 0;
}

.curso-nivel i,
.curso-categoria i {
    font-size: 0.9rem;
    color: #3b82f6;
}

.curso-nivel .nivel-badge {
    background: linear-gradient(135deg, #004cf1 0%, #0039b3 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 76, 241, 0.3);
}

.curso-categoria .categoria-badge {
    background: linear-gradient(135deg, #004cf1 0%, #0039b3 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 76, 241, 0.3);
}

.curso-horas {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #a5b4fc;
}

.curso-horas i {
    font-size: 0.9rem;
    color: #3b82f6;
}

.curso-horas .horas-badge {
    background: linear-gradient(135deg, #004cf1 0%, #0039b3 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 76, 241, 0.3);
}
.curso-carac-box {
    background: #181e29;
    color: #fff;
    border-radius: 6px;
    padding: 8px 12px 6px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 700;
    font-size: 0.98rem;
    min-width: 70px;
    border: 1px solid #3b82f6;
}
.carac-label {
    color: #a5b4fc;
    font-size: 0.88rem;
    font-weight: 500;
    margin-top: 2px;
}
.curso-hr {
    border: none;
    border-top: 1px solid #3b82f6;
    margin: 14px 0 10px 0;
}
.curso-ventajas {
    margin-bottom: 0;
}
.curso-ventaja-titulo {
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.curso-ventajas-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.curso-ventajas-lista li {
    color: #a5b4fc;
    font-size: 0.98rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
.curso-ventajas-lista i {
    color: #22c55e;
    font-size: 1em;
}
@media (max-width: 700px) {
    .curso-card-header {
        gap: 6px;
    }
    .curso-icon-left {
        width: 26px;
        height: 26px;
        font-size: 0.9rem;
        border-radius: 5px;
    }
    .curso-title-left {
        font-size: 0.95rem;
    }
    .curso-precio-grande {
        font-size: 1rem;
    }
    .curso-carac-box {
        font-size: 0.85rem;
        min-width: 40px;
        padding: 5px 5px 4px 5px;
    }
    .ver-curso-btn-full {
        font-size: 0.95rem;
        padding: 7px 0;
        border-radius: 5px;
    }
    
    .curso-info-adicional {
        flex-direction: column;
        gap: 6px;
        padding: 12px 16px;
    }
    
    .curso-nivel,
    .curso-categoria,
    .curso-horas {
        font-size: 0.85rem;
        gap: 8px;
    }
    
    .nivel-badge,
    .categoria-badge,
    .horas-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
        border-radius: 16px;
    }
} 

/* Prioridad máxima para el fondo y borde de cards */
.cursos-tendencias .curso-card {
    background: linear-gradient(0deg, #10121aff 70%, #000c49 100%) !important;
    border: 1.5px solid #2563eb !important;
}
.cursos-normales .curso-card {
    background: #10121a !important;
    border: 1.5px solid #232946 !important;
} 

.cursos-tendencias .curso-hr {
    border: none;
    border-top: 1.5px solid #002c8a;
    margin: 14px 0 10px 0;
}
.cursos-normales .curso-hr {
    border: none;
    border-top: 1.5px solid #232946;
    margin: 14px 0 10px 0;
} 

.curso-img-top {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 20px 20px 20px 20px;
    margin-bottom: 18px;
    display: block;
} 

#floating-action-container {
    position: fixed;
    right: 32px;
    bottom: 32px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.floating-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #10121a;
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}
.floating-btn:hover {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 8px 32px rgba(37,99,235,0.18);
}
#floating-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    background: #10121a;
    border-radius: 999px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    padding: 18px 14px;
    margin-bottom: 18px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.25s, transform 0.25s;
}
#floating-pill.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
#floating-pill.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
}
.pill-action {
    color: #fff;
    font-size: 1.6rem;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
}
.pill-action:hover {
    color: #004cf1;
}
.pill-action[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 120%;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    background: #181a22;
    color: #fff;
    padding: 6px 16px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    z-index: 10000;
    opacity: 1;
    pointer-events: none;
    text-align: right;
}
#floating-scrolltop-btn {
    position: fixed;
    left: 32px;
    bottom: 32px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #10121a !important;
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}
#floating-scrolltop-btn:hover {
    background: #e5e7eb !important;
    color: #10121a !important;
}
#floating-scrolltop-btn i, .floating-btn i {
    font-size: 1.4rem;
    transition: color 0.2s;
}
#floating-scrolltop-btn:hover i {
    color: #10121a !important;
}

/* Estilos para mensajes de error y carga */
.error-carga {
    text-align: center;
    padding: 40px;
    color: #666;
}

.error-carga i {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 20px;
    display: block;
}

.error-carga p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.btn-reintentar {
    background: linear-gradient(135deg, #004cf1 0%, #0039b3 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.btn-reintentar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 76, 241, 0.3);
}

.loading-cursos {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading-cursos i {
    font-size: 2rem;
    color: #004cf1;
    margin-bottom: 15px;
    display: block;
    animation: spin 1s linear infinite;
}

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

.no-cursos {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-cursos i {
    font-size: 3rem;
    color: #666;
    margin-bottom: 20px;
    display: block;
} 