/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #083b6e;
  padding: 1rem 2rem;
  position: relative;
  height: 107px; /*altura fija */
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem; /* espaciado entre logos */
  height: auto !important;
}

.logo-ags {
  height: 100px !important; /* o el tamaño que quieras */
  
}

.logo-tepezala {
  height: 112px !important; /* o el tamaño que quieras */
}

.logo-unii {
  height: 120px !important; /* o el tamaño que quieras */
}

/*.nav-links {
  display: flex;
  list-style: none;
}*/

/* Menú base */
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
  position: relative;
}


.nav-links li {
  position: relative;
  margin-left: 1.5rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem;
}

.nav-links a.active {
  background-color: #0a5db1;
  border-radius: 4px;
  padding: 0.5rem 1rem;
}

/* Menú desplegable oculto por defecto */
.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #003366;
  border-radius: 4px;
  top: 100%;
  left: 0;
  list-style: none;
  padding: 0.5rem 0;
  z-index: 999;
  min-width: 240px;
}

/* Mostrar el menú al dar clic (clase "open" se activa con JS) */
.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 0.6rem 1rem;
  color: white;
  text-decoration: none;
  transition: background-color 0.2s;
}

.dropdown-menu li a:hover {
  background-color: #004080;
}

/* Opcional: ícono de flecha ▾ que rota */
.dropdown-toggle {
  cursor: pointer;
}

/* Submenú oculto por defecto */
.sub-menu {
  display: none;
  background-color: #004080;
  list-style: none;
  margin-top: 0.3rem;
  border-radius: 4px;
  padding: 0.3rem 0;
}

.sub-dropdown.open .sub-menu {
  display: block;
}

.sub-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: white;
  text-decoration: none;
  transition: background-color 0.2s;
}

.sub-menu li a:hover {
  background-color: #0055aa;
}

/* Estilo para el botón del submenú */
.sub-toggle {
  cursor: pointer;
  display: block;
  color: white;
  padding: 0.6rem 1rem;
  text-decoration: none;
}

/* Burger menu (solo visible en móviles, funcional si quieres adaptarlo) */
.burger {
  display: none;
  font-size: 1.5rem;
  color: white;
  background: none;
  border: none;
}

/* Hero con imagen de fondo */
.hero {
  background: url('../media/espacio-ags.jpg') center/cover no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  text-align: center;
  color: white;
  padding-left: 5%;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
}

.hero-text {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero-text h1 {
  font-size: 3rem;
}

.hero-text p {
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

/*TEXTO DESCRIPTIVO*/
.info-section1 {
  display: flex;
  justify-content: center;
  padding: 40px 20px; /* espacio arriba/abajo y a los lados */
  background-color: #f5f5f5; /* opcional: fondo gris claro */
}

.info-text1 {
  max-width: 800px;
  text-align: center;
  font-size: 1.3rem;
  line-height: 1.6;
  color: #333;
}

/*PDF*/
.resumen-section {
  padding: 40px 20px;
  text-align: center;
}

.resumen-section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #083b6e;
}

.pdf-container {
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.sponsors-section {
  padding: 2rem 1rem;
  background-color: #f5f5f5;
  text-align: center;
}

.sponsors-section h3 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: #083b6e;
}

.sponsors-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  
  gap: 1rem; /* Si no lo toma, usa margin en cada imagen */
}

.sponsors-logos img {
  max-height: 80px; /* 👈 altura uniforme para todos */
  width: auto;
  object-fit: contain;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}

.sponsors-logos img:hover {
  transform: scale(1.05);
}

.logo-wide {
  max-width: 160px; /* Logos más anchos */
}

.logo-instituto {
  /* ❌ Elimina scaleY para evitar deformación en producción */
  /* Si necesita más tamaño, ajústalo con max-height */
  transform: scaleY(1.4);
}

/* Video section */
.video-section {
  padding: 2rem;
  text-align: center;
  background-color: #f0f0f0;
}

.video-section video {
  width: 100%;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* Video section2 */
.video-section {
  padding: 2rem;
  text-align: center;
  background-color: #f0f0f0;
}

.video-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.video-container {
  flex: 1 1 300px;
  max-width: 400px;
  width: 100%;
  margin-bottom: 4rem;
}

.video-container video {
  width: 100%;
  max-height: 300px; /* Fijamos una altura máxima igual para todos */
  height: 100%;
  object-fit: contain; /* Así no se recorta nada, solo se ajusta */
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.video-caption {
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #0d47a1;
  background-color: #d6dbdd;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  text-align: center;
  transition: transform 0.3s ease;
}

.video-caption:hover {
  transform: scale(1.03);
}

.video-subcaption {
  font-size: 1rem;
  font-weight: normal;
  color: #37474f;
  display: block;
  margin-top: 0.5rem;
}

footer {
  background-color: #001f3f;
  color: white;
  padding: 2rem 1rem 1rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.footer-column h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #ffd700;
}

.footer-column p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.social-icons a:hover img {
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1rem;
  font-size: 0.85rem;
}

/* Responsivo */
@media (max-width: 768px) {
  .info-block,
  .info-block.reverse {
    flex-direction: column;
    text-align: center;
  }

  .info-text {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .info-block,
  .info-block.reverse {
    flex-direction: column;
    text-align: center;
  }

  .info-text {
    text-align: center;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-column {
    align-items: center;
  }

  .info-section {
    flex-direction: column;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .burger {
    display: block;
    font-size: 2rem;
    cursor: pointer;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background-color: #001f3f;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem;
    z-index: 1000;
  }

  .nav-links.nav-active {
    display: flex;
  }

  .nav-links li {
    margin: 0.5rem 0;
    width: 100%;
  }

  .nav-links li a {
    display: block;
    width: 100%;
  }

  .dropdown-menu,
  .sub-menu {
    position: static;
    background-color: #002b5c;
    width: 100%;
  }

  .dropdown-menu li,
  .sub-menu li {
    padding-left: 1rem;
  }

  .dropdown.open .dropdown-menu,
  .sub-dropdown.open .sub-menu {
    display: block;
  }

  .dropdown-toggle,
  .sub-toggle {
    width: 100%;
  }

  .logo {
    gap: 0.5rem; /* menos espacio entre logos */
  }

  .logo-ags {
    height: 50px !important; /* tamaño reducido */
  }

  .logo-tepezala {
    height: 60px !important;
  }

  .logo-unii {
    height: 65px !important;
  }
}

@media (max-width: 480px) {
  .video-section {
    padding: 1rem;
  }

  .video-caption {
    font-size: 0.95rem;
    padding: 0.7rem 0.8rem;
  }

  .video-subcaption {
    font-size: 0.85rem;
  }

  .video-wrapper {
    gap: 1rem;
  }

  .video-container video {
    max-height: 250px;
  }
}
