/* =========================================================================
   Biblioteca del Erario Público (diccionario.html), Ronda 26D (26-11-2026).
   Centro de referencia editorial: el encabezado es una tarjeta blanca elevada
   (etiqueta dorada, título en serif, buscador y barra A–Z), las cuatro
   colecciones con su borde de acento y la rejilla de términos que pinta
   biblioteca-portada.js. Sin emojis: íconos de trazo de auditor_bento.ico().
   ========================================================================= */
.bib-cab { background: #f4f6fb; border-bottom: 0; padding: 24px 0 8px; }
.bib-cab > .apartado-ancho { background: #ffffff; border: 1px solid #dfe5f0; border-radius: 22px; padding: 26px 32px 24px;
  box-shadow: 0 1px 2px rgba(11, 42, 99, .05), 0 14px 36px rgba(11, 42, 99, .08); max-width: 1120px; }
.bib-cab .apartado-lema { font-family: Inter, system-ui, sans-serif; color: #6b4f00; background: #fbf3da; border-color: #e8d48f; letter-spacing: .08em; }
.bib-cab .apartado-titulo { font-family: 'Playfair Display', var(--font-serif), Georgia, serif; font-weight: 700; color: #0b2a63;
  font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -.01em; margin: 14px 0 10px; }
.bib-cab .apartado-entrada { color: #33415c; font-size: 17px; max-width: 78ch; }
.bib-cab .avb-i { flex: none; }
.bib-busca { margin: 20px 0 0; }
.bib-busca-caja { position: relative; display: flex; align-items: center; }
.bib-busca-caja .avb-i { position: absolute; left: 18px; color: #1a56b8; pointer-events: none; }
.bib-busca input { width: 100%; box-sizing: border-box; font: inherit; font-size: 18px; color: #142033; padding: 16px 20px 16px 54px; min-height: 58px;
  border: 2px solid #c9d3e6; border-radius: 16px; background: #f9fbff; }
.bib-busca input:focus { outline: none; border-color: #1a56b8; background: #ffffff; box-shadow: 0 0 0 4px rgba(26, 86, 184, .14); }
.bib-az { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 12px; }
.bib-letra { font: inherit; font-size: 15px; font-weight: 700; min-width: 34px; min-height: 36px; padding: 0 6px; border-radius: 10px;
  border: 1px solid transparent; background: transparent; color: #0b2a63; cursor: pointer; }
.bib-letra:hover, .bib-letra:focus-visible { background: #eef3fc; border-color: #c9d3e6; }
.bib-letra[aria-pressed="true"] { background: #0b2a63; color: #ffffff; }
.bib-letra:disabled { color: #a3adbf; cursor: default; background: transparent; border-color: transparent; }
.bib-letra-todas { padding: 0 12px; }

/* Las colecciones */
.bib-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bib-col { --acento: #1a56b8; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 6px; background: #ffffff; border: 1px solid #dfe5f0;
  border-top: 4px solid var(--acento); border-radius: 16px; padding: 18px 18px 16px; color: #24324d; text-decoration: none;
  box-shadow: 0 1px 2px rgba(11, 42, 99, .05); transition: box-shadow .2s, transform .2s; min-width: 0; }
.bib-col:hover, .bib-col:focus-visible { box-shadow: 0 10px 28px rgba(11, 42, 99, .12); transform: translateY(-2px); }
.bib-col-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: var(--acento);
  background: color-mix(in srgb, var(--acento) 10%, #ffffff); }
.bib-col-nom { font-family: 'Playfair Display', var(--font-serif), Georgia, serif; font-size: 21px; font-weight: 700; color: #0b2a63; line-height: 1.2; margin-top: 4px; }
.bib-col-lema { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #5a6782; }
.bib-col-desc { font-size: 15px; line-height: 1.55; color: #33415c; }
.bib-col-ir { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; color: #1a56b8; font-size: 15px; margin-top: 6px; }
.bib-faq { display: flex; gap: 14px; align-items: center; margin-top: 16px; background: #fbf8ee; border: 1px solid #ecdfb4; border-radius: 16px;
  padding: 14px 18px; color: #33415c; text-decoration: none; font-size: 15px; line-height: 1.5; }
.bib-faq > .avb-i { color: #9a7400; }
.bib-faq b { color: #0b2a63; }
.bib-faq .bib-col-ir { margin: 0 0 0 auto; flex: none; }
.bib-faq:hover, .bib-faq:focus-visible { border-color: #c9a227; }

/* La base de datos, en números (Ronda 35): los conteos de monetizacion.contadores(), tres por renglón */
.bib-base { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bib-base-n { display: grid; grid-template-rows: auto auto 1fr auto; gap: 6px; background: #ffffff; border: 1px solid #dfe5f0; border-left: 4px solid #c9a227;
  border-radius: 16px; padding: 18px 20px 16px; color: #24324d; text-decoration: none; min-width: 0;
  box-shadow: 0 1px 2px rgba(11, 42, 99, .05); transition: box-shadow .2s, transform .2s; }
.bib-base-n:hover, .bib-base-n:focus-visible { box-shadow: 0 10px 28px rgba(11, 42, 99, .12); transform: translateY(-2px); }
.bib-base-cifra { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; line-height: 1.1; color: #0b2a63; letter-spacing: -.02em; overflow-wrap: anywhere; }
.bib-base-et { font-size: 16px; font-weight: 600; line-height: 1.45; color: #142033; overflow-wrap: anywhere; }
.bib-base-fu { font-size: 14.5px; line-height: 1.5; color: #44526b; border-top: 1px solid #eef1f6; padding-top: 8px; overflow-wrap: anywhere; }
.bib-base-nota { margin: 16px 0 0; font-size: 15px; line-height: 1.6; background: #ffffff; border: 1px solid #dfe5f0; border-radius: 14px;
  padding: 12px 16px; color: #33415c; }
.bib-base-nota a { color: #1a56b8; font-weight: 700; }
@media (max-width: 1100px) { .bib-base { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .bib-base { grid-template-columns: minmax(0, 1fr); }
  .bib-base-fu, .bib-base-nota { font-size: 16px; }
}

/* La rejilla de términos */
.bib-cuenta { margin: 0 0 12px; font-size: 15px; color: #5a6782; font-weight: 600; }
.bib-terminos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; scroll-margin-top: 24px; }
.bib-ficha { background: #ffffff; border: 1px solid #dfe5f0; border-radius: 16px; padding: 18px 20px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.bib-ficha-cat { justify-self: start; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #1a56b8;
  background: #eef3fc; border-radius: 999px; padding: 3px 10px; }
.bib-ficha-tit { margin: 0; font-family: 'Playfair Display', var(--font-serif), Georgia, serif; font-size: 21px; line-height: 1.25; overflow-wrap: anywhere; }
.bib-ficha-tit a { color: #0b2a63; text-decoration: none; }
.bib-ficha-tit a:hover, .bib-ficha-tit a:focus-visible { text-decoration: underline; }
.bib-ficha-def { margin: 0; font-size: 16px; line-height: 1.6; color: #24324d; overflow-wrap: anywhere; }
.bib-ficha-ley { margin: 0; font-size: 14.5px; line-height: 1.5; color: #44526b; border-top: 1px solid #eef1f6; padding-top: 8px; overflow-wrap: anywhere; }
.bib-sello-of { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #0f5132;
  background: #e5f5ec; border-radius: 6px; padding: 2px 7px; margin-right: 4px; }
.bib-vacio { grid-column: 1 / -1; background: #ffffff; border: 2px dashed #c9d3e6; border-radius: 16px; padding: 22px; color: #33415c; font-size: 16px; margin: 0; }
.bib-mas { display: block; margin: 18px auto 0; font: inherit; font-size: 16px; font-weight: 700; min-height: 46px; padding: 0 22px; border-radius: 999px;
  border: 1px solid #0b2a63; background: #ffffff; color: #0b2a63; cursor: pointer; }
.bib-mas:hover, .bib-mas:focus-visible { background: #0b2a63; color: #ffffff; }
.bib-mas[hidden] { display: none; }

@media (max-width: 1100px) { .bib-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .bib-terminos { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .bib-cab { padding: 12px 0 4px; }
  .bib-cab > .apartado-ancho { border-radius: 18px; padding: 18px 16px; margin: 0 8px; width: auto; }
  .bib-cols { grid-template-columns: minmax(0, 1fr); }
  .bib-busca input { font-size: 17px; padding-left: 50px; }
  .bib-az { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .bib-letra { flex: none; min-width: 44px; min-height: 44px; font-size: 16px; }
  .apartado-tarjeta-desc, .apartado-tarjeta-accion { font-size: 16px; }
  .bib-col-lema, .bib-ficha-cat, .bib-ficha-ley, .bib-sello-of, .bib-cuenta, .bib-col-desc, .bib-faq, .bib-col-ir { font-size: 16px; }
  .bib-faq { flex-wrap: wrap; }
  .bib-faq .bib-col-ir { margin-left: 0; }
}
.apartado-tarjeta-icono:empty { display: none; }

/* El encabezado con su imagen (decisión del autor, 28-11-2026): el foróptero de la auditoría de fondo de la tarjeta, bajo un
   velo azul marino parejo en todo el ancho (Ronda 52: sin degradado de oscuro a claro); lo que se lee va en blanco y el
   buscador sigue en su caja clara. */
.bib-cab > .apartado-ancho { position: relative; overflow: hidden; isolation: isolate; border-color: #0b2a63; padding: 34px 36px 28px;
  background: #071a3d url('../img/portada/biblioteca-foroptero.webp') center 38% / cover no-repeat; }
.bib-cab > .apartado-ancho::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(5, 16, 40, .66); }
/* Ronda 52: «Pregúntale al Auditor» va a la derecha de la fila de arriba, junto a las migas, y deja libre el centro. */
@media (min-width: 761px) {
  .bib-cab .apartado-migas { padding-right: 330px; min-height: 44px; }
  .bib-cab .apartado-auditor { position: absolute; top: 26px; right: 36px; margin: 0; }
}
.bib-cab .apartado-lema { color: #ffe9a8; background: rgba(11, 26, 60, .72); border-color: #c9a227; }
.bib-cab .apartado-titulo { color: #ffffff; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.bib-cab .apartado-entrada { color: #eef3fc; max-width: 64ch; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.bib-cab .apartado-entrada b { color: #ffffff; }
.bib-cab .apartado-migas, .bib-cab .apartado-migas a { color: #dbe5f7; }
.bib-cab .bib-busca input { border-color: #ffffff; background: #ffffff; }
.bib-cab .bib-letra { color: #ffffff; }
.bib-cab .bib-letra:hover, .bib-cab .bib-letra:focus-visible { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); }
.bib-cab .bib-letra[aria-pressed="true"] { background: #f2c94c; color: #0b1a3c; }
.bib-cab .bib-letra:disabled { color: rgba(255, 255, 255, .55); background: transparent; border-color: transparent; }
@media (max-width: 600px) {
  .bib-cab > .apartado-ancho { padding: 20px 16px; background-position: 62% 30%; }
  .bib-cab > .apartado-ancho::before { background: rgba(5, 16, 40, .74); }
}

/* Ronda 49 (28-11-2026): la portada en cuatro tarjetas autónomas (cada una abre su página) y sus letras como ligas. */
a.bib-letra { display: inline-grid; place-items: center; text-decoration: none; box-sizing: border-box; }
.bib-partes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bib-parte { padding-bottom: 18px; }
.bib-parte .bib-col-desc { font-size: 15.5px; }
.bib-nav-a > .avb-i { flex: none; color: #1a56b8; }
.bib-nav-a[aria-current="page"] > .avb-i { color: #ffffff; }
@media (max-width: 1100px) { .bib-partes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bib-partes { grid-template-columns: 1fr; } }

/* Ronda 61: la banda del Centro de Investigaciones en la portada de la Biblioteca. */
.bib-centro { background: #f1f5fc; border-color: #0b2a63; }
.bib-centro > .avb-i { color: #0b2a63; }
.bib-centro:hover, .bib-centro:focus-visible { border-color: #0b2a63; box-shadow: 0 6px 18px rgba(11, 42, 99, .12); }
