/*===========CSS principal============*/
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

header, footer, .green-bar, .menu-nav {
  flex-shrink: 0;
}

.full-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

#iframe-content {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  min-height: 300px; /* Asegura un valor mínimo */
}

/*=========== Header institucional ===========*/
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background-color: white;
  border-bottom: 2px solid #ccc;
  flex-wrap: wrap;
}

header .logo-left,
header .logo-right {
  width: 25%;
  max-width: 200px;
}

header .logo-left {
  border-right: 2px solid black;
  padding-right: 10px;
}

header .logo-right {
  padding-left: 10px;
}

header .title-center {
  flex: 1;
  padding: 0 20px;
  text-align: left;
}

header .title-center h1 {
  font-family: Arial, sans-serif;
  font-size: 200%;
  margin: 0;
  color: black;
  font-weight: bold; /* <-- Añade esto */
}

header .title-center h2 {
  font-family: Arial, sans-serif;
  font-size: 120%;
  margin: 0;
  color: black;
  font-weight: bold; /* <-- Y esto también */
}

/* Responsive text sizes para móvil */
@media (max-width: 768px) {
  header .title-center h1 {
    font-size: 100%;
  }

  header .title-center h2 {
    font-size: 80%;
  }
}

.green-bar {
  height: 25px;
  background-color: green;
  background-image: url('../imagenes/mini-bar.png');
  background-repeat: repeat-x;
  background-size: auto 150%; /* Ajusta altura a 50% de 25px = 12.5px */
  animation: animatedBar 600s linear infinite;
  /* Soporte para Webkit por compatibilidad */
  -webkit-animation: animatedBar 600s linear infinite;
  
}
/*=========== MENÚ NAVBAR ===========*/
.menu-nav {
  background: linear-gradient(to bottom, #b00303, #9e0404); /* <- ESTO ES LO QUE FALTABA */
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  min-height: 40px;
}

.menu-nav .nav-link {
  color: white !important;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  font-size: 0.9rem;
  padding: 4px 10px;
}

.menu-nav .nav-link:hover {
  background-color: #ab3a3a;
  transform: scale(1.05);
  border-radius: 5px;
}

/* Quitar subrayado incluso en foco o visitado */
.menu-nav .nav-link:focus,
.menu-nav .nav-link:visited {
  text-decoration: none;
}



.menu-nav .container-fluid {
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
}
.menu-nav .nav-item {
  margin: 0;
  padding: 0;
}
.menu-nav .nav-link {
  padding: 4px 10px; /* más pegado vertical */
  font-size: 0.9rem;
}

/* Icono de hamburguesa blanco personalizado */
.navbar-toggler-icon.custom-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Estilo para botón hamburguesa sin borde */
.navbar-toggler {
  background-color: transparent;
  outline: none !important;
}

/* Ajustes de espaciado para móvil */
@media (max-width: 768px) {
  .menu-nav .navbar-nav {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}
/* Animación para desplazar el fondo */
@keyframes animatedBar {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 2237px 0; /* Opcional: puede ser más si quieres que se desplace más lento */
  }
}

@-webkit-keyframes animatedBar {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 2237px 0;
  }
}