/* ===========================
   SECCIÓN PROCESO / CÓMO TRABAJAMOS
   =========================== */

#proceso {
    background: linear-gradient(135deg, #F8FAFE 0%, #F0F4F8 100%);
    padding: 120px 24px 128px;
    position: relative;
    overflow: hidden;
}

/* Decoración de fondo sutil */
#proceso::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 40%, rgba(0, 151, 196, 0.04) 0%, transparent 60%),
        radial-gradient(circle at 85% 70%, rgba(242, 99, 34, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

/* ---- Header de sección con ajustes ---- */
#proceso .section-header {
    margin-bottom: 64px;
}

#proceso .section-tag {
    background: rgba(242, 99, 34, 0.1);
    border-color: rgba(242, 99, 34, 0.25);
    color: var(--naranja);
}

/* ---- Steps container ---- */

.proceso-steps {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Línea conectora entre pasos (visible en desktop) */
@media (min-width: 992px) {
    .proceso-steps {
        position: relative;
    }
    
    .proceso-steps::before {
        content: '';
        position: absolute;
        top: 60px;
        left: 10%;
        right: 10%;
        height: 2px;
        background: linear-gradient(90deg, 
            rgba(0, 151, 196, 0.2) 0%,
            rgba(0, 151, 196, 0.5) 25%,
            rgba(242, 99, 34, 0.5) 75%,
            rgba(242, 99, 34, 0.2) 100%);
        z-index: 0;
        pointer-events: none;
    }
}

/* ---- Cada paso individual ---- */

.step {
    flex: 1;
    min-width: 160px;
    text-align: center;
    padding: 32px 20px;
    background: var(--blanco);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 32px -12px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 151, 196, 0.2);
}

/* Efecto de borde decorativo al hover */
.step::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--celeste), var(--naranja));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.step:hover::after {
    opacity: 1;
}

/* ---- Número / Emoji del paso ---- */

.step-num {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--celeste-light) 0%, #E6F4FF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.step:hover .step-num {
    background: linear-gradient(135deg, var(--naranja-light) 0%, #FFE8E0 100%);
    transform: scale(1.05);
}

.step-emoji {
    font-size: 36px;
    transition: transform 0.3s ease;
}

.step-emoji i {
    color: var(--celeste-dark);
    font-size: 32px;
    line-height: 1;
}

.step:hover .step-emoji i {
    color: var(--naranja-dark);
}

.step:hover .step-emoji {
    transform: scale(1.1);
}

/* ---- Título del paso ---- */

.step-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--negro);
    margin: 0 0 12px;
    letter-spacing: -0.3px;
    position: relative;
    display: inline-block;
}

/* Línea decorativa bajo el título (opcional) */
.step-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--celeste);
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
}

.step:hover .step-title::after {
    width: 50px;
    background: var(--naranja);
}

/* ---- Texto del paso ---- */

.step-text {
    font-size: 14px;
    color: var(--gris-texto);
    line-height: 1.6;
    margin: 16px 0 0;
    transition: color 0.3s ease;
}

.step:hover .step-text {
    color: var(--negro);
}

/* ---- Animaciones reveal ---- */

#proceso .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#proceso .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Diferentes delays para cada paso */
.step.reveal:nth-child(1) { transition-delay: 0.05s; }
.step.reveal:nth-child(2) { transition-delay: 0.1s; }
.step.reveal:nth-child(3) { transition-delay: 0.15s; }
.step.reveal:nth-child(4) { transition-delay: 0.2s; }
.step.reveal:nth-child(5) { transition-delay: 0.25s; }

/* ---- Responsive ---- */

@media (max-width: 1024px) {
    .proceso-steps {
        gap: 20px;
    }
    
    .step {
        min-width: 140px;
        padding: 28px 16px;
    }
    
    .step-num {
        width: 70px;
        height: 70px;
    }
    
    .step-emoji {
        font-size: 32px;
    }
    
    .step-title {
        font-size: 16px;
    }
    
    .step-text {
        font-size: 13px;
    }
}

@media (max-width: 900px) {
    #proceso {
        padding: 72px 24px 80px;
    }
    
    .proceso-steps {
        justify-content: center;
        gap: 24px;
    }
    
    .step {
        flex: 0 1 calc(33.33% - 24px);
        min-width: 200px;
    }
    
    /* Ocultar línea conectora en tablet */
    .proceso-steps::before {
        display: none;
    }
}

@media (max-width: 768px) {
    #proceso {
        padding: 64px 20px 72px;
    }
    
    .step {
        flex: 0 1 calc(50% - 24px);
        min-width: 180px;
        padding: 24px 16px;
    }
    
    .step-num {
        width: 65px;
        height: 65px;
        margin-bottom: 20px;
    }
    
    .step-emoji {
        font-size: 30px;
    }
    
    .step-title {
        font-size: 16px;
    }
    
    .step-title::after {
        width: 25px;
        bottom: -4px;
    }
    
    .step:hover .step-title::after {
        width: 40px;
    }
    
    .step-text {
        font-size: 13px;
        margin-top: 12px;
    }
}

@media (max-width: 550px) {
    #proceso {
        padding: 56px 16px 64px;
    }
    
    #proceso .section-header {
        margin-bottom: 48px;
    }
    
    .proceso-steps {
        gap: 20px;
    }
    
    .step {
        flex: 0 1 100%;
        min-width: auto;
        padding: 28px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .step-num {
        width: 70px;
        height: 70px;
        margin-bottom: 16px;
    }
    
    .step-emoji {
        font-size: 32px;
    }
    
    .step-title {
        font-size: 18px;
    }
    
    .step-title::after {
        width: 35px;
        bottom: -6px;
    }
    
    .step:hover .step-title::after {
        width: 55px;
    }
    
    .step-text {
        font-size: 14px;
        max-width: 260px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 380px) {
    .step {
        padding: 24px 16px;
    }
    
    .step-num {
        width: 60px;
        height: 60px;
    }
    
    .step-emoji {
        font-size: 28px;
    }
    
    .step-title {
        font-size: 16px;
    }
    
    .step-text {
        font-size: 13px;
    }
}
