/* -------------------------------------------------------
   SLIDER HEADER – ENSAYOS NO DESTRUCTIVOS
------------------------------------------------------- */

.ensayos-slider {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.slide-title {
    position: absolute;
    bottom: 20px;
    left: 40px;
    z-index: 2;
    color: #fff;
    font-size: 2.6rem;
    font-weight: 700;
    text-shadow: 0 3px 8px rgba(0,0,0,0.6);
}

/* Responsive slider */
@media (max-width: 768px) {
    .ensayos-slider {
        height: 240px;
    }
    .slide-title {
        font-size: 1.9rem;
        left: 20px;
        bottom: 15px;
    }
}

/* -------------------------------------------------------
   TITULOS AZULES (igual que Mediciones)
------------------------------------------------------- */

.section-title,
.subsection-title,
.servicios-title {
    color: #0056b3;
}

/* -------------------------------------------------------
   TARJETAS Y GRILLAS (idénticas a Mediciones)
------------------------------------------------------- */

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.servicio-item {
    background: #ffffff;
    padding: 18px 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    font-size: 1.05rem;
    line-height: 1.45;
    border-left: 4px solid #007bff; /* Azul corporativo */
    transition: all 0.2s ease-in-out;
}

/* -------------------------------------------------------
   EFECTO HOVER – TARJETAS (igual que otros servicios)
------------------------------------------------------- */

.servicio-item:hover {
    background: #f5f7fa; /* gris clarito */
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* -------------------------------------------------------
   RESPONSIVE GENERAL
------------------------------------------------------- */

@media (max-width: 768px) {
    .servicio-item {
        font-size: 1rem;
    }
}