/* 🔧 Reset general */
* {
    box-sizing: border-box;
}

body,
html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

main {
  margin-top: 100px;
}

/* 🔷 Estilo general del encabezado */
.encabezado-iutam {
  position: fixed;
  top: 0;
  left: 0;
  height: 100px;
  width: 100%;
  background-color: #003366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  flex-wrap: wrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

/* 🔹 bloque identidad con Logo y titulo institucional */
.bloque-identidad {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-grow: 1;
}

/* 🔹 Logo institucional */
.bloque-logo .logo-header {
    height: 100px;
    max-width: 100%;
    display: block;
}

/* 🔹 Título institucional */
.bloque-titulo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  max-width: 300px;
  margin: 0;
}

.bloque-titulo .institucion {
    font-size: 1.1rem;
    font-weight: 400;
}

.bloque-titulo .homenaje {
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 600;   
    color: #ffcc00;  
    margin-top: 2px;
}

.bloque-titulo .sigla {
    font-size: 1.4rem;
    font-weight: bold;
    margin-top: 4px;
}

/* 🔹 Botones institucionales */
.botones-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.boton-somos,
.boton-inscribirme {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    transition: background-color 0.3s ease;
}

.boton-somos {
    background-color: #0055aa;
}

.boton-inscribirme {
    background-color: orange;
}

/* 🔹 Botón de menú móvil */
.menu-toggle {
    background: none;
    border: 2px solid white;
    color: white;
    font-size: 1.2rem;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
}

/* =========================================
   NUEVA PORTADA CON VIDEO DE FONDO (HERO)
   ========================================= */
.hero-video {
  position: relative;
  width: 100%;
  height: calc(100vh - 100px);
  min-height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding-top: 100px; /* Esto empuja el contenido hacia abajo pero deja el video pegado arriba */
  margin-top: 0; /* Eliminamos cualquier margen extra */
}

.video-fondo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 31, 77, 0.7); /* Filtro azul institucional transparente */
  z-index: 2;
}

.contenido-hero {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #ffffff;
  padding: 0 20px;
  max-width: 850px;
}

.titulo-hero {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

.subtitulo-hero {
  font-size: 1.25rem;
  margin-bottom: 35px;
  color: #eef1f3;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.botones-hero {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.boton-primario, .boton-secundario {
  padding: 12px 26px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.boton-primario {
  background-color: orange;
  color: white;
  box-shadow: 0 4px 12px rgba(255, 165, 0, 0.4);
}

.boton-primario:hover {
  background-color: #ff8c00;
  transform: translateY(-2px);
}

.boton-secundario {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid white;
  backdrop-filter: blur(4px);
}

.boton-secundario:hover {
  background-color: white;
  color: #003366;
  transform: translateY(-2px);
}

/* marquesina */
.marquesina-portada {
  height: 60px;
  width: 100%;
  background-color: #0055aa;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.marquesina-portada marquee {
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* Footer */
.footer-iutam {
  background-color: #4b4b4b;
  color: #ffffff;
  font-family: 'Segoe UI', sans-serif;
  padding: 40px 20px 20px;
  font-size: 14px;
}

footer.footer-iutam {
  margin: 0;
  padding: 0;
  width: 100vw;
  box-sizing: border-box;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo img {
  padding-top: 20px;
  max-width: 180px;
  margin-bottom: 10px;
}

.direccion {
  line-height: 1.5;
  font-size: 13px;
}

.footer-menu {
  padding-top: 20px;
}

.footer-menu ul {
  columns: 2;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 12px;
}

.footer-menu li::before {
  content: "›";
  color: #ffcc00;
  font-weight: bold;
  margin-right: 6px;
}

.footer-menu a {
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-menu a:hover {
  color: #ffcc00;
}

.footer-legal {
  background-color: #323232;
  color: #ffffff;
  text-align: center;
  padding: 15px 0;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

/* boton subir */
.subir-footer {
  text-align: right;
  padding: 10px 30px;
}

.subir-footer a {
  background-color: #0055aa;
  color: white;
  font-weight: bold;
  padding: 8px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.subir-footer a:hover {
  background-color: #ffcc00;
  color: #003366;
}

/* 🔸 Adaptación móvil general */
@media (max-width: 768px) {
  .encabezado-iutam {
      flex-direction: column;
      align-items: center;
      text-align: center;
      height: auto; 
      padding: 15px; 
  }

  .botones-header {
      margin-top: 10px;
      flex-direction: column;
  }

  .boton-somos,
  .boton-inscribirme {
      width: 100%;
      max-width: 200px;
  }

  .hero-video {
    height: 60vh;
    min-height: 400px;
  }

  .titulo-hero {
    font-size: 2rem;
  }

  .subtitulo-hero {
    font-size: 1rem;
  }

  .marquesina-portada {
    font-size: 1rem;
    padding: 14px 0;
  }
}