/* ==========================================================================
   Pico y Placa — Registro de Restricción
   Mundo: documentos oficiales de tránsito (licencia, RUNT, sello).
   El mundo aporta tipografía, paleta, densidad y un gesto: la ficha de
   registro. La navegación y los controles son los estándar de la web.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Martian Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/martian-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ground: #edf2f0;
  --paper: #f8fbf9;
  --ink: #101a18;
  --ink-soft: #2b3b37;
  --muted: #4c625d;
  --rule: #9db8b1;
  --rule-soft: #d3e0dc;
  --accent: #5b4b8a;
  --restricted: #a8231c;
  --restricted-tint: #fbeeec;
  --free: #14603a;
  --free-tint: #e8f3ec;
  --unknown: #6d5210;
  --unknown-tint: #f8f0dd;

  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Escala. Cinco pasos, no veinte. */
  --fs-meta: 12px;      /* etiquetas, códigos, procedencia */
  --fs-small: 14px;     /* texto secundario */
  --fs-body: 16px;      /* cuerpo */
  --fs-h3: 17px;
  --fs-h2: 20px;
  --fs-h1: clamp(26px, 7.2vw, 38px);

  --gap: clamp(16px, 3.6vw, 24px);
  --measure: 34rem;
  --tap: 44px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  font-synthesis-weight: none;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(157, 184, 177, 0.14) 0 1px,
    transparent 1px 7px
  );
}

::selection { background: var(--accent); color: #fff; }

a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Superficies del navegador que nadie dibuja y siempre se notan. */
::placeholder { color: #57706b; opacity: 1; }
input, select, textarea { caret-color: var(--accent); }
@supports (scrollbar-color: auto) {
  html { scrollbar-color: var(--rule) transparent; scrollbar-width: thin; }
}

.pyp-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 12px 16px; z-index: 100;
}
.pyp-skip:focus { left: 8px; top: 8px; }

/* ------------------------------------------------------------------ header */

.pyp-top {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 20;
}

.pyp-top__inner {
  max-width: 880px; margin: 0 auto;
  padding: 8px var(--gap);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}

.pyp-mark {
  display: flex; align-items: baseline;
  text-decoration: none; color: var(--ink);
  margin-right: auto;
  min-height: var(--tap); align-items: center;
}
.pyp-mark { gap: 10px; }
.pyp-mark__logo { display: block; flex: 0 0 auto; width: 30px; height: 30px; }
.pyp-mark b {
  font-weight: 700; font-size: 18px; letter-spacing: -0.015em;
}

.pyp-top__nav { display: flex; gap: 4px; align-items: center; }
.pyp-top__nav a {
  font-size: var(--fs-meta); letter-spacing: 0.02em;
  text-decoration: none; color: var(--muted);
  min-height: var(--tap); display: inline-flex; align-items: center;
  padding: 0 10px;
}
.pyp-top__nav a[aria-current="page"] { color: var(--ink); }
.pyp-top__nav a:hover { color: var(--accent); }

.pyp-citypick { display: flex; align-items: center; gap: 8px; }
.pyp-citypick label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.pyp-citypick select {
  font-family: var(--sans); font-size: var(--fs-small); font-weight: 600;
  padding: 10px 12px; min-height: var(--tap);
  border: 1px solid var(--rule); background: var(--ground); color: var(--ink);
  border-radius: 0;
}

/* -------------------------------------------------------------------- main */

.pyp-main { max-width: 1180px; margin: 0 auto; padding: var(--gap) var(--gap) 40px; }

.pyp-crumb {
  font-size: var(--fs-meta);
  color: var(--muted);
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px;
}
.pyp-crumb a { color: var(--muted); text-decoration: none; }
.pyp-crumb a:hover { color: var(--accent); }
.pyp-crumb span[aria-hidden] { opacity: 0.5; }

/* ------------------------------------------------------------ la ficha */

.pyp-record {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  margin-bottom: 16px;
  overflow: hidden;
}

/* La roseta vive dentro del sello: proporción fija, nunca detrás del texto. */
.pyp-record__guilloche {
  position: absolute;
  inset: 3px;
  width: calc(100% - 6px); height: calc(100% - 6px);
  opacity: 0.38; pointer-events: none;
  border-radius: 50%;
  color: var(--accent);
}

.pyp-record__head {
  position: relative;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 9px 14px;
  background: var(--ink); color: var(--paper);
}
.pyp-record__head b {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; font-weight: 600;
  text-transform: uppercase;
  min-width: 0; flex: 1 1 auto;
}
.pyp-record__head em {
  font-family: var(--mono); font-style: normal; font-size: 11px;
  letter-spacing: 0.04em; color: #a9bdb7;
  white-space: nowrap; flex: 0 0 auto;
}

.pyp-record__body {
  position: relative;
  padding: 18px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pyp-verdict { order: 1; }
.pyp-fields-list { order: 2; }
.pyp-stamp { order: 3; }

.pyp-verdict__value {
  font-family: var(--sans);
  font-size: var(--fs-h1);
  font-weight: 700; line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
  max-width: 22ch;
}
.pyp-verdict--restricted .pyp-verdict__value { color: var(--restricted); }
.pyp-verdict--free .pyp-verdict__value { color: var(--free); }
.pyp-verdict--unknown .pyp-verdict__value { color: var(--unknown); }
.pyp-verdict--neutral .pyp-verdict__value { color: var(--ink); }

.pyp-verdict__caveat {
  margin: 12px 0 0; padding: 8px 10px;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-size: var(--fs-meta); line-height: 1.45; color: var(--ink);
  max-width: var(--measure);
}
.pyp-verdict__note {
  margin: 12px 0 0; font-size: var(--fs-body); color: var(--ink-soft); max-width: 44ch;
}

/* Dígitos: casillas. El rango lo lleva el peso, no la escala. */
.pyp-digits { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 0; }

.pyp-digit {
  min-width: 38px; height: 48px;
  padding: 0 8px;
  display: grid; place-items: center;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-weight: 700; font-size: 22px;
  font-variant-numeric: tabular-nums;
  position: relative;
}
.pyp-digit::after {
  content: ""; position: absolute; inset: 3px; border: 1px solid var(--rule-soft);
  pointer-events: none;
}

/* Franjas horarias con dígitos distintos (Pico y Placa Regional). */
.pyp-franjas {
  width: 100%; border-collapse: collapse; margin: 14px 0 0;
  font-variant-numeric: tabular-nums;
}
.pyp-franjas th, .pyp-franjas td {
  text-align: left; padding: 9px 0; border-bottom: 1px solid var(--rule-soft);
  font-size: var(--fs-small);
}
.pyp-franjas thead th {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); font-weight: 600;
}
.pyp-franjas tbody th { font-weight: 500; color: var(--ink-soft); }
.pyp-franjas tbody td { font-weight: 700; letter-spacing: 0.06em; }

/* Reglas del registro: campos etiqueta/valor. */
.pyp-fields-list {
  position: relative;
  margin: 0; border-top: 1px solid var(--rule-soft);
}
.pyp-field {
  display: grid; grid-template-columns: minmax(96px, 30%) 1fr;
  gap: 12px; align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.pyp-field dt {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--muted);
}
.pyp-field dd {
  margin: 0; font-size: var(--fs-small); font-weight: 500;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.pyp-field dd b { font-variant-numeric: tabular-nums; font-size: var(--fs-body); }

.pyp-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--rule); padding: 3px 6px; white-space: normal;
  max-width: 100%; overflow-wrap: anywhere;
}

.pyp-field__note {
  display: block; width: 100%; margin-top: 4px;
  font-size: var(--fs-meta); color: var(--muted); line-height: 1.45;
}
.pyp-record__serial {
  position: relative;
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--ground);
  border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--muted);
}

.pyp-stamp {
  position: relative;
  align-self: flex-end;
  width: 86px; height: 86px;
  margin-top: -6px;
  border: 1.5px solid var(--accent); border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  transform: rotate(-11deg);
  color: var(--accent);
  font-family: var(--mono); font-size: 6.5px; line-height: 1.35;
  letter-spacing: 0; text-transform: uppercase;
  background: var(--paper);
  overflow: hidden;
  z-index: 2;
}
.pyp-stamp::before {
  content: ""; position: absolute; inset: 4px; border: 0.5px solid var(--accent);
  border-radius: 50%;
}
.pyp-stamp b { display: block; font-size: 8px; letter-spacing: 0; margin: 2px 0; position: relative; }
.pyp-stamp > div {
  position: relative; z-index: 1;
  background: var(--paper);
  border-radius: 50%;
  padding: 9px 7px;
  max-width: 64px;
}
.pyp-stamp--pending { border-color: var(--unknown); color: var(--unknown); }
.pyp-stamp--pending::before { border-color: var(--unknown); }

/* Estado: banda completa, no barra lateral. */
.pyp-band {
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-left: 0; border-right: 0;
  font-size: var(--fs-small); line-height: 1.5;
}
.pyp-band--unknown { background: var(--unknown-tint); color: #4a3a0c; }
.pyp-band--unknown b { color: var(--unknown); }
.pyp-band a { color: inherit; }

/* --------------------------------------------------------------- selector */

.pyp-seek {
  display: flex; gap: 0; margin: 0 0 14px;
  border: 1px solid var(--ink);
}
.pyp-seek a {
  flex: 1; text-align: center; text-decoration: none;
  min-height: var(--tap); display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-meta); font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink);
  border-right: 1px solid var(--rule);
  background: var(--paper);
}
.pyp-seek a:last-child { border-right: 0; }
.pyp-seek a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.pyp-seek a:hover { background: var(--ground); }
.pyp-seek a[aria-current="page"]:hover { background: var(--ink); }

.pyp-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.pyp-tabs a {
  font-size: var(--fs-small); font-weight: 500; text-decoration: none;
  padding: 0 14px; border: 1px solid var(--rule);
  background: var(--paper); color: var(--ink-soft);
  min-height: var(--tap); display: inline-flex; align-items: center;
}
.pyp-tabs a[aria-current="page"] {
  background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 600;
}
.pyp-tabs a:hover { border-color: var(--ink); }

/* ------------------------------------------------------------- semana */

.pyp-section { margin-top: 28px; }

.pyp-section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  border-bottom: 1px solid var(--ink); padding-bottom: 8px; margin-bottom: 0;
}
.pyp-section__head h2 {
  font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.018em; margin: 0;
}
.pyp-mono {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}

/* Tabla de verdad, con encabezados. */
/* Nada dentro de la ficha ensancha la página. */
.pyp-field dd { min-width: 0; overflow-wrap: anywhere; }
/* La tabla nunca ensancha la página: si algo no entra, se desplaza dentro. */
.pyp-week-wrap { max-width: 100%; overflow-x: auto; }
.pyp-week {
  width: 100%; border-collapse: collapse;
  border: 1px solid var(--rule); border-top: 0; background: var(--paper);
  font-variant-numeric: tabular-nums;
}
.pyp-week thead th {
  text-align: left; padding: 9px 14px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  background: var(--ground);
  border-bottom: 1px solid var(--rule);
}
.pyp-week tbody th,
.pyp-week tbody td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: middle;
}
.pyp-week tbody tr:last-child th,
.pyp-week tbody tr:last-child td { border-bottom: 0; }
.pyp-week tbody th { text-align: left; font-weight: 400; }
.pyp-week tbody tr.is-today { background: #f2f7f5; }

.pyp-week__day {
  font-family: var(--mono); font-size: 11px; line-height: 1.25;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.pyp-week__day b {
  display: block; color: var(--ink); font-size: 13px; line-height: 1.25;
  letter-spacing: 0.01em; font-weight: 600;
}
.pyp-week tbody tr.is-today .pyp-week__day b { text-decoration: underline; text-decoration-thickness: 1px; }

.pyp-week__digits { font-weight: 600; font-size: var(--fs-body); letter-spacing: 0.06em; white-space: nowrap; }
.pyp-week__digits .is-off {
  color: var(--muted); font-size: var(--fs-small); letter-spacing: 0;
  text-transform: none; font-weight: 500;
}
/* En pantallas angostas el horario va debajo de los dígitos, no en su columna. */
.pyp-week__hours-inline {
  display: block; margin-top: 2px;
  font-family: var(--mono); font-weight: 400; font-size: var(--fs-meta);
  letter-spacing: 0; color: var(--muted); white-space: nowrap;
}
@media (max-width: 559px) {
  .pyp-week thead th:last-child,
  .pyp-week td.pyp-week__hours { display: none; }
}
@media (min-width: 560px) {
  .pyp-week__hours-inline { display: none; }
}
.pyp-week__hours {
  font-family: var(--mono); font-size: var(--fs-meta); letter-spacing: 0.02em;
  color: var(--ink-soft); white-space: nowrap;
}

/* ------------------------------------------------------- verificar placa */

.pyp-check { border: 1px solid var(--rule); background: var(--paper); padding: 16px 14px; }
.pyp-check__form { display: grid; gap: 12px; }

.pyp-check label {
  font-size: var(--fs-meta); font-weight: 600; color: var(--muted);
  display: block; margin-bottom: 6px;
}
.pyp-check input, .pyp-check select {
  font-family: var(--sans); font-size: var(--fs-body); font-weight: 600;
  padding: 12px; min-height: var(--tap);
  border: 1px solid var(--rule); background: var(--ground); color: var(--ink);
  border-radius: 0; width: 100%;
}
.pyp-check input[type="text"] {
  font-family: var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
}
.pyp-check button {
  font-family: var(--sans); font-size: var(--fs-small); font-weight: 600;
  padding: 12px 22px; min-height: var(--tap);
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  cursor: pointer; border-radius: 0;
}
.pyp-check button:hover { background: var(--accent); border-color: var(--accent); }
.pyp-check button:active { transform: translateY(1px); }

.pyp-check__error {
  margin: 12px 0 0; padding: 10px 12px;
  border: 1px solid var(--restricted);
  background: var(--restricted-tint); color: #6b1712;
  font-size: var(--fs-small);
}

.pyp-check__result {
  margin-top: 14px; padding: 14px; border: 1px solid var(--rule);
  font-size: var(--fs-small);
}
.pyp-check__result.is-restricted { background: var(--restricted-tint); border-color: var(--restricted); }
.pyp-check__result.is-free { background: var(--free-tint); border-color: var(--free); }
.pyp-check__result strong { display: block; font-size: var(--fs-h3); margin-bottom: 4px; }

/* ---------------------------------------------------------------- fuentes */

.pyp-sources { border: 1px solid var(--rule); background: var(--paper); }
.pyp-source {
  display: grid; gap: 4px;
  padding: 12px 14px; border-bottom: 1px solid var(--rule-soft);
}
.pyp-source:last-child { border-bottom: 0; }
.pyp-source__pub {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.pyp-source__title { font-size: var(--fs-small); font-weight: 600; }
.pyp-source__title a { text-decoration-thickness: 1px; }
.pyp-source__date { font-size: var(--fs-meta); color: var(--muted); }

.pyp-verify {
  margin-top: 12px; padding: 14px; border: 1px solid var(--rule-soft);
  background: var(--ground);
  font-size: var(--fs-small); color: var(--ink-soft);
}
.pyp-verify p { margin: 0 0 10px; }
.pyp-verify p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------------- prosa */

.pyp-prose { max-width: var(--measure); font-size: var(--fs-body); color: var(--ink-soft); }
.pyp-prose h1 {
  font-size: var(--fs-h1); color: var(--ink); letter-spacing: -0.028em;
  line-height: 1.05; margin: 0 0 16px;
}
.pyp-prose h2 {
  font-size: var(--fs-h2); color: var(--ink); letter-spacing: -0.018em;
  margin: 28px 0 8px;
}
.pyp-prose h3 { font-size: var(--fs-h3); color: var(--ink); margin: 22px 0 6px; }
.pyp-prose p { margin: 0 0 12px; }
.pyp-prose ul { margin: 0 0 12px; padding-left: 22px; }
.pyp-prose li { margin-bottom: 6px; }
.pyp-prose strong { color: var(--ink); }

/* ------------------------------------------------------------------- anuncios */

.pyp-ad {
  margin: 26px 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--rule-soft);
  min-height: 90px;
}
.pyp-ad__label {
  display: block; margin-bottom: 6px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------------------------------------------------------------- ciudades */

.pyp-group__head {
  border-bottom: 1px solid var(--ink); padding-bottom: 8px; margin-bottom: 0;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.pyp-group__head h2 { font-size: var(--fs-h2); margin: 0; letter-spacing: -0.018em; }
.pyp-group__head span { font-size: var(--fs-meta); color: var(--muted); }

.pyp-cities {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px; background: var(--paper);
  border: 1px solid var(--rule-soft); border-top: 0;
}
.pyp-cities li { background: var(--paper); border-right: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
.pyp-cities a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; text-decoration: none; font-weight: 500; font-size: var(--fs-small);
  min-height: var(--tap);
}
.pyp-cities a:hover { background: var(--ground); color: var(--accent); }
.pyp-cities .pyp-count { font-size: var(--fs-meta); color: var(--muted); }

.pyp-cityname { font-weight: 500; }

.pyp-citystate {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  text-transform: uppercase; white-space: nowrap;
}
.pyp-citystate.is-restricted { color: var(--restricted); }
.pyp-citystate.is-free { color: var(--free); }
.pyp-citystate.is-unknown { color: var(--muted); }

.pyp-quickline {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  margin: 0 0 8px; padding: 12px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: var(--fs-small);
}
.pyp-quickline a { font-weight: 600; text-decoration: none; }
.pyp-quickline a:hover { text-decoration: underline; }

/* Calendario de la placa: una lista, no una grilla de calendario. */
.pyp-cal {
  list-style: none; margin: 0; padding: 0;
  border: 1px solid var(--rule); border-top: 0;
  background: var(--paper);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.pyp-cal li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule-soft);
  border-right: 1px solid var(--rule-soft);
}
.pyp-cal__date {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink);
}
.pyp-cal__hours {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  white-space: nowrap;
}

/* Anexo de prensa: recortes con fuente y fecha, no tarjetas. */
.pyp-news {
  list-style: none; margin: 0; padding: 0;
  border: 1px solid var(--rule); border-top: 0;
  background: var(--paper);
}
.pyp-news li { border-bottom: 1px solid var(--rule-soft); }
.pyp-news li:last-child { border-bottom: 0; }
.pyp-news a {
  display: grid; gap: 4px;
  padding: 12px 14px; min-height: var(--tap);
  text-decoration: none;
}
.pyp-news a:hover { background: var(--ground); }
.pyp-news__meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.pyp-news__title {
  font-size: var(--fs-small); font-weight: 600; color: var(--ink);
  line-height: 1.35;
}
.pyp-news a:hover .pyp-news__title { color: var(--accent); }
.pyp-news__note {
  margin: 10px 0 0; max-width: 70ch;
  font-size: var(--fs-meta); color: var(--muted); line-height: 1.5;
}

.pyp-pending {
  margin: 20px 0 0; padding: 14px;
  border: 1px solid var(--rule); background: var(--paper);
  font-size: var(--fs-small); line-height: 1.55; color: var(--ink-soft);
}

/* ------------------------------------------------------------------- hero */

.pyp-hero { margin-bottom: 26px; max-width: 34ch; }
.pyp-hero h1 {
  font-size: clamp(32px, 7.6vw, 46px); line-height: 1.02;
  letter-spacing: -0.034em; font-weight: 700; margin: 0 0 14px;
  text-wrap: balance;
}
.pyp-hero p { margin: 0; font-size: var(--fs-body); color: var(--ink-soft); max-width: 46ch; }

/* ------------------------------------------------------------------ footer */

.pyp-foot { margin-top: 40px; border-top: 1px solid var(--ink); background: var(--paper); }
.pyp-foot__inner {
  max-width: 880px; margin: 0 auto; padding: 20px var(--gap) 28px;
  display: grid; gap: 16px;
}
.pyp-foot__rule {
  font-family: var(--sans); font-size: var(--fs-small); line-height: 1.6;
  color: var(--muted); max-width: 74ch; margin: 0;
}
.pyp-foot__links { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.pyp-foot__links a {
  font-size: var(--fs-meta); color: var(--muted); text-decoration: none;
  min-height: var(--tap); display: inline-flex; align-items: center;
}
.pyp-foot__links a:hover { color: var(--accent); }

/* ------------------------------------------------------------- desktop */

@media (min-width: 860px) {
  /* Un documento se lee como documento: una sola columna centrada. */
  .pyp-main { max-width: 880px; }

  .pyp-record__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 108px;
    grid-template-areas:
      "verdict stamp"
      "fields fields";
    column-gap: 26px;
    padding: 22px 18px 18px;
  }
  .pyp-verdict { grid-area: verdict; order: initial; }
  .pyp-stamp { grid-area: stamp; order: initial; justify-self: end; align-self: start; margin-top: 2px; }
  .pyp-fields-list { grid-area: fields; order: initial; }
  .pyp-record__head { padding: 10px 18px; }

  .pyp-fields-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    border-top: 1px solid var(--rule-soft);
  }
  .pyp-field { grid-template-columns: 104px 1fr; }
  .pyp-field:last-child:nth-child(odd) { grid-column: 1 / -1; }

  .pyp-week thead th:first-child { width: 22%; }
  .pyp-week thead th:last-child { width: 26%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* El sello se imprime: aparece una vez, sin rebote. */
@media (prefers-reduced-motion: no-preference) {
  .pyp-stamp { animation: pyp-stamp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }
  @keyframes pyp-stamp {
    from { opacity: 0; transform: rotate(-11deg) scale(1.12); }
    to { opacity: 1; transform: rotate(-11deg) scale(1); }
  }
}

/* Impresión: la ficha sirve como comprobante. */
@media print {
  .pyp-top, .pyp-foot, .pyp-ad, .pyp-seek, .pyp-tabs { display: none; }
  body { background: #fff; }
  .pyp-record { border-color: #000; }
}
