div.servicios{
 position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #000;
  font-size: 5vw;
  padding: 2rem;
  box-sizing: border-box;
  overflow: hidden;
}

.carrusel {
    position: relative;
    display: flex;
    flex-wrap: wrap; /* Solo añade esta línea */
    gap: 30px;
    width: 90%;
    margin: auto;
    margin-bottom: .5rem;
    padding: 15px;
    justify-content: center; /* Opcional: para centrar las tarjetas */
}

.carrusel > div {
    /* scroll-snap-align: center; Elimina esta línea */
    display: flex;
    flex-direction: column;
    margin: 0; /* Elimina el margen individual */
    border-radius: 50px;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 20px;
    flex: 0 0 auto; /* O ajusta según necesites */
    width: auto; /* Define un ancho fijo si lo prefieres */
}

/* Eslogans generales */


h1 {
    margin: 1rem;
    padding: 0 0.5rem;
}

p {
    margin: 1rem;
    padding: 0 0.5rem;
    font-size: medium;
}

/* Estilos de eslogans con color específico */
div.eslogan_1 h1 span,
div.eslogan_2 h1 span,
div.eslogan_3 h1 span,
div.eslogan_4 h1 span,
div.eslogan_5 h1 span,
div.eslogan_6 h1 span{
    color: var(--color-font);
}

/* Media Queries para Responsive Design */

/* Tablet pequeña (600px a 768px) */
@media screen and (max-width: 768px) {

    div.servicios_background img{
    position: relative;
    content: url("../Img/Img_components/Servicios/Servicios_movil.svg");
    max-width: 420px;
    left: -2% !important;
    top: -10%;
  } 
    .carrusel {
        width: 100%;
        gap: 15px;
        margin-bottom: 1rem;
    }
    
    .carrusel > div {
        border-radius: 30px;
        padding: 12px;
        width: calc(50% - 15px); /* Dos columnas */
    }
    
    div.servicios {
        padding: 0 10px;
    }
    
    h1 {
        font-size: 1.6rem;
        margin: 0.6rem;
        text-align: center;
    }
    
    p {
        font-size: 0.9rem;
        margin: 0.6rem;
        text-align: center;
    }
}

/* Móvil grande (480px a 600px) */
@media screen and (max-width: 768px) {

    /* div.servicios_background img{
    position: relative;
    content: url("../Img/Img_components/Servicios/Servicios_movil.svg");
    max-width: 420px;
    left: -2% !important;
    top: -10%;
  } */
    .carrusel {
        width: 100%;
        gap: 15px;
        margin-bottom: 1rem;
    }
    
    .carrusel > div {
        border-radius: 30px;
        padding: 12px;
        width: calc(50% - 15px); /* Dos columnas */
    }
    
    div.servicios {
        padding: 0 10px;
    }
    
    h1 {
        font-size: 1.6rem;
        margin: 0.6rem;
        text-align: center;
    }
    
    p {
        font-size: 0.9rem;
        margin: 0.6rem;
        text-align: center;
    }
}

/* Móvil grande (480px a 600px) */
@media screen and (max-width: 600px) {

div.servicios img{
    width: auto;
}
    .carrusel {
        flex-direction: column;
        gap: 20px;
        padding: 10px 5px;
    }
    
    .carrusel > div {
        width: 100%;
        border-radius: 25px;
        padding: 15px;
        margin-bottom: 10px;
    }
    img{
        width: 50%;
    }
    
    h1 {
        font-size: 1.4rem;
        margin: 0.5rem;
        padding: 0 0.3rem;
    }
    
    p {
        font-size: 0.85rem;
        margin: 0.5rem;
        padding: 0 0.3rem;
        line-height: 1.4;
    }
}

/* Móvil pequeño (hasta 480px) */
@media screen and (max-width: 480px) {
    .carrusel {
        gap: 15px;
        padding: 5px;
    }
    
    .carrusel > div {
        border-radius: 20px;
        padding: 12px 10px;
    }


    
    h1 {
        font-size: 1.2rem;
        margin: 0.4rem;
        padding: 0 0.2rem;
    }
    
    p {
        font-size: 0.8rem;
        margin: 0.4rem;
        padding: 0 0.2rem;
        line-height: 1.3;
    }
    
    div.servicios_background {
        margin: 0 -5px;
    }
}

/* Pantallas muy grandes (más de 1440px) */
@media screen and (min-width: 1440px) {
    .carrusel {
        max-width: 1400px;
        gap: 40px;
    }
    
    .carrusel > div {
        padding: 25px;
        border-radius: 60px;
    }
    
    h1 {
        font-size: 2.2rem;
        margin: 1.5rem;
    }
    
    p {
        font-size: 1.1rem;
        margin: 1.5rem;
    }
}

/* Orientación landscape para móviles */
@media screen and (max-height: 600px) and (orientation: landscape) {
     img{
        width: 100%;
    }
    
    .carrusel {
        flex-wrap: wrap;
        overflow-x: auto;
        padding: 10px;
    }
    
    .carrusel > div {
        flex: 0 0 auto;
        width: 300px;
        height: auto;
    }
}



