/* ==========================================================================
   Página: Catálogo de Materias (resources/views/programas.blade.php)
   ========================================================================== */

/* ===== HERO ===== */
#hero {
    min-height: 52vh;
    padding: 70px 0;
    text-align: center;
    background: linear-gradient(120deg, rgba(16, 28, 54, 0.92), rgba(26, 39, 68, 0.85)), url('/img/instituto6.jpg');
}

#hero::before {
    background: radial-gradient(circle at 85% 15%, rgba(200, 162, 80, 0.22), transparent 45%);
}

.hero-contenido {
    max-width: 720px;
    margin: 0 auto;
}

.hero-contenido h1 {
    font-size: clamp(30px, 4.5vw, 46px);
}

.hero-contenido p {
    font-size: 17px;
    margin: 0 auto 34px auto;
    max-width: 580px;
}

.hero-botones {
    justify-content: center;
}

/* ===== NAVEGACIÓN RÁPIDA (chips por cuatrimestre) ===== */
#salto-rapido {
    position: sticky;
    top: 75px;
    z-index: 900;
    background: rgba(245, 246, 249, 0.94);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(16, 28, 54, 0.06);
    padding: 16px 0;
}

.salto-lista {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px;
}

.salto-lista::-webkit-scrollbar {
    display: none;
}

.chip-salto {
    flex: 0 0 auto;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1a2744;
    background: #ffffff;
    border: 1px solid rgba(16, 28, 54, 0.1);
    padding: 9px 18px;
    border-radius: 30px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.chip-salto:hover {
    border-color: #c8a250;
    color: #c8a250;
}

.chip-salto.activo {
    background: #1a2744;
    border-color: #1a2744;
    color: #ffffff;
}

/* ===== AJUSTE DE SECCIONES PARA ESTA PÁGINA ===== */
.seccion {
    padding: 80px 0;
}

.seccion-cabecera {
    margin: 0 auto 46px auto;
}

/* ===== GRUPOS DE MATERIAS POR CUATRIMESTRE ===== */
.grupo-materias {
    scroll-margin-top: 150px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(16, 28, 54, 0.08);
    padding: 34px 34px 20px 34px;
    margin-bottom: 26px;
}

.grupo-cabecera {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(16, 28, 54, 0.08);
}

.grupo-numero {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a2744, #101c36);
    color: #e8d5a3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 15px;
}

.grupo-titulo h3 {
    font-size: 19px;
    margin-bottom: 2px;
}

.grupo-titulo span {
    font-size: 13.5px;
    color: #8994a8;
}

.lista-materias {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 14px;
}

.materia-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: #f5f6f9;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.materia-item:hover {
    background: rgba(200, 162, 80, 0.1);
}

.materia-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.materia-info i {
    color: #c8a250;
    font-size: 16px;
    flex-shrink: 0;
}

.materia-nombre {
    font-family: "Poppins", sans-serif;
    font-size: 14.5px;
    font-weight: 500;
    color: #1a2744;
    overflow-wrap: anywhere;
}

.materia-descarga {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 12.5px;
    color: #101c36;
    background: #c8a250;
    padding: 9px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.materia-descarga:hover {
    background: #b28d3f;
    transform: translateY(-2px);
}

.materia-descarga.pendiente {
    background: transparent;
    border: 1.5px dashed rgba(16, 28, 54, 0.22);
    color: #8994a8;
    cursor: default;
    pointer-events: none;
}

/* ===== DIPLOMADO (bloque destacado) ===== */
#diplomado {
    scroll-margin-top: 150px;
    position: relative;
    background: linear-gradient(120deg, #101c36, #1a2744);
    border-radius: 16px;
    padding: 40px 34px;
    overflow: hidden;
}

#diplomado::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 162, 80, 0.2), transparent 65%);
    pointer-events: none;
}

#diplomado .grupo-cabecera {
    position: relative;
    z-index: 2;
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

#diplomado .grupo-titulo h3 {
    color: #ffffff;
}

#diplomado .grupo-titulo span {
    color: #e8d5a3;
}

#diplomado .lista-materias {
    position: relative;
    z-index: 2;
}

#diplomado .materia-item {
    background: rgba(255, 255, 255, 0.07);
}

#diplomado .materia-item:hover {
    background: rgba(255, 255, 255, 0.13);
}

#diplomado .materia-nombre {
    color: #ffffff;
}

#diplomado .materia-descarga.pendiente {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.65);
}

/* ===== NOTA INFORMATIVA ===== */
.nota-info {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(200, 162, 80, 0.1);
    border: 1px solid rgba(200, 162, 80, 0.25);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 40px;
}

.nota-info i {
    color: #c8a250;
    font-size: 20px;
    margin-top: 2px;
}

.nota-info p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: #4a5568;
}

/* ===== RESPONSIVE — Catálogo de Materias ===== */
@media (max-width: 860px) {
    #hero {
        min-height: auto;
        padding: 130px 0 70px 0;
    }

    #salto-rapido {
        top: 64px;
    }

    .grupo-materias,
    #diplomado {
        padding: 26px 20px 16px 20px;
    }

    .materia-item {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .seccion {
        padding: 56px 0;
    }

    .grupo-cabecera {
        gap: 12px;
    }
}
