/* ===== ESTILOS ESPECÍFICOS PARA PÁGINAS DE DETALLE DE CURSOS ===== */

:root {
    --primary-glow: rgba(0, 229, 255, 0.15);
    --secondary-glow: rgba(212, 154, 254, 0.15);
    --accent-glow: rgba(255, 0, 195, 0.15);
}

/* Contenedor Principal */
.course-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 5% 4rem 5%;
    position: relative;
    z-index: 1;
}

/* Botón de Regresar */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.2);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}
.btn-back:hover {
    color: white;
    background: rgba(0, 229, 255, 0.2);
    border-color: var(--primary);
    transform: translateX(-5px);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

/* Cabecera del Curso */
.course-header-card {
    background: rgba(10, 10, 40, 0.6);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 50px rgba(0, 229, 255, 0.05);
}

.course-header-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none;
}

.course-header-badge {
    margin-bottom: 1rem;
}

.course-header-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.course-header-desc {
    font-size: 1.15rem;
    color: #ccd9ff;
    max-width: 800px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.course-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.course-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.course-meta-label {
    font-size: 0.8rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.course-meta-val {
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
}

.course-meta-val.price {
    color: #ffeb3b;
}

.course-meta-val.price span {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: #888;
    margin-left: 0.5rem;
}

/* Estructura de Dos Columnas */
.course-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* Columna de Temario (Módulos) */
.course-modules-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.course-modules-section h2 span {
    color: var(--primary);
}

.modules-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.module-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.module-card:hover {
    border-color: var(--primary);
    background: rgba(10, 10, 50, 0.4);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.module-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.module-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--secondary);
    background: rgba(212, 154, 254, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(212, 154, 254, 0.3);
}

.module-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.module-duration {
    font-size: 0.85rem;
    background: rgba(0, 229, 255, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.module-desc {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.module-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(212, 154, 254, 0.3);
}

.module-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(212, 154, 254, 0.5);
}

/* Columna Lateral (Recursos y Requisitos) */
.course-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: rgba(10, 10, 40, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.8rem;
}

.sidebar-widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-widget-title span {
    color: var(--primary);
}

/* Lista de Recursos */
.resources-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #ccc;
    text-decoration: none;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.resource-item:hover {
    background: rgba(0, 229, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.3);
    color: white;
    transform: translateX(3px);
}

.resource-icon {
    font-size: 1.2rem;
}

/* Lista de Requisitos */
.requirements-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.requirements-list li {
    font-size: 0.9rem;
    color: #ccc;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.5;
}

.requirements-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Sección de Llamado a la Acción */
.course-cta-box {
    text-align: center;
    background: radial-gradient(circle at center, rgba(212, 154, 254, 0.08) 0%, rgba(10, 10, 40, 0.6) 100%);
    border: 1px solid rgba(212, 154, 254, 0.3);
    border-radius: 24px;
    padding: 3rem;
    margin-top: 4rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.course-cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: white;
}

.course-cta-text {
    color: #ccd9ff;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Adaptabilidad (Responsive) */
@media (max-width: 992px) {
    .course-content-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .course-detail-container {
        padding-top: 7rem;
    }
    .course-header-card {
        padding: 2rem 1.5rem;
    }
    .course-meta-grid {
        grid-template-columns: 1fr 1fr;
    }
}
