:root {
  --rojo: #9f1730;
  --rojo-oscuro: #5e0b1e;
  --amarillo: #ffd447;
  --cobalto: #1746a2;
  --crema: #fff8e8;
  --papel: #fffdf7;
  --tinta: #191717;
  --gris: #635f59;
  --linea: #d8cdb8;
  --verde: #0b7a53;
  --ambar: #a96000;
  --alerta: #b51d36;
  --sombra: 0 14px 38px rgba(58, 28, 10, .12);
  --radio: 20px;
  --ancho: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  min-width: 0;
  color: var(--tinta);
  background: var(--crema);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  line-height: 1.62;
  overflow-wrap: anywhere;
}
img, video, iframe, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--cobalto); text-underline-offset: .18em; }
a:hover { color: var(--rojo); }
:focus-visible { outline: 4px solid var(--amarillo); outline-offset: 3px; }
.skip-link {
  position: fixed; z-index: 1000; top: .75rem; left: .75rem; transform: translateY(-180%);
  padding: .7rem 1rem; color: white; background: var(--cobalto); font-weight: 800;
}
.skip-link:focus { transform: none; }
.wrap { width: min(calc(100% - 2rem), var(--ancho)); margin-inline: auto; }

.site-header { color: white; background: var(--rojo-oscuro); border-bottom: 8px solid var(--amarillo); }
.masthead {
  display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 1rem; align-items: center;
  min-height: 86px; padding-block: .8rem;
}
.brand-lockup { display: inline-flex; gap: .75rem; align-items: center; color: white; text-decoration: none; min-width: 0; }
.brand-lockup img { width: 46px; height: 46px; flex: 0 0 auto; }
.brand-lockup strong {
  display: block; font-family: Impact, "Arial Narrow", sans-serif; font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 400; letter-spacing: .025em; line-height: 1; text-transform: uppercase;
}
.brand-lockup small { display: block; margin-top: .22rem; color: #ffe9a2; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.top-cta, .journey-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .72rem 1rem;
  color: #201700; background: var(--amarillo); border: 2px solid #201700; border-radius: 999px;
  box-shadow: 4px 4px 0 #201700; font-weight: 900; text-decoration: none; text-align: center;
}
.top-cta:hover, .journey-cta:hover { color: #201700; transform: translate(-1px, -1px); box-shadow: 6px 6px 0 #201700; }
.primary-nav { background: var(--cobalto); }
.nav-row { display: flex; flex-wrap: wrap; gap: .25rem .4rem; padding-block: .45rem; }
.nav-row a { padding: .48rem .62rem; color: white; border-radius: 6px; font-size: .91rem; font-weight: 800; text-decoration: none; }
.nav-row a:hover, .nav-row a[aria-current="page"] { color: #1d1600; background: var(--amarillo); }

main { min-height: 55vh; }
.breadcrumbs { padding-block: 1rem .25rem; color: var(--gris); font-size: .86rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "→"; margin-right: .35rem; color: var(--rojo); }
.page-hero { padding: clamp(2.2rem, 6vw, 5.5rem) 0 2.6rem; }
.page-hero h1, .dossier-title h1 {
  max-width: 920px; margin: 0 0 1rem; font-family: Impact, "Arial Narrow", sans-serif;
  font-size: clamp(2.6rem, 8vw, 5.8rem); font-weight: 400; letter-spacing: .01em; line-height: .98;
}
.page-hero p { max-width: 760px; margin: 0; color: #3e3934; font-size: clamp(1.04rem, 2vw, 1.25rem); }
.eyebrow {
  display: inline-block; margin-bottom: .8rem; padding: .25rem .55rem; color: white; background: var(--rojo);
  border-radius: 4px; font-size: .75rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase;
}

.home-hero { position: relative; overflow: hidden; padding: clamp(2.4rem, 6vw, 5.2rem) 0; background: var(--papel); }
.home-hero::before {
  content: ""; position: absolute; inset: 0 0 auto auto; width: 35%; height: 100%; opacity: .14;
  background: repeating-linear-gradient(135deg, var(--rojo) 0 18px, transparent 18px 38px);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(250px, .55fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.hero-copy h1 {
  margin: 0 0 1rem; font-family: Impact, "Arial Narrow", sans-serif; font-size: clamp(3.3rem, 10vw, 7.8rem);
  font-weight: 400; letter-spacing: -.015em; line-height: .84; text-transform: uppercase;
}
.hero-copy h1 span { color: var(--rojo); }
.hero-copy p { max-width: 720px; margin: 0 0 1.4rem; color: #3d3833; font-size: clamp(1.06rem, 2.3vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.text-link { font-weight: 900; }
.latest-ticket {
  position: relative; padding: 1.5rem 1.25rem; background: var(--amarillo); border: 3px solid var(--tinta);
  box-shadow: 10px 10px 0 var(--rojo); transform: rotate(1.2deg);
}
.latest-ticket::before { content: "EXPEDIENTE"; display: block; margin-bottom: .8rem; color: var(--rojo-oscuro); font-weight: 900; letter-spacing: .12em; }
.latest-ticket time { display: block; font-family: Impact, "Arial Narrow", sans-serif; font-size: 2rem; line-height: 1; }
.latest-ticket small { display: block; margin-top: .8rem; }

.section { padding: clamp(2.7rem, 7vw, 5.4rem) 0; }
.section--paper { background: var(--papel); border-block: 1px solid var(--linea); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: end; margin-bottom: 1.5rem; }
.section-heading h2 { margin: 0; font-family: Impact, "Arial Narrow", sans-serif; font-size: clamp(2rem, 5vw, 3.8rem); font-weight: 400; line-height: 1; }
.section-heading p { max-width: 580px; margin: .5rem 0 0; color: var(--gris); }

.legend-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.legend-card { padding: 1.2rem; background: white; border: 1px solid var(--linea); border-top: 10px solid currentColor; border-radius: 0 0 var(--radio) var(--radio); box-shadow: var(--sombra); }
.legend-card strong { display: block; font-size: 1.22rem; }
.legend-card p { margin: .35rem 0 0; color: #49443e; }
.is-green { color: var(--verde); }
.is-amber { color: var(--ambar); }
.is-red { color: var(--alerta); }

.ai-note {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start;
  padding: 1.5rem; color: white; background: var(--cobalto); border: 4px solid #0c2e72; border-radius: var(--radio);
  box-shadow: 9px 9px 0 var(--amarillo);
}
.ai-note .stamp { display: grid; place-items: center; width: 58px; height: 58px; color: var(--cobalto); background: var(--amarillo); border-radius: 50%; font-weight: 900; }
.ai-note h2, .ai-note p { margin-top: 0; }
.ai-note p:last-child { margin-bottom: 0; }
.ai-note a { color: #fff3b5; }

.brand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.brand-card { min-width: 0; }
.brand-card > a {
  position: relative; display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 1rem; align-items: center;
  min-height: 154px; padding: 1.1rem; color: var(--tinta); background: white; border: 1px solid var(--linea);
  border-radius: 6px 24px 6px 6px; box-shadow: var(--sombra); text-decoration: none; overflow: hidden;
}
.brand-card > a::after { content: "↗"; position: absolute; right: .8rem; bottom: .5rem; color: var(--rojo); font-size: 1.25rem; font-weight: 900; }
.brand-card > a:hover { border-color: var(--cobalto); transform: translateY(-3px); }
.brand-card img { width: 82px; height: 82px; object-fit: contain; background: #f5f3ee; border: 1px solid #e1ddd2; border-radius: 16px; }
.brand-card h3 { margin: 0 1rem .25rem 0; font-size: 1.18rem; line-height: 1.1; }
.brand-card p { margin: 0; color: var(--gris); font-size: .84rem; }
.signal-chip { display: inline-flex; gap: .38rem; align-items: center; margin-top: .55rem; font-size: .76rem; font-weight: 900; text-transform: uppercase; }
.signal-chip::before { content: ""; width: .72rem; height: .72rem; background: currentColor; border-radius: 50%; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }

.route-map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: route; }
.route-step { position: relative; padding: 1.25rem; background: white; border: 2px solid var(--tinta); border-radius: 12px; counter-increment: route; }
.route-step::before { content: counter(route, decimal-leading-zero); display: block; color: var(--rojo); font-family: Impact, sans-serif; font-size: 2rem; }
.route-step h3 { margin: .2rem 0; }
.route-step p { margin: .2rem 0 0; color: var(--gris); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(250px, .55fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.prose { min-width: 0; font-size: 1.04rem; }
.prose h2 { margin: 2.4rem 0 .6rem; font-family: Impact, "Arial Narrow", sans-serif; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 400; line-height: 1.05; }
.prose h3 { margin-top: 1.8rem; }
.prose p, .prose li { max-width: 76ch; }
.prose code, .identity-value, .source-url { overflow-wrap: anywhere; word-break: break-word; }
.side-docket { position: sticky; top: 1rem; padding: 1.25rem; background: white; border: 2px solid var(--rojo); border-radius: var(--radio); box-shadow: var(--sombra); }
.side-docket h2 { margin-top: 0; font-size: 1.25rem; }
.side-docket ul { margin: 0; padding-left: 1.2rem; }
.checklist { padding: 0; list-style: none; }
.checklist li { position: relative; margin: .7rem 0; padding-left: 1.8rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--verde); font-weight: 900; }
.warning-box { padding: 1.2rem; background: #fff0d0; border-left: 8px solid var(--ambar); border-radius: 0 12px 12px 0; }
.urgent-box { padding: 1.4rem; color: white; background: var(--rojo-oscuro); border: 5px solid var(--amarillo); border-radius: var(--radio); }
.urgent-box a { color: var(--amarillo); }
.journey-box { margin-top: 2rem; padding: 1.35rem; background: #eaf1ff; border: 2px solid var(--cobalto); border-radius: var(--radio); }
.journey-box p { margin-top: 0; }

.directory-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: end; margin-bottom: 1.5rem; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: .35rem; font-weight: 900; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: .7rem .8rem; color: var(--tinta); background: white;
  border: 2px solid #78716a; border-radius: 8px; font: inherit;
}
textarea { min-height: 170px; resize: vertical; }
button { min-height: 48px; padding: .7rem 1rem; color: white; background: var(--cobalto); border: 2px solid #0d2d6b; border-radius: 8px; font: inherit; font-weight: 900; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field--wide { grid-column: 1 / -1; }
.form-note { color: var(--gris); font-size: .9rem; }

.dossier { padding-bottom: 4rem; }
.dossier-title { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 1.3rem; align-items: center; padding: 2rem 0 1.5rem; }
.dossier-title > img { width: 130px; height: 130px; object-fit: contain; background: white; border: 2px solid var(--tinta); border-radius: 28px; box-shadow: 7px 7px 0 var(--amarillo); }
.dossier-title h1 { margin-bottom: .45rem; font-size: clamp(2.6rem, 7vw, 5.4rem); }
.dossier-title p { margin: 0; color: var(--gris); }
.verdict-ledger {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: center;
  margin: 1rem 0 2rem; padding: 1.15rem; background: white; border: 2px solid currentColor; border-radius: 12px; box-shadow: var(--sombra);
}
.verdict-light { width: 64px; height: 64px; background: currentColor; border: 9px solid #292624; border-radius: 50%; box-shadow: inset 0 0 0 7px rgba(255,255,255,.25); }
.verdict-ledger strong { display: block; color: var(--tinta); font-size: 1.3rem; }
.verdict-ledger p { margin: .25rem 0 0; color: #4b4640; }
.identity-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 1.5rem 0; overflow: hidden; background: var(--tinta); border: 2px solid var(--tinta); border-radius: 14px; }
.identity-card > div { min-width: 0; padding: 1rem; background: white; }
.identity-card dt { color: var(--rojo); font-size: .75rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.identity-card dd { margin: .35rem 0 0; font-weight: 800; }
.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.evidence-card { min-width: 0; margin: 0; padding: .75rem; background: white; border: 1px solid var(--linea); border-radius: 14px; box-shadow: var(--sombra); }
.evidence-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border: 1px solid #ded8cc; border-radius: 8px; }
.evidence-card figcaption { padding: .7rem .25rem .2rem; color: var(--gris); font-size: .86rem; }
.evidence-card figcaption strong { display: block; color: var(--tinta); }
.article-handoff { margin-top: 1.5rem; padding: 1rem; color: #4d4741; background: #f1ece2; border: 1px dashed #837a6c; border-radius: 8px; font-size: .9rem; }

.policy-shell { position: relative; }
.policy-shell::before { content: "BORRADOR ESTRUCTURAL VERIFICADO"; display: inline-block; margin-bottom: 1rem; padding: .3rem .55rem; color: white; background: var(--cobalto); font-size: .72rem; font-weight: 900; letter-spacing: .08em; }
.faq-list details { margin: .75rem 0; padding: 1rem; background: white; border: 1px solid var(--linea); border-radius: 10px; }
.faq-list summary { font-weight: 900; cursor: pointer; }
.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--linea); border-radius: 10px; }
table { width: 100%; max-width: 100%; border-collapse: collapse; table-layout: fixed; background: white; }
th, td { padding: .75rem; border-bottom: 1px solid var(--linea); text-align: left; vertical-align: top; overflow-wrap: anywhere; word-break: break-word; }
th { color: white; background: var(--cobalto); }

.sitemap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.sitemap-group { padding: 1.1rem; background: white; border: 1px solid var(--linea); border-radius: 12px; }
.sitemap-group h2 { margin-top: 0; }
.sitemap-group ul { padding-left: 1.2rem; }

.site-footer { padding: 2.6rem 0; color: #f7ebd7; background: #241c20; border-top: 8px solid var(--rojo); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 2rem; }
.footer-grid p { max-width: 52ch; margin: .5rem 0; color: #d9cabc; }
.footer-links { display: flex; flex-wrap: wrap; align-content: start; gap: .45rem 1rem; }
.footer-links a { color: white; }
.footer-small { margin-top: 1.5rem; padding-top: 1rem; color: #bdaea2; border-top: 1px solid #51444b; font-size: .82rem; }

@media (max-width: 900px) {
  .hero-grid, .content-grid, .footer-grid { grid-template-columns: 1fr; }
  .latest-ticket { max-width: 520px; transform: none; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-docket { position: static; }
  .identity-card { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .wrap { width: min(calc(100% - 1.2rem), var(--ancho)); }
  .masthead { grid-template-columns: 1fr; }
  .top-cta { width: 100%; }
  .nav-row { justify-content: flex-start; }
  .nav-row a { flex: 1 1 43%; text-align: center; }
  .hero-copy h1 { font-size: clamp(2.6rem, 13vw, 4rem); }
  .section-heading { grid-template-columns: 1fr; }
  .legend-grid, .brand-grid, .route-map, .evidence-grid, .sitemap-grid { grid-template-columns: 1fr; }
  .brand-card > a { min-height: 130px; grid-template-columns: 70px minmax(0, 1fr); }
  .brand-card img { width: 70px; height: 70px; }
  .ai-note { grid-template-columns: 1fr; }
  .directory-tools, .form-grid { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .dossier-title { grid-template-columns: 88px minmax(0, 1fr); }
  .dossier-title > img { width: 88px; height: 88px; border-radius: 20px; }
  .verdict-ledger { grid-template-columns: 46px minmax(0, 1fr); }
  .verdict-light { width: 46px; height: 46px; border-width: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* editorial-contact:start */
main > h1, main > .policy, main > .contact-panel { width:min(calc(100% - 2rem),900px); margin-inline:auto; }
main > h1 { margin-top:2.4rem; line-height:1.08; }
main > .policy { padding-bottom:1rem; }
.contact-panel { margin-block:1rem 4rem; padding:clamp(1rem,4vw,2rem); background:var(--papel); border:3px solid var(--tinta); border-top:10px solid var(--rojo); border-radius:var(--radio); box-shadow:8px 8px 0 var(--amarillo); }
.contact-panel h2 { margin-top:0; }
.contact-form { margin-top:1.25rem; }
.contact-form label { display:block; margin-bottom:.35rem; font-weight:900; }
.honeypot { position:absolute!important; width:1px!important; height:1px!important; overflow:hidden!important; clip:rect(0 0 0 0)!important; white-space:nowrap!important; }
/* editorial-contact:end */
