/* Variables por defecto (sobreescritas por Elementor) */
.ekofil-grid-6e902caf {
    --grid-cols: 3;
    --overlay-opacity: 0.9;
    --anim-speed: 0.6s;
    --zoom-intensity: 1.03;
    
    display: grid;
    grid-template-columns: repeat(var(--grid-cols), 1fr);
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 10px; /* Controlado por Elementor */
}

.ekofil-card-6e902caf {
    position: relative;
    height: 585px; /* Controlado por Elementor */
    overflow: hidden;
    cursor: pointer;
}

.ekofil-card-6e902caf img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--anim-speed) ease;
}

/* CAPA DE COLOR */
.ekofil-overlay-6e902caf {
    position: absolute;
    inset: 0;
    background: #10155c; /* Controlado por Elementor */
    opacity: 0;
    mix-blend-mode: multiply;
    transition: opacity calc(var(--anim-speed) * 0.66) ease;
}

/* CONTENIDO */
.ekofil-content-6e902caf {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 55px 70px; /* Controlado por Elementor */
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity calc(var(--anim-speed) * 0.66) ease, transform calc(var(--anim-speed) * 0.66) ease;
}

/* TITULO */
.ekofil-content-6e902caf h3 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 800;
    margin: 0 0 25px;
    font-size: 26px;
    line-height: 1.05;
}

/* PARRAFO */
.ekofil-content-6e902caf p {
    margin: 0;
    max-width: 430px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.25;
}

/* LINK */
.ekofil-link-6e902caf {
    display: inline-block;
    margin-top: 55px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: underline;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.ekofil-link-6e902caf:hover {
    color: #b13a0b; /* Controlado por Elementor */
    opacity: 1;
}

/* HOVER (Solo para dispositivos con mouse) */
@media (hover: hover) {
    .ekofil-card-6e902caf:hover .ekofil-overlay-6e902caf {
        opacity: var(--overlay-opacity);
    }

    .ekofil-card-6e902caf:hover .ekofil-content-6e902caf {
        opacity: 1;
        transform: translateY(0);
    }

    .ekofil-card-6e902caf:hover img {
        transform: scale(var(--zoom-intensity));
    }
}

/* DISPOSITIVOS TÁCTILES (Sin hover) - Mostrar contenido permanentemente */
@media (hover: none) {
    .ekofil-card-6e902caf .ekofil-overlay-6e902caf {
        opacity: var(--overlay-opacity);
    }

    .ekofil-card-6e902caf .ekofil-content-6e902caf {
        opacity: 1;
        transform: translateY(0);
    }

    .ekofil-card-6e902caf img {
        transform: scale(var(--zoom-intensity));
    }
}
