/* Servicios/estilos_servicios.css */

:root {
    --negro-puro: #000000;
    --negro-suave: #1a1a1a;
    --azul-inah: #444ba0;
    --blanco: #ffffff;
    --gris-fondo: #f9f9f9;
    --transicion: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--blanco);
    margin: 0;
    padding: 0;
    color: var(--negro-suave);
}

.contenedor-principal {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 30px;
}

/* Títulos con tu estilo original */
.titulo-seccion {
    font-size: 38px;
    color: var(--negro-puro);
    margin-bottom: 10px;
    font-weight: 800;
    text-align: center; /* Centrado para que se vea como portada */
}

.subtitulo-seccion {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin-bottom: 50px;
}

/* --- MAGIA DE LA CUADRÍCULA --- */
.contenedor-servicios {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 60px; /* Aumentamos el espacio para que respiren sin bordes */
    margin-top: 40px;
}

/* --- ESTILO DE LOGO + TEXTO (Sin Cajas) --- */
.item-servicio {
    text-align: center; /* Centramos todo para un look más institucional */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-contenedor {
    width: 100%;
    height: 130px; /* Altura controlada para los logos */
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* La magia para los PNG transparentes */
.logo-contenedor img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* ¡CRUCIAL! Muestra el logo completo sin recortarlo ni deformarlo */
    transition: transform 0.4s ease;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05)); /* Una sombra levísima solo a la silueta del logo */
}

.item-servicio:hover .logo-contenedor img {
    transform: scale(1.08); /* Al pasar el mouse, el logo crece sutilmente */
}

.info-servicio {
    padding: 0 10px;
}

.info-servicio h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 20px;
    color: var(--azul-inah);
    font-weight: 800;
}

.info-servicio p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* --- ADAPTABILIDAD MÓVIL --- */
@media (max-width: 900px) {
    .contenedor-servicios {
        grid-template-columns: 1fr; /* En celular se apilan 1 sobre 1 */
        gap: 50px;
    }
    
    .logo-contenedor {
        height: 110px; /* Logos un pelín más pequeños en celular */
    }
}