/* =========================================
   ¿CÓMO FUNCIONA? SECTION
   ========================================= */
.como-funciona-section {
    position: relative;
    width: 100%;
    padding: 100px 0;
    background-color: #f4f6f8; /* Gris frío para contrastar con el blanco cálido anterior */
}

.como-funciona-container {
    text-align: center;
}

.como-funciona-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #5f5c5c;
    letter-spacing: 1px;
    margin-bottom: 60px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.pasos-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.paso-item {
    flex: 1;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.paso-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 3px solid #c45416;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c45416;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.paso-item:hover .paso-circle {
    background-color: #c45416;
    color: #ffffff;
    transform: scale(1.1);
}

.paso-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #c45416;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.paso-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #5f5c5c;
    margin-bottom: 10px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.paso-text {
    font-size: 0.9rem;
    color: #666666;
    line-height: 1.5;
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Flechas conectoras */
.paso-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px; /* Alinea con el centro del círculo */
    flex-shrink: 0;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .pasos-grid {
        flex-wrap: wrap;
        gap: 40px;
    }

    .paso-arrow {
        display: none; /* Oculta las flechas en tablets */
    }

    .paso-item {
        flex: 0 0 calc(50% - 20px);
        max-width: none;
    }
}

@media (max-width: 768px) {
    .como-funciona-section {
        padding: 70px 0;
    }

    .como-funciona-title {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }

    .pasos-grid {
        flex-direction: column;
        align-items: center;
        gap: 35px;
    }

    .paso-item {
        flex: 0 0 100%;
        max-width: 300px;
    }
}