html, body {
  height: 100%;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

footer, .bg-dark {
  margin-top: auto;
  background-color: #2c2c54 !important;
  color: #f5f6fa !important;
  border-top: 1px solid #22224a;
}

.navbar-custom {
      background-color: #2c2c54;
    }

    .navbar-brand img {
      margin-right: 10px;
    }

    .navbar-nav .nav-link {
      color: #f5f6fa !important;
      margin: 0 12px;
      font-weight: 500;
      position: relative;
      transition: color 0.3s ease;
    }

    .navbar-nav .nav-link::after {
      content: '';
      position: absolute;
      width: 0;
      height: 2px;
      left: 50%;
      bottom: 0;
      background-color: #f8c291;
      transition: 0.3s;
      transform: translateX(-50%);
    }

    .navbar-nav .nav-link:hover::after {
      width: 60%;
    }

    .btn-contacto {
      background-color: #f8c291;
      border: none;
      color: #2c2c54;
      font-weight: bold;
      transition: 0.3s;
    }

    .btn-contacto:hover {
      background-color: #e58e26;
      color: #fff;
    }

    /* Carrusel responsivo y centrado */
    #carouselExampleIndicators {
      max-height: 90vh;
      min-height: 350px;
      overflow: hidden;
    }
    #carouselExampleIndicators .carousel-item img {
      height: 90vh;
      min-height: 350px;
      width: 100%;
      object-fit: cover;
      object-position: center;
    }

    .carousel-caption {
      /* ya la tienes centrada con flex, esto es opcional */
      text-align: center;
    }
    
    .caption-box {
      background: rgba(0, 0, 0, 0.55); /* negro semitransparente */
      padding: 1rem 2rem;
      border-radius: 0.5rem;
    }
    
    .caption-box h2,
    .caption-box p {
      color: #f5f6fa; /* texto claro */
      margin: 0;
    }
    .card-link-wrapper {
      text-decoration: none;
      color: inherit;
    }
    
    .card-link-wrapper .card {
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .card-link-wrapper:hover .card {
      transform: translateY(-4px);
      box-shadow: 0 0 20px rgba(0, 51, 105, 0.4);
    }
    
    .card-link-wrapper:hover .fa-users {
      color: #000000; /* azul más vivo, ajusta al gusto */
    }
        