/* Trámite Ciudadano. Loaded after the Kit Gobierno stylesheet, which it
   overrides only where D10 says so: the hero, the primary CTA and the page
   chrome. Form controls keep the framework's look. */

@font-face { font-family: "Roboto"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/roboto-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/roboto-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/roboto-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Slab"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/roboto-slab-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Slab"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/roboto-slab-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Slab"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/roboto-slab-latin-500-normal.woff2") format("woff2"); }

:root {
  --gob-primary: #006fb3;
  --gob-primary-hover: #005a92;
  --gob-blue-line: #0f69b4;
  --gob-red-line: #e22c2c;
  --ink: #111;
  --ink-2: #3f4750;
  --muted: #5b6670;
  --rule: #dde2e7;
  --band: #f4f5f7;
  --surface: #fff;
  --focus: #ffbf47;
  --ok: #2d717c;
  --error: #c4161c;
  --radius-pill: 999px;
  --radius: 8px;
  --measure: 46rem;
  --serif: "Roboto Slab", Georgia, serif;
  --sans: "Roboto", -apple-system, "Segoe UI", Arial, sans-serif;
}

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

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; outline: none; }
p { color: inherit; }

a { color: var(--gob-primary); text-decoration: underline; text-underline-offset: .15em; }
a:hover { color: var(--gob-primary-hover); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); }

.container { padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 576px) { .container { padding-left: 1.5rem; padding-right: 1.5rem; } }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: .75rem 1rem; font-weight: 500;
}
.skip-link:focus { top: 1rem; color: #fff; }
.a11y-contrast .skip-link, .a11y-contrast .skip-link:focus { background: #ffe066; color: #000; }


/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; gap: 1rem; }
.site-brand { display: inline-flex; align-items: center; gap: .875rem; color: var(--ink); text-decoration: none; min-width: 0; }
.site-brand:hover { color: var(--ink); }
.site-brand__name { font-family: var(--serif); font-size: 1.125rem; font-weight: 500; letter-spacing: -.01em; padding-left: .875rem; border-left: 1px solid var(--rule); line-height: 1.2; min-height: 2rem; display: inline-flex; align-items: center; }
@media (max-width: 575px) { .site-brand { gap: .625rem; } .site-brand__name { font-size: 1rem; padding-left: .625rem; } }
/* Below desktop width the mark sits above the site name, which may wrap,
   so at 150% text the header neither scrolls sideways nor runs under the
   accessibility buttons. */
@media (max-width: 991px) {
  .site-header .site-brand { flex-direction: column; align-items: flex-start; gap: .375rem; padding: .625rem 0; }
  .site-header .site-brand__name { border-left: 0; padding-left: 0; min-height: 0; }
}

.a11y-tools { display: flex; gap: .375rem; }
.a11y-tools[hidden] { display: none; }
.a11y-tools__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; padding: 0; background: #fff;
  border: 1.5px solid #a8b7c7; border-radius: var(--radius); color: var(--ink-2); cursor: pointer;
}
.a11y-tools__btn .cl { font-size: 1rem; line-height: 1; }
.a11y-tools__btn .cl::before { color: currentColor; }
.a11y-tools__btn:hover, .a11y-tools__btn[aria-pressed="true"] { border-color: var(--gob-primary); color: var(--gob-primary); }
.a11y-tools__options { display: flex; gap: .375rem; }
.a11y-tools__toggle { display: none; }
@media (max-width: 575px) {
  .a11y-tools { position: relative; }
  .a11y-tools__toggle { display: inline-flex; }
  .a11y-tools__options { display: none; position: absolute; right: 0; top: calc(100% + .5rem); z-index: 20; padding: .5rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
  .a11y-tools.is-open .a11y-tools__options { display: flex; }
}

/* Display type, D10: Roboto Slab, large and tight */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  color: var(--ink);
  margin: 0;
  max-width: 14ch;
  text-wrap: balance;
}

/* Hero */
.hero { padding: clamp(3rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.lede { font-size: clamp(1.125rem, 2.2vw, 1.375rem); line-height: 1.45; color: var(--ink-2); max-width: 34rem; margin: 1.5rem 0 2.25rem; }

/* Primary CTA: the one place we depart from square framework buttons */
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 3.5rem; padding: 0 2rem;
  background: var(--gob-primary); color: #fff; border: 0; border-radius: var(--radius-pill);
  font-family: var(--sans); font-size: 1.125rem; font-weight: 500; line-height: 1.2; letter-spacing: .005em;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .15s ease;
}
.btn-cta:hover, .btn-cta:focus { background: var(--gob-primary-hover); color: #fff; text-decoration: none; }
.btn-cta__arrow { font-size: 1.25rem; line-height: 1; transition: transform .15s ease; }
.btn-cta:hover .btn-cta__arrow { transform: translateX(3px); }
@media (max-width: 400px) { .btn-cta { width: 100%; } }

.assurances { list-style: none; margin: 3rem 0 0; padding: 2rem 0 0; border-top: 1px solid var(--rule); display: grid; gap: 1.25rem; max-width: 52rem; }
@media (min-width: 768px) { .assurances { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.assurances li { display: flex; gap: .875rem; align-items: flex-start; }
.assurances__icon { flex: none; color: var(--gob-primary); margin-top: .0625rem; }
.assurances p { margin: 0; font-size: 1.0625rem; line-height: 1.5; color: var(--ink-2); }
.assurances strong { color: var(--ink); font-weight: 500; }

/* Sections */
.band { padding: clamp(3rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--rule); }
.band--muted { background: var(--band); }
.section-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 2.5rem; color: var(--ink); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
.steps li { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.steps__n { display: block; font-family: var(--serif); font-size: 1rem; color: var(--muted); margin-bottom: .75rem; }
.steps h3, .timeline h3 { font-family: var(--sans); font-size: 1.25rem; font-weight: 500; line-height: 1.3; margin: 0 0 .5rem; color: var(--ink); }
.steps__text p, .timeline p { margin: 0; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.55; }

.timeline { list-style: none; margin: 0; padding: 0; max-width: var(--measure); counter-reset: none; }
.timeline li { display: flex; gap: 1.25rem; position: relative; padding-bottom: 2rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 1.1875rem; top: 2.75rem; bottom: .25rem; width: 2px; background: var(--rule); }
.timeline__n {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--gob-primary); color: #fff;
  font-weight: 500; font-size: 1.0625rem;
}
.timeline li > div { padding-top: .375rem; }

.stat-cards { display: grid; gap: 1rem; }
@media (min-width: 768px) { .stat-cards { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.stat-card { border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; }
.stat-card__value { font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1; letter-spacing: -.03em; margin: 0 0 .5rem; color: var(--ink); }
.stat-card__label { margin: 0; color: var(--ink-2); }
.source-note { margin: 1.25rem 0 0; font-size: .9375rem; color: var(--muted); max-width: var(--measure); }
.empty-note { border: 1px dashed #b9c3cc; border-radius: var(--radius); padding: 1.5rem; max-width: var(--measure); }
.empty-note p { margin: 0; color: var(--ink-2); }
.empty-note strong { color: var(--ink); font-weight: 500; }

.closing { padding: clamp(4rem, 10vw, 8rem) 0; border-top: 1px solid var(--rule); }
.closing .display { margin-bottom: 2.25rem; }
.closing__notice { margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--rule); max-width: var(--measure); font-size: 1rem; line-height: 1.5; color: var(--ink-2); }

/* Footer, with the framework's two-colour line */
/* The kit fixes every <footer> at 64 px with overflow hidden on phones; ours grows with its content. */
.site-footer { height: auto; min-height: 0; max-width: none; overflow: visible; background: var(--band); border-top: 1px solid var(--rule); padding: 2.5rem 0; font-size: .9375rem; color: var(--ink-2); flex: none; margin-top: auto; }
.site-footer__grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.site-footer__logo { display: block; margin-bottom: 1rem; }
.site-footer p { margin: 0; color: var(--ink-2); max-width: 26rem; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 2rem; }
@media (min-width: 576px) { .site-footer__links { grid-template-columns: repeat(2, minmax(0, max-content)); justify-content: start; } }
/* The kit makes footer links one-line blocks with 40 px right padding; ours wrap. */
.site-footer__links a { display: inline-flex; align-items: center; min-height: 2.75rem; width: auto; height: auto; padding: 0; overflow: visible; white-space: normal; color: var(--ink); }
.site-footer__note { margin-top: 2rem !important; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: .875rem; max-width: none !important; }

/* Contrast mode: the framework's .a11y-contrast, applied to our components */
.a11y-contrast { --ink: #fff; --ink-2: #eee; --muted: #d0d0d0; --rule: #6b6b6b; --band: #000; --surface: #111; --gob-primary: #8fd1ff; --gob-primary-hover: #b8e2ff; }
.a11y-contrast body { background: var(--surface); }
.a11y-contrast .btn-cta, .a11y-contrast .timeline__n { background: #ffe066; color: #000; }
.a11y-contrast .btn-cta:hover { background: #fff; color: #000; }
.a11y-contrast .a11y-tools__btn { background: #000; color: #fff; }
.a11y-contrast .site-footer { color: #eee; }

/* Content pages */
.page { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.page-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.25rem, 6vw, 3.75rem); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 1.25rem; color: var(--ink); max-width: 18ch; }
.page-lede { font-size: clamp(1.125rem, 2vw, 1.25rem); line-height: 1.5; color: var(--ink-2); max-width: var(--measure); margin: 0 0 2rem; }
.prose .container > * { max-width: var(--measure); }
.prose h2 { font-family: var(--sans); font-size: 1.375rem; font-weight: 500; line-height: 1.3; margin: 2.5rem 0 .75rem; color: var(--ink); }
.prose p { font-size: 1.0625rem; line-height: 1.65; color: var(--ink-2); margin: 0 0 1rem; }

/* Form fields, as the status lookup uses them. The report form has its
   own, in Pacífico, below. */
.field { margin: 0 0 1.75rem; padding: 0; border: 0; min-width: 0; }
.field__label { display: block; font-size: 1.125rem; font-weight: 500; line-height: 1.35; color: var(--ink); margin: 0 0 .375rem; padding: 0; }
.field__hint { font-size: 1rem; line-height: 1.45; color: var(--muted); margin: 0 0 .625rem; max-width: 40rem; }
.field__control.form-control, .field__control.custom-select {
  height: auto; min-height: 3rem; padding: .625rem .875rem; font-size: 1.0625rem; line-height: 1.4;
  color: var(--ink); background-color: var(--surface); border: 1.5px solid #8796a5; border-radius: 4px;
}
.field__control.custom-select { padding-right: 2.5rem; }
.field__control:focus { border-color: var(--gob-primary); box-shadow: 0 0 0 3px rgba(0,111,179,.25); outline: none; }
.field__control:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; box-shadow: none; }
.field--error > .field__control { border-color: var(--error); border-width: 2px; }
.field--error { padding-left: 1rem; border-left: 4px solid var(--error); }
.field__error { color: var(--error); font-weight: 500; font-size: 1rem; margin: 0 0 .5rem; }


.notice { background: #eef6fb; border-left: 4px solid var(--gob-primary); padding: 1rem 1.25rem; margin: 0 0 1.75rem; }
.notice p { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--ink); }
.notice strong { font-weight: 700; }

.error-summary { border: 3px solid var(--error); padding: 1.25rem 1.5rem; margin: 0 0 2.5rem; max-width: var(--measure); outline: none; }
.error-summary:focus { outline: 3px solid var(--focus); }
.error-summary__title { font-family: var(--sans); font-size: 1.25rem; font-weight: 700; margin: 0 0 .75rem; color: var(--ink); }
.error-summary ul { margin: 0; padding-left: 1.25rem; }
.error-summary li { margin: .25rem 0; }
.error-summary a { color: var(--error); font-weight: 500; }

.send-cards { display: grid; gap: 1rem; }
@media (min-width: 768px) { .send-cards { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.send-card { display: flex; flex-direction: column; border: 1.5px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; background: var(--surface); }
.send-card__title { font-family: var(--sans); font-size: 1.25rem; font-weight: 700; margin: 0 0 .5rem; color: var(--ink); }
.send-card p { color: var(--ink-2); font-size: 1rem; line-height: 1.55; margin: 0 0 1.25rem; }
.send-card__btn { margin-top: auto; width: 100%; justify-content: center; text-align: center; }
/* Beside ClaveÚnica's button, the anonymous one is drawn like it, without the isotipo:
   48 px, square corners, Roboto bold 16 px, its colours. Contrast mode keeps its own. */
.send-cards:has(.btn-cu) .btn-cta { min-height: 48px; padding: 8px 14px; border-radius: 0; font-size: 1rem; font-weight: 700; line-height: 2rem; letter-spacing: normal; }
.send-cards:has(.btn-cu) .btn-cta:focus { outline: none; }
.send-cards:has(.btn-cu) .btn-cta:focus-visible { outline: 4px solid #ffbe5c; outline-offset: 0; box-shadow: none; }
:root:not(.a11y-contrast) .send-cards:has(.btn-cu) .btn-cta { background: #0f69c4; }
:root:not(.a11y-contrast) .send-cards:has(.btn-cu) .btn-cta:hover, :root:not(.a11y-contrast) .send-cards:has(.btn-cu) .btn-cta:focus { background: #0b4e91; }
:root:not(.a11y-contrast) .send-cards:has(.btn-cu) .btn-cta:active { background: #07305a; }

/* ClaveÚnica's button, as the PDF «Guía Botón ClaveÚnica» v2.0 draws it, after
   convenios-uploader: square corners, Roboto bold 16 px, 48 px high, 8 px 14 px of
   padding, the PDF's white isotipo, 4 px between it and the text, #0f69c4. Its code on
   wikiguias.digital.gob.cl/Manuales/BotónCU differs; the PDF is followed. Our own labels
   (the form's reads only «ClaveÚnica»). */
.btn-cu {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Roboto", sans-serif; font-weight: 700; text-align: center;
  text-decoration: none; user-select: none; border-radius: 0; border: 0; cursor: pointer;
}
.btn-cu:hover { text-decoration: none; }
.btn-cu .cl-claveunica { text-indent: -9999px; overflow: hidden; background: url("brand/cu-blanco.svg") no-repeat center; }
.btn-cu .cl-claveunica::before { content: none; }
/* The isotipo's margin is the PDF's 4 px between the elements: the text adds none. */
.btn-cu .texto { text-rendering: geometricPrecision; }
.btn-cu.btn-color-estandar, .btn-cu.btn-color-estandar:visited { background-color: #0f69c4; color: #fff; }
.btn-cu.btn-color-estandar:hover, .btn-cu.btn-color-estandar:focus { background-color: #0b4e91; color: #fff; }
/* The ring is for the keyboard; a click would flash it, the kit's own black one included. */
.btn-cu.btn-color-estandar:focus { outline: none; }
.btn-cu.btn-color-estandar:focus-visible { outline: 4px solid #ffbe5c; outline-offset: 0; box-shadow: none; }
/* After focus, which a click gives first, so that a press shows. */
.btn-cu.btn-color-estandar:active { background-color: #07305a; color: #fff; }
.btn-cu.btn-m { max-width: 100%; min-height: 48px; padding: 8px 14px; font-size: 1rem; line-height: 2rem; }
.btn-cu.btn-m .cl-claveunica { flex: 0 0 24px; width: 24px; height: 24px; background-size: 24px 24px; margin: auto 4px auto 0; }
/* On contrast mode's black, an edge keeps the button's shape. */
.a11y-contrast .btn-cu.btn-color-estandar { box-shadow: 0 0 0 2px #fff; }
/* A forced palette would leave the white isotipo on a light ground: the button keeps its own. */
@media (forced-colors: active) { .btn-cu { forced-color-adjust: none; } }


/* Report form, in Pacífico 4.1.0 (D10, revised 2026-11-23). Scoped to
   .pac: the header, the footer and every other page keep the look above.
   Tokens are Pacífico's semantic ones; sizes are in rem so the text-size
   buttons scale them. Desktop sizes from 600 px, mobile below. */
.pac {
  --pac-text: #333333;            /* text/default/default */
  --pac-bg: #ffffff;              /* background/default */
  --pac-bg-2: #f2f2f2;            /* background/secondary */
  --pac-border: #666666;          /* field border, 5.7:1 on white (prompt §0.2) */
  --pac-rule: #cccccc;            /* border/default/tertiary, decorative only */
  --pac-brand: #0046a8;           /* background/brand/default */
  --pac-brand-hover: #001773;     /* background/brand/default-hover */
  --pac-on-brand: #e7ecff;        /* text/brand/on-brand */
  --pac-brand-2: #e7ecff;         /* background/brand/secondary */
  --pac-link: #1d70b8; --pac-link-hover: #003078; --pac-link-visited: #4c2c92;
  --pac-focus: #ffbe5c; --pac-focus-edge: #333333;
  --pac-info-bg: #e3f2fd; --pac-info-text: #0d47a1; --pac-info-edge: #1565c0;
  --pac-warn-bg: #fffbeb; --pac-warn-text: #682d03; --pac-warn-edge: #975102;
  --pac-danger-bg: #ffd8d8; --pac-danger: #b0020a;
  --pac-ring: 0 0 0 3px var(--pac-focus), 0 0 0 5px var(--pac-focus-edge);
  color: var(--pac-text);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 1.1875rem; line-height: 1.5;  /* Body/Medium */
}
.a11y-contrast .pac {
  --pac-text: #ffffff; --pac-bg: #000000; --pac-bg-2: #1c1c1c; --pac-border: #cccccc; --pac-rule: #6b6b6b;
  --pac-brand: #ffe066; --pac-brand-hover: #ffffff; --pac-on-brand: #000000; --pac-brand-2: #002b45;
  --pac-link: #8fd1ff; --pac-link-hover: #b8e2ff; --pac-link-visited: #d4bff9; --pac-focus-edge: #ffffff;
  --pac-info-bg: #0d1f33; --pac-info-text: #ffffff; --pac-info-edge: #8fd1ff;
  --pac-warn-bg: #2b1d00; --pac-warn-text: #ffffff; --pac-warn-edge: #ffbe5c;
  --pac-danger-bg: #330003; --pac-danger: #ff8a8f;
}
/* The Kit sizes paragraphs itself; here they take the text style around them. */
.pac :where(p, li, label, legend) { font-size: inherit; line-height: inherit; }
/* Eight of the twelve columns at 1240 px, aligned left (prompt §0.3). */
.pac-col { max-width: 46.875rem; }
.pac a { color: var(--pac-link); text-decoration: underline; }
.pac a:hover { color: var(--pac-link-hover); }
.pac a:visited { color: var(--pac-link-visited); }
.pac a:focus-visible { outline: 3px solid transparent; background: var(--pac-focus); color: var(--pac-focus-edge); box-shadow: 0 3px 0 var(--pac-focus-edge); }

.pac-h1 { font-family: "Roboto Slab", Georgia, serif; font-weight: 400; font-size: 3rem; line-height: 1.2; margin: 0 0 1rem; color: var(--pac-text); }
.pac-lede { font-size: 1.5rem; line-height: 1.5; margin: 0 0 .5rem; }
.pac-intro { margin: 0 0 2.25rem; }
.pac-h2 { font-family: "Roboto", Arial, sans-serif; font-weight: 500; font-size: 2.25rem; line-height: 1.25; margin: 0 0 1.5rem; padding: 0 0 .75rem; border-bottom: 1px solid var(--pac-rule); color: var(--pac-text); }
.pac-h3 { font-family: "Roboto", Arial, sans-serif; font-weight: 500; font-size: 1.5rem; line-height: 1.3; margin: 0; color: var(--pac-text); }

.pac .form-section { border: 0; margin: 3rem 0 0; padding: 0; min-width: 0; }
.pac .form-section > legend { display: block; width: 100%; padding: 0; float: left; }
.pac .form-section > legend + * { clear: left; }
.pac .field { margin: 0 0 2.25rem; padding: 0; border: 0; min-width: 0; }
.pac .field > legend { float: left; width: 100%; padding: 0; }
.pac .field > legend + * { clear: left; }
.pac .field__label { display: block; font-size: 1.1875rem; font-weight: 700; line-height: 1.5; color: var(--pac-text); margin: 0 0 .5rem; }
.pac .field__optional { font-weight: 400; }
.pac .field__hint { font-size: 1rem; line-height: 1.5; color: var(--pac-text); margin: 0 0 .75rem; max-width: none; }
.pac .field__error { display: flex; align-items: flex-start; gap: .5rem; color: var(--pac-danger); font-size: 1.1875rem; font-weight: 700; margin: 0 0 .75rem; }
.pac .field__error .pac-icon { margin-top: .125rem; }
.pac .field--error { padding: 0; border: 0; }
.pac .field__counter { font-size: 1rem; color: var(--pac-text); margin: .5rem 0 0; text-align: left; }
.pac .field__counter.is-over { color: var(--pac-danger); font-weight: 700; }

.pac-icon { flex: none; width: 1.5rem; height: 1.5rem; }

/* Text-field, Select, Textarea and Searchbar */
.pac-input {
  display: block; width: 100%; min-height: 3rem; margin: 0; padding: .75rem; box-sizing: border-box;
  font: inherit; font-size: 1.1875rem; line-height: 1.5; color: var(--pac-text);
  background: var(--pac-bg); border: 1px solid var(--pac-border); border-radius: 4px;
}
.pac-input::placeholder { color: #666666; opacity: 1; }
.a11y-contrast .pac-input::placeholder { color: #bbbbbb; }
.pac-input:hover { border-color: var(--pac-text); }
.pac-input:focus { outline: 3px solid transparent; box-shadow: var(--pac-ring); border-color: var(--pac-focus-edge); }
.pac-textarea { min-height: 12rem; resize: vertical; }
.pac-select { appearance: auto; }
.field--error .pac-input { border: 2px solid var(--pac-danger); }
.pac-search { position: relative; }
.pac-search > .pac-icon { position: absolute; left: .75rem; top: .75rem; pointer-events: none; color: var(--pac-text); }
.pac-search .pac-input { padding-left: 3rem; }

/* Suggestions (ARIA combobox, JS only) */
.combo__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; max-height: 20rem; overflow-y: auto;
  margin: 0; padding: .25rem 0; list-style: none; background: var(--pac-bg);
  border: 1px solid var(--pac-border); border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.combo__list[hidden] { display: none; }
.combo__option { padding: .75rem; cursor: pointer; font-size: 1.1875rem; line-height: 1.4; color: var(--pac-text); }
.combo__option small { display: block; font-size: 1rem; margin-top: .125rem; }
.combo__option[aria-selected="true"], .combo__option:hover { background: var(--pac-brand-2); }
.combo__option.is-active { background: var(--pac-brand); color: var(--pac-on-brand); }
.combo__status { padding: .75rem; font-size: 1rem; }
.combo__status--excluded { background: var(--pac-warn-bg); color: var(--pac-warn-text); }

/* Checkbox and Radiobutton: the native controls in brand colour, so
   forced colours and contrast mode draw them; the whole row is the label
   and at least 44 px high. */
.pac-options { display: grid; gap: .25rem; }
.pac-option { position: relative; display: flex; align-items: flex-start; }
.pac-option input { flex: none; width: 1.5rem; height: 1.5rem; margin: .625rem 0 0; accent-color: var(--pac-brand); cursor: pointer; }
.pac-option label { flex: 1; min-height: 2.75rem; margin: 0; padding: .5rem 0 .5rem .75rem; line-height: 1.5; cursor: pointer; color: var(--pac-text); }
.pac-option input:focus-visible { outline: 3px solid transparent; box-shadow: var(--pac-ring); border-radius: 2px; }

/* Radiobutton Card, the topics only: two columns, one on phones. */
.pac-cards { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pac-option--card { align-items: stretch; }
.pac-option--card input { position: absolute; left: 1rem; top: 1rem; margin: 0; }
.pac-option--card label {
  display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1rem 1rem 3.25rem;
  border: 1px solid var(--pac-border); border-radius: 8px; background: var(--pac-bg);
}
.pac-option--card label:hover { border-color: var(--pac-text); }
.pac-option--card input:checked + label { border: 2px solid var(--pac-brand); padding: calc(1rem - 1px) calc(1rem - 1px) calc(1rem - 1px) calc(3.25rem - 1px); background: var(--pac-brand-2); }
.pac-option--card input:focus-visible { box-shadow: none; }
.pac-option--card input:focus-visible + label { box-shadow: var(--pac-ring); }
.pac-option__title { font-weight: 700; }
.pac-option__text { font-size: 1rem; }
.field--error .pac-option--card label { border-color: var(--pac-danger); }

/* Problem groups */
.problem-group { margin-top: 1.5rem; }
.problem-group[hidden] { display: none; }
.problem-group__title { font-size: 1rem; font-weight: 700; margin: 0 0 .25rem; color: var(--pac-text); }
.problem-group__note { margin: 1.5rem 0 0; padding: 1rem; background: var(--pac-bg-2); border-radius: 8px; font-size: 1rem; color: var(--pac-text); }
.problem-group__note[hidden] { display: none; }

/* Alert: info, warning and error. One message each; warnings in a field
   can be closed for the rest of the page view. */
.pac-alert { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 1.5rem; margin: 0 0 2.25rem; border-left: 4px solid; border-radius: 8px; font-size: 1.1875rem; }
.pac-alert[hidden] { display: none; }
.pac-alert--info { background: var(--pac-info-bg); color: var(--pac-info-text); border-color: var(--pac-info-edge); }
.pac-alert--warning { background: var(--pac-warn-bg); color: var(--pac-warn-text); border-color: var(--pac-warn-edge); }
.pac-alert--error { background: var(--pac-danger-bg); color: var(--pac-danger); border-color: var(--pac-danger); }
.pac-alert--field { margin: 1rem 0 0; }
#data-notice { margin: 0 0 1rem; }
.pac-alert__body { flex: 1; min-width: 0; }
.pac-alert__body p { margin: 0; }
.pac-alert__body p + p { margin-top: .25rem; }
.pac-alert__title { font-weight: 700; }
.pac-alert ul { margin: .5rem 0 0; padding-left: 1.25rem; }
.pac-alert li + li { margin-top: .5rem; }
.pac-alert .pac-icon { margin-top: .125rem; }
.pac-alert__close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; margin: -.625rem -1rem -.625rem 0; padding: 0; border: 0; border-radius: 4px; background: transparent; color: inherit; cursor: pointer; }
.pac-alert__close[hidden] { display: none; }
.pac-alert__close:hover { background: rgba(0,0,0,.06); }
.pac-alert__close:focus-visible { outline: 3px solid transparent; box-shadow: var(--pac-ring); }
.pac .error-summary { border-width: 0 0 0 4px; max-width: none; }
.pac .error-summary:focus { box-shadow: var(--pac-ring); outline: 3px solid transparent; }
.pac .error-summary__title { font-size: 1.1875rem; font-weight: 700; margin: 0; color: inherit; }
.pac .error-summary a, .pac .error-summary a:visited { color: inherit; font-weight: 400; }

/* ¿Cómo quieres enviarlo? */
.pac-send__intro { margin: 0 0 1.5rem; }
.pac-send { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pac-send__card { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; border: 1px solid var(--pac-rule); border-radius: 8px; background: var(--pac-bg); min-width: 0; overflow-wrap: anywhere; }
.pac-send__card ul { margin: 0; padding-left: 1.25rem; font-size: 1.1875rem; }
.pac-send__card li + li { margin-top: .5rem; }
.pac-send__action { margin-top: auto; padding-top: .5rem; }
.pac-send__lead { margin: 0 0 .5rem; font-weight: 700; }
.pac-send__note { margin: 1.5rem 0 0; font-size: 1rem; }
.pac .send-card__btn { width: auto; margin: 0; }
.pac .btn-cu.send-card__btn { width: 100%; }
.pac .send-status { font-size: 1.1875rem; color: var(--pac-text); }

/* Button, primary: one per page. As wide as its text on desktop, full width on phones. */
.pac-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .5rem 1.5rem;
  font: inherit; font-size: 1.1875rem; font-weight: 500; line-height: 1.5; text-align: center;
  color: var(--pac-on-brand); background: var(--pac-brand); border: 0; border-radius: 4px; cursor: pointer;
}
.pac-btn:hover { background: var(--pac-brand-hover); }
.pac-btn:focus { outline: 3px solid transparent; }
.pac-btn:focus-visible { box-shadow: var(--pac-ring); }
.a11y-contrast .pac-btn:hover { color: #000; }
@media (forced-colors: active) {
  .pac-btn { border: 2px solid ButtonText; }
  .pac-alert, .pac-send__card, .pac-option--card label { border: 1px solid CanvasText; }
  .pac-option--card input:checked + label { border-width: 3px; }
}

@media (max-width: 599px) {
  .pac { font-size: 1rem; }
  .pac-h1 { font-size: 2rem; }
  .pac-lede { font-size: 1.125rem; font-weight: 500; }
  .pac-h2 { font-size: 1.5rem; }
  .pac-h3 { font-size: 1.125rem; }
  .pac .field__label, .pac .field__error, .pac-input, .pac-alert, .pac-send__card ul, .combo__option, .pac-btn, .pac .error-summary__title { font-size: 1rem; }
  .pac .field__hint, .pac .field__counter, .pac-option__text, .problem-group__title, .problem-group__note, .pac-send__note, .combo__option small { font-size: .875rem; }
  .pac-option label { font-size: 1rem; }
  .pac-option input { margin-top: .5rem; }
  .pac-cards, .pac-send { grid-template-columns: minmax(0, 1fr); }
  .pac-alert { padding: 1rem; gap: .75rem; }
  .pac-send__card { padding: 1rem; }
  .pac .send-card__btn { width: 100%; }
  .pac .form-section { margin-top: 2.25rem; }
}

/* Confirmation */
.page--confirm .container > * { max-width: var(--measure); }
.confirm-mark { color: var(--ok); margin-bottom: 1.5rem; }
.code-card { border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.75rem 1.5rem; margin: 2rem 0; }
.code-card__label { margin: 0 0 .5rem; font-size: 1rem; color: var(--ink-2); }
.code-card__code { margin: 0 0 1rem; }
.code-card__value {
  font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace; font-size: clamp(1.75rem, 7vw, 2.75rem);
  font-weight: 700; letter-spacing: .06em; color: var(--ink); word-break: keep-all; white-space: nowrap;
}
.code-card__warn { margin: 0 0 1.25rem; color: var(--ink-2); }
.code-card__warn strong { color: var(--ink); }
.code-card__actions { margin: 0; }
.btn-secondary-pill {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 3rem; padding: 0 1.25rem;
  background: var(--surface); color: var(--gob-primary); border: 2px solid var(--gob-primary); border-radius: var(--radius-pill);
  font-size: 1rem; font-weight: 500; cursor: pointer;
}
.btn-secondary-pill:hover { background: #eef6fb; }
.facts { margin: 0 0 2rem; padding-left: 1.25rem; }
.facts li { margin: 0 0 .75rem; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.55; }
.facts strong { color: var(--ink); }
.confirm-links { font-size: 1.0625rem; }
.a11y-contrast .notice { background: #002b45; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.error-summary--notice { border-color: #c88a00; }
.error-summary--notice .error-summary__title { margin: 0; font-size: 1.125rem; font-weight: 500; }

/* Status lookup */
.page--narrow .container > * { max-width: 36rem; }
.lookup { margin: 0 0 2rem; }
.lookup .btn-cta { min-width: 12rem; }
.field__control--code { font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace; font-size: 1.375rem !important; letter-spacing: .08em; text-transform: uppercase; max-width: 20rem; }
.field__control--code::placeholder { color: #8796a5; letter-spacing: .08em; }
.lookup__note { color: var(--muted); font-size: 1rem; }
.status-card { border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.5rem; margin: 0 0 2.5rem; outline: none; }
.status-card__code { font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: .9375rem; color: var(--muted); margin: 0 0 .5rem; letter-spacing: .04em; }
.status-card__state { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 5vw, 2.25rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5rem; color: var(--ink); }
.status-card__detail { color: var(--ink-2); margin: 0 0 1.25rem; font-size: 1.0625rem; }
.status-card__facts { display: grid; gap: .75rem; margin: 0; padding-top: 1rem; border-top: 1px solid var(--rule); }
@media (min-width: 480px) { .status-card__facts { grid-template-columns: 1fr 1fr; } }
.status-card__facts dt { font-size: .875rem; font-weight: 400; color: var(--muted); }
.status-card__facts dd { margin: 0; font-weight: 500; color: var(--ink); }
/* Containers that receive focus by script (results, summaries) keep their
   own border as the cue, not the control focus ring. */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }
.error-summary:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.send-status { margin: 1rem 0 0; font-weight: 500; color: var(--ink); min-height: 1.5em; }
.send-card__btn[aria-disabled="true"] { opacity: .65; cursor: progress; }

/* Statistics (D8). Categorical palette validated for CVD separation and
   contrast: light on white, and its own steps for contrast mode. */
:root { --s1: #006fb3; --s2: #e0701e; --s3: #7a4fb3; --sx: #8796a5; --grid: #e6e9ec; }
.a11y-contrast { --s1: #3d8fd6; --s2: #d0702a; --s3: #9a72d6; --sx: #9aa5b1; --grid: #333; }
.page--stats .page-lede { margin-bottom: 1rem; }
.stats-note { max-width: var(--measure); background: var(--band); border-left: 4px solid var(--gob-primary); padding: .875rem 1.125rem; margin: 0 0 2rem; font-size: 1rem; }
.stats-note strong { font-weight: 500; color: var(--ink); }
.stats-until { color: var(--muted); margin: 0 0 1.25rem; }
.stats-section { margin: 3rem 0 0; }
.stats-sub { color: var(--muted); font-size: .9375rem; margin: -.75rem 0 1rem; max-width: var(--measure); }
.stats-grid { display: grid; gap: 0 3rem; }
@media (min-width: 992px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
.section-title--sm { font-size: clamp(1.5rem, 3vw, 1.875rem); margin-bottom: 1rem; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0 0 1rem; padding: 0; font-size: .9375rem; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: .5rem; }
.legend__sw { width: .875rem; height: .875rem; border-radius: 3px; display: inline-block; }
.legend__sw.s1 { background: var(--s1); } .legend__sw.s2 { background: var(--s2); } .legend__sw.s3 { background: var(--s3); }
.legend__sw.sx { background: repeating-linear-gradient(45deg, var(--sx) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--sx); }
.chart { margin: 0; max-width: 760px; }
.chart__svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart__grid { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart__tick { fill: var(--muted); font-family: var(--sans); font-size: 11px; font-variant-numeric: tabular-nums; }
.seg { transition: opacity .12s ease; }
.seg.s1 { fill: var(--s1); } .seg.s2 { fill: var(--s2); } .seg.s3 { fill: var(--s3); } .seg.sx { fill: url(#hatch); }
.sx-bg { fill: var(--surface); } .sx-line { stroke: var(--sx); stroke-width: 3; }
.chart__col:hover .seg { opacity: .85; }
.chart__col .seg:hover { opacity: 1; }
.data-table { margin: 1rem 0 0; max-width: 760px; }
.data-table summary { cursor: pointer; color: var(--gob-primary); font-weight: 500; min-height: 2.75rem; display: inline-flex; align-items: center; }
.table-wrap { overflow-x: auto; }
.data-table table { width: 100%; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; margin-top: .5rem; }
.data-table th, .data-table td { padding: .5rem .75rem; border-bottom: 1px solid var(--rule); text-align: right; white-space: nowrap; }
.data-table th[scope=row], .data-table thead th:first-child { text-align: left; font-weight: 500; }
.data-table thead th { color: var(--muted); font-weight: 500; font-size: .8125rem; }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; max-width: 760px; }
.hbars__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label value" "bar bar"; gap: .375rem .75rem; align-items: baseline; }
.hbars__label { grid-area: label; color: var(--ink); font-size: 1rem; }
.hbars__value { grid-area: value; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hbars__track { grid-area: bar; display: block; width: 100%; height: .625rem; background: var(--band); border-radius: 4px; overflow: hidden; }
.hbars__bar { fill: var(--s1); }
.stats-download { margin: 3rem 0 1rem; }
/* On narrow screens the chart keeps legible text and scrolls inside its
   own frame instead of shrinking. */
@media (max-width: 575px) {
  .chart { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: .5rem; }
  .chart__svg { min-width: 540px; }
  .stat-cards { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .stat-cards .stat-card:first-child { grid-column: 1 / -1; }
  .stat-card { padding: 1rem 1.125rem; }
}
.stat-card__small { font-family: var(--sans); font-size: 1rem; letter-spacing: 0; color: var(--ink-2); }
.stats-h3 { font-family: var(--sans); font-size: 1.125rem; font-weight: 700; margin: 2rem 0 .75rem; color: var(--ink); }
.stats-sub--h3 { margin-top: -.5rem; }
.month-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; padding: 0; }
.month-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .875rem; border: 1.5px solid var(--rule); border-radius: var(--radius-pill); color: var(--ink); text-decoration: none; font-size: .9375rem; }
.month-nav a:hover { border-color: var(--gob-primary); color: var(--gob-primary); }
.month-nav a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); font-weight: 500; }

/* Files */
.send-cards--stack { max-width: var(--measure); }
.my-reports-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.my-reports-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; max-width: var(--measure); }
.my-reports-list .status-card { margin: 0; border-width: 1.5px; border-color: var(--rule); }
.my-reports-message { margin: 0 0 1rem; padding: .75rem 1rem; background: var(--band); border-left: 4px solid var(--gob-primary); }
.my-reports-message p { margin: 0 0 .25rem; color: var(--ink); }
.my-reports-message footer { font-size: .875rem; color: var(--muted); }
.status-card__meta { font-size: .9375rem; color: var(--muted); margin: 0 0 .5rem; }

/* Reflow at 320 px with text at 150% (WCAG 1.4.4, 1.4.10): grid children
   may shrink below their content, and long words may break. */
.stat-cards > *, .send-cards > *, .site-footer__grid > *, .stats-grid > * { min-width: 0; }
.send-card, .site-footer, .page-title, .display { overflow-wrap: anywhere; }
/* A figure never splits across lines. */
.stat-card__value { white-space: nowrap; }
@media (max-width: 991px) {
  .stat-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); }
}
@media (max-width: 575px) {
  .send-card { padding: 1.25rem 1rem; }
  .btn-cta { padding-left: 1rem; padding-right: 1rem; }
}

/* Institutional mark: the official Secretaría de Gobierno Digital and
   Ministerio de Hacienda lockup, as an image (its text is part of a logo). */
.brand { display: inline-flex; flex: none; line-height: 0; }
.brand__logo { display: block; width: auto; height: 52px; max-width: 100%; }
.brand__logo--white { display: none; }
.a11y-contrast .brand__logo--color { display: none; }
.a11y-contrast .brand__logo--white { display: block; }
.site-footer__logo .brand__logo { height: 60px; }
@media (max-width: 340px) { .site-header .brand__logo { height: 46px; } }

/* Landing scenes: real interface cards that act out each step, in the
   page's own type. Built in HTML and CSS (no video, no requests). Each
   scene is sized in units of its own width (--u), so it scales like an
   image. Its static state is the finished step; motion only plays under
   prefers-reduced-motion: no-preference, with JS (which shows the pause
   button), and app.js pauses each scene while it is off screen. */
.hero__text { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero .display { max-width: 16ch; margin-left: auto; margin-right: auto; }
.hero .lede { margin-left: auto; margin-right: auto; }
.hero__scene { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.hero .assurances { margin-left: auto; margin-right: auto; }

.scene {
  --scene-ink: #0b1b33; --scene-soft: #5b6670; --scene-border: #dfe4eb;
  --scene-navy: #0a2d5e; --scene-off: #c4ccd8; --scene-ok: #2d717c; --scene-card: #fff;
  position: relative; margin: 0; overflow: hidden; border-radius: clamp(20px, 3vw, 40px);
}
.scene--blue { background: linear-gradient(165deg, #dcebfa 0%, #eef5fd 60%, #f5f9fe 100%); }
.scene--grey { background: linear-gradient(165deg, #e2e6ed 0%, #eef0f4 60%, #f4f5f8 100%); }
.scene__canvas {
  container-type: inline-size; aspect-ratio: 5 / 4; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--sans); color: var(--scene-ink); line-height: 1.25;
}
.scene__canvas > * { --u: 1cqi; }
.scene--wide .scene__canvas { aspect-ratio: 16 / 10; justify-content: flex-start; }
.scene--wide .mock-card { margin-top: calc(var(--u) * 9); }
.scene--wide .scene__canvas > * { --u: .56cqi; }
.scene--tall .scene__canvas { aspect-ratio: 4 / 5; }
@media (max-width: 767px) {
  .scene--wide .scene__canvas { aspect-ratio: 4 / 5; }
  .scene--wide .mock-card { margin-top: calc(var(--u) * 8); }
  .scene--wide .scene__canvas > * { --u: 1cqi; }
}
.scene p { margin: 0; color: inherit; line-height: inherit; max-width: none; }

.mock-card {
  width: calc(var(--u) * 80); padding: calc(var(--u) * 5); border-radius: calc(var(--u) * 4.5);
  background: var(--scene-card);
  box-shadow: 0 calc(var(--u) * 3) calc(var(--u) * 8) rgba(16, 30, 60, .12), 0 calc(var(--u) * .3) calc(var(--u) * 1) rgba(16, 30, 60, .06);
}
.scene--wide .mock-card { width: calc(var(--u) * 84); }
.mock-card__title { font-size: calc(var(--u) * 4.6); font-weight: 500; letter-spacing: -.01em; }
.mock-card__note { font-size: calc(var(--u) * 3); color: var(--scene-soft); }

.mock-row {
  display: flex; align-items: center; justify-content: space-between; gap: calc(var(--u) * 3);
  margin-top: calc(var(--u) * 2.4); padding: calc(var(--u) * 2.6) calc(var(--u) * 3.6);
  border: max(1px, calc(var(--u) * .25)) solid var(--scene-border); border-radius: calc(var(--u) * 3.4);
}
.mock-row__text { display: flex; flex-direction: column; gap: calc(var(--u) * .5); min-width: 0; font-size: calc(var(--u) * 3.6); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-row__label { font-size: calc(var(--u) * 2.6); font-weight: 400; color: var(--scene-soft); }
.chevron { flex: none; width: calc(var(--u) * 2); height: calc(var(--u) * 2); border-right: calc(var(--u) * .55) solid currentColor; border-bottom: calc(var(--u) * .55) solid currentColor; rotate: 45deg; translate: 0 calc(var(--u) * -.6); }
.chevron--left { rotate: 135deg; translate: calc(var(--u) * .5) 0; }
.mock-card__actions { display: flex; justify-content: space-between; align-items: center; margin-top: calc(var(--u) * 4); }
.btn-back { display: inline-flex; align-items: center; justify-content: center; width: calc(var(--u) * 11); height: calc(var(--u) * 11); border-radius: 50%; background: #eef1f5; }
.btn-send { display: inline-flex; align-items: center; height: calc(var(--u) * 11); padding: 0 calc(var(--u) * 7); border-radius: 999px; background: var(--scene-navy); color: #fff; font-size: calc(var(--u) * 3.8); font-weight: 500; }

.popup {
  position: absolute; left: 50%; bottom: calc(var(--u) * 6); translate: -50% 0;
  display: flex; align-items: center; gap: calc(var(--u) * 2.6); white-space: nowrap;
  padding: calc(var(--u) * 2.4) calc(var(--u) * 6) calc(var(--u) * 2.4) calc(var(--u) * 2.6);
  background: var(--scene-card); border: max(1px, calc(var(--u) * .25)) solid #cfd5de; border-radius: 999px;
  box-shadow: 0 calc(var(--u) * 2) calc(var(--u) * 6) rgba(16, 30, 60, .12);
}
.popup__text { display: flex; flex-direction: column; gap: calc(var(--u) * .4); font-size: calc(var(--u) * 3.4); }
.popup__text strong { font-weight: 500; }
.scene-code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: calc(var(--u) * 2.9); letter-spacing: .06em; color: var(--scene-soft); }
.check { position: relative; flex: none; display: block; width: calc(var(--u) * 7); height: calc(var(--u) * 7); border-radius: 50%; background: var(--scene-ok); }
.check::after { content: ""; position: absolute; left: 36%; top: 22%; width: 22%; height: 40%; border-right: calc(var(--u) * .7) solid #fff; border-bottom: calc(var(--u) * .7) solid #fff; rotate: 45deg; }
.check--large { width: calc(var(--u) * 13); height: calc(var(--u) * 13); margin: 0 auto calc(var(--u) * 3.4); }
.check--large::after { border-width: 0 calc(var(--u) * 1.1) calc(var(--u) * 1.1) 0; }

/* Step 1: writing */
.written { margin-top: calc(var(--u) * 3.4) !important; font-size: calc(var(--u) * 4.4); line-height: 1.4; }
.typed-line { display: block; width: fit-content; white-space: nowrap; }
.mock-card__footer { display: flex; justify-content: flex-end; align-items: center; margin-top: calc(var(--u) * 6); }
.btn-arrow { display: inline-flex; align-items: center; justify-content: center; width: calc(var(--u) * 11); height: calc(var(--u) * 11); border-radius: 50%; background: var(--scene-navy); color: #fff; }
.arrow-icon::before { content: "→"; font-size: calc(var(--u) * 5); line-height: 1; }

/* Step 2: choosing */
.options { position: relative; display: grid; gap: calc(var(--u) * 3); width: calc(var(--u) * 80); }
.option { display: flex; align-items: center; gap: calc(var(--u) * 3.6); padding: calc(var(--u) * 5); border-radius: calc(var(--u) * 4.5); background: var(--scene-card); box-shadow: 0 calc(var(--u) * 2) calc(var(--u) * 6) rgba(16, 30, 60, .1); }
.option__text { display: flex; flex-direction: column; gap: calc(var(--u) * .8); }
.option__text strong { font-size: calc(var(--u) * 4.4); font-weight: 500; }
.option__text span { font-size: calc(var(--u) * 3.2); color: var(--scene-soft); }
.radio { position: relative; flex: none; width: calc(var(--u) * 5.6); height: calc(var(--u) * 5.6); border-radius: 50%; border: calc(var(--u) * .6) solid var(--scene-navy); }
.radio::after { content: ""; position: absolute; inset: 18%; border-radius: 50%; background: var(--scene-navy); scale: 0; }
.op-1 .radio::after { scale: 1; }
.options__ring { position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: calc((100% - var(--u) * 3) / 2); border: calc(var(--u) * .7) solid var(--scene-navy); border-radius: calc(var(--u) * 4.5); pointer-events: none; }

/* Step 3: the receipt */
.mock-card--center { text-align: center; }
.mock-card--center .mock-card__note { margin-top: calc(var(--u) * 2) !important; }
.scene-code--large { width: fit-content; margin-left: auto; margin-right: auto; white-space: nowrap; margin-top: calc(var(--u) * 1) !important; font-size: calc(var(--u) * 6); font-weight: 700; color: var(--scene-ink); }
.deadline { margin-top: calc(var(--u) * 6); text-align: left; }
.deadline__bar { display: block; height: calc(var(--u) * 1.8); border-radius: 999px; background: #e6ebf2; overflow: hidden; }
.deadline__fill { display: block; height: 100%; border-radius: inherit; background: var(--scene-navy); transform-origin: 0 50%; }
.deadline__text { display: block; margin-top: calc(var(--u) * 2); font-size: calc(var(--u) * 3); color: var(--scene-soft); }

/* After: what the institution receives */
.mock-card--small { padding: calc(var(--u) * 5) calc(var(--u) * 5.4); }
.datum { display: flex; justify-content: space-between; align-items: baseline; gap: calc(var(--u) * 3); margin-top: calc(var(--u) * 2.6) !important; font-size: calc(var(--u) * 3.5); font-weight: 500; white-space: nowrap; }
.datum span { font-size: calc(var(--u) * 3); font-weight: 400; color: var(--scene-soft); }
.scene .datum--ok { color: var(--scene-ok); }
.connector { position: relative; width: calc(var(--u) * .5); height: calc(var(--u) * 12); background: #c3cad5; }
.connector__dot { position: absolute; left: 50%; top: 50%; width: calc(var(--u) * 3.2); height: calc(var(--u) * 3.2); border-radius: 50%; background: var(--scene-navy); translate: -50% -50%; opacity: 0; }

/* Steps as large alternating rows */
.steps--scenes { gap: clamp(3.5rem, 8vw, 7rem); }
.steps--scenes li { display: grid; gap: 1.75rem; align-items: center; border-top: 0; padding-top: 0; }
.steps--scenes li > * { min-width: 0; }
@media (min-width: 992px) {
  .steps--scenes li { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 4.5rem; }
  .steps--scenes li:nth-child(even) .steps__text { order: 2; }
}
.steps--scenes .steps__n { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--gob-primary); color: #fff; font-family: var(--sans); font-weight: 500; margin-bottom: 1.25rem; }
.steps--scenes h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 1rem; }
.steps--scenes .steps__text p { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.5; max-width: 30rem; }

.after { display: grid; gap: 2.5rem; align-items: center; }
.after .mock-card--small { width: calc(var(--u) * 86); }
.after > * { min-width: 0; }
.after__scene { width: 100%; max-width: 28rem; margin: 0 auto; }
@media (min-width: 992px) { .after { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; } .after__scene { max-width: none; } }

/* Pause control (WCAG 2.2.2) */
.scene__pause { position: absolute; right: .875rem; bottom: .875rem; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0; border-radius: 50%; border: 1px solid #5b6670; background: rgba(255, 255, 255, .92); color: var(--scene-ink); cursor: pointer; }
.scene__pause[hidden] { display: none; }
@media (max-width: 575px) { .js .scene:has(.scene__pause:not([hidden])) { padding-bottom: 3.5rem; } }
.scene__pause:hover { background: #fff; border-color: var(--scene-navy); }
.scene__icon { fill: currentColor; }
.scene__icon--play { display: none; }
.animation-paused .scene__icon--pause { display: none; }
.animation-paused .scene__icon--play { display: block; }

.closing { position: relative; overflow: hidden; }
.closing::after {
  content: ""; position: absolute; right: -2rem; top: 50%; width: min(26rem, 55vw); aspect-ratio: 1; translate: 0 -50%;
  background: radial-gradient(circle, #9cc0dc 1.6px, transparent 1.8px) 0 0 / 18px 18px;
  mask-image: radial-gradient(closest-side, #000 40%, transparent); -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent);
  opacity: .55; pointer-events: none;
}
.closing .container { position: relative; z-index: 1; }

/* Motion: 10 s loops that build the step, hold it (to 92%), then clear
   for the next pass. The static state, without motion, is the held step. */
@keyframes scene-row-1 { 0%, 4% { opacity: 0; translate: 0 calc(var(--u) * 2); } 9%, 92% { opacity: 1; translate: 0 0; } 97%, 100% { opacity: 0; } }
@keyframes scene-row-2 { 0%, 11% { opacity: 0; translate: 0 calc(var(--u) * 2); } 16%, 92% { opacity: 1; translate: 0 0; } 97%, 100% { opacity: 0; } }
@keyframes scene-row-3 { 0%, 18% { opacity: 0; translate: 0 calc(var(--u) * 2); } 23%, 92% { opacity: 1; translate: 0 0; } 97%, 100% { opacity: 0; } }
@keyframes scene-send { 0%, 28% { background: var(--scene-off); scale: 1; } 32% { background: var(--scene-navy); scale: 1; } 38% { scale: 1; } 40% { scale: .93; } 43%, 100% { background: var(--scene-navy); scale: 1; } }
@keyframes scene-popup { 0%, 43% { opacity: 0; translate: -50% calc(var(--u) * 5); } 49%, 92% { opacity: 1; translate: -50% 0; } 97%, 100% { opacity: 0; translate: -50% 0; } }
@keyframes scene-l1 { 0%, 4% { clip-path: inset(0 100% 0 0); } 18%, 92% { clip-path: inset(0 0 0 0); } 96%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes scene-l2 { 0%, 20% { clip-path: inset(0 100% 0 0); } 32%, 92% { clip-path: inset(0 0 0 0); } 96%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes scene-l3 { 0%, 34% { clip-path: inset(0 100% 0 0); } 45%, 92% { clip-path: inset(0 0 0 0); } 96%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes scene-arrow { 0%, 62% { background: var(--scene-off); } 66%, 92% { background: var(--scene-navy); } 97%, 100% { background: var(--scene-off); } }
@keyframes scene-ring { 0%, 40% { translate: 0 0; } 48%, 88% { translate: 0 calc(100% + var(--u) * 3); } 96%, 100% { translate: 0 0; } }
@keyframes scene-radio-1 { 0%, 42% { scale: 1; } 46%, 90% { scale: 0; } 96%, 100% { scale: 1; } }
@keyframes scene-radio-2 { 0%, 44% { scale: 0; } 50%, 88% { scale: 1; } 92%, 100% { scale: 0; } }
@keyframes scene-check { 0%, 5% { scale: 0; } 11% { scale: 1.15; } 14%, 92% { scale: 1; } 97%, 100% { scale: 0; } }
@keyframes scene-code { 0%, 16% { clip-path: inset(0 100% 0 0); } 34%, 92% { clip-path: inset(0 0 0 0); } 97%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes scene-deadline { 0%, 38% { scale: 0 1; } 80%, 92% { scale: 1 1; } 97%, 100% { scale: 0 1; } }
@keyframes scene-dot { 0%, 18% { top: 0; opacity: 0; } 22% { top: 0; opacity: 1; } 42% { top: 100%; opacity: 1; } 46%, 100% { top: 100%; opacity: 0; } }
@keyframes scene-datum-1 { 0%, 44% { opacity: 0; translate: 0 calc(var(--u) * 1.5); } 50%, 92% { opacity: 1; translate: 0 0; } 97%, 100% { opacity: 0; } }
@keyframes scene-datum-2 { 0%, 50% { opacity: 0; translate: 0 calc(var(--u) * 1.5); } 56%, 92% { opacity: 1; translate: 0 0; } 97%, 100% { opacity: 0; } }
@keyframes scene-datum-3 { 0%, 56% { opacity: 0; translate: 0 calc(var(--u) * 1.5); } 62%, 92% { opacity: 1; translate: 0 0; } 97%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  .js .scene-hero .mock-row-1 { animation: scene-row-1 10s ease-out infinite; }
  .js .scene-hero .mock-row-2 { animation: scene-row-2 10s ease-out infinite; }
  .js .scene-hero .mock-row-3 { animation: scene-row-3 10s ease-out infinite; }
  .js .scene-hero .btn-send { animation: scene-send 10s ease-out infinite; }
  .js .scene-hero .popup { animation: scene-popup 10s cubic-bezier(.2, .8, .3, 1) infinite; }
  .js .scene-step1 .l1 { animation: scene-l1 10s steps(26, end) infinite; }
  .js .scene-step1 .l2 { animation: scene-l2 10s steps(22, end) infinite; }
  .js .scene-step1 .l3 { animation: scene-l3 10s steps(22, end) infinite; }
  .js .scene-step1 .btn-arrow { animation: scene-arrow 10s ease-out infinite; }
  .js .scene-step2 .options__ring { animation: scene-ring 8s cubic-bezier(.6, 0, .2, 1) infinite; }
  .js .scene-step2 .op-1 .radio::after { animation: scene-radio-1 8s ease-out infinite; }
  .js .scene-step2 .op-2 .radio::after { animation: scene-radio-2 8s ease-out infinite; }
  .js .scene-step3 .check { animation: scene-check 10s ease-out infinite; }
  .js .scene-step3 .scene-code--large { animation: scene-code 10s steps(14, end) infinite; }
  .js .scene-step3 .deadline__fill { animation: scene-deadline 10s ease-in-out infinite; }
  .js .scene-after .connector__dot { animation: scene-dot 10s ease-in-out infinite; }
  .js .scene-after .d-1 { animation: scene-datum-1 10s ease-out infinite; }
  .js .scene-after .d-2 { animation: scene-datum-2 10s ease-out infinite; }
  .js .scene-after .d-3 { animation: scene-datum-3 10s ease-out infinite; }
  .animation-paused .scene *, .animation-paused .scene *::after,
  .scene.offscreen *, .scene.offscreen *::after { animation-play-state: paused !important; }

  .js .reveal { opacity: 0; translate: 0 1.5rem; transition: opacity .7s ease, translate .7s cubic-bezier(.2, .8, .3, 1); }
  .js .reveal.visible { opacity: 1; translate: 0 0; }
  .js .stat-card:nth-child(2), .js .timeline li:nth-child(2) { transition-delay: .12s; }
  .js .stat-card:nth-child(3), .js .timeline li:nth-child(3) { transition-delay: .24s; }
  .js .timeline li:nth-child(4) { transition-delay: .36s; }
  .js .timeline li:nth-child(5) { transition-delay: .48s; }
}

/* Contrast mode */
.a11y-contrast .scene { --scene-ink: #fff; --scene-soft: #d0d0d0; --scene-border: #777; --scene-navy: #ffe066; --scene-off: #555; --scene-ok: #7fd3c1; --scene-card: #000; }
.a11y-contrast .scene--blue, .a11y-contrast .scene--grey { background: #1c1c1c; }
.a11y-contrast .mock-card, .a11y-contrast .option, .a11y-contrast .popup { border: 1px solid #888; box-shadow: none; }
.a11y-contrast .btn-send, .a11y-contrast .btn-arrow { color: #000; }
.a11y-contrast .btn-back, .a11y-contrast .deadline__bar { background: #333; }
.a11y-contrast .check::after { border-color: #000; }
.a11y-contrast .connector { background: #666; }
.a11y-contrast .scene__pause { background: #000; color: #fff; border-color: #fff; }
@media print { .js .reveal { opacity: 1; translate: none; } }

/* CasillaÚnica page (D11) */
.casillaunica-steps { margin: 0 0 1.5rem; padding-left: 1.25rem; color: var(--ink-2); }
.casillaunica-steps li { margin: .375rem 0; line-height: 1.5; }
.casillaunica-go { margin-bottom: .75rem; text-decoration: none; }
.casillaunica-leave { max-width: var(--measure); margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.casillaunica-leave p { margin: 0 0 1rem; color: var(--ink-2); }

/* While app.js checks CasillaÚnica (D11): a waiting line instead of the
   «Ya activé» button. Without JavaScript the button stays. */
.casillaunica-wait { display: flex; flex-direction: column; flex: 1; }
.casillaunica-if-polling { display: none; }
.casillaunica--polling .casillaunica-if-polling { display: inline; }
.casillaunica--polling .casillaunica-if-not-polling, .casillaunica--polling .casillaunica-done { display: none; }
.casillaunica-status { display: flex; align-items: center; gap: .75rem; margin: .75rem 0 0; padding: .875rem 1rem; border-radius: var(--radius); background: #eef6fb; color: var(--ink); font-weight: 500; }
.casillaunica-status[hidden] { display: none; }
.casillaunica-status__icon { flex: none; width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 3px solid #b9d3e6; border-top-color: var(--gob-primary); animation: casillaunica-spin 1s linear infinite; }
.casillaunica-status--ready .casillaunica-status__icon { animation: none; border-color: var(--ok); background: var(--ok); }
@keyframes casillaunica-spin { to { rotate: 360deg; } }
.a11y-contrast .casillaunica-status { background: #000; border: 1px solid #fff; }
.casillaunica-remaining { display: block; margin-top: .5rem; color: var(--ink); font-weight: 600; }
/* Invitations to CasillaÚnica (D11): the landing and the anonymous confirmation. */
.casillaunica-invite { max-width: var(--measure); margin: 0 0 2rem; padding: 1.5rem; border: 1.5px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.casillaunica-invite__title { font-family: var(--sans); font-size: 1.25rem; font-weight: 700; margin: 0 0 .5rem; color: var(--ink); }
.casillaunica-invite p { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.55; margin: 0 0 1.25rem; }
.casillaunica-invite .btn-secondary-pill { text-decoration: none; }
.casillaunica-invite--home { margin: 0; padding: 0; border: 0; background: none; }
.casillaunica-invite--home .section-title { margin-bottom: 1rem; }
