/* ===========================
   SERVICIOS 
   =========================== */

#servicios_main {
    width: 100%;
    background: #333333; 
}

/* Encabezado Superior */
.servicios-header {
    padding: 180px 0 60px 0; 
    text-align: center;
    color: #ffffff;
}

.servicios-header .section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.8rem; 
    margin-bottom: 15px; 
    letter-spacing: 4px;
    color: #ffffff;
    text-transform: uppercase;
}

.servicios-header .section-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 1.25rem;
    max-width: 850px;
    margin: 0 auto;
    opacity: 0.85;
    line-height: 1.5;
    color: #ffffff;
    font-weight: 300; 
}

/* Cuadrícula de 4 columnas */
.servicios-grid-full {
    display: flex;
    width: 100%;
    height: 450px; 
    margin-top: 0; 
}

.servicio-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.servicio-item::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40px; /* Ancho de la sombra */
    height: 100%;
    /* Degradado de negro a transparente hacia la izquierda */
    background: linear-gradient(to left, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 4;
    pointer-events: none;
}

/* Imagen de fondo */
.servicio-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    z-index: 1;
}

/* Overlay para legibilidad */
.servicio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3); 
    z-index: 2;
    transition: background 0.3s ease;
}

.servicio-item:hover .servicio-bg {
    transform: scale(1.1);
}

.servicio-item:hover .servicio-overlay {
    background: rgba(0, 0, 0, 0.1); 
}

/* Información sobre la imagen */
.servicio-info {
    position: relative;
    z-index: 3;
    color: #ffffff;
}

.servicio-info h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 100px;
    line-height: 1.3;
    text-transform: uppercase;
    color: #ffffff;
}

.servicio-info p {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
    font-weight: 400;
    color: #ffffff;
}

/* Responsivo */
@media (max-width: 1024px) {
    .servicios-grid-full {
        flex-wrap: wrap;
        height: auto;
    }
    .servicio-item {
        flex: 1 1 50%; 
        height: 400px;
    }
}

@media (max-width: 600px) {
    .servicio-item {
        flex: 1 1 100%
    }
}