html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto; /* Ocupa el espacio disponible */
}

#footer-container {
  margin: 0;
  padding: 0;
}

/* ==== Versión Video de Fondo ==== */
.background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.background-video::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.video-section {
  flex: 1 0 auto;  /*permite que ocupe el espacio justo */
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  z-index: 0;
}




  .video-overlay {
    position: absolute;
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
    z-index: 1;
  }

.video-section main {
  position: relative;
  z-index: 2;
  padding: 3rem 1rem;
}

/* ===== Estilos duplicados renombrados para versión BG ===== */
.titulo-reporte-bg {
  font-family: 'Geogrotesque Sharp', sans-serif;
  font-weight: 700;
  color: #004582;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.weather-card-bg {
  border-radius: 1rem;
  background-color: #f8f9fa;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.weather-card-bg:hover {
  transform: translateY(-5px);
}

.weather-icon-bg {
  font-size: 3rem;
  color: #279028;
}

.weather-value-bg {
  font-size: 2rem;
  font-weight: bold;
  color: #004582;
}

.label-bg {
  font-weight: 600;
  color: #666;
}

.fade-out-bg {
  opacity: 0;
  transform: translateY(-20px);
}

.fade-in-bg {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

.error-msg-bg {
  color: red;
  font-weight: bold;
  margin-top: 20px;
}

#station-select-bg {
  max-width: 300px;
  margin: 0 auto 2rem;
  display: block;
}

/* Subrayado animado institucional */
.titulo-noticias-bg {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.85);
  color: #004582;
  padding: 10px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-family: 'Geogrotesque Sharp', sans-serif;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  max-width: fit-content;
  margin: 0 auto;
  text-align: center;
  user-select: none;
  position: relative;
  z-index: 10;
}

/* Glow suave */
.netflix-glow-bg {
  text-shadow:
    0 0 6px #32A430,
    0 0 12px #8BB91A;
}

.btn-icono-bg {
  background-color: #32A430;
  color: white;
  border: none;
  border-radius: 2rem;
  padding: 10px 28px;
  font-family: 'Geogrotesque Sharp', sans-serif;
  font-weight: bold;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 3px 10px rgba(50, 164, 48, 0.2);
}

.btn-icono-bg:hover {
  background-color: #2b902a;
  box-shadow: 0 5px 15px rgba(50, 164, 48, 0.4);
}


    .weather-card {
      border-radius: 1rem;
      background-color: #f8f9fa;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease;
    }

    
    .weather-card:hover {
      transform: translateY(-5px);
    }

    

    .weather-icon {
      font-size: 3rem;
      color: #279028;
    }




    

    .weather-value {
      font-size: 2rem;
      font-weight: bold;
      color: #004582;
    }

    .label {
      font-weight: 600;
      color: #666;
    }

    .fade-out {
      opacity: 0;
      transform: translateY(-20px);
    }

    .fade-in {
      opacity: 1;
      transform: translateY(0);
      transition: all 0.6s ease;
    }

    .error-msg {
      color: red;
      font-weight: bold;
      margin-top: 20px;
    }

    #station-select {
      max-width: 300px;
      margin: 0 auto 2rem;
      display: block;
    }
    /* Subrayado animado institucional */
 .titulo-noticias {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.85); /* Fondo blanco semitransparente */
    color: #004582; /* Azul oscuro */
    padding: 10px 24px;
    border-radius: 14px;
    font-weight: 700;
    font-family: 'Geogrotesque Sharp', sans-serif;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: fit-content;
    margin: 0 auto;
    text-align: center;
    user-select: none;
    /* Opcional: para que no quede pegado a los bordes del video */
    position: relative;
    z-index: 10;
  }

  /* Si quieres que el texto tenga un glow suave */
  .netflix-glow {
    text-shadow:
      0 0 6px #32A430,
      0 0 12px #8BB91A;
  }
  .label {
  font-family: 'Geogrotesque Sharp', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #444;
}

.weather-value {
  font-size: 1.6rem;
  font-weight: bold;
  color: #004582;
}

.weather-card {
  border-radius: 1rem;
  background-color: #fff;
  transition: transform 0.3s ease;
}

.weather-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.btn-icono {
  background-color: #32A430;
  color: white;
  border: none;
  border-radius: 2rem;
  padding: 10px 28px;
  font-family: 'Geogrotesque Sharp', sans-serif;
  font-weight: bold;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 3px 10px rgba(50, 164, 48, 0.2);
}

.btn-icono:hover {
  background-color: #2b902a;
  box-shadow: 0 5px 15px rgba(50, 164, 48, 0.4);
}