#servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ======== CARRUSEL PARA MÓVIL ======== */
@media (max-width: 768px) {
    #servicios {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 1.5rem;
        padding: 2rem 1rem;
        margin: 0;
        max-width: 100vw;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE and Edge */
    }

    /* Ocultar scrollbar en Chrome, Safari y Opera */
    #servicios::-webkit-scrollbar {
        display: none;
    }

    figure.snip1171 {
        flex: 0 0 85vw;
        /* 85% del viewport width */
        min-width: 85vw;
        max-width: 85vw;
        scroll-snap-align: start;
        margin: 0;
        height: auto;
    }

    /* Indicadores de scroll (opcional) */
    .servicios-scroll-indicator {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1.5rem;
        padding: 0 1rem;
    }

    .scroll-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #608097;
        opacity: 0.4;
        transition: opacity 0.3s ease;
    }

    .scroll-dot.active {
        opacity: 1;
        background: #608097;
    }
}

/* ======== ESTILOS EXISTENTES (sin cambios) ======== */
figure.snip1171 {
    background-color: #608097;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

figure.snip1171:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 30px #608097;
}

figure.snip1171 img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

figure.snip1171:hover img {
    transform: scale(1.05);
}

.snip1171 figcaption {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    background-color: #161f27;
}

.snip1171 h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.snip1171 p {
    font-size: 1rem;
    color: #ccc;
    flex: 1;
}

/* Botón */
.snip1171 a {
    margin-top: 1.5rem;
    align-self: flex-start;
    background-color: #608097;
    color: #fff;
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.snip1171 a:hover {
    background-color: #0369a1;
    transform: scale(1.05);
}

/* Botón fijo (ejemplo de WhatsApp) */
.boton-wp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #075985;
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.boton-wp:hover {
    background: #0369a1;
}

/* Responsive adicional para texto en móvil */
@media (max-width: 768px) {
    .snip1171 h3 {
        font-size: 1.15rem;
    }

    .snip1171 p {
        font-size: 0.95rem;
    }

    .snip1171 a {
        font-size: 0.8rem;
    }
}

/* Responsive adicional para texto en móvil */
@media (max-width: 480px) {
    .snip1171 h3 {
        font-size: 20px;
    }

    .snip1171 p {
        font-size: 17px;
        line-height: 1.2;
    }

    .snip1171 a {
        font-size: 0.8rem;
    }
}