@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --g-blue: #1a4f8a;
  --g-blue-deep: #12395f;
  --g-blue-soft: #e9f1fb;
  --g-ink: #1e2d3d;
  --g-muted: #5f7183;
  --g-line: #d4e0ee;
  --g-paper: #ffffff;
  --g-ground: #f5f8fc;
  --g-warm: #f5f1e9;
  --g-display: "Manrope", "Trebuchet MS", sans-serif;
  --g-body: "DM Sans", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.guides-site {
  margin: 0;
  min-height: 100dvh;
  background: var(--g-ground);
  color: var(--g-ink);
  font: 16px/1.65 var(--g-body);
  -webkit-font-smoothing: antialiased;
}
.guides-site a { color: inherit; }
.guides-site a:focus-visible {
  outline: 3px solid #d1843e;
  outline-offset: 4px;
  border-radius: 3px;
}
.skip-link {
  position: absolute;
  z-index: 5;
  top: 10px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--g-paper);
  color: var(--g-blue-deep) !important;
  border: 1px solid var(--g-line);
  border-radius: 5px;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.guides-header {
  background: var(--g-paper);
  border-bottom: 1px solid var(--g-line);
}
.header-inner {
  width: min(1120px, calc(100% - 48px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--g-blue-deep) !important;
  text-decoration: none;
}
.brand-mark {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  color: var(--g-paper);
  background: var(--g-blue);
  border-radius: 10px 10px 10px 3px;
  font: 800 18px/1 var(--g-display);
}
.brand-name {
  font: 800 15px/1.2 var(--g-display);
  letter-spacing: -.025em;
}
.brand-name span {
  display: block;
  margin-top: 4px;
  color: var(--g-muted);
  font: 500 11px/1.2 var(--g-body);
  letter-spacing: .015em;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 27px;
}
.primary-nav a {
  color: var(--g-muted) !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] { color: var(--g-blue) !important; }
.primary-nav a:hover { transform: translateY(-1px); }

.page-shell {
  width: min(1000px, calc(100% - 48px));
  min-height: 60vh;
  margin: 0 auto;
  padding: 65px 0 82px;
}
.library-intro {
  position: relative;
  overflow: hidden;
  padding: 38px 50px 42px;
  background: var(--g-blue-deep);
  border-radius: 13px;
  color: #f7fbff;
}
.library-intro::after {
  position: absolute;
  right: -93px;
  top: -170px;
  width: 385px;
  height: 385px;
  content: "";
  border: 1px solid rgba(217, 233, 250, .17);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(217, 233, 250, .035), 0 0 0 82px rgba(217, 233, 250, .03);
  pointer-events: none;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 17px;
  color: var(--g-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.library-intro .eyebrow { color: #b9d3ed; }
.eyebrow-rule {
  display: inline-block;
  width: 21px;
  height: 1px;
  background: currentColor;
}
.library-intro h1 {
  max-width: 780px;
  margin: 0;
  font: 800 clamp(34px, 5vw, 54px)/1.12 var(--g-display);
  letter-spacing: -.055em;
}
.library-intro h1 span { color: #bad5ee; }
.intro-copy {
  max-width: 650px;
  margin: 19px 0 0;
  color: #e2edf8;
  font-size: 16px;
  line-height: 1.75;
}
.scope-note {
  max-width: 720px;
  margin: 25px 0 0;
  padding: 12px 15px;
  border-left: 2px solid #9bbfe1;
  background: rgba(255,255,255,.075);
  color: #e8f1fa;
  font-size: 13px;
}
.scope-note strong { color: #fff; }

.library-section { margin-top: 58px; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 16px;
}
.section-heading .eyebrow { margin-bottom: 6px; }
.section-heading h2 {
  margin: 0;
  color: var(--g-blue-deep);
  font: 800 27px/1.25 var(--g-display);
  letter-spacing: -.04em;
}
.library-count {
  padding-bottom: 4px;
  color: var(--g-muted);
  font-size: 12px;
  font-weight: 700;
}
.guide-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--g-line);
}
.guide-list-item { border-bottom: 1px solid var(--g-line); }
.guide-card {
  position: relative;
  display: grid;
  grid-template-columns: 57px minmax(0, 1fr) 30px;
  gap: 18px;
  align-items: start;
  padding: 22px 15px 23px 10px;
  color: var(--g-ink) !important;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}
.guide-card:hover {
  background: rgba(233, 241, 251, .72);
  transform: translateX(3px);
}
.guide-number {
  padding-top: 1px;
  color: #7994ae;
  font: 700 15px/1.4 var(--g-display);
  letter-spacing: .06em;
}
.guide-card-copy { display: flex; flex-direction: column; align-items: flex-start; }
.guide-card-title {
  color: var(--g-blue-deep);
  font: 700 19px/1.35 var(--g-display);
  letter-spacing: -.025em;
}
.guide-card-summary {
  max-width: 690px;
  margin-top: 6px;
  color: var(--g-muted);
  font-size: 14px;
  line-height: 1.6;
}
.read-link {
  margin-top: 11px;
  color: var(--g-blue);
  font-size: 12px;
  font-weight: 700;
}
.read-link span, .text-link span, .aside-link span { display: inline-block; transition: transform .18s ease; }
.guide-card:hover .read-link span,
.text-link:hover span,
.aside-link:hover span { transform: translateX(3px); }
.card-arrow {
  justify-self: end;
  margin-top: 2px;
  color: #7994ae;
  font-size: 18px;
  transition: transform .18s ease, color .18s ease;
}
.guide-card:hover .card-arrow { transform: translate(2px, -2px); color: var(--g-blue); }
.editorial-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 34px;
  padding: 17px 20px;
  background: #edf3f8;
  border: 1px solid #dce6ef;
  border-radius: 7px;
}
.note-symbol {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid #8aa7c2;
  border-radius: 50%;
  color: var(--g-blue);
  font: 700 12px/1 var(--g-display);
}
.editorial-note p { margin: 0; color: #506477; font-size: 12px; line-height: 1.65; }
.empty-state {
  padding: 35px;
  background: var(--g-paper);
  border: 1px solid var(--g-line);
  border-radius: 9px;
}
.empty-mark { display: block; width: 30px; height: 3px; margin-bottom: 18px; background: var(--g-blue); }
.empty-state h3 { margin: 0; color: var(--g-blue-deep); font: 700 19px var(--g-display); }
.empty-state p { color: var(--g-muted); }
.text-link { color: var(--g-blue) !important; font-weight: 700; text-decoration: none; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 21px;
  color: #7a8a99;
  font-size: 12px;
}
.breadcrumbs a { color: var(--g-blue) !important; font-weight: 700; text-decoration: none; }
.breadcrumbs [aria-current="page"] { color: var(--g-muted); }
.guide-article {
  background: var(--g-paper);
  border: 1px solid var(--g-line);
  border-radius: 11px;
  box-shadow: 0 5px 20px rgba(27, 57, 85, .035);
}
.article-header { padding: 37px 48px 30px; border-bottom: 1px solid var(--g-line); }
.back-link {
  display: inline-block;
  margin-bottom: 29px;
  color: var(--g-blue) !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.back-link span { display: inline-block; margin-right: 4px; transition: transform .18s ease; }
.back-link:hover span { transform: translateX(-3px); }
.article-header .eyebrow { margin-bottom: 10px; }
.article-header h1 {
  max-width: 780px;
  margin: 0;
  color: var(--g-blue-deep);
  font: 800 clamp(30px, 4vw, 43px)/1.18 var(--g-display);
  letter-spacing: -.045em;
}
.article-lead {
  max-width: 760px;
  margin: 16px 0 0;
  color: #506477;
  font-size: 17px;
  line-height: 1.7;
}
.revision-note { margin: 18px 0 0; color: #7a8a99; font-size: 11px; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 40px;
  padding: 33px 48px 43px;
}
.article-main { min-width: 0; }
.guide-content {
  min-width: 0;
  color: var(--g-ink);
  font-size: 15px;
  line-height: 1.8;
}
.guide-content > :first-child { margin-top: 0; }
.guide-content h2, .guide-content h3, .guide-content h4 {
  color: var(--g-blue-deep);
  font-family: var(--g-display);
  line-height: 1.35;
}
.guide-content h2 { margin: 0 0 15px; font-size: 25px; letter-spacing: -.03em; }
.guide-content h3 { margin: 31px 0 10px; font-size: 19px; letter-spacing: -.02em; }
.guide-content h4 { margin: 24px 0 9px; font-size: 16px; }
.guide-content p { margin: 0 0 15px; }
.guide-content ul, .guide-content ol { margin: 8px 0 18px; padding-left: 24px; }
.guide-content li { margin: 6px 0; padding-left: 3px; }
.guide-content li::marker { color: #6483a1; }
.guide-content strong { color: #294663; }
.guide-content a { color: var(--g-blue) !important; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.guide-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 22px 0;
  overflow-x: auto;
  border-collapse: collapse;
  border: 1px solid var(--g-line);
  font-size: 13px;
  line-height: 1.55;
  -webkit-overflow-scrolling: touch;
}
.guide-content thead, .guide-content tbody { width: 100%; }
.guide-content th, .guide-content td {
  min-width: 125px;
  padding: 10px 12px;
  border: 1px solid var(--g-line);
  text-align: left;
  vertical-align: top;
}
.guide-content th { background: #edf3f8; color: var(--g-blue-deep); font-weight: 700; }
.guide-content .lead { color: #506477; font-size: 17px; line-height: 1.7; }
.guide-content .example, .guide-content .notice {
  margin: 20px 0;
  padding: 14px 17px;
  border-left: 3px solid #7f9bb5;
  background: #f0f5f9;
  color: #334c63;
}
.guide-content .notice { border-left-color: #b67a2d; background: #faf5eb; }
.guide-content .rule { margin-top: 26px; padding-top: 17px; border-top: 1px solid var(--g-line); }
.guide-content .sources {
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid var(--g-line);
  color: var(--g-muted);
  font-size: 12px;
  line-height: 1.7;
}
.article-disclosure {
  margin: 30px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--g-line);
  color: var(--g-muted);
  font-size: 11px;
  line-height: 1.65;
}
.article-aside {
  align-self: start;
  padding: 19px 17px;
  background: #f0f5f9;
  border-top: 3px solid #7d9bb8;
}
.aside-mark { display: block; width: 25px; height: 2px; margin-bottom: 14px; background: var(--g-blue); }
.aside-label { margin: 0 0 7px; color: var(--g-blue-deep); font: 700 13px var(--g-display); }
.article-aside p:not(.aside-label) { margin: 0; color: #5b6e80; font-size: 12px; line-height: 1.65; }
.aside-link { display: inline-block; margin-top: 14px; color: var(--g-blue) !important; font-size: 11px; font-weight: 700; text-decoration: none; }
.guide-pagination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  margin-top: 22px;
}
.pagination-link {
  display: flex;
  min-height: 74px;
  flex-direction: column;
  justify-content: center;
  padding: 12px 16px;
  background: var(--g-paper);
  border: 1px solid var(--g-line);
  border-radius: 7px;
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}
.pagination-link:hover { border-color: #9db5cb; transform: translateY(-2px); }
.pagination-next { text-align: right; }
.pagination-direction { color: var(--g-muted); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pagination-title { margin-top: 3px; color: var(--g-blue-deep); font: 700 13px/1.4 var(--g-display); }
.all-guides-link { color: var(--g-blue) !important; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }

.guides-footer {
  background: #eaf0f6;
  border-top: 1px solid var(--g-line);
}
.footer-inner { width: min(1000px, calc(100% - 48px)); margin: 0 auto; padding: 29px 0 24px; }
.footer-title { margin: 0; color: var(--g-blue-deep); font: 700 14px var(--g-display); }
.disclosure { max-width: 730px; margin: 8px 0 17px; color: var(--g-muted); font-size: 11px; line-height: 1.65; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 9px 23px; }
.footer-nav a { color: var(--g-blue) !important; font-size: 11px; font-weight: 700; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.copyright { margin: 17px 0 0; color: #8090a0; font-size: 10px; }

@media (max-width: 760px) {
  .header-inner { width: min(100% - 32px, 600px); min-height: 70px; gap: 15px; }
  .primary-nav { gap: 15px; }
  .primary-nav a { font-size: 12px; }
  .primary-nav a:nth-child(2) { display: none; }
  .page-shell { width: min(100% - 32px, 600px); padding: 35px 0 55px; }
  .library-intro { padding: 30px 25px 29px; }
  .library-intro::after { right: -190px; }
  .library-section { margin-top: 40px; }
  .article-header { padding: 29px 27px 24px; }
  .article-layout { grid-template-columns: 1fr; gap: 26px; padding: 26px 27px 31px; }
  .article-aside { max-width: none; }
  .footer-inner { width: min(100% - 32px, 600px); }
}
@media (max-width: 480px) {
  body.guides-site { font-size: 15px; }
  .header-inner { width: calc(100% - 28px); }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 13px; }
  .brand-name span { max-width: 160px; font-size: 9px; }
  .primary-nav { gap: 0; }
  .primary-nav a { font-size: 11px; }
  .page-shell { width: calc(100% - 28px); padding-top: 25px; }
  .library-intro { padding: 25px 20px; }
  .library-intro h1 { font-size: 34px; }
  .intro-copy { font-size: 14px; }
  .scope-note { font-size: 12px; }
  .section-heading h2 { font-size: 23px; }
  .guide-card { grid-template-columns: 33px minmax(0, 1fr) 19px; gap: 10px; padding: 19px 5px; }
  .guide-card-title { font-size: 16px; }
  .guide-card-summary { font-size: 12px; }
  .guide-number { font-size: 12px; }
  .editorial-note { padding: 14px; }
  .article-header { padding: 24px 20px 21px; }
  .back-link { margin-bottom: 23px; }
  .article-header h1 { font-size: 30px; }
  .article-lead { font-size: 15px; }
  .article-layout { padding: 22px 20px 27px; }
  .guide-content { font-size: 14px; }
  .guide-content h2 { font-size: 22px; }
  .guide-content h3 { font-size: 17px; }
  .guide-pagination { grid-template-columns: 1fr 1fr; gap: 10px; }
  .all-guides-link { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .pagination-link { min-height: 75px; padding: 10px; }
  .pagination-title { font-size: 11px; }
  .pagination-spacer { display: none; }
  .footer-inner { width: calc(100% - 28px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media print {
  body.guides-site { background: #fff; color: #111; font-size: 11pt; }
  .skip-link, .guides-header, .guides-footer, .breadcrumbs, .back-link, .article-aside, .guide-pagination { display: none !important; }
  .page-shell { width: 100%; min-height: 0; margin: 0; padding: 0; }
  .guide-article { border: 0; box-shadow: none; }
  .article-header, .article-layout { padding: 0; }
  .article-header { border: 0; }
  .article-header h1, .guide-content h2, .guide-content h3 { color: #111; }
  .guide-content a { color: #111 !important; text-decoration: none; }
  .guide-content table { display: table; overflow: visible; }
  .guide-content tr, .guide-content .example, .guide-content .notice, .guide-content .sources { break-inside: avoid; }
  .article-disclosure { color: #444; }
}

/* Small, scoped entry point for the existing consultations page. */
.consultas-guides-link { margin: 11px auto 0; }
.consultas-guides-link a {
  display: inline-block;
  padding: 5px 11px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 5px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}
.consultas-guides-link a:hover { background: #fff; color: #12395f; }
.consultas-guides-link a:focus-visible { outline: 3px solid #f2c68c; outline-offset: 3px; }
