.banner-beneficios {
    background: white;
    padding: 5rem 5rem;
    color: #222222;
    font: 400 1em/1.33 "Lora", serif;
}

.linea-banner {
    width: 100%;
    height: 4px;
    background-color: #222;
    /* o el color que desees */
    margin-top: 1rem;
    border-radius: 2px;
}

.beneficios-texto .beneficios-servicios {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;

    /* Mejor experiencia de scroll */
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: #888 transparent;
}

/* Ocultar barra de scroll en WebKit (Chrome, Safari) */
.beneficios-texto .beneficios-servicios::-webkit-scrollbar {
    height: 8px;
}

.beneficios-texto .beneficios-servicios::-webkit-scrollbar-track {
    background: transparent;
}

.beneficios-texto .beneficios-servicios::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 4px;
}

/* Cada figura se ajusta para scroll snap */
.beneficios-texto .beneficios-servicios figure {
    flex: 0 0 auto;
    width: 300px;
    scroll-snap-align: start;
    /* Para que encaje en el scroll */
}

/* Contenedor principal */
.beneficios-contenido {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.beneficios-texto {
    text-align: left;
    max-width: 700px;
}

.beneficios-texto strong {
    font-weight: bold !important;
    font-family: Arial, sans-serif;
}

.beneficios-texto h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}

.snip1171 figcaption p {
    white-space: normal;
    /* permite que el texto se ajuste a múltiples líneas */
}

.beneficios-texto p {
    font-size: 18px;
    margin-bottom: 1.5rem;
}

.beneficios-texto ul {
    padding-left: 1.2rem;
}

.beneficios-texto li {
    margin-bottom: 0.8rem;
    font-size: 18px;
}

.beneficios-imagen img {
    max-width: 80%;
    height: auto;
    border-radius: 10px;
}

/* Versión de escritorio: dos columnas */
@media (min-width: 768px) {
    .beneficios-contenido {
        flex-direction: row;
        justify-content: space-between;
    }

    .beneficios-texto {
        flex: 1;
    }

    .beneficios-imagen {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-left: 2rem;
    }

    .beneficios-texto h2 {
        text-align: left;
    }
}

@media (max-width: 500px) {

    body,
    html {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    .banner-beneficios {
        background: white;
        color: #222222;
        font-family: "Lora", serif;
        padding: 2rem 1rem;
        box-sizing: border-box;
    }

    .beneficios-contenido {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .beneficios-texto {
        text-align: left;
        width: 100%;
        max-width: none;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .beneficios-texto strong {
        font-weight: 700 !important;
        font-family: Arial, sans-serif;
    }

    .beneficios-texto h2 {
        font-size: 1.6rem;
        font-weight: bold;
        margin-bottom: 1rem;
        text-align: center;
    }

    .beneficios-texto p {
        font-size: 17px;
        margin-bottom: 1.5rem;
    }

    .beneficios-texto ul {
        padding-left: 1rem;
    }

    .beneficios-texto li {
        margin-bottom: 0.8rem;
        font-size: 17px;
    }

    .beneficios-imagen img {
        max-width: 90%;
        height: auto;
        border-radius: 10px;
        display: block;
        margin: 0 auto;
    }
}