.carreras-introduccion {
    font-family: 'Montserrat', sans-serif;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.carreras-page {
    min-height: 100vh;
    position: relative;
    background: #ffffff !important;
}

.carreras-categoria {
    margin-bottom: 30px;
    height: 100%;
}

.carreras-categoria-header {
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

/* Eliminamos la visualización de la caja de ícono en los títulos */
.carreras-categoria-icon {
    display: none !important;
}

.carreras-categoria-titulo {
    color: #212529;
    /* Negro/Gris institucional */
    font-size: 24px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.carreras-categoria-desc {
    color: #6c757d;
    font-size: 14px;
}

.carreras-lista {
    gap: 20px;
}

.carrera-item-wrap {
    position: relative;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.carrera-item-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 11px;
    width: 220px;
    background-color: var(--carrera-color) !important;
    clip-path: polygon(0% 0%, 85% 0%, 100% 100%, 0% 100%);
    border-radius: 4px 0 0 0;
    z-index: 1;
}

.carrera-item-wrap::after {
    content: "";
    position: absolute;
    top: 7px;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--carrera-color) !important;
    z-index: 1;
}

.carrera-item {
    position: relative;
    padding: 16px 24px;
    min-height: 88px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F8F3E8;
    border-radius: 0 0 8px 8px;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 3px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 2;
}

.carrera-item:hover {
    background: #F2E8D8;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.carrera-item-content {
    flex: 1;
    min-width: 0;
}

.carrera-item-content h3 {
    font-size: 17px;
    font-weight: 700;
    color: #212529;
    margin: 0;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.carrera-item:hover .carrera-item-content h3,
.carrera-item:hover .carrera-item-arrow {
    color: var(--carrera-color) !important;
}

.carrera-item-meta {
    flex-shrink: 0;
}

.carrera-duracion {
    font-size: 13px;
    color: #495057;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.06);
    padding: 4px 10px;
    border-radius: 6px;
}

.carrera-duracion i {
    margin-right: 4px;
}

.carrera-item-arrow {
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-5px);
    color: #adb5bd;
    font-size: 14px;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.carrera-item:hover .carrera-item-arrow {
    opacity: 1;
    transform: translateX(3px);
}

@media (max-width: 767.98px) {
    .carreras-categoria-titulo {
        font-size: 20px;
    }

    .carrera-item {
        padding: 14px 18px;
        min-height: 76px;
    }

    .carrera-item-content h3 {
        font-size: 14px;
    }

    .carrera-duracion {
        font-size: 12px;
    }

    .carrera-item-arrow {
        display: none;
    }
}

/* Distribución en dos columnas estándar para todas las tarjetas */
@media (min-width: 992px) {
    .carreras-lista {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
