/* --- Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.steps-section {
    padding: 4rem 2rem;
    background: #161f27;
    font-family: "Poppins", sans-serif;
    text-align: center;
    color: #ffffff;
}

/* Header */
.steps-header .subtitle {
    text-transform: uppercase;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.steps-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #f7efd4;
    margin-bottom: 0.8rem;
}

.steps-header .description {
    font-size: 1rem;
    color: #ffffff;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    line-height: 1.5;
}

/* Envuelve para controlar scroll horizontal en mobile */
.carousel-wrapper {
    overflow: hidden;
    position: relative;
}

/* Mantiene grid en desktop */
.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    scroll-snap-type: none;
}

/* Estilo por defecto del card */
.step-card {
    background: #608097;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: start;
    min-width: auto;
}


.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.step-card .icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1rem auto;
    border-radius: 50%;
    background: #f7efd4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Para recortar bien la imagen dentro del círculo */
}

.step-card .icon img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #161f27;
}

.step-card p {
    font-size: 0.95rem;
    color: #ffffff;
    line-height: 1.5;
}

/* Responsivo */
@media (max-width: 992px) {
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: convierte en carrusel horizontal */
@media (max-width: 430px) {
    .steps-container {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 0 1rem 1rem 1rem;
    }

    .steps-container::-webkit-scrollbar {
        display: none;
        /* Oculta scrollbar en iOS/Safari */
    }

    .step-card {
        flex: 0 0 85%;
        min-width: 85%;
        max-width: 85%;
    }

    /* Header */
    .steps-header .subtitle {
        text-transform: uppercase;
        font-size: 18px;
        font-weight: 600;
        letter-spacing: 1.5px;
        color: #ffffff;
        margin-bottom: 0.5rem;
    }

    .steps-header h2 {
        font-size: 28px;
        font-weight: 700;
        color: #f7efd4;
        margin-bottom: 0.8rem;
        line-height: 1;
    }

    .steps-header .description {
        font-size: 1rem;
        color: #ffffff;
        max-width: 600px;
        margin: 0 auto 3rem auto;
        line-height: 1.5;
    }

    /* Estilo por defecto del card */
    .step-card p {
        font-size: 17px;
        line-height: 1;
    }
}