/* Guías — clean, mobile-first, accessible module.
   Self-contained; does not depend on the legacy Joomla template CSS.
   Layout favors flat rectilinear surfaces over clustered cards. */

:root {
  --ink: #1a1f29;
  --muted: #5b6573;
  --line: #e2e6ec;
  --bg: #ffffff;
  --bg-alt: #f6f8fa;
  --accent: #14315e;      /* deep institutional blue */
  --accent-2: #0b66c2;    /* link blue */
  --gold: #f2c200;        /* Colombian flag accent, used sparingly */
  --official: #0a5d3a;    /* green for "official source" boxes */
  --maxw: 760px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---- Site chrome ---- */
.g-siteheader {
  border-bottom: 3px solid var(--gold);
  background: var(--accent);
  color: #fff;
}
.g-siteheader .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.g-siteheader a { color: #fff; text-decoration: none; }
.g-siteheader .brand { font-size: 16px; font-weight: 700; letter-spacing: .2px; }
.g-siteheader .brand small { display: block; font-weight: 400; opacity: .8; font-size: 12px; }
.g-siteheader nav a { font-size: 14px; opacity: .9; margin-left: 16px; }
.g-siteheader nav a:hover, .g-siteheader nav a:focus { opacity: 1; text-decoration: underline; }

/* ---- Layout ---- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 20px 64px; }

.breadcrumb {
  font-size: 13px; color: var(--muted);
  padding: 18px 0 0;
}
.breadcrumb a { color: var(--accent-2); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

h1 { font-size: 30px; line-height: 1.2; margin: 14px 0 6px; letter-spacing: -.3px; }
h2 { font-size: 22px; line-height: 1.25; margin: 40px 0 10px; padding-top: 8px; }
h3 { font-size: 18px; margin: 24px 0 6px; }
p, li { color: #232a36; }
a { color: var(--accent-2); }

.updated { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.lead { font-size: 19px; color: #2b3340; }

.langswitch { font-size: 13px; margin: 6px 0 0; }

ul, ol { padding-left: 22px; }
li { margin: 5px 0; }

/* ---- Guide list (flat, stacked rows — NOT a card grid) ---- */
.guide-list { border-top: 1px solid var(--line); margin: 18px 0 0; }
.guide-list a.row {
  display: block;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.guide-list a.row:hover, .guide-list a.row:focus { background: var(--bg-alt); }
.guide-list .row .t { font-size: 18px; font-weight: 600; color: var(--accent); }
.guide-list .row .d { font-size: 15px; color: var(--muted); margin-top: 2px; }

/* ---- Official-source callout ---- */
.official {
  border: 1px solid #bfe0cd;
  border-left: 5px solid var(--official);
  background: #f1faf5;
  padding: 16px 18px;
  margin: 28px 0;
}
.official h3 { margin: 0 0 6px; color: var(--official); font-size: 16px; }
.official p { margin: 6px 0; font-size: 15px; }
.official a { color: var(--official); font-weight: 600; }

/* ---- Requisitos / info box ---- */
.note {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 15.5px;
}

/* ---- Steps ---- */
ol.steps { counter-reset: s; list-style: none; padding-left: 0; }
ol.steps > li {
  counter-increment: s;
  position: relative;
  padding: 4px 0 14px 40px;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
ol.steps > li:last-child { border-bottom: 0; }
ol.steps > li::before {
  content: counter(s);
  position: absolute; left: 0; top: 4px;
  width: 26px; height: 26px;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---- FAQ ---- */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.faq summary {
  font-weight: 600; cursor: pointer; font-size: 17px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+ "; color: var(--accent-2); font-weight: 700; }
.faq details[open] summary::before { content: "– "; }
.faq details p { margin: 8px 0 2px; }

/* ---- Footer ---- */
.g-footer {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding: 22px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.g-footer a { color: var(--muted); }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 25px; }
  h2 { font-size: 20px; }
  .lead { font-size: 17px; }
  .g-siteheader nav a { margin: 0 12px 0 0; }
  .g-siteheader nav { margin-top: 4px; }
}

/* ---- Focus visibility (accessibility) ---- */
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
