body {
  background-color: #021024;
  font-family: 'Raleway', sans-serif;
  line-height: 1.7;
  color: #c1e8ff;
}
.navbar {
  background-color: #021024;
  height: 80px;
  font-family: "Raleway", sans-serif;
  padding: 0.5rem;
}
.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  width: 20%;
  height: 20%;
  margin-right: -10px;
}

.navbar-brand {
  font-family: "Lato", sans-serif;
  font-weight: 500;
  color: #c1e8ff;
  font-size: 24px;
  transition: 0.3s color;
}
.navbar-brand:hover {
  color: #c1e8ff;
}
.navbar-brand::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: transparent;
  transition: background-color 0.3s ease;
}
.navbar-brand:hover::before {
  background-color: #c1e8ff;
}

.navbar-toggler:focus,
.btn-close:focus {
  box-shadow: none;
  outline: none;
}

.nav-link {
  color: #c1e8ff;
  font-weight: 500;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #c1e8ff;
  text-decoration: none;
  position: relative;
}
.offcanvas-body {
  background-color: #021024;
  color: #c1e8ff;
}

footer {
  font-family: "Lato", sans-serif;
  background-color: #021024;
  color: #c1e8ff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border-top: 0.5px solid #c1e8ff;
  padding: 40px 20px;
}

footer h5 {
  margin-bottom: 10px;
}

footer .rights {
  margin-top: 10px;
}

footer a {
  color: #c1e8ff;
  text-decoration: none;
  margin-right: 10px;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 3px 4px;
  border-radius: 4px;
}

footer a:hover {
  background: rgba(193, 232, 255, 0.1);
  transform: translateY(-2px);
}

.language-selector {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.flag {
  width: 40px;  /* Ajusta el tamaño de las banderas */
  height: 30px;
  margin: 0 10px;
  transition: opacity 0.3s ease;
}

.flag:hover {
  opacity: 0.8; /* Efecto de hover para mejorar la experiencia */
}


@media (max-width: 768px) {
  footer {
    text-align: center;
  }

  footer a {
    display: block;
    margin-bottom: 10px;
  }
  
}
@media (max-width: 991px) {
  .logo {
    display: none;
  }
}

@media (min-width: 991px) {
  .nav-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #c1e8ff;
    visibility: hidden;
    transition: 0.3s ease-in-out;
  }

  .nav-link:hover::before {
    width: 100%;
    visibility: visible;
  }
}

.container {
  padding-top: 5%;
  font-family: "Lato", sans-serif;
}

.container .text-center h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #c1e8ff;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.container .text-center hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, #c1e8ff, transparent);
  max-width: 300px;
  margin: 20px auto;
  opacity: 0.5;
}

.card {
  background: rgba(125, 160, 202, 0.9);
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(125, 160, 202, 0.3);
  position: relative;

}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(125, 160, 202, 0.5);
}

.card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 15px 15px 0 0;
}

.card:hover img {
  transform: scale(1.05);
}

.class-title {
  font-family: "Lato", sans-serif;
}
.card-body {
  font-family: "Raleway", sans-serif;
  
}



.card-title h3 {
  margin: 10px 0;
}

.card-text p {
  color: #021024;
}
.btn-primary {
  background: #052659;
  border: 1px solid #c1e8ff;
  color: #c1e8ff;
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  background: #c1e8ff;
  color: #021024;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(5, 38, 89, 0.4);
}


@media (max-width: 1017px) {
  .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    justify-content: center;
  }

  .card {
    margin-bottom: 20px;
  }

  .card img {
    height: 250px;
  }
  .container {
    margin-top: 4%;
  }
}

.card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.card.show {
  opacity: 1;
  transform: translateY(0);
}

/* Retrasos escalonados */
.card:nth-child(1) { transition-delay: 0.1s; }
.card:nth-child(2) { transition-delay: 0.2s; }
.card:nth-child(3) { transition-delay: 0.3s; }
.card:nth-child(4) { transition-delay: 0.4s; }
.card:nth-child(5) { transition-delay: 0.5s; }
.card:nth-child(6) { transition-delay: 0.6s; }
.card:nth-child(7) { transition-delay: 0.7s; }
.card:nth-child(8) { transition-delay: 0.8s; }




