/*
Definir los colores principales como variables a reutilizar
*/
:root {
    --regal-blue: #004582;
    --finn: #53284f;
    --seagull: #009ADA;
    --tangaroa: #031e2f;
    --westar: #e0d3d8;
    --white: #ffffff;
    --black: #000000;
    --magenta: #AF4178;
    --red: #E2464C;
    --orange: #EB7F27;
    --yellow: #F7BE2B;
    --lime: #BCCD00;
    --light-green: #8BB91A;
    --green: #32A430;
}
/* =========================
   Tipografías (base)
========================= */

:root{
  --font-body: 'BeVietnamPro', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-title: 'GeogrotesqueSharp', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}


/* BLOQUE BeVietnamPro */

@font-face {
  font-family: 'BeVietnamPro';
  src: url('/fonts/BeVietnamPro-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BeVietnamPro';
  src: url('/fonts/BeVietnamPro-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BeVietnamPro';
  src: url('/fonts/BeVietnamPro-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BeVietnamPro';
  src: url('/fonts/BeVietnamPro-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BeVietnamPro';
  src: url('/fonts/BeVietnamPro-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BeVietnamPro';
  src: url('/fonts/BeVietnamPro-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* FIN BLOQUE BeVietnamPro */

/* BLOQUE Geogrotesque Sharp */

@font-face {
  font-family: 'GeogrotesqueSharp';
  src: url('/fonts/GeogrotesqueSharp/GeogrotesqueSharp-WideLt.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GeogrotesqueSharp';
  src: url('/fonts/GeogrotesqueSharp/GeogrotesqueSharp-WideLIt.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'GeogrotesqueSharp';
  src: url('/fonts/GeogrotesqueSharp/GeogrotesqueSharp-WideRg.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GeogrotesqueSharp';
  src: url('/fonts/GeogrotesqueSharp/GeogrotesqueSharp-WideRgIt.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'GeogrotesqueSharp';
  src: url('/fonts/GeogrotesqueSharp/GeogrotesqueSharp-WideBd.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GeogrotesqueSharp';
  src: url('/fonts/GeogrotesqueSharp/GeogrotesqueSharp-WideBdIt.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'GeogrotesqueSharp';
  src: url('/fonts/GeogrotesqueSharp/GeogrotesqueSharp-WideSmBd.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GeogrotesqueSharp';
  src: url('/fonts/GeogrotesqueSharp/GeogrotesqueSharp-WideSmBdIt.otf') format('opentype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

/* FIN BLOQUE Geogrotesque Sharp */

body, .homepage {
  margin: 0 !important;
  padding: 0 !important;
}

html { height: 100%; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0; padding: 0;
}
.main { flex: 1 0 auto; /* sin background ni height:100% */ }

/* ✅ Fondo y dimensiones del hero */
.hero-banner {
  background: url("/panal.png") center center / cover no-repeat fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

/* Altura y centrado visual del banner */
.hero-banner .banner-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Variante compacta (si la pasás como 'variant="hero--compact"') */
.hero-banner.hero--compact .banner-row { min-height: 40vh; }

/* Evitar que el título empuje hacia abajo en el compacto */
.hero-banner.hero--compact .titulo-header { 
  margin-top: 0;                   /* override al 20vh global */
  font-size: 2.6rem;
}

@media (max-width: 768px) {
  .titulo-header {
    font-size: 2rem;
    padding: 8px 20px;
  }
  .search-panel {
    padding: 1rem;
  }
}

/* Altura y centrado visual del banner */
.hero-banner .banner-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Variante compacta (si la pasás como 'variant="hero--compact"') */
.hero-banner.hero--compact .banner-row { min-height: 40vh; }

/* Evitar que el título empuje hacia abajo en el compacto */
.hero-banner.hero--compact .titulo-header { 
  margin-top: 0;                   /* override al 20vh global */
  font-size: 2.6rem;
}

@media (max-width: 768px) {
  .titulo-header {
    font-size: 2rem;
    padding: 8px 20px;
  }
  .search-panel {
    padding: 1rem;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);     /* overlay suave */
}

.hero-content {
  position: relative;              /* arriba del overlay */
  z-index: 1;
}

.masthead {
  background: var(--regal-blue) !important;
}

.site-footer {
  background:  var(--regal-blue) !important;
  color: var(--white);
  font-size: 13px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.announcements-container {
  padding: 0px !important;
}

.custom-navbar {
  background-color: var(--regal-blue) !important;
  border: none !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
}

.custom-navbar-link {
  color: #fff !important;
  font-family:'BeVietnamPro', sans-serif;
}

.navbar-nav  {
  margin-left: auto !important;
  margin-right: auto !important;
}

.navbar-separator {
  width: 100%;
  height: 1px;
  margin: 10px 0;
  background-color: rgba(255, 255, 255, 0.3);
  list-style: none;
}

.site-footer ul {
  padding-left: 0;
  list-style: none;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer h5 {
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: bold;
  text-transform: uppercase;
}

@media (max-width: 576px) {
  .site-footer {
    text-align: center;
    padding: 30px 10px;
  }

  .site-footer h5 {
    font-size: 13px;
  }

  .site-footer ul {
    margin-bottom: 20px;
  }

  .site-footer img {
    max-width: 80%;
    height: auto;
  }
}

.logo-footer {
  max-height: 50px;
  margin-bottom: 10px;
}

.titulo-header {
  margin: 0;
  font-size: 3rem;
  padding: 10px 30px;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.subtitulo-header {
  margin: 0;
  padding: 6px 20px;
  background-color: rgba(0, 69, 130, 0.288);
  color: var(--white);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.texto-general,
.texto-general label,
.texto-general input,
.texto-general h6,
.texto-general p {
  font-family: 'BeVietnamPro', sans-serif;
  font-size: 1.2rem;
  color: var(--black);
}

.texto-title {
  font-family: 'GeogrotesqueSharp', sans-serif;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--black);
}

/* Panel flotante */
.search-panel {
  width: min(1100px, 95%);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  padding: 1.5rem;
  margin-top: 2rem;
}

/* =========================
   Tipografías (usos)
========================= */

/* Texto general */
body, .homepage {
  font-family: var(--font-body) !important;
  font-weight: 400;
}

/* Headings del sitio */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-title) !important;
  font-weight: 700; /* título */
  letter-spacing: 0; /* si el manual pide interletrado -25, lo ajustamos abajo */
}

/* Subtítulos */
.subtitulo,
h2, .h2,
h3, .h3 {
  font-weight: 600; /* semibold */
}

/* Texto y componentes comunes */
p, label, input, select, textarea, button,
.texto-general,
.texto-general label,
.texto-general input,
.texto-general p {
  font-family: var(--font-body) !important;
  font-weight: 400;
}

/* Destacados */
strong, b, .fw-bold {
  font-weight: 700;
}

/* Título del hero */
.titulo-header {
  font-family: var(--font-title) !important;
  font-weight: 700;
  /* Si querés emular "interletrado -25" (depende del tamaño, es aproximado): */
  letter-spacing: -0.025em;
}

/* Titulares chicos tipo “etiqueta” */
.texto-title {
  font-family: var(--font-title) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* PANEL CONTENEDOR */
.featured-panel {
  margin: 0 auto;
  background: rgba(255,255,255,0.52);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  backdrop-filter: blur(6px);
}

.panel-separator {
  border: 0;
  height: 1px;
  background: rgba(0,0,0,0.12);
  margin: 28px 0;
}

.featured-header {
  margin-bottom: 12px;
}

.featured-title {
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--regal-blue);
  color: var(--white);
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

/* LINKS */
.dataset-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* CARDS */
.dataset-card {
  height: 100%;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.dataset-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
}

.dataset-title {
  margin: 0 0 8px 0;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  color: var(--regal-blue);
  text-align: center;
}

.dataset-desc {
  margin: 0 0 12px 0;
  color: var(--black);
  font-size: 13px;
  line-height: 18px;
}

.dataset-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--regal-blue);
  font-size: 12px;
}

.dataset-meta i {
  margin-right: 6px;
}

.btn-primary{
  background-color: var(--regal-blue) !important;
  border-color: var(--regal-blue) !important;
}

/* ============================= */
/* BUSCADOR + CONTADORES */
/* ============================= */

/* Mantener buscador y botón bien alineados */
.cba-search-row {
  width: 100%;
}

/* Si desea que el botón no sea demasiado alto en comparación con el input */
.cba-search-row .btn {
  white-space: nowrap;
}

/* Opcional: en pantallas grandes, que el buscador use todo el ancho disponible */
@media (min-width: 992px) {
  .cba-search-row {
    justify-content: flex-start;
  }
}

/* ============================= */
/* CONTADORES */
/* ============================= */
.stat-box {
  text-align: center;
  font-family: var(--font-body);
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.stat-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.9;
}

/* ============================= */
/* CATEGORÍAS */
/* ============================= */

.category-card {
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 8px;
  width: 100%;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

.category-icon {
  height: 180px;
  width: 100%;
  object-fit: contain;
  margin-bottom: 6px;
}

.category-title {
  margin-top: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
  text-align: center;
  white-space: normal;     /* permite varias líneas */
  overflow: visible;
  text-overflow: unset;
  line-height: 1.3;
}
