/* -------------------------------------------------------
   SLIDER HEADER – ENSAYOS NO DESTRUCTIVOS
------------------------------------------------------- */

.ensayos-slider {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    background-color: #000; /* evita línea blanca */
    margin-bottom: 40px;
    border-radius: 8px;
    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: #005bbb;
}

/* -------------------------------------------------------
   TARJETAS PREMIUM EVH + ANIMACIÓN
------------------------------------------------------- */

.servicios-grid.mejorado {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
    margin: 35px 0;

    opacity: 0;
    transform: translateY(30px);
    animation: aparecerTarjetas 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes aparecerTarjetas {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.servicio-card {
    background: #ffffff;
    border: 1px solid #dce3ee;
    border-left: 5px solid #005bbb;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    font-size: 1.05rem;
    line-height: 1.45;
}

.servicio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.servicio-card strong {
    color: #1a1a1a;
    font-size: 1.15rem;
}

/* Responsive */
@media (max-width: 768px) {
    .servicio-card {
        padding: 18px;
        font-size: 1rem;
    }
}
/* -------------------------------------------------------
   CONTACTO PREMIUM EVH
------------------------------------------------------- */

.contacto-premium {
    margin-top: 40px;
}

.contact-section {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 280px;
    font-size: 1.05rem;
    line-height: 1.5;
}

/* -------------------------------------------------------
   BOTÓN WHATSAPP PREMIUM
------------------------------------------------------- */

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: 0.25s ease;
    margin: 12px 0;
}

.whatsapp-btn img {
    width: 22px;
    height: 22px;
    display: block;
}

.whatsapp-btn:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

.whatsapp-btn:active {
    transform: scale(0.97);
}

/* -------------------------------------------------------
   FORMULARIO PREMIUM
------------------------------------------------------- */

.contact-form {
    flex: 1;
    min-width: 280px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #d0d7e2;
    margin-bottom: 14px;
    font-size: 1rem;
}

.contact-form textarea {
    height: 140px;
    resize: vertical;
}

.contact-form .btn {
    background: #005bbb;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.25s ease;
}

.contact-form .btn:hover {
    background: #004a96;
    transform: translateY(-2px);
}
/* CONTACTO PREMIUM */
.contact-info-premium {
    background: #ffffff;
    padding: 25px 28px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    border-left: 6px solid #005bbb;
    max-width: 420px;
}

.contact-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.contact-line {
    font-size: 1.05rem;
    margin: 6px 0;
    color: #333;
}

.contact-hours {
    margin-top: 12px;
    font-size: 1rem;
    color: #444;
}

/* BOTÓN WHATSAPP PREMIUM */
.whatsapp-btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    margin: 14px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    transition: 0.25s ease;
}

.whatsapp-btn-premium img {
    width: 22px;
    height: 22px;
    display: block;
}

.whatsapp-btn-premium:hover {
    background: #1ebe5d;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

.whatsapp-btn-premium:active {
    transform: scale(0.97);
}
.seo-texto-end{
    max-width:1100px;
    margin:0 auto 35px auto;
    padding:25px 35px;

    font-size:1.25rem;
    line-height:1.9;
    text-align:center;

    color:#3f3f3f;

    background:white;
    border-left:5px solid #005bbb;
    border-radius:12px;

    box-shadow:0 5px 15px rgba(0,0,0,.08);
}
.seo-texto-end{
    max-width:1100px;
    margin:0 auto 40px auto;
    padding:30px 40px;
    background:white;
    border-radius:12px;
    box-shadow:0 6px 20px rgba(0,0,0,.08);
}

.seo-texto-end p{
    text-align:center;
    font-size:1.2rem;
    line-height:1.9;
    color:#444;
    margin-bottom:15px;
}

.seo-texto-end p:last-child{
    margin-bottom:0;
}
/* =====================================================
   TITULOS CENTRADOS - END
===================================================== */

.section-title{
    text-align:center;

    font-size:3rem;

    font-weight:800;

    color:#004a99;

    margin-bottom:35px;
}

.section-title::after{
    content:"";

    display:block;

    width:120px;

    height:5px;

    background:#00a0e3;

    margin:20px auto 0;

    border-radius:50px;
}

/* SERVICIOS PROFESIONALES */

.servicios-title{
    text-align:center;

    font-size:2.6rem;

    font-weight:800;

    color:#004a99;

    margin:70px 0 35px;

    line-height:1.2;
}

.servicios-title::after{
    content:"";

    display:block;

    width:100px;

    height:4px;

    background:#00a0e3;

    margin:18px auto 0;

    border-radius:50px;
}

/* ULTRASONIDO - LP - PM - VT - ETC */

.subsection-title{
    text-align:center;

    font-size:2rem;

    font-weight:700;

    color:#004a99;

    margin:60px 0 25px;

    line-height:1.2;

    border-left:none !important;

    padding-left:0 !important;
}

.subsection-title::before{
    content:none !important;
    display:none !important;
}

.subsection-title::after{
    content:"";

    display:block;

    width:70px;

    height:3px;

    background:#00a0e3;

    margin:14px auto 0;

    border-radius:50px;
}
.section-intro-end{
    max-width:1100px;
    margin:0 auto 50px auto;

    padding:30px 40px;

    background:#ffffff;

    border-radius:14px;

    box-shadow:0 6px 20px rgba(0,0,0,.08);
}

.section-intro-end p{
    text-align:center;

    font-size:1.2rem;

    line-height:1.9;

    color:#444;

    margin:0;
}