/* Reset mínimo */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-cuerpo);
  color: var(--text-principal);
  background: var(--bg-page);
  line-height: 1.5;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-titulos); font-weight: 600; line-height: 1.15; color: var(--text-principal); }

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

/* ---------- Header (marca institucional + nav, en una sola barra) ---------- */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--borde);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
  gap: var(--space-5);
}
.header-brand { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.ministry-logo-link { flex-shrink: 0; line-height: 0; }
.ministry-logo { height: 44px; width: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: var(--space-6); }
.site-nav a {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-secundario);
  padding-block: var(--space-1);
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--tur-azul);
  border-color: var(--tur-azul);
}
.site-nav-utility {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--text-secundario);
  flex-shrink: 0;
}
.site-nav-utility:hover { color: var(--tur-azul-dark); border-color: transparent; }
.site-nav-utility i { font-size: 0.875rem; }

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-principal);
}

@media (max-width: 720px) {
  .header-brand { overflow: hidden; }
  .site-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--bg-card);
    border-bottom: 1px solid var(--borde);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-5);
    display: none;
    z-index: 50;
  }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: block; }
  .site-header { position: relative; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--tur-azul); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--tur-azul-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--tur-azul); border: 1.5px solid var(--tur-azul-light); }
.btn-ghost:hover { background: var(--tur-azul-light); }
.btn-link { color: var(--tur-azul); font-weight: 600; }
.btn-link:hover { text-decoration: underline; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.badge-habilitada { background: var(--estado-habilitada-bg); color: var(--estado-habilitada-fg); }
.badge-vencida { background: var(--estado-vencida-bg); color: var(--estado-vencida-fg); }
.badge-suspendida { background: var(--estado-suspendida-bg); color: var(--estado-suspendida-fg); }
.badge-azul { background: var(--tur-azul-light); color: var(--tur-azul-dark); }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--tur-arena-100);
  color: var(--tur-piedra-600);
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip i { font-size: 1rem; }
a.chip:hover, button.chip:hover { background: var(--tur-azul-light); color: var(--tur-azul-dark); }
button.chip[aria-pressed="true"] { background: var(--tur-azul); color: #fff; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--borde);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--conector-navy);
  color: var(--conector-texto);
  margin-top: var(--space-8);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/pattern-andino.svg') repeat;
  background-size: 220px;
  opacity: 0.06;
  pointer-events: none;
}
.site-footer-inner {
  position: relative;
  padding-block: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: 0.875rem;
}
.site-footer-inner a { color: #ffffff; font-weight: 600; }
.site-footer-inner a:hover { text-decoration: underline; }
.footer-disclaimer { color: var(--tur-ocre); font-weight: 600; }
/* Crédito institucional al pie, discreto (mismo criterio que Estado de Rutas) */
.footer-credito {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  color: var(--conector-texto);
  opacity: 0.75;
}

/* ---------- Utilidades ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.text-center { text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tur-azul-dark);
}
