/* =========================================
   DISEÑO PÁGINA DECORACIÓN
   ========================================= */

.course-header {
    padding: 80px 20px;
    background-color: #f8f1e9;
    text-align: center;
}

.course-header .badge {
    display: inline-block;
    padding: 5px 15px;
    background: #d4a373;
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.course-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #333;
    line-height: 1.2;
}

.course-header h1 span {
    color: #d4a373;
}

.header-subtitle {
    margin-top: 15px;
    color: #888;
    font-style: italic;
    font-size: 1.1rem;
}

/* SECCIÓN DETALLE */
.course-detail {
    padding: 60px 10%;
    background: white;
}

.course-flex {
    display: flex;
    gap: 50px;
    align-items: flex-start; /* Alineado arriba para listas largas */
}

.course-main-img {
    flex: 1;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.course-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* TEMARIO (SYLLABUS) */
.course-text {
    flex: 1;
}

.course-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

.syllabus-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dividimos la lista en dos columnas en PC */
    gap: 10px 20px;
}

.syllabus-list li {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.syllabus-list li span {
    font-size: 1.1rem;
}

/* ACCIÓN Y BOTÓN */
.course-action {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.course-action p {
    font-style: italic;
    color: #888;
    margin-bottom: 20px;
}

.btn-enroll {
    display: inline-block;
    padding: 15px 40px;
    background: #d4a373;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(212, 163, 115, 0.2);
}

.btn-enroll:hover {
    background: #bfa36c;
    transform: translateY(-3px);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .course-flex {
        flex-direction: column;
    }
    .syllabus-list {
        grid-template-columns: 1fr; /* Una sola columna en móvil */
    }
    .course-main-img {
        width: 100%;
        height: 350px;
    }
}