/* CDB · Colección de Banderas
   Estilo: «true-black flat» (tasteskill, seed 305019190), adaptado al archivo.
   Oscuro «Noche de museo»: negro puro, relieve solo por gris, color solo en los datos y en las banderas.
   Claro «Catálogo de archivo»: papel crudo, tinta, títulos en serif.
   Rejilla: columna de 1240 px como máximo, márgenes de 24 px (16 en el móvil), un único hueco de 14 px. */

:root {
  --fondo: #000000;
  --superficie: #111111;      /* tarjetas, controles */
  --superficie-2: #1c1c1c;    /* encima / pasar por encima */
  --elevado: #2a2a2a;         /* paneles anidados, miniaturas */
  --borde: #262626;
  --control: #4a4a4a;         /* contorno de botones secundarios */
  --texto: #ffffff;
  --texto-2: #b4b4b4;
  --texto-3: #949494;
  --logo: #ffbf5a;             /* color del logo (lupa con bandera) */
  --dato: #e0a83a;            /* latón de museo: el único tono de la interfaz, siempre sobre datos */
  --foco: #e0a83a;
  --primario: #ffffff;  --primario-texto: #000000;  --primario-hover: #d9d9d9;
  --visor: #000000;
  --barra-movil: #0b0b0b;
  --velo: rgb(0 0 0 / .86);
  /* mapa: rampa de latón de menos a más organizaciones */
  --t0: #3d3118; --t1: #604b20; --t2: #8b6b29; --t3: #b98d33; --t4: #ebb84d;
  --tierra: #1c1c1c; --tierra-borde: #000000; --mapa-fondo: #0a0a0a;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --titulo: var(--sans);
  --radio: 16px;
  --hueco: 14px;
  --ancho: 1240px;
  --margen: 24px;
  color-scheme: dark;
}
:root[data-tema=claro] {
  --fondo: #f4f1ea;
  --superficie: #ffffff;
  --superficie-2: #ece7dc;
  --elevado: #e6e0d3;
  --borde: #ddd5c6;
  --control: #b0a794;
  --texto: #1c1a17;
  --texto-2: #5b544a;
  --texto-3: #6b645a;
  --logo: #9a6a12;
  --dato: #8a5d10;
  --foco: #8a5d10;
  --primario: #1c1a17;  --primario-texto: #f4f1ea;  --primario-hover: #3a362f;
  --visor: #ebe6db;
  --barra-movil: #ebe6db;
  --velo: rgb(28 26 23 / .62);
  --t0: #f0dfb6; --t1: #ddbd77; --t2: #c39640; --t3: #9b6f1f; --t4: #6b4a0c;
  --tierra: #e3dccd; --tierra-borde: #f4f1ea; --mapa-fondo: #ece7dc;
  --titulo: var(--serif);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 15px/1.5 var(--sans); }
button, input, select { font: inherit; color: inherit; }
svg { stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.resumen, .chip small, .nav-num, .interruptor small, .ficha-anyos, .mapa-panel-num, .ideo-hoja small, .ideo-fila small { font-variant-numeric: tabular-nums; }

/* Accesibilidad: foco visible en todo, texto solo para lectores, saltar al contenido */
:focus-visible { outline: 2px solid var(--foco); outline-offset: 2px; }
.tarjeta:focus-visible, .tira:focus-visible, .mapa-ficha:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; }
#mapa-svg:focus-visible { outline-offset: -3px; }
#mosaico:focus { outline: none; }
::placeholder { color: var(--texto-2); opacity: 1; }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--primario); color: var(--primario-texto); padding: 10px 16px;
  border-radius: 999px; font-weight: 600; text-decoration: none; }
.saltar:focus { top: 10px; }

/* ---------- Barra superior ---------- */
.cab { position: sticky; top: 0; z-index: 8; background: var(--fondo); border-bottom: 1px solid var(--borde); }
.barra { max-width: var(--ancho); margin: 0 auto; padding: 0 var(--margen); height: 60px; display: flex; align-items: center; gap: 28px; }
.marca { display: flex; align-items: center; gap: 10px; color: var(--texto); text-decoration: none; font: 600 18px/1 var(--titulo); letter-spacing: .04em; flex: none; }
/* el logo es la silueta exacta de logo.png, pintada con el color del tema */
.marca-pico { width: 30px; height: 30px; flex: none; background: var(--logo);
  -webkit-mask: url(logo.png) center / contain no-repeat; mask: url(logo.png) center / contain no-repeat; }

.nav-principal { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.nav-principal button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 0; border-radius: 999px;
  background: none; color: var(--texto-2); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: color .15s; }
.nav-principal svg { width: 18px; height: 18px; flex: none; }
.nav-principal button:hover { color: var(--texto); }
.nav-principal [aria-current=page] { color: var(--texto); background: var(--superficie); }
.nav-num { color: var(--texto-3); font-size: 12px; font-weight: 500; }
.nav-num:empty { display: none; }
.solo-movil { display: none !important; }

.cab-acciones { display: flex; align-items: center; gap: 8px; flex: none; }
#btn-mapa, #btn-ideo { display: none !important; }   /* las vistas se abren desde la navegación */
#idioma { height: 36px; padding: 0 8px; border: 1px solid var(--control); border-radius: 999px; background: var(--fondo); cursor: pointer; }

/* Botones: secundario con contorno; primario por inversión */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px;
  border: 1px solid var(--control); border-radius: 999px; background: transparent; color: var(--texto);
  font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.btn:hover { background: var(--superficie-2); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-icono { width: 36px; padding: 0; }
.btn-acento { background: var(--primario); border-color: var(--primario); color: var(--primario-texto); }
.btn-acento:hover { background: var(--primario-hover); border-color: var(--primario-hover); }
.btn[aria-pressed=true] svg { fill: currentColor; }
#btn-tema[aria-pressed=true] { background: var(--superficie-2); }

/* ---------- Título, herramientas y filtros ---------- */
main { max-width: var(--ancho); margin: 0 auto; padding: 32px var(--margen) 96px; }
.titulo-fila { margin-bottom: 22px; }
.titulo-fila h1 { font: 600 26px/1.2 var(--titulo); letter-spacing: -.01em; margin: 0 0 6px; }
.resumen { color: var(--texto-2); margin: 0; font-size: 14px; }
.resumen b { color: var(--texto); font-weight: 600; }
.resumen .chip { margin-right: 6px; vertical-align: middle; }

.herramientas { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filtros-mas { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filtros-mas .btn { height: 42px; }
#buscar { flex: 1 1 300px; min-width: 0; height: 42px; padding: 0 18px; border: 1px solid var(--borde); border-radius: 999px; background: var(--superficie); }
.filtros-mas select { height: 42px; max-width: 220px; padding: 0 14px; border: 1px solid var(--borde); border-radius: 999px; background: var(--superficie); cursor: pointer; }
.interruptor { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 1px solid var(--borde); border-radius: 999px;
  background: var(--superficie); color: var(--texto-2); cursor: pointer; white-space: nowrap; font-size: 14px; }
.interruptor input { accent-color: var(--dato); width: 18px; height: 18px; margin: 0; }
.interruptor:has(input:checked) { color: var(--texto); border-color: var(--texto-2); }
.interruptor small { color: var(--texto-3); font-size: 13px; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
#familias { margin: 14px 0 26px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px; }
#familias::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--superficie);
  color: var(--texto-2); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; flex: none; transition: color .15s, background .15s; }
.chip:hover { color: var(--texto); background: var(--superficie-2); }
.chip[aria-pressed=true] { background: var(--texto); color: var(--fondo); }
.chip small { margin-left: 6px; font-size: 12px; color: inherit; opacity: .8; }
.chip-elem { background: transparent; border: 1px dashed var(--control); }
#ficha-elems:empty { display: none; }

/* Filete solo para banderas cuyo contorno se funde con el fondo */
img[data-o] { outline: 1px solid rgb(255 255 255 / .3); outline-offset: 0; }
:root[data-tema=claro] img[data-o] { outline: none; }
:root[data-tema=claro] img[data-c] { outline: 1px solid rgb(0 0 0 / .22); }

/* ---------- Mosaico: cada bandera en su lámina ---------- */
.mosaico { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--hueco); }
.tarjeta { display: flex; flex-direction: column; padding: 0; border: 0; border-radius: var(--radio); background: var(--superficie);
  color: var(--texto); text-align: left; cursor: pointer; overflow: hidden; transition: background .15s; }
.tarjeta:hover { background: var(--superficie-2); }
.tarjeta-img { aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 18px; }
.tarjeta-img img { max-width: 100%; max-height: 100%; object-fit: contain; opacity: 0; transition: opacity .3s; }
.tarjeta-img img.ok { opacity: 1; }
.tarjeta-txt { padding: 2px 14px 14px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.tarjeta-titulo { font: 600 14px/1.3 var(--titulo); overflow-wrap: anywhere; }
:root[data-tema=claro] .tarjeta-titulo { font-size: 15px; }
.tarjeta-trad { color: var(--texto-2); font-size: 12.5px; font-style: italic; line-height: 1.35; white-space: pre-line; overflow-wrap: anywhere; }
.tarjeta-trad:empty, .trad:empty { display: none; }
.trad { color: var(--texto-2); font-size: 14px; font-style: italic; margin: 2px 0 8px; }
.tarjeta-lugar, .tarjeta-sub { font-size: 12.5px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.tarjeta-lugar { margin-top: 4px; color: var(--dato); }
.tarjeta-sub { color: var(--texto); }
.tarjeta-sub:empty { display: none; }
.marcas { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.marcas:empty { display: none; }
.tarjeta .marcas { margin-top: auto; padding-top: 6px; }   /* pegada al pie de la tarjeta */
.tarjeta-anyos { margin-left: auto; font-size: 12px; color: var(--texto-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.marca-ico { display: inline-flex; align-items: center; color: var(--dato); }
.marca-ico.doc-texto { color: var(--texto-3); }
.marca-doc { font-size: 12.5px; color: var(--dato); }
.marca-ver { font-size: 12.5px; color: var(--texto-2); }
.marca-mas { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 9px; border: 1.5px solid var(--control);
  font-size: 12px; font-weight: 600; line-height: 1; color: var(--texto-2); }
.marca-pend { font-size: 12.5px; color: var(--texto-2); font-style: italic; }
.vacio { max-width: 46ch; margin: 0 auto; padding: 64px 16px; text-align: center; color: var(--texto-2); }
#centinela { height: 1px; }

/* ---------- Ficha ---------- */
.ficha { width: min(1180px, 96vw); max-height: 94vh; padding: 0; border: 0; border-radius: 20px; overflow: hidden;
  background: var(--superficie); color: var(--texto); }
.ficha::backdrop { background: var(--velo); }
.ficha-cuerpo { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); max-height: 94vh; }
/* las flechas viven en los márgenes laterales del visor, nunca encima de la bandera */
.ficha-visor { position: relative; margin: 0; min-width: 0; min-height: 360px; padding: 32px 72px; display: grid; place-items: center; background: var(--visor); }
.ficha-visor img { max-width: 100%; max-height: 74vh; object-fit: contain; }
.ficha-visor figcaption { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; color: var(--texto-2); font-size: 13px; }
.ficha-datos { padding: 30px 28px; overflow-y: auto; }
.ficha-lugar { margin: 0; color: var(--dato); font-size: 14px; font-weight: 600; }
.ficha-datos h2 { font: 600 26px/1.2 var(--titulo); letter-spacing: -.01em; margin: 6px 0 4px; }
.ficha-anyos { margin: 0 0 6px; color: var(--texto-2); }
.ficha-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px; }
.ficha-acciones .btn[aria-pressed=true] { border-color: var(--texto-2); }
.ficha-datos .chips + .chips { margin-top: 6px; }
.ficha .chip, .mapa-panel .chip { background: var(--elevado); color: var(--texto); }
.ficha .chip:hover, .mapa-panel .chip:hover { background: var(--superficie-2); }
.ficha .chip-elem, .mapa-panel .chip-elem { background: transparent; }
.ficha-datos h3 { margin: 26px 0 10px; color: var(--texto-2); font-size: 14px; font-weight: 600; }
.tiras { display: flex; flex-wrap: wrap; gap: 8px; }
.tira { flex: none; width: 88px; height: 62px; padding: 5px; border: 2px solid transparent; border-radius: 10px; background: var(--elevado);
  display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; }
.tira img { display: block; max-width: 100%; max-height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.tira[aria-current=true] { border-color: var(--dato); }
.tira span { font-size: 12px; color: var(--texto-2); }
.doc-si, .doc-no { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.doc-si { background: color-mix(in srgb, var(--dato) 16%, transparent); color: var(--texto); }
.doc-no { background: var(--elevado); color: var(--texto-2); }
.cerrar { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--elevado); color: var(--texto); font-size: 22px; line-height: 1; cursor: pointer; }
.nav { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 64px; border: 0; border-radius: 12px;
  background: var(--elevado); color: var(--texto); font-size: 28px; cursor: pointer; }
.nav-ant { left: 12px; } .nav-sig { right: 12px; }
.nav:hover, .cerrar:hover { background: var(--superficie-2); }

/* ---------- Ondear: escenario oscuro en ambos temas ---------- */
.ond { position: fixed; inset: 0; z-index: 20; background: #0a0a0a; color: #fff; }
.ond-lienzo { position: absolute; inset: 0; cursor: grab; touch-action: none; }
.ond-lienzo:active { cursor: grabbing; }
.ond-carga { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #b4b4b4; pointer-events: none; }
.ond-pie { position: absolute; bottom: 5vh; left: 0; right: 0; padding: 0 16px; text-align: center; pointer-events: none; }
.ond-pie p { margin: 0; color: #b4b4b4; font-size: 14px; }
.ond-pie h2 { margin: 6px 0; font: 600 clamp(22px, 3.2vw, 34px)/1.15 var(--sans); }
.ond-ideo, .ond-pie .ond-trad { font-size: 15px !important; }
.ond-mandos { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; }
.ond-mandos label { display: flex; align-items: center; gap: 8px; margin-right: auto; color: #b4b4b4; font-size: 14px; }
.ond-mandos input { width: 140px; accent-color: #e0a83a; }
.ond .btn { color: #fff; border-color: #4a4a4a; }
.ond .btn:hover { background: #1c1c1c; }
.ond-ficha { margin: 0; }
.ond-plano .ond-lienzo { display: grid; place-items: center; }
.ond-plano .ond-lienzo img { max-width: 82vw; max-height: 60vh; animation: ond-css 2.4s ease-in-out infinite; transform-origin: left center; }
@keyframes ond-css { 50% { transform: perspective(900px) rotateY(-14deg) skewY(-2deg); } }

.aviso { position: fixed; bottom: 20px; left: 50%; translate: -50% 0; z-index: 30; max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 12px; background: var(--elevado); color: var(--texto); box-shadow: 0 8px 24px rgb(0 0 0 / .25); }

/* ---------- Vista «Ideologías» ---------- */
.vista-ideo { position: relative; padding-bottom: 30px; }
.ideo-pest { display: flex; gap: 6px; margin-bottom: 12px; }
.ideo-intro { max-width: 70ch; margin: 0 0 18px; color: var(--texto-2); font-size: 14px; }
.ideo-pista { position: absolute; z-index: 4; display: grid; gap: 2px; max-width: 240px; padding: 8px 12px; border-radius: 10px; pointer-events: none;
  background: var(--elevado); font-size: 13px; box-shadow: 0 8px 24px rgb(0 0 0 / .3); }
.ideo-pista small { color: var(--texto-2); }
.ideo-arbol { columns: 300px; column-gap: 32px; }
.ideo-rama { break-inside: avoid; margin-bottom: 26px; }
.ideo-rama h3 { margin: 0 0 8px; font: 600 17px/1.25 var(--titulo); color: var(--texto); }
.ideo-rama ul { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 1px solid var(--borde); }
.ideo-rama > ul { padding-left: 0; border: 0; }
.ideo-rama summary { list-style: none; cursor: pointer; }
.ideo-rama summary::-webkit-details-marker { display: none; }
.ideo-rama summary::before { content: "▾"; color: var(--texto-3); font-size: 12px; margin-right: 2px; }
.ideo-rama details:not([open]) > summary::before { content: "▸"; }
.ideo-hoja { padding: 4px 6px; border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer; }
.ideo-hoja:hover:not(:disabled) { background: var(--superficie); }
.ideo-hoja:disabled { color: var(--texto-3); cursor: default; }
.ideo-hoja small { margin-left: 6px; color: var(--texto-3); font-size: 12px; }
.ideo-otras { display: flex; flex-wrap: wrap; gap: 0 6px; }
.ideo-leyenda { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 14px; color: var(--texto-2); font-size: 13px; }
.ideo-leyenda button { margin: 0 -6px; padding: 3px 8px; border: 1px solid transparent; border-radius: 999px; background: none; color: inherit; font: inherit; cursor: pointer; }
.ideo-leyenda button:hover { border-color: var(--control); }
.ideo-leyenda button.on { color: var(--texto); border-color: currentColor; font-weight: 600; }
.ideo-leyenda i { display: inline-block; width: 11px; height: 11px; margin-right: 5px; border-radius: 3px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgb(128 128 128 / .4); }
.ideo-colores { display: grid; gap: 4px; }
.ideo-fila { display: grid; grid-template-columns: minmax(110px, 200px) 44px 1fr; align-items: center; gap: 10px; padding: 4px 8px; border-radius: 10px; }
.ideo-fila:hover { background: var(--superficie); }
.ideo-fila small { color: var(--texto-3); font-size: 12px; text-align: right; cursor: pointer; }
.ideo-nom { min-width: 0; padding: 4px 0; border: 0; background: none; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ideo-barra { display: flex; gap: 2px; height: 22px; }
.ideo-tramo { min-width: 3px; padding: 0; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgb(128 128 128 / .25); }
.ideo-tramo:hover { filter: brightness(1.2); }
.ideo-tramo:focus-visible { position: relative; z-index: 1; outline-offset: 1px; }
.ideo-tramo[data-c=negro], .ideo-leyenda i[style*="#0a0a0a"] { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .45); }
:root[data-tema=claro] .ideo-tramo[data-c=blanco] { box-shadow: inset 0 0 0 1px rgb(0 0 0 / .3); }
.ideo-tramo:first-child { border-radius: 4px 0 0 4px; } .ideo-tramo:last-child { border-radius: 0 4px 4px 0; }
.punto-color { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 3px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgb(128 128 128 / .5); }

/* ---------- Tableta y móvil: la navegación baja a una barra inferior ---------- */
@media (max-width: 960px) {
  .barra { gap: 12px; height: 56px; }
  .nav-principal { position: fixed; z-index: 9; left: 0; right: 0; bottom: 0; gap: 0; justify-content: space-around;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--barra-movil); border-top: 1px solid var(--borde); }
  .nav-principal button { flex: 1; flex-direction: column; gap: 3px; height: auto; min-height: 52px; padding: 6px 2px; border-radius: 12px; font-size: 12px; }
  .nav-principal svg { width: 22px; height: 22px; }
  .nav-principal [aria-current=page] { background: none; }
  .nav-principal [aria-current=page] svg { stroke-width: 2.2; }
  .nav-principal .nav-num { display: none; }
  .solo-movil { display: inline-flex !important; }
  .cab-acciones { margin-left: auto; }
  .btn-enviar { display: none !important; }
  main { padding-bottom: 112px; }
  #buscar { flex: 1 1 0; }
  .filtros-mas { display: none; width: 100%; }
  .filtros-mas.abierto { display: grid; grid-template-columns: 1fr 1fr; }
  .filtros-mas select { max-width: none; width: 100%; }
  .filtros-mas .interruptor { justify-content: center; }
  .aviso { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (max-width: 760px) {
  :root { --margen: 16px; --hueco: 10px; --radio: 14px; }
  main { padding-top: 20px; }
  .titulo-fila { margin-bottom: 16px; }
  .titulo-fila h1 { font-size: 22px; }
  #familias { margin: 12px 0 18px; }
  .mosaico { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .tarjeta-img { padding: 12px; }
  .tarjeta-txt { padding: 0 12px 12px; }
  .ficha { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .ficha-cuerpo { grid-template-columns: 1fr; max-height: 100dvh; overflow-y: auto; }
  .ficha-visor { min-height: 0; padding: 56px 56px 32px; }
  .ficha-visor img { max-height: 46vh; }
  .nav { width: 40px; height: 56px; font-size: 26px; }
  .nav-ant { left: 8px; } .nav-sig { right: 8px; }
  .ficha-datos { overflow: visible; padding: 20px 16px 40px; }
  .ideo-fila { grid-template-columns: 1fr 40px; } .ideo-barra { grid-column: 1 / -1; }
}
@media (max-width: 380px) { .marca-sigla { display: none; } }
/* en pantallas táctiles, controles de al menos 44 px */
@media (pointer: coarse) {
  .btn, #idioma, #buscar, .filtros-mas select, .interruptor { min-height: 44px; }
  .btn-icono { min-width: 44px; }
  .chip { height: 38px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
