.servicios-wrap{
    height: 300vh;
    position: relative;
}

.servicios{
    position: sticky;
    top: 0;
    height: 100vh;
    background-color: #0D1726;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.servicios__mask{
    position: absolute;
    margin: 0;
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    color: transparent;
    -webkit-text-fill-color: transparent;
    background-position: center;
    background-size: cover;
    will-change: font-size, transform, opacity;
}

.servicios__mask--photo{
    background-color: #172554;
    background-clip: text;
    -webkit-background-clip: text;
}

.servicios__mask--solid{
    background-color: #235edd;
    background-clip: text;
    -webkit-background-clip: text;
    opacity: 0;
}

.servicios-content{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}

.servicios-content.visible{
    pointer-events: auto;
}


/* ===== Base: desktop (como ya lo tenías) ===== */
.cards{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 50px;
}

.card{
    background-color: rgba(42, 58, 92, 0.35);
    border: none;
    max-width: 350px;
    height: 348px;
    border-radius: 6px;
    outline-offset: 10px;
    outline: 2px solid rgba(42, 58, 92, 0.35);
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    text-align: left;
    font-family: inherit;
    color: inherit;
    cursor: default;
}

.card-head{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}


.card-head span{
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-family: "Bricolage Grotesque";
    font-size: 22px;
}

.card img{
    height: 70px;
    width: 70px;
    padding: 15px;
    background: rgba(76, 201, 240, 0.06);
    border-radius: 6px;
    flex-shrink: 0;
}

.card p{
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    font-family: "Montserrat";
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    min-height: 0;
}


@media (max-width: 1250px){
    .cards{
        flex-direction: column;
        align-items: stretch; /* antes: heredaba "center" de la base */
        gap: 60px;
        width: 100%;
        max-width: 340px;
        margin-top: 70px;
    }

    .card{
        width: 100%; /* todas las cards, mismo ancho siempre */
        height: auto;
        max-width: 100%;
        padding: 18px;
        gap: 0; /* sin este override, hereda el 20px de la base */
        cursor: pointer;
        box-sizing: border-box;
    }

    .card-head{
        flex-direction: row;
        align-items: center;
        justify-content: flex-start; /* esto centra ícono + texto como grupo */
        gap: 20px;
    }

    .card img{
        height: 36px;
        width: 36px;
        padding: 8px;
    }

    .card-head span{
        font-size: 18px;
    }

    .card-body{
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .card-body p{
        font-size: 15px;
        margin: 14px 0 0;
    }

    .card.open .card-body{
        max-height: 200px;
    }
}