/* Fix carousel arrows so they do not move with scroll */
#llegarapidoCarousel {
  position: relative;
}

#llegarapidoCarousel .carousel-control-prev,
#llegarapidoCarousel .carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 5%;
  height: 50px;
  cursor: pointer;
}

#llegarapidoCarousel .carousel-control-prev {
  left: 10px;
}

#llegarapidoCarousel .carousel-control-next {
  right: 10px;
}

/* Remove outline from menu buttons */
#mobile-menu,
#mobile-menu:focus,
.buttons-container .btn,
.buttons-container .btn:focus {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  color: black !important;
}

/* Container flex layout for sidebar and main content */
.container-flex {
  display: flex;
  min-height: 100vh;
}

/* Sidebar styles */
.sidebar {
  background-color: #f8f9fa;
  width: 250px;
  padding: 1rem;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  overflow-y: auto;
  position: relative; /* scrolls with page */
}

/* Main content styles */
.main-content {
  flex: 1;
  padding: 1rem;
}

/* Mobile menu button */
#mobile-menu {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

/* Oculta el nav en móvil por defecto */
@media (max-width: 767.98px) {
  .nav-list {
    position: fixed;
    top: 0;
    right: -100vw; /* Oculto fuera de pantalla */
    width: 80vw;
    height: 100vh;
    z-index: 1050;
    background: #f8f9fa;
    transition: right 0.3s;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }
  .nav-list.active {
    right: 0; /* Muestra el nav */
  }
  .container-flex {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
  }
  .sidebar.active {
    max-height: 500px; /* enough to show menu */
  }
  .main-content {
    padding: 1rem 0;
  }
  #mobile-menu {
    display: block;
  }
}

/* Estilos por defecto para la versión web (desktop) */
.servicios-container {
  display: flex;
  flex-direction: column; /* o como lo tengas actualmente */
  gap: 2rem;
}

/* Para versión móvil: los bloques en la misma línea horizontal */
@media (max-width: 768px) {
  .servicios-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .servicio-bloque {
    flex: 1 1 40%;
    min-width: 120px;
    max-width: 180px;
  }
}
