/* ============================================================
   CSS GLOBAL UNC - Inyectado automáticamente en todas las páginas.
   Imágenes en: /static/custom/files/
   ============================================================ */

:root {
  --unc-azul:       #183860;
  --unc-gris-fondo: #f7f7f7;
  --unc-gris-pie:   #e9e9e9;
  --unc-blanco:     #ffffff;
  --unc-texto:      #333333;
  --unc-texto-pie:  #555555;
}

body {
  background-color: var(--unc-gris-fondo);
  font-family: Arial, sans-serif;
  color: var(--unc-texto);
  line-height: 1.6;
}

/* --- Header / Topbar --- */
.page-header,
#header,
#top-bar {
  background-image: url('/static/custom/files/fondo-header.jpg');
  background-size: cover;
  background-position: center;
  background-color: var(--unc-azul);
}

/* Tamaño del logo (la URL viene de LOGO_URL / LOGIN_LOGO_URL en indico.conf) */
img.header-logo {
  height: 70px !important;
}

/* Links de navegación */
.global-menu a,
#top-bar a {
  color: var(--unc-blanco) !important;
}

/* --- Botones UI --- */
.i-button.highlight,
.btn-primary {
  background-color: var(--unc-azul) !important;
  border-color: var(--unc-azul) !important;
  color: var(--unc-blanco) !important;
}

.i-button.highlight:hover,
.btn-primary:hover {
  opacity: 0.85;
}

/* --- Links globales --- */
a { color: var(--unc-azul); }
a:hover { opacity: 0.75; }

/* --- Footer UNC (estructura definida en templates/footer.html) --- */
footer.footer {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  border-top: solid 2px var(--unc-azul) !important;
  padding: 2rem 1rem !important;
  margin-top: 6rem;
  background-color: var(--unc-gris-pie) !important;
  color: var(--unc-texto-pie);
  font-family: sans-serif;
  font-size: 0.9em;
  font-weight: 300;
}

footer.footer a {
  color: var(--unc-texto-pie) !important;
  text-decoration: none;
}

footer.footer a:hover { color: var(--unc-azul) !important; }

.footer-unc-logo {
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-unc-logo img  { height: 50px; }

.footer-unc-texto {
  text-align: center;
  max-width: 300px;
  padding: 10px;
}

.footer-unc-redes ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-unc-redes li  { padding: 0.5rem; }
.footer-unc-redes img { height: 24px; width: 24px; }

/* --- Responsive --- */
@media (max-width: 768px) {
  footer.footer {
    flex-direction: column;
    text-align: center;
  }

  .footer-unc-logo,
  .footer-unc-texto,
  .footer-unc-redes {
    width: 100%;
    margin-bottom: 1rem;
  }

  .footer-unc-redes ul { justify-content: center; }
}
