/* CONTENEDOR PRINCIPAL */
.ekofil-process-section-cd011e61 {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden; /* Desktop & Tablet overflow hidden */
}

/* GRID DE TARJETAS (Escritorio por defecto 5 columnas, configurable en Elementor) */
.ekofil-process-grid-cd011e61 {
    display: grid;
    /* Grid template columns definido principalmente por los controles de Elementor, fallback abajo */
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 15px; 
    width: 100%;
}

/* TARJETAS */
.ekofil-process-card-cd011e61 {
    position: relative;
    height: 350px;
    padding: 36px 24px 28px;
    background: #b83b0a;
    border-radius: 11px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    isolation: isolate;
}

/* NÚMEROS GRANDES */
.ekofil-process-number-cd011e61 {
    position: absolute;
    z-index: -1;
    right: 0px;
    bottom: -30px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 290px;
    line-height: 1;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.055);
    pointer-events: none;
}

/* TÍTULOS */
.ekofil-process-card-cd011e61 h3 {
    position: relative;
    z-index: 2;
    margin: 0;
    color: #ffffff;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.8px;
}

/* PÁRRAFOS */
.ekofil-process-card-cd011e61 p {
    position: relative;
    z-index: 2;
    margin: 0;
    max-width: 220px;
    color: #ffffff;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.3px;
}

/* ============================
   RESPONSIVE TABLET 
   (1024px o 1100px depende del breakpoint de Elementor, usamos fallback css)
============================ */
@media (max-width: 1024px) {
    .ekofil-process-grid-cd011e61 {
        /* Fallback: Se define en los controles, pero lo dejamos de respaldo */
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .ekofil-process-card-cd011e61 {
        height: 300px; /* Fallback */
    }
}

/* ============================
   RESPONSIVE MÓVIL 
   (Scroll horizontal táctil)
============================ */
@media (max-width: 767px) {
    /* El contenedor principal permite scroll x */
    .ekofil-process-section-cd011e61 {
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch; /* Suavidad en iOS */
        /* Ocultar scrollbar si se desea (opcional) */
        scrollbar-width: none; /* Firefox */
    }
    .ekofil-process-section-cd011e61::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }

    /* Transformamos el grid a flex para permitir overflow horizontal fluido */
    .ekofil-process-grid-cd011e61 {
        display: flex;
        /* El gap lo controla Elementor, el ancho max-content asegura que no haga wrap */
        width: max-content;
        flex-wrap: nowrap;
    }
    
    /* Configuración flex de cada tarjeta en móvil */
    .ekofil-process-card-cd011e61 {
        /* Usamos la variable inyectada por Elementor o un fallback de 280px */
        width: var(--ekofil-mobile-card-width, 280px) !important;
        flex: 0 0 var(--ekofil-mobile-card-width, 280px) !important;
        
        height: 310px; /* Fallback, controlado por Elementor */
        padding: 32px 22px 26px; /* Fallback */
    }

    /* Ajustes de tipografía fallback, pero Elementor Typography Control lo dominará */
    .ekofil-process-card-cd011e61 h3 {
        font-size: 19px;
    }
    .ekofil-process-card-cd011e61 p {
        font-size: 11px;
        max-width: 225px; /* Fallback */
    }
    .ekofil-process-number-cd011e61 {
        /* Reducir tamaño del número en móvil un poco para evitar saturación (opcional, Elementor lo puede controlar) */
        font-size: 240px; 
    }
}
