/* =======================
   BLOQUES DE SERVICIOS
======================= */

/* TITULO SERVICIOS CON RECUADRO */

.contenido.servicios h1 {
    position: relative;
    text-align: center;
    margin: 0 0 70px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    z-index: 1;
    color: #0D2A4D;
}

/* Recuadro gris detrás del texto */
.contenido.servicios h1::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1800px;
    height: 50px;            /* 🔥 ALTO CONTROLADO */
    background: #E0E0E0;
    border-radius: 8px;
    z-index: -1;
}

/* TEXTO DESTACADO FINAL */

.contenido.servicios .destacado {
    text-align: center;
    margin-top: 40px;
    font-weight: 600;
}

/* =======================
   BLOQUE SERVICIO
======================= */

.servicio-bloque {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 70px;
    color: #1F4E79;
}

/* IMAGEN */

.servicio-img {
    flex: 1;
}

.servicio-img img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* TEXTO */

.servicio-texto {
    flex: 1.5;
}

.servicio-texto .subtitulo {
    margin-bottom: 18px;
}

/* =======================
   RESPONSIVE
======================= */

@media (max-width: 768px) {
    .contenido.servicios h1::before {
        width: 90%;
        height: 44px;       /* más bajo en mobile */
    }

    .servicio-bloque {
        flex-direction: column;
        text-align: center;
    }

    .servicio-texto {
        flex: unset;
    }
}

/* =======================
   ANIMACIONES SCROLL SERVICIOS
======================= */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 0.9s ease;
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Imagen con entrada más suave */

.reveal img {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal.active img {
    opacity: 1;
    transform: scale(1);
}
