/* -------------------------------------------------------
   MEDICIONES ELÉCTRICAS – BANNER COMPLETO CON TÍTULO
------------------------------------------------------- */

.mediciones-banner {
    height: 500px;                 /* ← antes 420px (demasiado alto en PC) */
    background-size: contain;        /* ← antes contain (causaba deformación) */
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000;
    position: relative;
    margin-top: 10px;              /* ← antes 20px (levantaba demasiado el banner) */
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
}

/* Oscurecimiento suave */
.mediciones-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

/* Título sobre la imagen */
.mediciones-banner-title {
    position: absolute;
    bottom: 20px;
    left: 40px;
    z-index: 2;
    color: #fff;
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 0 3px 8px rgba(0,0,0,0.6);
}

/* -------------------------------------------------------
   TITULOS Y SUBSECCIONES
------------------------------------------------------- */
.section-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.subsection-title {
    font-size: 1.7rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #1a1a1a;
    border-left: 6px solid #005bbb;
    padding-left: 12px;
    font-weight: 600;
}

/* -------------------------------------------------------
   GRILLA DE SERVICIOS
------------------------------------------------------- */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
    margin-bottom: 25px;
}

.servicio-item {
    background: #f7f9fc;
    border-left: 4px solid #005bbb;
    padding: 15px 18px;
    border-radius: 4px;
    font-size: 1.05rem;
    line-height: 1.45;
    color: #333;
    transition: 0.2s ease-in-out;
}

.servicio-item:hover {
    background: #eef4ff;
}

/* -------------------------------------------------------
   APLICACIONES – TARJETAS DESTACADAS
------------------------------------------------------- */
.aplicaciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.aplicacion-item {
    background: #f7f9fc;
    border-left: 4px solid #005bbb;
    padding: 18px 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.2s ease-in-out;
}

.aplicacion-item:hover {
    background: #eef4ff;
}

.aplicacion-icon {
    font-size: 1.8rem;
}

/* -------------------------------------------------------
   RESPONSIVE
------------------------------------------------------- */
@media (max-width: 768px) {

    .mediciones-banner {
        height: 300px;             /* móvil perfecto */
        margin-top: 10px;          /* consistente con PC */
    }

    .mediciones-banner-title {
        font-size: 2rem;
        left: 20px;
        bottom: 15px;
    }

    .subsection-title {
        font-size: 1.5rem;
    }

    .servicio-item {
        font-size: 1rem;
    }

    .aplicacion-item {
        padding: 15px;
    }

    .aplicacion-icon {
        font-size: 1.6rem;
    }
}