:root {
  --content-width: 1120px;
  --article-width: 760px;
  --wide-width: 1180px;
  --space: clamp(16px, 2vw, 24px);
  --radius: 14px;
  --colombia-yellow: #fcd116;
  --colombia-blue: #003893;
  --colombia-red: #ce1126;
  --border: #e4e8f0;
  --text: #132238;
  --muted: #5a6678;
  --bg: #ffffff;
  --soft: #f8faff;
  --brand: var(--colombia-blue);
  --brand-dark: #002663;
  --accent: var(--colombia-yellow);
  --accent-red: var(--colombia-red);
  --shadow: 0 8px 22px rgba(0, 56, 147, .08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

img, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
button, input, textarea, select { font: inherit; }

.container {
  width: min(100% - 32px, var(--content-width));
  margin-inline: auto;
}
.narrow { width: min(100% - 32px, var(--article-width)); }
.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 1000;
  background: var(--brand);
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
}
.skip-link:focus { left: 10px; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.site-header::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--colombia-yellow) 0 50%, var(--colombia-blue) 50% 75%, var(--colombia-red) 75% 100%);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.site-title {
  display: inline-block;
  color: var(--text);
  font-weight: 800;
  font-size: 1.18rem;
  text-decoration: none;
}
.site-description {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}
.site-title::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 8px;
  border-radius: 50%;
  background: conic-gradient(var(--colombia-yellow) 0 50%, var(--colombia-blue) 50% 75%, var(--colombia-red) 75% 100%);
  vertical-align: -1px;
}
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  background: #fff4b8;
  color: var(--brand-dark);
}

.custom-logo { display: block; max-height: 56px; width: auto; }
.default-logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.default-site-logo { max-width: min(320px, 62vw); object-fit: contain; }
.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  padding: 8px 14px;
  color: var(--text);
}
.primary-nav ul,
.footer-nav ul {
  display: flex;
  gap: 6px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a,
.footer-nav a {
  display: block;
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
}
.primary-nav a:hover { background: var(--soft); color: var(--brand-dark); }

.site-main { min-height: 70vh; }
.archive-hero,
.office-hero,
.article-header {
  padding: clamp(28px, 5vw, 58px) 0 22px;
}
.archive-hero {
  background: linear-gradient(180deg, #fff8cf 0%, var(--soft) 58%, #fff 100%);
  border-bottom: 1px solid var(--border);
}
.eyebrow,
.card-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  color: var(--brand-dark);
  background: #fff4b8;
  border: 1px solid #f1d75b;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  padding: 4px 10px;
}
h1, h2, h3 {
  line-height: 1.18;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.6rem); margin: 10px 0 12px; }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); margin-top: 1.8em; }
h3 { font-size: 1.2rem; margin-top: 1.4em; }
.lead { font-family: inherit; font-size: 1rem; line-height: 1.65; color: var(--text); margin: 0; }
.post-meta, .small-note { color: var(--muted); font-size: .92rem; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: .9rem;
  margin: 18px 0 0;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }

.article-container,
.office-container { padding-bottom: 48px; }
.article-container { width: min(100% - 32px, var(--article-width)); }
.article-header p,
.article-content,
.article-content p,
.article-content li {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
}
.article-content :where(p, ul, ol) { margin: 0 0 1.05em; }
.article-content ul, .article-content ol { padding-left: 1.4em; }
.article-content li + li { margin-top: .35em; }
.article-content table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  width: 100%;
  margin: 1.2em 0;
}
.article-content th,
.article-content td {
  border: 1px solid var(--border);
  padding: 10px;
  text-align: left;
}
.article-content th { background: var(--soft); }
.article-content blockquote {
  border-left: 4px solid var(--accent-red);
  margin: 1.4em 0;
  padding: 10px 16px;
  background: var(--soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.ad-wrap {
  margin: 22px 0;
  min-height: 250px;
  display: grid;
  place-items: center;
  background: #f8faf9;
  border: 1px dashed #c8d6cf;
  border-radius: var(--radius);
  overflow: hidden;
}
.ad-label {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}

.office-card-main,
.office-section,
.list-card,
.office-card,
.related-links {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.office-card-main {
  padding: var(--space);
  margin: 22px 0;
}
.office-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.fact {
  padding: 12px;
  background: var(--soft);
  border-radius: 12px;
}
.fact span {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  margin-bottom: 2px;
}
.fact strong { display: block; }
.office-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.btn,
.search-form button,
.read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  padding: 10px 16px;
  cursor: pointer;
}
.btn:hover,
.search-form button:hover,
.read-more:hover { background: var(--brand-dark); color: #fff; }
.btn:focus-visible,
.search-form button:focus-visible,
.read-more:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.btn-secondary {
  background: #fff;
  color: var(--brand-dark);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--soft); color: var(--brand-dark); }

.office-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}
.office-sidebar {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 16px;
}
.office-section {
  padding: var(--space);
  margin: 0 0 18px;
}
.office-section h2 { margin-top: 0; }
.hours-table {
  display: grid;
  gap: 8px;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 12px;
}
.hours-row.is-today {
  border-color: var(--accent);
  border-left: 4px solid var(--accent-red);
  background: #fff8d6;
}
.hours-day { font-weight: 800; }
.hours-time { text-align: right; color: var(--muted); }
.today-pill {
  display: inline-flex;
  margin-left: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: #2b2100;
  font-size: .72rem;
  vertical-align: middle;
}
.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--soft);
  border: 1px solid var(--border);
}
.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.archive-grid-section,
.content-layout { padding: 28px 0 48px; }
.office-card { overflow: hidden; }
.office-card-body,
.list-card { padding: var(--space); }
.office-card h2,
.list-card h2 { font-size: 1.25rem; margin: 8px 0; }
.office-card h2 a,
.list-card h2 a { color: var(--text); text-decoration: none; }
.office-card h2 a:hover,
.list-card h2 a:hover { color: var(--brand); text-decoration: underline; }
.card-address { color: var(--muted); font-weight: 650; }
.content-list {
  display: grid;
  gap: 16px;
  max-width: var(--article-width);
}
.related-links { padding: var(--space); margin: 24px 0; }
.related-links h2 { margin-top: 0; }
.related-list { margin: 0; padding-left: 1.1em; }
.related-list li + li { margin-top: 8px; }

.search-form {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.search-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
}
.pagination,
.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.page-numbers {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
}
.page-numbers.current { background: var(--brand); color: #fff; border-color: var(--brand); }
.site-footer {
  background: #001f52;
  color: #eef4ff;
  margin-top: 40px;
  padding: 34px 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}
.site-footer p { color: #d8e4ff; margin: 8px 0; max-width: 680px; }.footer-nav a { color: #eef4ff; }
.footer-nav a:hover { background: rgba(255,255,255,.08); }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; gap: 4px; }
  .primary-nav a { padding: 11px 12px; }
  .office-content-grid { grid-template-columns: 1fr; }
  .office-sidebar { position: static; }
  .office-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container,
  .narrow,
  .article-container { width: min(100% - 24px, var(--content-width)); }
  .header-inner { min-height: 64px; }
  .custom-logo { max-height: 48px; }
  .default-site-logo { max-width: min(245px, 60vw); }
  .primary-nav { top: 64px; }
  .archive-hero, .office-hero, .article-header { padding-top: 24px; }
  h1 { font-size: 2rem; }
  .office-facts,
  .card-grid { grid-template-columns: 1fr; }
  .office-actions,
  .search-form { flex-direction: column; }
  .btn,
  .search-form button,
  .read-more { width: 100%; }
  .hours-row { align-items: flex-start; flex-direction: column; }
  .hours-time { text-align: left; }
  .ad-wrap { min-height: 220px; }
}
.home-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
}
.home-section-head h2 { margin: 0; }
.front-hero .search-form { max-width: 680px; }
@media (max-width: 640px) {
  .home-section-head { align-items: flex-start; flex-direction: column; }
}

/* Página de inicio */
.home-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 15%, rgba(252, 209, 22, .38), transparent 32%),
    linear-gradient(180deg, #fff8cf 0%, #f8faff 70%, #fff 100%);
  border-bottom: 1px solid var(--border);
  padding: clamp(32px, 6vw, 78px) 0 clamp(24px, 4vw, 44px);
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, var(--colombia-yellow) 0 50%, var(--colombia-blue) 50% 75%, var(--colombia-red) 75% 100%);
}
.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: center;
}
.home-hero-copy h1 {
  max-width: 850px;
}
.home-hero-copy .lead {
  max-width: 760px;
}
.home-hero .search-form {
  max-width: 760px;
  padding: 8px;
  border: 1px solid rgba(0, 56, 147, .12);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
}
.home-hero .search-form input {
  border: 0;
  background: transparent;
}
.home-search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.home-search-chips a,
.city-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 750;
  text-decoration: none;
  padding: 7px 12px;
}
.home-search-chips a:hover,
.city-links a:hover {
  border-color: var(--brand);
  background: var(--soft);
}
.home-hero-card {
  padding: var(--space);
  border: 1px solid rgba(0, 56, 147, .14);
  border-radius: calc(var(--radius) + 6px);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
}
.home-hero-card h2 {
  margin-top: 0;
  font-size: 1.35rem;
}
.home-hero-card ul {
  margin: 0 0 18px;
  padding-left: 1.15em;
}
.home-hero-card li + li {
  margin-top: 8px;
}
.home-main {
  padding: 28px 0 56px;
}
.home-section {
  margin: 30px 0;
}
.home-editable,
.home-seo-text {
  max-width: var(--article-width);
  padding: var(--space);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.home-editable h2,
.home-seo-text h2 {
  margin-top: 0;
}
.section-kicker {
  display: block;
  color: var(--accent-red);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.home-feature-grid,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.home-feature-card,
.steps-grid article {
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.home-feature-card {
  display: grid;
  align-content: start;
  gap: 6px;
  color: var(--text);
  text-decoration: none;
}
.home-feature-card:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  transform: translateY(-1px);
}
.feature-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #fff4b8;
  border: 1px solid #f1d75b;
}
.home-feature-card strong {
  font-size: 1.05rem;
}
.home-feature-card small {
  color: var(--muted);
  font-weight: 650;
}
.city-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.home-steps {
  padding: clamp(18px, 3vw, 26px);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, #fff9db 0%, #f8faff 68%, #fff 100%);
  border: 1px solid var(--border);
}
.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.steps-grid article {
  box-shadow: none;
}
.steps-grid span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}
.steps-grid h3 {
  margin: 12px 0 6px;
}
.steps-grid p {
  margin: 0;
  color: var(--muted);
}
@media (max-width: 980px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
  }
  .home-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-hero {
    padding-top: 28px;
  }
  .home-hero::before {
    width: 5px;
  }
  .home-hero .search-form {
    border-radius: var(--radius);
  }
  .home-feature-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .home-feature-card,
  .steps-grid article {
    min-height: auto;
  }
  .home-search-chips,
  .city-links {
    gap: 7px;
  }
  .home-search-chips a,
  .city-links a {
    min-height: 36px;
    font-size: .94rem;
  }
}


.search-transito-wrap {
  width: min(100% - 32px, 1040px);
  margin-inline: auto;
  padding: 28px 0 10px;
}
.search-transito-directory {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.search-transito-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0 26px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
}
.table-scroll table {
  min-width: 980px;
}
@media (max-width: 980px) {
  .search-transito-wrap { width: min(100% - 28px, var(--content-width)); }
  .search-transito-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .search-transito-wrap { width: min(100% - 24px, var(--content-width)); }
  .search-transito-grid { grid-template-columns: 1fr; max-height: 620px; }
}


.quick-answer {
  margin: 0 0 1.2rem;
  padding: 14px 16px;
  background: #fff8cf;
  border: 1px solid #f1d75b;
  border-radius: 12px;
}
.quick-answer strong { color: var(--brand-dark); }
