html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Estilos para tarjetas con bordes redondos */
.card {
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.card-img, .card-img-top {
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

.card-footer {
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

/* Haciendo los bordes redondos más suaves en los formularios */
.form-control, .btn, .form-select {
  border-radius: 0.5rem;
}

/* Estilos para el menú principal */
.navbar-dark .navbar-nav .nav-link {
  color: white !important;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: #a0c800 !important;
  transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .dropdown-menu .dropdown-item:hover,
.navbar-dark .navbar-nav .dropdown-menu .dropdown-item:focus {
  color: #a0c800;
  background-color: rgba(9, 69, 121, 0.1);
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px rgba(0,0,0,0.2);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  color: #FFF;
  transform: scale(1.1);
  box-shadow: 3px 3px 5px rgba(0,0,0,0.3);
}

@media screen and (max-width: 767px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 24px;
  }
}

/* Estilos para el carrusel responsivo */
#mainCarousel {
  max-height: 500px; /* Altura máxima para pantallas grandes */
  overflow: hidden;
}

.carousel-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.carousel-link {
  display: block;
  width: 100%;
  position: relative;
}

/* Media queries para diferentes tamaños de pantalla */
@media (max-width: 992px) {
  #mainCarousel {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  #mainCarousel {
    max-height: 300px;
  }
}

@media (max-width: 576px) {
  #mainCarousel {
    max-height: 200px;
  }
}