/* Estilos para el carrusel con imágenes clickeables */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
    height: 400px; /* Ajusta esta altura según necesites */
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    width: 100%;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    z-index: 10;
    padding: 8px 0;
    margin: 0;
    list-style: none;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: all 0.3s ease;
}

.dot.active {
    background: #ffffff;
    transform: scale(1.2);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

/* Estilos generales para todos los dispositivos */
.nav-logo {
  height: 4.3rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.banner {
  width: 100%;
  height: auto;
}

.service-item {
  background-color: #031f89;
  padding: 20px;
  border-radius: 10px;
  color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.item-content {
  flex-grow: 1;
}

.mobirise-credits {
  background-color: #fff; 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif; 
  color:#aaa; 
  font-size:12px; 
  padding: 0; 
  align-items: center; 
  display: flex;
}

.mobirise-credits a {
  flex: 1 1; 
  height: 3rem; 
  padding-left: 1rem;
}

.mobirise-credits p {
  flex: 0 0 auto; 
  margin:0; 
  padding-right:1rem;
}

.mobirise-credits a {
  color:#aaa;
}

/* Mejoras de accesibilidad en focus */
a:focus, button:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Ajustes para tablets (768px-991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .nav-logo {
    height: 3.5rem;
  }
  
  .service-item {
    margin-bottom: 20px;
  }
}

/* Ajustes para móviles (hasta 767px) */
@media (max-width: 767px) {
  /* Logo en navbar */
  .nav-logo {
    height: 3rem !important;
  }
  
  /* Menú desplegable */
  .navbar-collapse {
    background: #35424a;
    padding: 15px;
    margin-top: 10px;
    border-radius: 5px;
  }
  
  /* Elementos del menú */
  .nav-item {
    margin: 5px 0 !important;
  }
  
  .btn2, .btn3 {
    width: 100%;
    text-align: left;
    padding: 10px 15px !important;
    margin: 5px 0 !important;
  }
  
  /* Menú de usuario */
  .user-profile {
    display: block;
    margin: 15px 0;
  }
  
  /* Redes sociales en menú */
  .icons-menu {
    margin: 15px 0;
  }
  
  /* Banner promocional */
  .banner {
    max-height: 150px;
    object-fit: cover;
  }
  
  /* Títulos */
  .mbr-section-title {
    font-size: 1.8rem !important;
  }
  
  /* Sección de servicios */
  .service-item {
    margin-bottom: 20px;
  }
  
  /* Footer dinámico */
  #footer-general-dinamico .row {
    flex-direction: column;
  }
  
  #footer-general-dinamico .col-md-4 {
    margin-bottom: 20px;
  }
  
  /* Botones más grandes en móviles */
  .btn, .item-btn {
    padding: 12px 20px !important;
    font-size: 1rem !important;
  }
}