/* ==========================================================================
   1. CONTENEDOR BASE
   ========================================================================== */
.eco-wrapper {
    padding: 1em;
    font-family: system-ui, -apple-system, sans-serif;
    color: #ffffff;
    overflow: hidden;
}

.eco-swiper-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible !important; 
}

/* Cada columna/paso */
.eco-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    box-sizing: border-box;
}

/* ==========================================================================
   2. TIMELINE HORIZONTAL (ESCRITORIO) -> A partir de 768px
   ========================================================================== */
@media (min-width: 768px) {
    /* Forzamos a la caja interna de Elementor a comportarse como fila */
    .eco-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        transform: none !important; 
        width: 100% !important;
    }

    .eco-container .eco-step-item {
        flex: 1 !important;
        width: auto !important;
        margin-right: 0 !important; 
    }

    /* LÍNEAS CONECTORAS: En lugar de píxeles fijos, usamos un puente absoluto */
    .eco-arrow-line {
        display: block !important;
        position: absolute;
        left: calc(50% + 36px); /* Empieza justo en el borde derecho del círculo actual */
        top: 36px; /* Centrado en el eje vertical del círculo */
        width: calc(100vw / 4 - 72px); /* Cálculo dinámico basado en las 4 columnas */
        max-width: 220px; /* Evita que se estire demasiado en pantallas gigantes */
        height: 1px;
        background-color: rgba(255, 255, 255, 0.3) !important;
        z-index: 1;
        pointer-events: none;
    }

    /* Punta de la flecha decorativa (>) */
    .eco-arrow-line::after {
        content: '' !important;
        position: absolute;
        right: 0;
        top: -3px;
        width: 6px;
        height: 6px;
        border-right: 1px solid rgba(255, 255, 255, 0.5);
        border-top: 1px solid rgba(255, 255, 255, 0.5);
        transform: rotate(45deg);
    }

    /* Ocultamos la línea horizontal en el último paso (Paso 4) */
    .eco-container .eco-step-item:last-child .eco-arrow-line {
        display: none !important;
    }
}

/* ==========================================================================
   3. ELEMENTOS INTERNOS DEL PASO
   ========================================================================== */

/* Círculos Superiores (Paso 1, 2...) */
.eco-step-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    z-index: 5; /* Queda por sobre la línea conectora */
}

/* Línea discontinua vertical hacia el icono */
.eco-vertical-line {
    width: 2px;
    height: 35px;
    border-left: 2px dashed rgba(255, 255, 255, 0.25) !important;
    margin: 12px 0;
}

/* Caja contenedora del icono */
.eco-icon-box {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* FUERZA INCONDICIONAL PARA LOS ICONOS IMAGEN */
.eco-icon-box img {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    min-width: 32px !important;
    object-fit: contain !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    filter: brightness(0) invert(1) !important;
}

/* Textos tipográficos */
.eco-title {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.eco-description {
    font-size: 14px;
    color: #a2a6aa;
    line-height: 1.6;
    margin: 0;
    padding: 0 15px;
}
/* ==========================================================================
   5. RESPONSIVE MÓVIL (SLIDER DE SWIPER) -> Hasta 767px
   ========================================================================== */
@media (max-width: 767px) {
    .eco-arrow-line {
        display: none !important; 
    }
    .eco-swiper-container {
        padding-bottom: 40px; 
    }
    .eco-pagination .swiper-pagination-bullet {
        background: #ffffff !important;
        opacity: 0.3 !important;
    }
    .eco-pagination .swiper-pagination-bullet-active {
        background: #ce2252 !important;
        opacity: 1 !important;
    }
}
