/* ============================================================
   ENIGMA ATLAS · Tema "Expediente secreto" (X-Files dossier)
   CSS propio, sin build. Papel manila + máquina de escribir + sellos.
   ============================================================ */

:root {
  --desk:       #17130d;   /* escritorio oscuro */
  --desk-2:     #221b12;
  --paper:      #e7dcc2;   /* papel manila */
  --paper-2:    #efe7d3;
  --ink:        #211c14;   /* tinta */
  --ink-soft:   #4a4133;
  --stamp:      #a3271b;   /* rojo sello */
  --stamp-2:    #7c1d14;
  --line:       #b8a984;
  --accent:     #b3841f;   /* amarillo carpeta */
  --ok:         #2f6f3e;
}

/* ------------------------------------------------------------
   Fuentes SELF-HOSTED (CWV · T3). Antes venían de Google Fonts (2 orígenes encadenados:
   googleapis CSS → gstatic woff2 → llegaban tarde → swap visible). Ahora: mismo origen,
   fingerprint + caché 1 año vía Propshaft, y preload de las críticas en el layout →
   llegan antes del primer paint. Subsets latin (cubre EN y ES). Bonus RGPD: fuera Google.
   ------------------------------------------------------------ */
@font-face {
  font-family: "Roboto Mono";
  src: url("/assets/roboto-mono-v31-latin-regular-ea188753.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("/assets/roboto-mono-v31-latin-italic-d6e3baaa.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("/assets/roboto-mono-v31-latin-500-796be5d1.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("/assets/roboto-mono-v31-latin-500italic-d74f3a02.woff2") format("woff2");
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("/assets/roboto-mono-v31-latin-700-8b076b53.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("/assets/oswald-v57-latin-500-8a099a11.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("/assets/oswald-v57-latin-700-4a42c5d0.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Special Elite";
  src: url("/assets/special-elite-v20-latin-regular-61176593.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ------------------------------------------------------------
   Reservas métricas de fuentes (CWV · T1). Cada @font-face "… fb" fuerza a la fuente
   local de reserva a ocupar EXACTAMENTE el mismo espacio que la webfont
   (size-adjust + ascent/descent/line-gap-override, calculados de los woff2 reales
   con fontTools) → el swap de display=swap no refluye nada → CLS 0 sin tocar la marca.
   ------------------------------------------------------------ */
@font-face {
  font-family: "Roboto Mono fb";
  src: local("Courier New"), local("CourierNewPSMT"), local("Liberation Mono"), local("Nimbus Mono PS");
  size-adjust: 100%; ascent-override: 104.79%; descent-override: 27.10%; line-gap-override: 0%;
}
@font-face {
  font-family: "Oswald fb";
  font-weight: 400 600;
  src: local("Arial Narrow"), local("ArialNarrow"), local("Liberation Sans Narrow");
  size-adjust: 106.77%; ascent-override: 111.74%; descent-override: 27.07%; line-gap-override: 0%;
}
@font-face {
  font-family: "Oswald fb";
  font-weight: 700;
  src: local("Arial Narrow Bold"), local("ArialNarrow-Bold"), local("Liberation Sans Narrow Bold"), local("Arial Narrow");
  size-adjust: 104.54%; ascent-override: 114.12%; descent-override: 27.65%; line-gap-override: 0%;
}
@font-face {
  font-family: "Special Elite fb";
  src: local("Courier New"), local("CourierNewPSMT"), local("Liberation Mono");
  size-adjust: 88.22%; ascent-override: 79.70%; descent-override: 33.65%; line-gap-override: 0%;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% -10%, rgba(179,132,31,.10), transparent 40%),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(0,0,0,.12) 38px 39px),
    var(--desk);
  color: var(--paper);
  /* Cuerpo legible y nítido con aire de informe mecanografiado (Roboto Mono).
     "Special Elite" se reserva para acentos temáticos (sellos, buscador, popups). */
  font-family: "Roboto Mono", "Roboto Mono fb", "Courier New", ui-monospace, monospace;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a { color: inherit; }

/* ---------- Cabecera ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: .9rem 1.2rem;
  border-bottom: 2px solid var(--stamp);
  background: linear-gradient(180deg, var(--desk-2), var(--desk));
  position: sticky; top: 0; z-index: 50;
}
.brand {
  font-family: "Oswald", "Oswald fb", "Arial Narrow", sans-serif;
  font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  font-size: 1.35rem; text-decoration: none; color: var(--paper);
  display: inline-flex; align-items: center; gap: .5rem;
}
.brand small { color: var(--stamp); font-size: .7rem; letter-spacing: .3em; }
.nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.nav a { text-decoration: none; letter-spacing: .05em; opacity: .9; }
.nav a:hover { color: var(--accent); opacity: 1; }

.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.lang-switch a { padding: .1rem .5rem; font-size: .8rem; letter-spacing: .1em; }
.lang-switch a.on { background: var(--stamp); color: #fff; }

/* ---------- Contenedor ---------- */
.container { max-width: 1080px; margin: 0 auto; padding: 1.6rem 1.2rem 4rem; }

/* ---------- Sellos ---------- */
.stamp {
  display: inline-block; font-family: "Oswald", "Oswald fb", "Arial Narrow", sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; font-size: .72rem;
  color: var(--stamp); border: 2px solid var(--stamp); border-radius: 3px;
  padding: .12rem .45rem; transform: rotate(-4deg);
  box-shadow: inset 0 0 0 1px rgba(163,39,27,.25); opacity: .9;
}
.stamp--active { color: var(--ok); border-color: var(--ok); transform: rotate(2deg); }
.stamp--classified { font-size: 1rem; padding: .2rem .7rem; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 2rem 0 1.4rem; }
.hero__title {
  font-family: "Oswald", "Oswald fb", "Arial Narrow", sans-serif; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; font-size: clamp(2rem, 6vw, 3.4rem); margin: .2rem 0; line-height: 1.05;
}
/* Palabra "resaltada" tipo expediente: barra oscura + texto legible (antes era negro
   sobre negro e invisible). En escritorio se puede pasar el ratón para el efecto. */
.hero__title .redacted { background: var(--ink); color: var(--accent); border-radius: 2px;
  padding: 0 .35rem; letter-spacing: .02em; box-decoration-break: clone; }
.hero__sub { max-width: 640px; margin: .6rem auto 1.2rem; opacity: .85; }
.hero__stats { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; margin-top: .5rem; }
.stat { text-align: center; }
.stat b { display: block; font-family: "Oswald", "Oswald fb", "Arial Narrow", sans-serif; font-size: 2rem; color: var(--accent); }
.stat span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; opacity: .7; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; cursor: pointer; text-decoration: none;
  font-family: "Oswald", "Oswald fb", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .12em;
  font-size: .85rem; padding: .55rem 1.1rem; border-radius: 3px;
  background: var(--stamp); color: #fff; border: 2px solid var(--stamp-2);
}
.btn:hover { background: var(--stamp-2); }
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Rejilla de fichas ---------- */
.section-title {
  font-family: "Oswald", "Oswald fb", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .18em;
  font-size: 1.1rem; color: var(--paper); border-left: 4px solid var(--stamp);
  padding-left: .6rem; margin: 2.2rem 0 1rem;
}
.files-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ---------- Ficha de caso (papel manila) ---------- */
.file-card {
  position: relative; display: block; text-decoration: none;
  color: var(--ink); background: var(--paper);
  background-image: repeating-linear-gradient(0deg, transparent 0 26px, rgba(120,100,60,.10) 26px 27px);
  border: 1px solid var(--line); border-top: 6px solid var(--accent);
  border-radius: 2px; padding: .9rem 1rem 1.1rem;
  box-shadow: 3px 4px 0 rgba(0,0,0,.35); transition: transform .12s ease, box-shadow .12s ease;
}
.file-card:hover { transform: translate(-1px,-2px); box-shadow: 5px 7px 0 rgba(0,0,0,.4); }
.file-card__no {
  font-size: .7rem; letter-spacing: .18em; color: var(--stamp); text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
}
.file-card__title {
  font-family: "Oswald", "Oswald fb", "Arial Narrow", sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: 1.15rem; line-height: 1.15; margin: .35rem 0 .1rem;
}
.file-card__emoji { font-size: 1.4rem; }
.dotline { border: none; border-top: 1px dotted var(--line); margin: .55rem 0; }
.file-card__meta { font-size: .78rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: .2rem .8rem; }
.file-card__excerpt { font-size: .85rem; color: var(--ink-soft); margin-top: .4rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.risk { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; letter-spacing: .1em; }
.risk__bars { letter-spacing: .1em; color: var(--stamp); }

/* ---------- Mapa ---------- */
.map-frame { position: relative; margin: 1rem 0 0; border: 1px solid var(--line);
  border-radius: 3px; overflow: hidden; box-shadow: 3px 4px 0 rgba(0,0,0,.35); }
.map-label {
  position: absolute; top: 8px; left: 8px; z-index: 5;
  font-family: "Oswald", "Oswald fb", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .2em;
  font-size: .7rem; background: var(--stamp); color: #fff; padding: .15rem .5rem; border-radius: 2px;
}
.map { width: 100%; height: 460px; background: var(--desk-2); }
.map--small { height: 300px; }
.maplibregl-popup-content { font-family: "Special Elite", "Special Elite fb", "Courier New", monospace; color: var(--ink); }

/* ---------- Buscador + relacionados ---------- */
.search-bar { display: flex; gap: .5rem; margin: 1rem 0; flex-wrap: wrap; }
.search-bar input[type="search"] { flex: 1 1 14rem; font-family: "Special Elite", "Special Elite fb", "Courier New", monospace; font-size: .95rem;
  color: var(--paper); background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 2px; padding: .5rem .7rem; }
.search-bar input[type="search"]::placeholder { color: var(--paper); opacity: .5; }
.related { margin-top: 2rem; }

/* ---------- Página de prosa (Acerca de) ---------- */
.page-prose { background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-top: 8px solid var(--accent); border-radius: 3px;
  padding: 1.4rem 1.6rem 1.8rem; box-shadow: 4px 6px 0 rgba(0,0,0,.35); max-width: 68ch; }
.page-prose h2 { font-family: "Oswald", "Oswald fb", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .04em;
  font-size: 1.15rem; color: var(--stamp); margin: 1.6rem 0 .4rem; }
.page-prose p { line-height: 1.6; margin: .5rem 0; }
.page-prose ul { line-height: 1.6; margin: .5rem 0 .5rem 1.1rem; }
.page-prose li { margin: .3rem 0; }
.page-prose .btn { margin-right: .5rem; }
/* Botones ghost dentro de una tarjeta clara: el texto "paper" sería invisible → oscuro. */
.page-prose .btn--ghost { color: var(--ink); border-color: var(--stamp); }
.page-prose .btn--ghost:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Detalle de expediente ---------- */
.file-detail { background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-top: 8px solid var(--accent); border-radius: 3px;
  padding: 1.4rem 1.4rem 1.8rem; box-shadow: 4px 6px 0 rgba(0,0,0,.35); }
.file-detail__no { font-size: .75rem; letter-spacing: .2em; color: var(--stamp); text-transform: uppercase;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.file-detail__title { font-family: "Oswald", "Oswald fb", "Arial Narrow", sans-serif; text-transform: uppercase;
  font-size: clamp(1.6rem, 4vw, 2.4rem); margin: .3rem 0 .2rem; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: .6rem 1.2rem; margin: 1rem 0; }
.field-grid dt { font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: var(--stamp); }
.field-grid dd { margin: 0; font-size: .95rem; }
.file-lead { margin: .2rem 0 1rem; font-size: 1.05rem; line-height: 1.55; color: var(--ink);
  border-left: 4px solid var(--accent); padding-left: .8rem; font-style: italic; }
.file-detail h2.q { font-family: "Oswald", "Oswald fb", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .04em;
  font-size: 1.05rem; color: var(--stamp); margin: 1.6rem 0 .5rem; }
.file-detail__body { margin-top: 1rem; white-space: pre-wrap; font-weight: 500; }
.source-note a { color: var(--accent); }
.file-detail__figure { margin: 1rem 0 0; }
.file-detail__photo { max-width: 100%; height: auto; border: 1px solid var(--line); filter: sepia(.15) contrast(1.05); display: block; }
.photo-credit { font-size: .72rem; opacity: .6; margin-top: .35rem; }
.photo-credit a { color: inherit; }
.source-note { font-size: .7rem; color: var(--ink-soft); margin-top: 1rem; opacity: .8; }

/* ---------- Formularios ---------- */
.form, .comment-form { background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 3px; padding: 1.2rem; box-shadow: 3px 4px 0 rgba(0,0,0,.3); }
.form { max-width: 640px; margin: 1rem auto; }
.field { margin-bottom: .9rem; display: flex; flex-direction: column; }
.field label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--stamp); margin-bottom: .25rem; }
.field input, .field textarea, .field select {
  font-family: "Special Elite", "Special Elite fb", "Courier New", monospace; font-size: .95rem; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 2px; padding: .5rem .6rem;
}
.field textarea { min-height: 120px; resize: vertical; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.form-actions { margin-top: .6rem; display: flex; gap: .6rem; align-items: center; }
.hint { font-size: .75rem; color: var(--ink-soft); }

/* ---------- Comentarios ---------- */
.comments { margin-top: 2rem; }
.comment { background: var(--paper-2); color: var(--ink); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: 2px; padding: .7rem .9rem; margin-bottom: .7rem; }
.comment__head { font-size: .72rem; letter-spacing: .08em; color: var(--stamp); text-transform: uppercase;
  display: flex; justify-content: space-between; gap: .5rem; }
.comment__body { margin-top: .3rem; white-space: pre-wrap; }
.comment__meta { display: inline-flex; align-items: center; gap: .5rem; }
.comment__lang { font-size: .8rem; letter-spacing: normal; }
.comment__source { margin-top: .4rem; font-size: .72rem; color: var(--ink-soft); }
.comment__source a { color: var(--accent); }
.comment__translate { margin-top: .5rem; font-family: "Special Elite", "Special Elite fb", "Courier New", monospace; font-size: .72rem;
  background: transparent; color: var(--stamp); border: 1px solid var(--line); border-radius: 2px;
  padding: .2rem .5rem; cursor: pointer; }
.comment__translate:hover { border-color: var(--accent); color: var(--accent); }
.comment__translate:disabled { opacity: .6; cursor: default; }

/* ---------- Flash ---------- */
.flash { max-width: 1080px; margin: .8rem auto 0; padding: .7rem 1rem; border-radius: 3px;
  font-size: .9rem; border: 1px solid; }
.flash--notice { background: rgba(47,111,62,.15); border-color: var(--ok); color: #cdeccf; }
.flash--alert  { background: rgba(163,39,27,.15); border-color: var(--stamp); color: #f0cfc9; }

/* ---------- Pie ---------- */
.site-footer { border-top: 2px solid var(--stamp); padding: 1.4rem 1.2rem; text-align: center;
  font-size: .78rem; opacity: .7; }

/* ---------- Utilidades ---------- */
.muted { opacity: .7; }
.center { text-align: center; }
.empty { text-align: center; padding: 2rem; opacity: .7; }
@media (max-width: 520px) { .field--row { grid-template-columns: 1fr; } }

/* ---------- Consentimiento de cookies ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: var(--ink); color: var(--paper); border-top: 3px solid var(--accent);
  padding: .9rem 1.2rem; display: flex; flex-wrap: wrap; align-items: center;
  gap: .8rem 1.4rem; box-shadow: 0 -6px 20px rgba(0,0,0,.35); }
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { flex: 1 1 320px; margin: 0; font-size: .84rem; line-height: 1.5; }
.cookie-banner__text a { color: var(--accent); }
.cookie-banner__actions { display: flex; gap: .6rem; flex-shrink: 0; }
.cookie-banner__actions .btn { font-size: .82rem; padding: .45rem 1rem; }

/* ---------- Bloque de anuncio / placeholder ---------- */
/* Reserva el hueco del anuncio ANTES de que cargue → sin salto (CLS) al rellenarse.
   min-height ≈ alto típico servido en móvil; contain aísla su reflow del resto. */
.enigma-ad { display: block; margin: 1.6rem 0; min-height: 280px; contain: layout; }
.ad-mobile .enigma-ad { min-height: 280px; }
/* Reserva el hueco del iframe de Turnstile (~65px) para que no empuje el form al cargar. */
.cf-turnstile { display: block; min-height: 65px; margin: .5rem 0; }
.ad-placeholder { margin: 1.6rem 0; min-height: 100px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .2rem; text-align: center;
  border: 2px dashed var(--line); border-radius: 4px; background: repeating-linear-gradient(
    45deg, rgba(184,169,132,.06), rgba(184,169,132,.06) 10px, transparent 10px, transparent 20px);
  color: var(--ink-soft); }
.ad-placeholder span { font-family: "Oswald", "Oswald fb", "Arial Narrow", sans-serif; letter-spacing: .25em; font-size: .8rem;
  opacity: .7; }
.ad-placeholder small { font-size: .7rem; opacity: .5; }

/* ---------- Columnas de publicidad (raíles laterales) ---------- */
.page-shell { display: flex; align-items: flex-start; justify-content: center;
  gap: 1.4rem; max-width: 1560px; margin: 0 auto; }
.page-shell > .container { margin: 0; flex: 1 1 auto; min-width: 0; }
.ad-rail { flex: 0 0 160px; position: sticky; top: 1rem; margin-top: 1.6rem; align-self: flex-start; }
.ad-rail .ad-placeholder { min-height: 600px; height: 600px; margin: 0; }
.ad-rail .adsbygoogle { display: block; min-height: 600px; width: 160px; }
/* Solo con sitio ancho: si no caben los raíles, se ocultan (móvil/tablet). */
@media (max-width: 1300px) { .ad-rail { display: none; } }

/* ---------- Anuncio solo-móvil (cuando las columnas laterales se ocultan) ---------- */
.ad-mobile { display: none; max-width: 1080px; margin: 0 auto; padding: 0 1.2rem 2.5rem; }
@media (max-width: 1300px) { .ad-mobile { display: block; } }

/* ---------- Reacciones de comunidad (👁️ / 🔎 / ❓) ---------- */
.reactions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin: 1.4rem 0; padding-top: 1rem; border-top: 1px dashed var(--line); }
.reactions__label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--stamp); margin-right: .3rem; }
.reactions form { display: inline; margin: 0; }
.reaction-btn { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  font-family: "Special Elite", "Special Elite fb", "Courier New", monospace; font-size: .8rem; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 2px;
  padding: .35rem .7rem; transition: border-color .15s, background .15s; }
.reaction-btn:hover { border-color: var(--accent); }
.reaction-btn.is-active { border-color: var(--stamp); background: #f2e3cf; color: var(--stamp-2); font-weight: 700; }
.reaction-btn.is-static { cursor: default; opacity: .85; }
.reaction-btn__count { font-weight: 700; min-width: 1ch; text-align: center; }
.reactions__login { font-size: .78rem; }
.reactions__login a { color: var(--accent); }

/* ---------- Respuestas anidadas en testimonios ---------- */
.comment__author a { color: var(--accent); text-decoration: none; }
.comment__author a:hover { text-decoration: underline; }
.comment-thread { margin-bottom: 1rem; }
.comment--reply { margin-left: 1.6rem; border-left: 2px solid var(--accent); background: var(--paper); }
.comment-reply { margin: .3rem 0 0 1.6rem; }
.comment-reply > summary { display: inline-block; cursor: pointer; font-family: "Special Elite", "Special Elite fb", "Courier New", monospace;
  font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--stamp); padding: .2rem 0; }
.comment-reply > summary:hover { color: var(--accent); }
.comment-form--reply { margin-top: .4rem; }
.comment-add-title { font-size: .9rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--stamp); margin: 1.4rem 0 .5rem; }

/* ---------- Perfil de agente ---------- */
.agent-profile .file-detail__title { margin-bottom: .6rem; }
.agent-testimonies { list-style: none; padding: 0; margin: .6rem 0 0; }
.agent-testimonies li { padding: .5rem 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.agent-testimonies a { color: var(--accent); }

/* ---------- Campana de notificaciones ---------- */
.nav-bell { position: relative; text-decoration: none; font-size: 1.05rem; line-height: 1; padding: 0 .1rem; }
.nav-bell__badge { position: absolute; top: -.5rem; right: -.55rem; min-width: 1.1rem; height: 1.1rem;
  padding: 0 .25rem; box-sizing: border-box; border-radius: 999px; background: var(--stamp); color: #fff;
  font-family: "Special Elite", "Special Elite fb", "Courier New", monospace; font-size: .62rem; font-weight: 700; line-height: 1.1rem;
  text-align: center; }
.notifications { list-style: none; padding: 0; margin: 0; }
.notification { border-bottom: 1px dashed var(--line); }
.notification__link { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .7rem .6rem; color: var(--ink); text-decoration: none; }
.notification__link:hover { background: var(--paper-2); }
.notification--unread .notification__link { border-left: 3px solid var(--stamp); background: #f2e3cf; }
.notification__text { font-size: .92rem; }
.notification__time { font-size: .72rem; color: var(--ink-soft); white-space: nowrap; }

/* ---------- Rendimiento: saltar el render de secciones bajo el pliegue ---------- */
/* Comentarios y "related" están al final de la ficha: el navegador puede saltarse su
   render hasta que se acerquen al viewport (mejora INP/render inicial). El
   contain-intrinsic-size reserva su alto estimado para NO reintroducir CLS. */
.comments, .related { content-visibility: auto; contain-intrinsic-size: auto 600px; }
