/* 
 * Reorganización de Servicios y Materias
 * Nuevos estilos para el layout reorganizado
 */

/* Estilos para la nueva sección de materias */
.materias-section {
    margin-top: 60px;
    padding: 40px 0;
}

.materias-section h3 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 40px;
    text-align: center;
}

.materias-section .main-color {
    background: linear-gradient(90deg, #1f7971, #4CAF50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

/* Layout 2x3 para las materias */
.materia-item {
    margin-bottom: 40px;
    transition: transform 0.3s ease;
}

.materia-item:hover {
    transform: translateY(-5px);
}

/* Mejoras para los process-bar en el nuevo layout */
.materia-item .process-bar {
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(31, 121, 113, 0.1);
}

.materia-item .process-bar:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: rgba(31, 121, 113, 0.2);
}

/* Estilos para la tercera fila centrada */
.materia-item.third-row {
    margin-top: 30px;
}

/* Responsive para materias */
@media (max-width: 768px) {
    .materias-section {
        margin-top: 40px;
        padding: 20px 0;
    }
    
    .materias-section h3 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .materia-item {
        margin-bottom: 30px;
    }
    
    .materia-item.third-row {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .materias-section h3 {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }
    
    .materia-item {
        margin-bottom: 25px;
    }
}

/* Mejoras en la sección de servicios (textos) */
.servicios-section {
    padding: 20px 0;
}

.servicios-section .feature {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #1f7971;
}

.servicios-section .feature:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateX(5px);
}

.servicios-section .feature h4 {
    color: #1f7971;
    margin-bottom: 10px;
}

.servicios-section .feature p {
    color: #4a5568;
    line-height: 1.5;
}

/* Touch me icon centrado */
.touch-me-container {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
}

/* Animaciones para los nuevos elementos */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.materia-item.wow {
    animation: slideInUp 0.6s ease-out both;
}

/* Delays escalonados para animaciones */
.materia-item:nth-child(1) { animation-delay: 0.1s; }
.materia-item:nth-child(2) { animation-delay: 0.2s; }
.materia-item:nth-child(3) { animation-delay: 0.3s; }
.materia-item:nth-child(4) { animation-delay: 0.4s; }
.materia-item:nth-child(5) { animation-delay: 0.5s; }
.materia-item:nth-child(6) { animation-delay: 0.6s; }
.materia-item:nth-child(7) { animation-delay: 0.7s; }
.materia-item:nth-child(8) { animation-delay: 0.8s; }

/* Separador visual entre secciones */
.section-separator {
    height: 2px;
    background: linear-gradient(90deg, transparent, #1f7971, transparent);
    margin: 40px auto;
    width: 200px;
    border-radius: 1px;
}

/* Mejoras para pantallas pequeñas */
@media (max-width: 991px) {
    .materia-item.third-row .col-md-offset-2 {
        margin-left: 0;
    }
}
