:root {
  --main-color: #00b7ff;
  --secondary-color: #0073ff;
}

.navbar {
  background-color: #fff;
  height: 80px;
  margin: 20px;
  border-radius: 10px;
  padding: 0.5rem;
}

.navbar-brand {
  font-weight: 500;
  font-size: 24px;
  transition: 0.3s color;
  color: var(--main-color);
  max-width: 20vw;
}

.login-button {
  background-color: var(--main-color);
  color: #fff;
  font-size: 14px;
  padding: 8px 20px;
  border-radius: 50px;
  text-decoration: none;
  transition: 0.3s background-color;
}

.login-button:hover {
  background-color: var(--secondary-color);
}

.navbar-toggler {
  border: none;
  outline: none;
  font-size: 1.25rem;
}

.navbar-toggler:focus,
.btn-close:focus {
  box-shadow: none;
  outline: none;
}

.nav-link {
  color: #666777;
  font-weight: 500;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #000;
}

@media (min-width: 991px) {
  .nav-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--main-color);
    visibility: hidden;
    transition: 0.3s ease-in-out;
  }

  .nav-link:hover::before,
  .nav-link.active::before {
    width: 100%;
    visibility: visible;
  }
}

@media (max-width: 768px) {
  /* .carousel-caption {
    position: static;
    transform: none;
    text-align: center;
    top: auto;
  } */

  .carousel-caption h1 {
    font-size: 12vw;
    line-height: 10vw;
  }

  .carousel-caption h2 {
    font-size: 4vw;
  }
}
@media (min-width: 768px) {
  .carousel-caption h1 {
    font-size: 8vw;
    line-height: 15vh;
  }

  .carousel-caption h2 {
    font-size: 2vw;
  }
}

.carousel-caption h1 {
  margin-bottom: 10%;
}

/* .carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
} */

.carousel-caption h1,
.carousel-caption h2 {
  white-space: normal;
}

/* .carousel-caption {
  max-width: 90%;
  
} */

.carousel-item::before {
  background-color: rgba(0, 0, 0, 0.6);
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

/* Articles Section */
.articles-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.section-title {
  text-align: center;
  color: var(--main-color);
  margin-bottom: 40px;
  font-size: 2em;
}

.article-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  transition: transform 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
}

.article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-content {
  padding: 20px;
}

.article-content h3 {
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.read-more {
  display: inline-block;
  color: var(--main-color);
  text-decoration: none;
  font-weight: 500;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--secondary-color);
}

/* Footer */
.site-footer {
  background-color: #333;
  color: #fff;
  padding: 60px 0 30px;
}

.site-footer h3 {
  color: var(--main-color);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--main-color);
}

.site-footer hr {
  border-top-color: #bbb;
  opacity: 0.5;
  margin: 20px 0;
}

.copyright-text {
  margin: 0;
  text-align: center;
  font-size: 0.9em;
}

.newsletter-section {
  padding: 60px 0;
  background-color: #f8f9fa;
  text-align: center;
}

.newsletter-section .section-title {
  color: var(--main-color);
  margin-bottom: 40px;
  font-size: 2em;
}

#newsletter-form {
  max-width: 500px;
  margin: 0 auto;
}

#newsletter-form .form-control {
  border-radius: 50px;
  padding: 15px;
  font-size: 1em;
}

#newsletter-form .btn {
  background-color: var(--main-color);
  color: #fff;
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

#newsletter-form .btn:hover {
  background-color: var(--secondary-color);
}

.section-title {
  border-bottom: 2px solid #007bff;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.hero-section {
  background-image: url("fondo-carrera.jpg"); /* Reemplaza con la URL de tu imagen de fondo */
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 100px 0;
  text-align: center;
}
.hero-section h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Dropdown menu styling */
.dropdown-menu {
  background-color: #fff; /* White background for the dropdown */
  border-radius: 10px; /* Rounded corners to match the navbar */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Light shadow for a subtle effect */
  padding: 0.5rem;
}

/* Dropdown items styling */
.dropdown-item {
  color: #666777; /* Consistent with other nav items */
  font-weight: 500;
  padding: 10px 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover and focus states for dropdown items */
.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--main-color); /* Use main color for hover effect */
  color: #fff; /* White text on hover */
}

/* Divider customization */
.dropdown-divider {
  margin: 0.5rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1); /* Subtle divider */
}

.square-container {
  width: 30vw; /* 30% del ancho de la pantalla */
  height: 30vw; /* Mantiene la proporción 1:1 */
  max-width: 200px; /* Máximo tamaño en pantallas grandes */
  max-height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px; /* Opcional, redondea los bordes */
}

.square-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Corta la imagen y la centra */
}

/* Asegura que .media ocupe todo el ancho disponible y centre su contenido */
.media {
  display: flex;
  justify-content: center; /* Centra horizontalmente el contenido */
  align-items: center; /* Centra verticalmente el contenido */
  width: 100%;
  height: 40vh;
  max-height: 60vw;
  margin: 20px auto; /* Centra el bloque .media en la página */
}

/* Asegura que los iframes y demás contenido multimedia sean responsivos */
.media iframe,
.media img,
.media video {
  width: 50vw;
  min-width: 300px; /* Mínimo tamaño en pantallas pequeñas */
  max-width: 800px; /* Máximo tamaño en pantallas grandes */
  height: 100%; /* Mantiene la proporción */
  display: block; /* Evita espacios extra alrededor del contenido */
}
