  body {
    overflow-x: hidden; /* Esto previene que la página se mueva horizontalmente por elementos desbordados */
}
   *{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.slider{
  width: 100%;
  overflow: hidden;
  margin-bottom: -290px;
}
.slider ul{
    display: flex;
    animation: cambio 30s infinite alternate linear;
    width: 300%;
}
.slider li{
    width: 100%;
    list-style: none;
}
.slider img{
    box-sizing: border-box;
    width: 100%;
    height: auto;
}
@keyframes cambio{
    0%{margin-left: 0;}
    30%{margin-left: 0;}
    
    35%{margin-left: -100%;}
    65%{margin-left: -100%;}
    
    70%{margin-left: -200%;}
    100%{margin-left: -200%;}
    
    /* 75%{margin-left: -300%;}
    100%{margin-left: -300%;} */
}
@media only screen and (min-width:481px){
    .map_cel iframe{
        display: none; 
    }
    .map_cel, .slider ul, .slider img{
        height: -10vh; /* ❌ Esto no existe, height debe ser positivo */
    }
}

                                                        /* PARA DISPOSITIVOS PEQUEÑOS */
                                                        
/* --- CORRECCIONES DEFINITIVAS PARA MÓVILES y TABLETS (max-width: 768px) --- */
@media (max-width: 768px) {

   
    /* CORRECCIONES DE LAYOUT GENERAL */
    .navbar-brand h2 {
        font-size: 20px;
    }
    .carousel-inner .carousel-item img {
        height: auto;
        max-height: 300px; /* Limita la altura del banner */
        width: 100%;
        object-fit: cover;
    }
    .section-heading h2, .section-heading h4 {
        word-wrap: break-word;
        padding: 0 15px; 
    }

    .embed-responsive {
        min-height: 350px; /* O el valor que consideres apropiado para que se vea bien en vertical */
    }
    
    .embed-responsive-item {
        height: 100%;
        width: 100%;
    }
}

/* Ajustes solo para pantallas en orientacin vertical */
@media screen and (orientation: portrait) {
  #map {
    width: 100vw !important;
    height: 60vh !important; /* Pods probar 70vh o 80vh si quers ms alto */
    position: relative !important;
  }

  /* Si el mapa est dentro de un contenedor, tambin ajustalo */
  .map-container {
    width: 100vw !important;
    height: auto !important;
    overflow: hidden;
  }
}