/* ============================================================================
   IDENTIDAD — la plataforma con la imagen de la portada del policy brief.
   Papel crema, tinta berenjena, filetes dorados y la ilustración en acuarela.
   Se carga después de platform.css y solo ajusta lo necesario.
   ========================================================================== */

body { background: var(--paper-10); }

/* ─── Portada ───────────────────────────────────────────────────────────── */
.hero--portada {
  background: var(--paper-10);            /* el mismo crema del fondo de la ilustración */
  min-height: min(100svh, 980px);
  align-content: center;
  padding-top: clamp(3rem, 9vh, 6.5rem);
  padding-bottom: clamp(2.5rem, 7vh, 5rem);
  overflow: hidden;
}
.hero--portada .hero__inner { grid-column: 1 / 8; position: relative; z-index: 2; }
.hero__eyebrow {
  margin: 0 0 var(--s-3);
  font-family: var(--font-text); font-size: var(--t-sm); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--pv-90);
}
.hero__rule { display: block; width: 64px; height: 3px; background: var(--oro); margin-bottom: var(--s-5); }
.hero--portada .hero__title {
  font-weight: 700;
  font-size: clamp(2.3rem, 5vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--pv-90);
  font-variation-settings: "opsz" 48;
  margin-bottom: var(--s-5);
}
@supports (container-type: inline-size) {
  .hero--portada .hero__title { font-size: clamp(2.2rem, 8.6cqi, 4.9rem); }
}
.hero__sub {
  max-width: 40ch;
  margin: 0 0 var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--oro);
  font-size: clamp(1.0625rem, 1.35vw, 1.3rem);
  line-height: 1.45;
  color: var(--ink-10);
}
.hero__sub b { display: block; color: var(--pv-90); font-weight: 600; }
.hero__motto {
  margin: 0 0 var(--s-4);
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.1rem, 1.55vw, 1.4rem);
  color: var(--pv-70);
}
.hero--portada .hero__lead { font-size: var(--t-base); color: var(--ink-20); max-width: 50ch; margin-bottom: var(--s-6); }
.hero__art {
  position: absolute; right: 0; bottom: 0; top: 0;
  margin: 0; z-index: 1; pointer-events: none;
  display: flex; align-items: flex-end; justify-content: flex-end;
  max-width: 44%;
}
.hero__art img { height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: right bottom; display: block; }
@media (max-width: 1080px) {
  .hero--portada .hero__inner { grid-column: 1 / 9; }
  .hero__art { max-width: 40%; opacity: .95; }
}
@media (max-width: 860px) {
  .hero--portada { padding-top: 0; min-height: 0; }
  .hero--portada .hero__inner { grid-column: 1 / 5; }
  .hero__art {
    position: relative; inset: auto; max-width: none; height: 46svh; min-height: 300px;
    grid-column: 1 / 5; grid-row: 1;
    margin: 0 calc(-1 * var(--margin)) var(--s-5);
    justify-content: center;
  }
  .hero__art img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
}

/* ─── Marca lateral, botones y filetes ─────────────────────────────────── */
.side__mark b { font-weight: 700; color: var(--pv-90); line-height: 1.15; }
.side__mark span { text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; color: var(--siena); font-size: 0.6875rem; }
.btn--solid { background: var(--pv-90); }
.btn--solid:hover { background: var(--pv-70); }
.ph__rule::before { border-top: 2px solid var(--oro); top: -1.5px; }
.ph h1 { color: var(--pv-90); font-weight: 700; }

/* ─── Recomendaciones ───────────────────────────────────────────────────── */
.rec__list .row__who::before { content: "Responsable"; }
.row[data-prioridad] .row__id { color: var(--siena); }
.row__tag--pri { color: var(--siena); background: var(--siena-15); border-color: var(--oro); }
.row__tag--pri::before { background: var(--oro); }
.row__resp { font-size: var(--t-sm); color: var(--ink-10); margin: 0 0 var(--s-3); max-width: var(--measure); }
.row__resp b { color: var(--pv-90); }
.row__proof + .row__proof { margin-top: var(--s-2); }
.row__proof--ind { background: var(--siena-15); }
.row__proof--ind b { color: var(--siena); }

/* ─── Ruta: enlaces a cada recomendación ────────────────────────────────── */
.route__refs a {
  font-family: var(--font-display); font-size: var(--t-xs); font-weight: 600;
  color: var(--pv-70); text-decoration: none;
  border: 1px solid color-mix(in oklab, var(--pv-50) 28%, transparent);
  padding: 2px 7px; border-radius: 2px;
}
.route__refs a:hover { background: var(--pv-06); border-color: var(--pv-50); }

/* ─── Evidencia: los tres constructos ───────────────────────────────────── */
.cons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin: var(--s-5) 0 0; }
.cons__item { border-top: 2px solid var(--pv-50); padding-top: var(--s-3); }
.cons__item dt { font-family: var(--font-display); font-weight: 600; font-size: var(--t-md); line-height: 1.25; color: var(--pv-90); margin-bottom: var(--s-2); }
.cons__item dd { margin: 0; font-size: var(--t-sm); color: var(--ink-10); }
@media (max-width: 1024px) { .cons { grid-template-columns: 1fr; } }

/* ─── Encabezados que pasan a h2/h3 por jerarquía ───────────────────────── */
.bench__t, .ume__t, .layer__t, .counter__t {
  font-family: var(--font-text); font-size: var(--t-sm); font-weight: 600; margin: 0 0 var(--s-2);
}
.bench__t { color: var(--ink-00); }
.ume__t { color: var(--pv-70); }
.layer__t { letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--ink-20); margin-bottom: var(--s-3); }
.counter__t { color: var(--siena); letter-spacing: 0.01em; }
.uni__n { font-family: var(--font-display); font-size: var(--t-md); font-weight: 600; margin: 0; letter-spacing: var(--track-tight); }
.mstep .method__title { font-family: var(--font-display); font-weight: 600; }
.method__limits .plain li b { color: var(--pv-90); }
.table--est td:first-child { font-weight: 600; color: var(--ink-00); }

/* Ajustes de la primera revisión en pantalla */
.hero--portada .hero__title .line--2 { padding-left: 0; }
.hero__motto, .hero__sub, .ph h1, .ph__lead { text-wrap: balance; }
.side__list a::after { content: none; }
.side__mark span { letter-spacing: 0.1em; }
.cb__head .cb__n { font-size: var(--t-md); margin: 0; }
