/* CSS específico para maestrías - Instituto Universitario del Sur */

/* Por defecto: solo se ve la sección principal */
section#maestrias {
    display: block !important;
}

/* Por defecto: todas las maestrías están ocultas */
section#maestria-administracion,
section#maestria-educacion {
    display: none !important;
}

/* Cuando se quita la clase .hidden, mostrar la maestría */
section#maestria-administracion:not(.hidden),
section#maestria-educacion:not(.hidden) {
    display: block !important;
}

/* Cuando se agrega la clase .hidden, ocultar la sección principal */
section#maestrias.hidden {
    display: none !important;
}

/* CORRECCIÓN ESPECÍFICA PARA ALINEACIÓN DE BOTONES EN MAESTRÍAS */
.download-section {
    display: flex !important;
    flex-direction: row !important;
    gap: 2rem !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    margin-top: 2.5rem !important;
    margin-bottom: 1.5rem !important;
    justify-content: flex-start !important;
}

.download-section .btn {
    margin: 0 !important;
    min-width: 220px !important;
    text-align: center !important;
}

.download-section .back-to-maestrias {
    margin-left: 0 !important;
    margin-top: 0 !important;
}

.download-section .download-brochure {
    margin-right: 0 !important;
}

/* SOBRESCRIBIR REGLAS PROBLEMÁTICAS DEL CSS DE MAESTRÍAS */
.career-content .download-section {
    flex-direction: row !important;
}

/* Asegurar que los botones estén en línea horizontal */
.download-section > * {
    flex-shrink: 0 !important;
}

/* Forzar alineación horizontal en todas las resoluciones */
@media (max-width: 768px) {
    .download-section {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 1rem !important;
    }
}

@media (max-width: 480px) {
    .download-section {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
}

/* CORRECCIÓN CRÍTICA: Sobrescribir el CSS de maestrías que está causando el problema */
.career-content {
    display: flex !important;
    gap: 2rem !important;
    margin-top: 2rem !important;
}

.career-info {
    flex: 2 !important;
}

.career-image {
    flex: 1 !important;
}

/* Asegurar que las imágenes de las maestrías se muestren correctamente */
.career-image img {
    width: 100% !important;
    height: auto !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

/* Estilos para los botones de navegación */
.career-nav-buttons {
    display: flex !important;
    gap: 1rem !important;
    margin-bottom: 2rem !important;
    flex-wrap: wrap !important;
}

.career-nav-button {
    background-color: var(--primary-color, #2c2966) !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border: none !important;
    border-radius: 0.5rem !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    transition: background-color 0.3s ease !important;
}

.career-nav-button:hover {
    background-color: var(--primary-dark, #1a1a2e) !important;
}

.career-nav-button.active {
    background-color: var(--accent-color, #f59e0b) !important;
}

/* Estilos para las secciones de maestrías específicas */
.career-specific-section {
    padding-top: 120px !important; /* Espacio para el header fijo */
    min-height: calc(100vh - 120px) !important;
}

.career-specific-section h1 {
    color: var(--primary-color, #2c2966) !important;
    margin-bottom: 2rem !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
}

.career-specific-section h2 {
    color: var(--primary-color, #2c2966) !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    font-size: 1.8rem !important;
    font-weight: 600 !important;
}

/* Estilos para la información de la maestría */
.career-details {
    background-color: #f8fafc !important;
    padding: 2rem !important;
    border-radius: 0.75rem !important;
    margin-bottom: 2rem !important;
    border-left: 4px solid var(--primary-color, #2c2966) !important;
}

.career-details h3 {
    color: var(--primary-color, #2c2966) !important;
    margin-bottom: 1rem !important;
    font-size: 1.3rem !important;
    font-weight: 600 !important;
}

.career-details p {
    color: #374151 !important;
    line-height: 1.6 !important;
    margin-bottom: 0.5rem !important;
}

/* Estilos para los botones de descarga */
.download-brochure {
    background-color: var(--accent-color, #f59e0b) !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border: none !important;
    border-radius: 0.5rem !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: background-color 0.3s ease !important;
}

.download-brochure:hover {
    background-color: #d97706 !important;
}

.back-to-maestrias {
    background-color: #6b7280 !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border: none !important;
    border-radius: 0.5rem !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: background-color 0.3s ease !important;
}

.back-to-maestrias:hover {
    background-color: #4b5563 !important;
}

/* Responsive design */
@media (max-width: 1024px) {
    .career-content {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    
    .career-info,
    .career-image {
        flex: none !important;
    }
}

@media (max-width: 768px) {
    .career-specific-section {
        padding-top: 100px !important;
    }
    
    .career-specific-section h1 {
        font-size: 2rem !important;
    }
    
    .career-specific-section h2 {
        font-size: 1.5rem !important;
    }
    
    .career-details {
        padding: 1.5rem !important;
    }
    
    .download-section {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .download-section .btn {
        min-width: auto !important;
        width: 100% !important;
    }
}







