@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-variable.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --ink: #17212b;
  --paper: #f4f7f6;
  --forest: #146b5a;
  --forest-dark: #0d5246;
  --mandarin: #e9562f;
  --mist: #dce8e4;
  --line: #c7d5d0;
  --white: #ffffff;
  --muted: #5b6966;
  --soft: #eaf0ee;
  --focus: #8a3ffc;
  --shadow: 0 20px 60px rgb(23 33 43 / 10%);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Figtree", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.independent-bar { color: var(--white); background: var(--ink); font-size: 13px; letter-spacing: .02em; }
.independent-bar__inner { display: flex; justify-content: space-between; gap: 20px; padding-block: 7px; }
.independent-bar__inner span:first-child { color: #91e2ce; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }

.site-header { position: sticky; z-index: 20; top: 0; background: rgb(244 247 246 / 94%); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 38px; height: 38px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; padding: 7px; border: 2px solid var(--ink); border-radius: 11px 11px 3px 11px; }
.brand-mark i { display: block; background: var(--forest); border-radius: 2px; }
.brand-mark i:first-child { grid-row: span 2; }
.brand-mark i:last-child { background: var(--mandarin); }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-family: "Arial Narrow", "Roboto Condensed", "Figtree", sans-serif; font-size: 21px; letter-spacing: -.03em; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a { padding: 8px 11px; border-radius: 9px; color: #31403d; font-size: 14px; font-weight: 700; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--forest-dark); background: var(--mist); }

.hero { padding: 74px 0 66px; border-bottom: 1px solid var(--line); background: var(--white); }
.hero--home { padding-top: 88px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: clamp(44px, 7vw, 96px); align-items: center; }
.eyebrow, .section-kicker, .rail-label { margin: 0 0 12px; color: var(--forest); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 {
  max-width: 830px;
  margin: 0;
  font-family: "Arial Narrow", "Roboto Condensed", "Figtree", sans-serif;
  font-size: clamp(48px, 6.2vw, 84px);
  line-height: .96;
  letter-spacing: -.052em;
  text-wrap: balance;
}
.hero-dek { max-width: 720px; margin: 27px 0 0; color: #40504d; font-size: clamp(19px, 2vw, 23px); line-height: 1.48; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--muted); font-size: 13px; font-weight: 700; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { width: 8px; height: 8px; content: ""; background: var(--forest); border-radius: 50%; }

.safe-pass { position: relative; overflow: hidden; padding: 25px; background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--mandarin); border-radius: 4px 4px var(--radius) var(--radius); box-shadow: var(--shadow); }
.safe-pass::before, .safe-pass::after { position: absolute; top: 58%; width: 22px; height: 22px; content: ""; background: var(--white); border: 1px solid var(--line); border-radius: 50%; }
.safe-pass::before { left: -12px; }
.safe-pass::after { right: -12px; }
.safe-pass__top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 17px; border-bottom: 1px dashed #91a59f; }
.safe-pass__label { font-family: ui-monospace, "Cascadia Mono", monospace; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.safe-pass__dot { width: 11px; height: 11px; background: var(--mandarin); border-radius: 50%; box-shadow: 0 0 0 5px rgb(233 86 47 / 12%); }
.safe-pass__steps { display: grid; gap: 15px; margin: 22px 0; padding: 0; list-style: none; }
.safe-pass__steps li { display: grid; grid-template-columns: 31px 1fr; column-gap: 11px; align-items: center; }
.safe-pass__steps li > span { grid-row: span 2; width: 31px; height: 31px; display: grid; place-items: center; color: var(--white); background: var(--forest); border-radius: 50%; font-size: 12px; font-weight: 900; }
.safe-pass__steps strong { font-size: 15px; line-height: 1.2; }
.safe-pass__steps small { color: var(--muted); font-size: 13px; }
.safe-pass__domain { display: grid; gap: 4px; padding: 14px 0; border-top: 1px dashed #91a59f; }
.safe-pass__domain span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.safe-pass code, .rail-card code { color: var(--forest-dark); font-family: ui-monospace, "Cascadia Mono", monospace; font-size: 14px; font-weight: 800; }
.safe-pass__action { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding: 13px 15px; color: var(--white); background: var(--ink); border-radius: 10px; font-size: 14px; font-weight: 800; text-decoration: none; }
.safe-pass__action:hover { color: var(--white); background: var(--forest-dark); }

.content-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(240px, 320px); justify-content: space-between; gap: clamp(48px, 8vw, 110px); padding-top: 72px; padding-bottom: 100px; }
.content-layout > *, .article, .page-rail { min-width: 0; }
.article p, .article li, .article a { overflow-wrap: anywhere; }
.article > p:first-child { margin-top: 0; color: #33413f; font-size: 21px; line-height: 1.6; }
.article h2 { margin: 70px 0 18px; font-family: "Arial Narrow", "Roboto Condensed", "Figtree", sans-serif; font-size: clamp(31px, 4vw, 45px); line-height: 1.05; letter-spacing: -.035em; }
.article h3 { margin: 0 0 13px; font-size: 25px; line-height: 1.2; letter-spacing: -.02em; }
.article p { margin: 0 0 22px; }
.article ul, .article ol { display: grid; gap: 11px; margin: 0 0 26px; padding-left: 25px; }
.article li::marker { color: var(--mandarin); font-weight: 900; }
.article code { padding: .12em .34em; background: var(--soft); border-radius: 5px; font-family: ui-monospace, "Cascadia Mono", monospace; font-size: .88em; }

.page-rail { display: grid; align-content: start; gap: 18px; }
.rail-card { padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.rail-card--sticky { position: sticky; top: 100px; border-top: 4px solid var(--mandarin); }
.rail-card strong { display: block; margin-bottom: 9px; font-size: 18px; line-height: 1.3; }
.rail-card code, .safe-pass code { overflow-wrap: anywhere; word-break: break-word; }
.rail-card p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.component { margin: 38px 0; }
.independence-card { display: grid; grid-template-columns: 38px 1fr; gap: 15px; padding: 19px 21px; background: var(--mist); border-left: 4px solid var(--forest); border-radius: 0 12px 12px 0; }
.independence-card .component-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--white); background: var(--forest); border-radius: 50%; font-family: Georgia, serif; font-style: italic; font-weight: 700; }
.independence-card strong { display: block; margin-bottom: 3px; }
.independence-card p { margin: 0; color: #3f504c; font-size: 15px; }

.action-panel { padding: 25px; background: var(--ink); border-radius: var(--radius); color: var(--white); }
.action-panel__intro { display: grid; gap: 3px; margin-bottom: 18px; }
.action-panel__intro span { color: #91e2ce; font-size: 11px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.action-panel__intro strong { font-size: 22px; }
.action-list { display: grid; gap: 9px; }
.action-list a { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 14px; padding: 14px 15px; color: var(--ink); background: var(--white); border-radius: 11px; text-decoration: none; }
.action-list a:hover { color: var(--forest-dark); background: #f0f8f5; }
.action-list a span { min-width: 0; overflow-wrap: anywhere; font-weight: 800; }
.action-list a small { grid-column: 1; overflow: hidden; color: var(--muted); font-family: ui-monospace, "Cascadia Mono", monospace; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.action-list a b { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 20px; }

.related-panel, .sources-panel { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.route-list, .route-index__rows { display: grid; border-top: 1px solid var(--line); }
.route-list a, .route-index__rows a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 14px 2px; border-bottom: 1px solid var(--line); text-decoration: none; }
.route-list a span, .route-index__rows a span { font-weight: 750; text-transform: capitalize; }
.route-index__rows a small { grid-column: 1; color: var(--muted); font-size: 12px; text-transform: capitalize; }
.route-list a b, .route-index__rows a b { grid-column: 2; grid-row: 1 / span 2; color: var(--mandarin); font-size: 21px; }
.sources-panel ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.sources-panel li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.sources-panel a { font-size: 14px; font-weight: 700; text-decoration: none; }
.route-index { padding: 26px; background: var(--soft); border-radius: var(--radius); }

.privacy-strip { display: flex; flex-wrap: wrap; gap: 8px; padding: 13px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.privacy-strip span { padding: 6px 9px; color: var(--forest-dark); background: var(--mist); border-radius: 7px; font-size: 12px; font-weight: 850; }

.calculator { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.calculator__heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; padding: 24px 25px 20px; border-bottom: 1px solid var(--line); }
.calculator__heading h3 { margin: 0; }
.calculator__heading > span { padding: 6px 9px; color: #8a351f; background: #fee5dd; border-radius: 6px; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.calculator__form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; padding: 25px; }
.calculator__form label { display: grid; gap: 6px; font-size: 14px; font-weight: 800; }
.calculator__form label span { color: var(--muted); font-size: 11px; font-weight: 600; }
.calculator__form input { width: 100%; min-height: 46px; padding: 9px 11px; color: var(--ink); background: var(--paper); border: 1px solid #9eb0aa; border-radius: 8px; font: inherit; font-size: 15px; }
.calculator__form button { grid-column: 1 / -1; min-height: 48px; color: var(--white); background: var(--forest); border: 0; border-radius: 9px; cursor: pointer; font: inherit; font-weight: 850; }
.calculator__form button:hover { background: var(--forest-dark); }
.calculator__result { display: grid; gap: 4px; padding: 22px 25px; color: var(--white); background: var(--ink); }
.calculator__result span { color: #91e2ce; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.calculator__result strong { font-family: "Arial Narrow", "Roboto Condensed", "Figtree", sans-serif; font-size: 42px; line-height: 1; }
.calculator__result small { color: #c9d5d2; }
.calculator__note { margin: 0 !important; padding: 15px 25px 20px; color: var(--muted); font-size: 12px; }

.office-finder { display: grid; grid-template-columns: 1fr auto; gap: 25px; align-items: center; padding: 28px; color: var(--white); background: var(--forest-dark); border-radius: var(--radius); }
.office-finder h3 { margin: 0 0 8px; }
.office-finder .section-kicker { color: #91e2ce; }
.office-finder p:last-child { margin: 0; color: #cde5df; font-size: 14px; }
.office-finder a { padding: 12px 15px; color: var(--ink); background: var(--white); border-radius: 9px; font-size: 14px; font-weight: 850; text-decoration: none; }
.status-card { padding: 20px; background: var(--mist); border-radius: 12px; }
.status-card p { margin: 4px 0 0; }

.faq-section { margin-top: 80px; padding-top: 48px; border-top: 2px solid var(--ink); }
.faq-section h2 { margin-top: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 20px; padding: 19px 0; cursor: pointer; font-weight: 800; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--mandarin); font-size: 24px; font-weight: 400; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { padding: 0 34px 20px 0; color: var(--muted); }

.ad-slot { display: flex; min-height: 280px; margin: 0 0 34px; overflow: hidden; flex-direction: column; align-items: center; justify-content: center; background: var(--mist); border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.ad-slot::before { margin-bottom: 7px; color: #6c7976; content: "Publicidad"; font-size: 10px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.ad-slot ins { display: block; width: 100%; }
.ad-slot--lateral { min-height: 600px; margin: 0; }
/* Regression guard: legacy fixed ad containers must never render. */
.ad-slot--sticky,
.anuncio-sticky { display: none !important; position: static !important; inset: auto !important; width: 0 !important; height: 0 !important; min-height: 0 !important; overflow: hidden !important; }

.site-footer { padding: 45px 0; color: #dce8e4; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 40px; align-items: start; }
.footer-grid strong { color: var(--white); font-size: 19px; }
.footer-grid p { max-width: 560px; margin: 7px 0 0; font-size: 14px; }
.footer-grid > div:not(:first-child) { display: grid; gap: 4px; text-align: right; }
.footer-grid span { color: #91e2ce; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.footer-grid a { color: var(--white); font-family: ui-monospace, "Cascadia Mono", monospace; font-size: 14px; }

@media (max-width: 900px) {
  .header-row { min-height: auto; padding: 14px 0; align-items: flex-start; flex-direction: column; gap: 12px; }
  .site-header { position: relative; }
  .main-nav { width: 100%; overflow-x: auto; padding-bottom: 3px; }
  .main-nav a { flex: 0 0 auto; }
  .hero-grid, .content-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 45px; }
  .page-rail { grid-template-columns: repeat(2, 1fr); }
  .rail-card--sticky { position: static; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .shell { width: min(100% - 26px, 1180px); }
  .independent-bar__inner span:last-child { display: none; }
  .hero { padding: 54px 0 48px; }
  .hero h1 { font-size: clamp(43px, 14vw, 62px); }
  .safe-pass { padding: 20px; }
  .content-layout { gap: 48px; padding: 50px 0 72px; }
  .article h2 { margin-top: 52px; }
  .page-rail { grid-template-columns: 1fr; }
  .calculator__form { grid-template-columns: 1fr; }
  .office-finder { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:not(:first-child) { text-align: left; }
}

.breadcrumbs { padding-top: 18px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0; padding: 0; color: var(--muted); font-size: 13px; list-style: none; }
.breadcrumbs li:not(:last-child)::after { margin-left: 10px; content: "/"; color: var(--line); }
.breadcrumbs a { font-weight: 700; }
.route-finder { min-width: 0; margin-bottom: 18px; padding: 18px; background: var(--mist); border-radius: 12px; }
.route-finder label { display: block; margin-bottom: 8px; font-weight: 800; }
.route-finder > div { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.route-finder select, .route-finder button { min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font: inherit; }
.route-finder select { width: 100%; min-width: 0; max-width: 100%; }
.route-finder button { color: var(--white); background: var(--forest-dark); border-color: var(--forest-dark); font-weight: 800; cursor: pointer; }
.route-finder p { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.checklist-tool { display: grid; gap: 11px; padding: 21px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--forest); border-radius: 12px; }
.checklist-tool > div { display: flex; justify-content: space-between; gap: 15px; }
.checklist-tool > div span, .checklist-tool small { color: var(--muted); font-size: 13px; }
.checklist-tool label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-weight: 650; }
.checklist-tool input { width: 22px; height: 22px; flex: 0 0 auto; accent-color: var(--forest); }
.not-found { min-height: 100vh; display: grid; place-content: center; max-width: 720px; text-align: center; }
.not-found h1 { margin: 0; font-size: clamp(48px, 9vw, 90px); line-height: 1; }
.not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.not-found__actions a { padding: 12px 16px; color: var(--white); background: var(--forest-dark); border-radius: 9px; font-weight: 800; text-decoration: none; }

@media (max-width: 640px) {
  .route-finder > div { grid-template-columns: 1fr; }
  .checklist-tool > div { align-items: flex-start; flex-direction: column; gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .ad-slot { display: none !important; }
}
