/* ==========================================================
   CSS PARA CURSOS (courses.css) - DEFINITIVO
   ========================================================== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-y: auto !important;
}

body {
    background-color: #f9f9f9;
    color: #222222;
}

.courses-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 60px 20px;
    box-sizing: border-box;
    overflow: visible;
}

.courses-body {
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

/* Cabecera azul corporativa con barra amarilla */
.section-header-blue {
    background-color: #0b2545;
    padding: 18px 24px;
    border-radius: 8px;
    margin-bottom: 35px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

    .section-header-blue h2 {
        margin: 0;
        font-size: 20px;
        font-weight: 700;
        font-family: 'Montserrat', sans-serif;
        color: #ffffff;
        display: flex;
        align-items: center;
        gap: 12px;
    }

        .section-header-blue h2::before {
            content: "";
            display: inline-block;
            width: 4px;
            height: 22px;
            background-color: #f7c331; /* Barra amarilla corporativa */
            border-radius: 2px;
        }

/* Cuadrícula de 2 columnas para escritorio */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
}

/* Tarjeta individual */
.course-card {
    background: #ffffff;
    border-left: 5px solid #0056b3;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .course-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    }

.course-number {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #e0e0e0;
}

.course-name {
    font-size: 1rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 10px;
    padding-right: 30px;
}

.course-institution {
    font-size: 0.85rem;
    color: #666666;
    font-weight: 500;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.course-duration {
    align-self: flex-start;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0b2545;
    background: #e6f0fa;
    padding: 4px 10px;
    border-radius: 4px;
}

/* ==========================================================
   DISEÑO RESPONSIVE PARA MÓVILES (< 768px) - 1 SOLA COLUMNA
   ========================================================== */
@media (max-width: 768px) {
    html, body {
        overflow-y: auto !important;
    }

    .courses-section {
        padding-top: 120px !important;
        padding-bottom: 80px !important;
    }

    .courses-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 20px !important;
    }

    .course-card {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}
