/* -------------------------------------------------------
   SLIDER – MEDICIONES ELÉCTRICAS
------------------------------------------------------- */

.slider-mediciones {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 40px;
    border-radius: 8px;
    background-color: #000;
}

/* Cada slide */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.slide.active {
    opacity: 1;
}

/* Título del slider */
.slider-title {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
    z-index: 2;
}

/* Botones del slider */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 24px;
    z-index: 3;
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

/* -------------------------------------------------------
   RESPONSIVE SLIDER
------------------------------------------------------- */

@media (max-width: 768px) {
    .slider-mediciones {
        height: 360px;
    }

    .slider-title {
        font-size: 2.2rem;
        left: 20px;
        bottom: 20px;
    }
}

/* -------------------------------------------------------
   APLICACIONES – TARJETAS MEJORADAS
------------------------------------------------------- */

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

.aplicacion-item {
    background: #ffffff;
    border: 1px solid #e3e8f0;
    border-radius: 10px;
    padding: 22px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.aplicacion-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    border-color: #005bbb;
    background: #f8fbff;
}

.aplicacion-icon {
    font-size: 2.2rem;
    color: #005bbb;
    flex-shrink: 0;
    margin-top: 4px;
}

.aplicacion-item strong {
    font-size: 1.15rem;
    color: #1a1a1a;
}

.aplicacion-item small {
    display: block;
    margin-top: 4px;
    font-size: 0.95rem;
    color: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .aplicacion-item {
        padding: 18px;
    }

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

    .aplicacion-item strong {
        font-size: 1.05rem;
    }
}

/* -------------------------------------------------------
   SERVICIOS PROFESIONALES – TARJETAS PREMIUM
------------------------------------------------------- */

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

    /* ANIMACIÓN GARANTIZADA */
    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;
}

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

.card-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #005bbb;
}

.servicio-card h4 {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    color: #1a1a1a;
    font-weight: 700;
}

.servicio-card p {
    margin: 0;
    font-size: 1rem;
    color: #444;
    line-height: 1.45;
}

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