/* Fuentes alojadas aquí (antes Google Fonts): variables, solo el juego latino */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 700; font-stretch: 100%; 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: "Saira"; font-style: normal; font-weight: 400 800; font-stretch: 75% 112%; font-display: swap; src: url(/fonts/saira-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; }
/* KnownFlaws v2 · "Cuadro de mandos": grafito como un salpicadero de noche. Los colores de estado son los de los testigos:
   ámbar = aviso (años a evitar, peor problema), verde = bien (pocas quejas, garantía ampliada), rojo solo para seguridad grave.
   Titulares y cifras en Saira; texto en Archivo. */
/* Tema claro (por defecto): papel y tinta. Tema oscuro: grafito. Mismos nombres de variable en los dos. */
:root {
  color-scheme: light;
  --fondo: #f3f4f1; --fondo2: #ffffff; --panel: #ffffff; --panel2: #f5f6f4; --panel3: #e9ece9;
  --linea: rgba(21,25,28,.1); --linea2: rgba(21,25,28,.2);
  --texto: #15191c; --texto2: #3b4247; --dim: #5f686f; --apagado: #e2e6e3; --barra: #9aa3a8; --barra2: #7e878d;
  --ambar: #e09400; --ambar-t: #b97800; --ambar-txt: #8a5600; --ambar-f: #fdf1d8; --ambar-b: #efcf8e;
  --verde: #1f9a63; --verde-t: #16704a; --verde-txt: #16704a; --verde-f: #e2f2ea; --verde-b: #b5dcc8;
  --rojo: #d93d2b; --azul: #2f6db0; --rosa: #b03f7c; --hover: rgba(21,25,28,.025); --pestanas: rgba(243,244,241,.95); --barra-vin: rgba(255,255,255,.97);
  --sombra: 0 16px 40px rgba(21,25,28,.12); --error-f: #fdecec; --error-b: #f1c2bc; --error-t: #8a1f1f; --chip-dem: rgba(21,25,28,.07);
  --serie-a: #2f6db0; --serie-b: #c0508a; --peor2: #e7a63a; --peor3: #efc57a;
  --radio: 14px; --radio2: 9px;
}
:root[data-tema="oscuro"] {
  color-scheme: dark;
  --fondo: #15171a; --fondo2: #121417; --panel: #1d2024; --panel2: #24282d; --panel3: #2b3036;
  --linea: rgba(255,255,255,.09); --linea2: rgba(255,255,255,.16);
  --texto: #e9ecef; --texto2: #c3c9cf; --dim: #9aa3ab; --apagado: #30353b; --barra: #7d8790; --barra2: #8c969f;
  --ambar: #ffad1f; --ambar-t: #ffc35c; --ambar-txt: #ffad1f; --ambar-f: rgba(255,173,31,.12); --ambar-b: rgba(255,173,31,.45);
  --verde: #3cc47f; --verde-t: #6fd9a2; --verde-txt: #3cc47f; --verde-f: rgba(60,196,127,.12); --verde-b: rgba(60,196,127,.4);
  --rojo: #ff5a46; --azul: #6aa8ff; --rosa: #f09ac4; --hover: rgba(255,255,255,.02); --pestanas: rgba(21,23,26,.95); --barra-vin: rgba(18,20,23,.97);
  --sombra: 0 16px 40px rgba(0,0,0,.45); --error-f: rgba(255,90,70,.1); --error-b: rgba(255,90,70,.4); --error-t: #ffb3a8; --chip-dem: rgba(255,255,255,.08);
  --serie-a: #5b9cf0; --serie-b: #e872ad; --peor2: #cf8d1c; --peor3: #9d6f1f;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 400 16px/1.55 "Archivo", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ambar); outline-offset: 2px; }
.ancho { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
svg use { color: inherit; }
h1, h2, h3, .num, .logo, .cifras dd, .datos dd { font-family: "Saira", "Archivo", sans-serif; }
::selection { background: var(--ambar); color: #1a1200; }

/* ---------- cabecera ---------- */
.cab { background: var(--fondo2); border-bottom: 1px solid var(--linea); position: relative; z-index: 20; }
.cab-fila { display: flex; align-items: center; gap: 22px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 0; text-decoration: none; font-weight: 800; font-variation-settings: "wdth" 112; font-size: 22px; letter-spacing: .01em; color: var(--texto); white-space: nowrap; }
.logo b { color: var(--ambar-txt); font-weight: 800; }
.logo svg { width: 28px; height: 28px; flex: none; }
/* Cabecera: el nombre con el lema debajo, para que se entienda que va de coches */
.logo.con-lema { flex-direction: column; align-items: flex-start; line-height: 1.05; }
.logo.con-lema small { font-family: "Archivo", sans-serif; font-variation-settings: normal; font-size: 11.5px; font-weight: 500; letter-spacing: 0; color: var(--dim); margin-top: 2px; }
.buscar { position: relative; flex: 1; max-width: 540px; display: flex; align-items: center; height: 42px; border: 1px solid var(--linea); border-radius: var(--radio2); background: var(--panel); padding: 0 6px 0 12px; gap: 8px; }
.buscar:focus-within { border-color: var(--ambar-b); background: var(--panel2); }
.buscar > svg { width: 17px; height: 17px; color: var(--dim); flex: none; }
.buscar input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--texto); outline: none; }
.buscar input::placeholder { color: var(--dim); }
.sugerencias { position: absolute; left: -1px; right: -1px; top: 100%; margin: 6px 0 0; padding: 6px 0; list-style: none; background: var(--panel2); border: 1px solid var(--linea2); border-radius: var(--radio2); box-shadow: var(--sombra); z-index: 30; }
.sugerencias a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; text-decoration: none; font-size: 15px; }
.sugerencias a small { color: var(--dim); }
.sugerencias a:hover, .sugerencias a.on { background: var(--panel3); }
.cab-vin { margin-left: auto; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--ambar-txt); white-space: nowrap; }
.cab-vin:hover { color: var(--ambar-t); }
.boton-menu { display: none; margin-left: auto; background: none; border: 1px solid var(--linea2); color: var(--texto); border-radius: var(--radio2); height: 38px; padding: 0 12px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.menu { border-top: 1px solid var(--linea); }
.menu > .ancho { display: flex; gap: 4px; height: 46px; align-items: stretch; }
.menu-grupo { position: relative; display: flex; }
.menu-grupo > button, .menu-grupo > a { background: none; border: 0; color: var(--texto2); font: inherit; font-size: 14.5px; font-weight: 600; padding: 0 12px; cursor: pointer; text-decoration: none; display: flex; align-items: center; gap: 7px; border-bottom: 2px solid transparent; }
.menu-grupo > button::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); opacity: .6; }
.menu-grupo:hover > button, .menu-grupo:focus-within > button, .menu-grupo > a:hover, .menu-grupo.abierto > button { color: var(--texto); border-bottom-color: var(--ambar-txt); }
.menu-panel { display: none; position: absolute; left: 0; top: 100%; min-width: 260px; background: var(--panel2); border: 1px solid var(--linea2); border-radius: 0 0 var(--radio2) var(--radio2); padding: 8px; box-shadow: var(--sombra); z-index: 25; }
.menu-grupo:hover .menu-panel, .menu-grupo:focus-within .menu-panel, .menu-grupo.abierto .menu-panel { display: block; }
.menu-panel a { display: block; padding: 9px 12px; border-radius: 7px; text-decoration: none; }
.menu-panel a b { display: block; font-size: 15px; font-weight: 650; }
.menu-panel a small { display: block; color: var(--dim); font-size: 13px; line-height: 1.35; margin-top: 1px; }
.menu-panel a:hover { background: var(--panel3); }

/* ---------- columnas ---------- */
.pagina { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; padding: 22px 20px 64px; }
.pagina.sin-lateral { grid-template-columns: minmax(0, 1fr); }
.pagina.ancha { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
main { min-width: 0; }
.migas { font-size: 13px; color: var(--dim); margin-bottom: 14px; }
.migas a { text-decoration: none; } .migas a:hover { color: var(--texto); }
h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.04; font-weight: 700; letter-spacing: -.005em; margin: 0 0 12px; max-width: 24ch; }
.entradilla { font-size: 17.5px; color: var(--texto2); margin: 0 0 22px; max-width: 66ch; }
h2 { font-size: 23px; line-height: 1.2; font-weight: 700; margin: 0 0 4px; }
h2 .cuenta { font-family: "Saira"; font-size: 15px; font-weight: 600; color: var(--dim); margin-left: 4px; }
h3 { font-weight: 600; }
.nota { font-size: 13.5px; color: var(--dim); margin: 0 0 14px; }
.caja { background: var(--panel); border: 1px solid var(--linea); border-radius: var(--radio); padding: 20px 22px; margin-bottom: 18px; }
.caja > h2 + table, .caja > h2 + .revisiones, .caja > h2 + ul, .caja > h2 + .rejilla { margin-top: 12px; }
.caja.texto p { max-width: 70ch; color: var(--texto2); }
.dos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.dos > .caja { margin-bottom: 18px; }
.tres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

/* ---------- cifras (bloque de datos genérico) ---------- */
.cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin: 0 0 18px; background: var(--panel2); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; }
.cifras div { padding: 14px 18px 15px; border-right: 1px solid var(--linea); display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.cifras div:last-child { border-right: 0; }
.cifras dd { margin: 0; font-size: 29px; line-height: 1.05; font-weight: 600; }
.cifras dt { font-size: 12.5px; color: var(--dim); margin-top: 4px; }

/* ---------- cabecera de un coche (ficha de año, modelo, problema) ---------- */
.coche { background: var(--panel); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; margin: 0 0 4px; }
.coche-cab { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 24px 26px 18px; }
.coche-cab h1 { margin: 0; }
.coche-cab .entradilla { margin: 10px 0 0; font-size: 16.5px; }
.testigo { display: flex; gap: 12px; align-items: center; align-self: start; border: 1.5px solid var(--linea2); border-radius: 10px; padding: 12px 16px; min-width: 210px; }
.testigo svg { width: 30px; height: 30px; flex: none; }
.testigo b { display: block; font-family: "Saira"; font-size: 22px; font-weight: 700; line-height: 1.05; }
.testigo small { display: block; font-size: 13.5px; color: var(--texto2); margin-top: 2px; }
.testigo.mal { border-color: var(--ambar-txt); background: var(--ambar-f); color: var(--ambar-txt); }
.testigo.bien { border-color: var(--verde-txt); background: var(--verde-f); color: var(--verde-txt); }
.testigo.normal { color: var(--texto2); }
.segmentos { display: grid; grid-template-columns: repeat(var(--n, 14), minmax(38px, 1fr)); gap: 6px; padding: 4px 26px 18px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--linea2) transparent; }
.seg { text-decoration: none; text-align: center; font-family: "Saira"; font-size: 13px; color: var(--dim); }
.seg .col { display: flex; flex-direction: column-reverse; gap: 3px; height: 58px; margin-bottom: 6px; }
.seg .col i { flex: 1; background: var(--apagado); border-radius: 2px; }
.seg .col i.l { background: var(--barra); } .seg.mal .col i.l { background: var(--ambar); } .seg.bien .col i.l { background: var(--verde); }
.seg:hover { color: var(--texto); } .seg:hover .col i:not(.l) { background: var(--panel3); }
.seg.on { color: var(--texto); font-weight: 700; } .seg.on .col { outline: 1.5px solid var(--texto); outline-offset: 3px; border-radius: 2px; }
.datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); border-top: 1px solid var(--linea); background: var(--panel2); margin: 0; }
.datos div { padding: 13px 18px 15px; border-right: 1px solid var(--linea); display: flex; flex-direction: column-reverse; }
.datos div:last-child { border-right: 0; }
.datos dt { font-size: 12.5px; color: var(--dim); margin-top: 3px; }
.datos dd { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.05; }
.datos dd small { font-size: 13px; color: var(--dim); font-weight: 500; margin-left: 3px; }
.datos .a dd { color: var(--ambar-txt); } .datos .v dd { color: var(--verde-txt); }
.datos a { text-decoration: none; } .datos a:hover dd { text-decoration: underline; }

/* pestañas fijas */
.pestanas { position: sticky; top: 0; z-index: 15; background: var(--pestanas); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linea); margin-top: 18px; }
.pestanas > div { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; } .pestanas > div::-webkit-scrollbar { display: none; }
.antes { padding-top: 22px; }
.pestanas a { text-decoration: none; padding: 13px 13px 12px; font-size: 14.5px; font-weight: 600; color: var(--dim); border-bottom: 2px solid transparent; white-space: nowrap; }
.pestanas a:hover { color: var(--texto); }
.pestanas a.on { color: var(--texto); border-bottom-color: var(--ambar-txt); }
.pestanas a span { margin-left: 5px; font-family: "Saira"; color: var(--dim); font-weight: 500; }

/* los peores problemas */
.peores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.peor { background: var(--panel2); border-radius: 10px; padding: 15px 17px; border-top: 3px solid var(--ambar); text-decoration: none; display: block; }
.peor:nth-child(2) { border-top-color: var(--peor2); } .peor:nth-child(3) { border-top-color: var(--peor3); }
a.peor:hover { background: var(--panel3); }
.peor .n { font-family: "Saira"; font-size: 13px; color: var(--dim); }
.peor h3 { margin: 2px 0 12px; font-family: "Saira"; font-size: 19px; line-height: 1.18; }
.peor dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 14px; }
.peor dt { color: var(--dim); } .peor dd { margin: 0; text-align: right; font-family: "Saira"; font-weight: 600; }
.peor dd.si { color: var(--verde-txt); }

/* caja "¿hay arreglo?" */
.arreglo { display: flex; gap: 14px; align-items: center; border: 1.5px solid var(--verde-b); background: var(--verde-f); border-radius: var(--radio); padding: 14px 18px; margin: 16px 0 18px; }
.arreglo svg { width: 26px; height: 26px; color: var(--verde-txt); flex: none; }
.arreglo b { color: var(--verde-t); }
.arreglo.no { border-color: var(--linea2); background: var(--panel); } .arreglo.no svg { color: var(--dim); } .arreglo.no b { color: var(--texto); }
.arreglo a { color: var(--texto); font-weight: 600; }

/* ---------- veredicto del modelo ---------- */
.veredicto { display: grid; grid-template-columns: 1fr 1fr; padding: 0; overflow: hidden; }
.veredicto > div { padding: 18px 22px; }
.veredicto > div + div { border-left: 1px solid var(--linea); }
.veredicto h2 { display: flex; align-items: center; gap: 8px; font-size: 20px; }
.veredicto h2 svg { width: 20px; height: 20px; flex: none; }
.t-mal, .t-mal svg { color: var(--ambar-txt); }
.t-bien, .t-bien svg { color: var(--verde-txt); }
.anios { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 8px; }
.anio { text-decoration: none; font-family: "Saira"; font-weight: 700; font-size: 24px; line-height: 1; padding: 8px 11px 7px; border-radius: 8px; border: 1px solid var(--linea2); }
.anio small { display: block; font-family: "Archivo"; font-size: 11px; font-weight: 500; margin-top: 4px; }
.anio.mal { background: var(--ambar-f); border-color: var(--ambar-b); color: var(--ambar-txt); }
.anio.bien { background: var(--verde-f); border-color: var(--verde-b); color: var(--verde-txt); }
.anio:hover { border-color: currentColor; }
.veredicto p { font-size: 14px; color: var(--texto2); margin: 0; }

/* ---------- tira de años (gráfico de barras del modelo) ---------- */
.tira { position: relative; }
.tira svg { display: block; width: 100%; height: auto; overflow: visible; }
.tira .b { fill: var(--barra); transition: fill .12s; }
.tira .b.mal { fill: var(--ambar); } .tira .b.bien { fill: var(--verde); } .tira .b.este { fill: var(--texto); }
.tira .triangulo { color: var(--ambar-txt); }
.tira .g { outline: none; cursor: pointer; }
.tira .g:hover .b, .tira .g:focus .b { fill: var(--texto); }
.tira text { font: 500 11px "Saira", sans-serif; fill: var(--dim); }
.tira .eje { stroke: var(--linea2); }
.aviso { position: absolute; z-index: 2; pointer-events: none; background: var(--texto); color: var(--fondo); font-size: 13px; line-height: 1.45; padding: 8px 10px; border-radius: 7px; white-space: nowrap; transform: translate(-50%, 0); }
.aviso b { display: block; font-size: 14px; }
.leyenda { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--dim); margin-top: 10px; }
.leyenda i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.l-mal { background: var(--ambar); } .l-bien { background: var(--verde); } .l-otros { background: var(--barra); } .l-este { background: var(--texto); }

/* ---------- tablas ---------- */
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--dim); padding: 0 8px 9px; border-bottom: 1px solid var(--linea2); }
td { padding: 10px 8px; border-bottom: 1px solid var(--linea); vertical-align: top; }
td.n, th.n { text-align: right; } td.n { font-family: "Saira"; }
tr:hover td { background: var(--hover); }
td a { font-weight: 650; text-decoration: none; } td a:hover { text-decoration: underline; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.tag.mal { background: var(--ambar-f); color: var(--ambar-txt); }
.tag.bien { background: var(--verde-f); color: var(--verde-txt); }
.tag:where(:not(.mal):not(.bien)) { background: var(--panel3); color: var(--texto2); } /* :where para que los colores por tipo (.t-rev...) ganen */
.gris { color: var(--dim); font-size: 14px; }
.tabla-mov { overflow-x: auto; }
.cinco { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.cinco i { width: 9px; height: 9px; border-radius: 2px; background: var(--apagado); }
.cinco i.on { background: var(--verde); }
.cinco b { margin-left: 7px; font-size: 14px; font-family: "Saira"; }
table.estrellas td:first-child { min-width: 140px; }

/* ---------- barras ---------- */
.averias { list-style: none; margin: 8px 0 0; padding: 0; }
.averias li { display: grid; grid-template-columns: minmax(120px, 34%) minmax(0, 1fr) 64px; gap: 12px; align-items: center; padding: 7px 0; font-size: 15px; }
.averias li > a, .averias li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.averias li > a { font-weight: 600; text-decoration: none; } .averias li > a:hover { text-decoration: underline; }
.averias .pista { height: 10px; background: var(--apagado); border-radius: 5px; overflow: hidden; }
.averias .pista span { display: block; height: 100%; background: var(--barra2); border-radius: 5px; }
.averias li:first-child .pista span { background: var(--ambar); }
.averias .num { text-align: right; color: var(--texto2); font-family: "Saira"; }

.histo { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; height: 150px; align-items: end; padding-top: 6px; }
.histo div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.histo span { display: block; width: 100%; background: var(--barra); border-radius: 3px 3px 0 0; }
.histo small { font-size: 10px; color: var(--dim); white-space: nowrap; }

/* ---------- revisiones, boletines, investigaciones ---------- */
.revisiones { border-top: 1px solid var(--linea); }
.rev { border-bottom: 1px solid var(--linea); }
.rev summary { cursor: pointer; list-style: none; padding: 13px 0; display: flex; flex-direction: column; gap: 2px; }
.rev summary::-webkit-details-marker { display: none; }
.rev summary:hover .rev-comp { color: var(--ambar-t); }
.rev-comp { font-weight: 600; }
.rev-meta { font-size: 13px; color: var(--dim); }
.rev dl { margin: 0 0 10px; }
.rev dt { font-size: 13px; font-weight: 700; margin-top: 8px; color: var(--texto); }
.rev dd { margin: 2px 0 0; color: var(--texto2); }
.rev > p { color: var(--texto2); margin: 0 0 10px; }
.lista-rev { list-style: none; margin: 10px 0; padding: 0; }
.lista-rev li { padding: 10px 0; border-bottom: 1px solid var(--linea); font-size: 15px; }
.lista-rev a { font-weight: 600; text-decoration: none; } .lista-rev a:hover { text-decoration: underline; }
.lista-rev .rev-comp { font-weight: 400; color: var(--texto2); font-size: 14.5px; }

.queja { border-top: 1px solid var(--linea); padding: 15px 0; }
.queja .meta { font-size: 13px; color: var(--dim); margin: 0 0 6px; }
.queja p:last-child { margin: 0; color: var(--texto2); }

.faq details { border-bottom: 1px solid var(--linea); padding: 13px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-family: "Saira"; color: var(--dim); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 8px 0 0; color: var(--texto2); }

/* ---------- listas y chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.chip { display: inline-block; padding: 5px 12px; border: 1px solid var(--linea2); border-radius: 20px; font-size: 14px; text-decoration: none; background: var(--panel2); }
a.chip:hover { border-color: var(--ambar-b); color: var(--texto); }
.chip small { color: var(--dim); margin-left: 3px; font-family: "Saira"; }
.rejilla { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px 18px; }
.rejilla li { padding: 7px 0; border-bottom: 1px solid var(--linea); }
.rejilla a { text-decoration: none; font-weight: 600; } .rejilla a:hover { color: var(--ambar-t); }
.rejilla small { color: var(--dim); }
.lista-simple { list-style: none; margin: 0; padding: 0; }
.lista-simple li { padding: 11px 0; border-bottom: 1px solid var(--linea); }
.lista-simple a { font-weight: 650; text-decoration: none; } .lista-simple a:hover { text-decoration: underline; }
.lista-simple small { color: var(--dim); margin-left: 6px; }
.anios-lista { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.anios-lista a, .anios-lista span { padding: 4px 9px; border: 1px solid var(--linea2); border-radius: 7px; text-decoration: none; font-size: 14px; font-weight: 600; font-family: "Saira"; }
.anios-lista a.mal { background: var(--ambar-f); border-color: var(--ambar-b); color: var(--ambar-txt); }
.anios-lista a.bien { background: var(--verde-f); border-color: var(--verde-b); color: var(--verde-txt); }
.anios-lista span.on { background: var(--texto); color: var(--fondo); border-color: var(--texto); }
.anios-lista span.gris { border: 0; padding-left: 0; font-weight: 400; font-family: "Archivo"; }
.anios-lista a:hover { border-color: var(--texto); }
.anios-lista small { color: var(--dim); font-weight: 500; }
.lista-simple .anios-lista { margin: 6px 0 0; }
/* Nota del año (0-100) en la tabla de años */
.nota { font-family: "Saira"; font-weight: 700; font-size: 15px; }
.nota-good { color: var(--verde-txt); } .nota-below, .nota-poor { color: var(--ambar-txt); }
th a { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
/* Avisos por email y experiencias de propietarios */
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fila-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 620px; }
.fila-form input[type=email] { flex: 1 1 240px; min-width: 0; height: 46px; border: 1px solid var(--linea2); border-radius: var(--radio2); background: var(--panel); color: var(--texto); font: inherit; font-size: 16px; padding: 0 12px; }
.exp-form form { display: grid; gap: 14px; max-width: 760px; }
.exp-form label span { display: block; font-size: 13px; color: var(--dim); margin: 0 0 4px 2px; }
.exp-form label small { color: var(--dim); }
.exp-form select, .exp-form input, .exp-form textarea { width: 100%; border: 1px solid var(--linea2); border-radius: var(--radio2); background: var(--panel); color: var(--texto); font: inherit; font-size: 16px; padding: 10px 12px; }
.exp-form select, .exp-form input { height: 46px; padding-top: 0; padding-bottom: 0; }
.exp-form textarea { resize: vertical; min-height: 120px; }
.exp-fila { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.exp-form .boton { justify-self: start; }
@media (max-width: 700px) { .exp-fila { grid-template-columns: minmax(0, 1fr); } }
/* Lista de comprobación para comprar usado */
.checklist { list-style: none; margin: 10px 0 0; padding: 0; }
.checklist li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linea); }
.checklist li:last-child { border-bottom: 0; }
.checklist b { display: block; font-weight: 650; }
.checklist small { display: block; color: var(--dim); font-size: 13.5px; margin-top: 2px; }
.checklist p { margin: 6px 0 0; color: var(--texto2); font-size: 15px; max-width: 70ch; }
.ck-caja { flex: none; width: 18px; height: 18px; margin-top: 3px; border: 2px solid var(--linea2); border-radius: 4px; }
.ck-enlace { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.ck-enlace span { color: var(--texto2); font-size: 15px; }
@media print {
  .cab, .menu, .pie, .barra-vin, .extra-pagina, .migas, .no-imprimir, .pestanas { display: none !important; }
  body { background: #fff; color: #000; }
  .caja { border: 0; box-shadow: none; padding: 0; margin: 0 0 14px; break-inside: avoid; }
  .checklist a { color: #000; text-decoration: none; }
  .ck-caja { border-color: #000; }
}
/* Paginador de quejas: "More complaints" y los números de página */
.paginas { margin-top: 16px; }
.paginas .anios-lista { margin-top: 12px; }
.paginas .anios-lista span.gris { padding: 4px 2px; }

/* ---------- VIN ---------- */
.vin-form input { text-transform: uppercase; letter-spacing: .06em; }
.vin-form input::placeholder { text-transform: none; letter-spacing: 0; }
.vin-form:not(.buscar-grande) { max-width: none; height: 46px; padding: 0 4px 0 12px; }
.vin-form:not(.buscar-grande) .boton { min-height: 38px; padding: 0 12px; font-size: 14px; }
.vin-num { font-size: 15px; color: var(--dim); letter-spacing: .06em; margin-top: -4px; }
.h3-caja { font-family: "Saira"; font-size: 18px; font-weight: 600; margin: 0 0 10px; }
.aviso-error { background: var(--error-f); border: 1px solid var(--error-b); color: var(--error-t); border-radius: var(--radio2); padding: 10px 14px; font-size: 15px; margin: 0 0 18px; }
.aviso-ambar { display: flex; gap: 8px; align-items: center; background: var(--ambar-f); border: 1px solid var(--ambar-b); color: var(--ambar-txt); border-radius: var(--radio2); padding: 10px 14px; font-weight: 650; margin: 10px 0 14px; }
.aviso-ambar svg { width: 18px; height: 18px; flex: none; }
.vin-ficha h2 { font-size: 18px; margin: 18px 0 6px; } .vin-ficha h2:first-child { margin-top: 0; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; }
.specs div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--linea); font-size: 15px; }
.specs dt { color: var(--dim); } .specs dd { margin: 0; font-weight: 600; text-align: right; }
.lista-puntos { margin: 8px 0 0; padding-left: 20px; } .lista-puntos li { margin: 4px 0; color: var(--texto2); }

/* ---------- portada ---------- */
.heroe { padding: 46px 0 34px; border-bottom: 1px solid var(--linea); margin-bottom: 28px; }
.heroe h1 { font-size: clamp(36px, 5.6vw, 64px); max-width: 15ch; line-height: 1; }
.heroe .entradilla { font-size: 19px; }
.buscar-grande { max-width: 760px; height: 62px; background: var(--panel); border: 1.5px solid var(--linea2); padding: 0 7px 0 18px; margin: 6px 0 12px; border-radius: 12px; }
.buscar-grande:focus-within { border-color: var(--ambar-txt); }
.buscar-grande > svg { width: 22px; height: 22px; color: var(--dim); }
.buscar-grande input { font-size: 18px; }
.buscar-grande .boton { min-height: 46px; }
.buscar-grande .sugerencias a { font-size: 16px; padding: 11px 16px; }
.heroe .o { font-size: 13.5px; color: var(--dim); margin: 0 0 8px 2px; }
/* Últimas noticias a la derecha del buscador (debajo en pantallas estrechas) */
.heroe.con-noticias { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; }
.heroe-noticias { background: var(--panel); border: 1px solid var(--linea); border-radius: var(--radio); padding: 18px 20px 6px; margin-top: 10px; }
.heroe-noticias h2 { font-size: 19px; margin: 0; }
.heroe-noticias .noticias { margin-top: 4px; }
.heroe-noticias .noticias li { padding: 11px 0; }
.heroe-noticias .noticias li:last-child { border-bottom: 0; }
.heroe-noticias .noticias li > a { font-size: 15px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.heroe-noticias .mas { margin: 0; padding: 12px 0 10px; border-top: 1px solid var(--linea); font-size: 14.5px; font-weight: 600; }
@media (max-width: 1060px) { .heroe.con-noticias { grid-template-columns: minmax(0, 1fr); gap: 26px; } .heroe-noticias { margin-top: 0; } }
.contadores { display: flex; flex-wrap: wrap; gap: 10px 34px; margin: 26px 0 0; }
.contadores div { display: flex; flex-direction: column-reverse; }
.contadores dd { margin: 0; font-family: "Saira"; font-size: 30px; font-weight: 600; line-height: 1.05; }
.contadores dt { font-size: 13px; color: var(--dim); }
.populares { list-style: none; margin: 12px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; }
.populares li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 0; border-bottom: 1px solid var(--linea); }
.pop-modelo { font-weight: 700; text-decoration: none; min-width: 9.5em; }
.pop-modelo:hover { color: var(--ambar-t); }
.populares .anios-lista { margin: 0; }
.pop-menos { flex-basis: 100%; font-size: 13px; color: var(--dim); }
.pop-menos a { color: var(--verde-txt); font-weight: 700; text-decoration: none; }
.selector { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; margin: 6px 0 0; max-width: 760px; }
.selector label span { display: block; font-size: 12px; color: var(--dim); margin: 0 0 4px 2px; }
.selector select { width: 100%; height: 46px; border: 1px solid var(--linea2); border-radius: var(--radio2); background: var(--panel); font: inherit; font-size: 15.5px; padding: 0 10px; color: var(--texto); }
.selector select:disabled { color: var(--dim); opacity: .6; }
.selector .boton { align-self: end; height: 46px; }
.herramientas { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; }
.herramientas li { border-bottom: 1px solid var(--linea); }
.herramientas a { display: block; padding: 12px 0; text-decoration: none; }
.herramientas a b { display: block; font-family: "Saira"; font-size: 17px; font-weight: 600; }
.herramientas a span { color: var(--dim); font-size: 14px; }
.herramientas a:hover b { color: var(--ambar-t); }
.tendencias-lista { list-style: none; margin: 8px 0 0; padding: 0; }
.tendencias-lista li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.tendencias-lista a { font-weight: 650; text-decoration: none; } .tendencias-lista a:hover { text-decoration: underline; }
.tendencias-lista .num { font-size: 18px; font-weight: 600; color: var(--ambar-txt); text-align: right; }
.tendencias-lista small { color: var(--dim); font-size: 13px; }

/* ---------- botones y lateral ---------- */
.boton { display: inline-flex; align-items: center; justify-content: center; background: var(--ambar); color: #1a1200; text-decoration: none; font: inherit; font-weight: 700; font-size: 15px; padding: 0 18px; min-height: 44px; border-radius: var(--radio2); border: 0; cursor: pointer; }
.boton:hover { background: var(--ambar-t); }
.boton.secundario { background: transparent; color: var(--texto); border: 1px solid var(--linea2); margin-top: 12px; }
.boton.secundario:hover { border-color: var(--texto); }
.lateral { position: sticky; top: 64px; align-self: start; }
.lateral .caja { padding: 18px; }
.afil h3 { font-family: "Saira"; font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.afil p { font-size: 14px; color: var(--texto2); margin: 0 0 12px; }
.afil .boton { width: 100%; background: transparent; color: var(--texto); border: 1px solid var(--linea2); }
.afil .boton:hover { border-color: var(--texto); }
.fuente { font-size: 12px; color: var(--dim); margin-top: 10px; }

/* ---------- pie ---------- */
.pie { border-top: 1px solid var(--linea); background: var(--fondo2); padding: 34px 0 44px; font-size: 14px; color: var(--dim); }
.pie-cols { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 24px; }
.pie-cols > div > b { display: block; color: var(--texto); font-family: "Saira"; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.pie-cols a { display: block; text-decoration: none; padding: 3px 0; } .pie-cols a:hover { color: var(--texto); }
.pie-legal { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--linea); font-size: 12.5px; }
.pie-legal p { margin: 0 0 6px; max-width: 90ch; }

/* ---------- comparativas ---------- */
table.cmp th[scope="row"] { font-size: 14px; font-weight: 600; color: var(--dim); padding: 10px 8px; border-bottom: 1px solid var(--linea); white-space: nowrap; }
table.cmp thead th { font-size: 15px; color: var(--texto); }
table.cmp thead th a { font-weight: 700; text-decoration: none; }
table.cmp .anios-lista { display: flex; flex-wrap: wrap; gap: 4px; }
.cmp-desliza { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--linea2) transparent; }
.cmp-grafica { display: block; width: 100%; height: auto; margin-top: 8px; }
.cmp-grafica .eje { stroke: var(--linea2); }
.cmp-grafica text { font-size: 11px; fill: var(--dim); }
.cmp-grafica .sa, .l-sa { fill: var(--serie-a); background: var(--serie-a); }
.cmp-grafica .sb, .l-sb { fill: var(--serie-b); background: var(--serie-b); }
.cmp-grafica rect:hover { opacity: .75; }

/* ---------- noticias ---------- */
.noticias { list-style: none; margin: 8px 0 0; padding: 0; }
.noticias li { padding: 13px 0; border-bottom: 1px solid var(--linea); display: flex; flex-direction: column; gap: 4px; }
.noticias li > a { font-weight: 650; text-decoration: none; line-height: 1.35; }
.noticias li > a:hover { color: var(--ambar-t); }
.tag.t-rev { background: var(--ambar-f); color: var(--ambar-txt); }
.tag.t-inv { background: color-mix(in srgb, var(--azul) 13%, transparent); color: var(--azul); }
.tag.t-gar { background: var(--verde-f); color: var(--verde-txt); }
.tag.t-pico { background: color-mix(in srgb, var(--rosa) 13%, transparent); color: var(--rosa); }
.tag.t-dem { background: var(--chip-dem); color: var(--texto); }
.articulo h2 { font-size: 19px; margin: 20px 0 6px; } .articulo h2:first-child { margin-top: 0; }
.articulo p, .articulo li { max-width: 70ch; color: var(--texto2); }
.articulo ol, .articulo ul { padding-left: 20px; }

/* ---------- ficha de revisión / boletín ---------- */
.rp { margin: 8px 0 0; }
.rp dt { font-weight: 700; margin-top: 14px; }
.rp dt:first-child { margin-top: 4px; }
.rp dd { margin: 4px 0 0; color: var(--texto2); max-width: 70ch; }

/* ---------- móvil ---------- */
@media (max-width: 900px) {
  .cab-fila { height: 58px; gap: 12px; }
  .cab-fila .buscar, .cab-vin { display: none; }
  .boton-menu { display: inline-flex; align-items: center; }
  .cab-buscar { display: block; padding: 0 20px 12px; } .cab-buscar .buscar { max-width: none; }
  .menu { display: none; } .menu.abierto { display: block; }
  .menu > .ancho { flex-direction: column; height: auto; padding: 6px 20px 14px; }
  .menu-grupo { flex-direction: column; } .menu-grupo > button, .menu-grupo > a { padding: 13px 0; border-bottom: 1px solid var(--linea); justify-content: space-between; font-size: 16px; }
  .menu-panel { position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 8px 8px; min-width: 0; display: none; }
  .menu-grupo:hover .menu-panel, .menu-grupo:focus-within .menu-panel { display: none; } .menu-grupo.abierto .menu-panel { display: block; }
  .pagina { grid-template-columns: 1fr; gap: 0; padding-top: 16px; }
  .lateral { position: static; }
  .coche-cab { grid-template-columns: 1fr; padding: 18px; gap: 14px; } .testigo { min-width: 0; }
  .segmentos { display: flex; padding: 4px 18px 16px; } .seg { min-width: 44px; }
  .datos { grid-template-columns: 1fr 1fr; } .datos div:nth-child(2n) { border-right: 0; } .datos div { border-bottom: 1px solid var(--linea); }
  .peores { grid-template-columns: 1fr; }
  .veredicto, .dos, .tres { grid-template-columns: 1fr; }
  .dos, .tres { gap: 0; }
  .veredicto > div + div { border-left: 0; border-top: 1px solid var(--linea); }
  .caja { padding: 17px; }
  .averias li { grid-template-columns: minmax(96px, 44%) minmax(0, 1fr) 56px; gap: 10px; font-size: 14px; }
  .averias li > a, .averias li > span:first-child { white-space: normal; line-height: 1.25; }
  .ocultar-movil { display: none; }
  .cmp-grafica { min-width: 600px; }
  td .tag { white-space: normal; text-align: center; line-height: 1.2; padding: 3px 7px; }
  .selector { grid-template-columns: 1fr; }
  .populares, .herramientas { grid-template-columns: 1fr; }
  .pop-modelo { flex-basis: 100%; }
  .specs { grid-template-columns: 1fr; }
  .heroe { padding: 26px 0 22px; }
  .buscar-grande { height: 56px; padding-left: 12px; } .buscar-grande input { font-size: 16px; } .buscar-grande .boton { padding: 0 14px; }
  .cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cifras div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .cifras div:nth-child(2n) { border-right: 0; } .cifras div { border-bottom: 1px solid var(--linea); }
  .tira.larga { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--linea2) transparent; } .tira.larga svg { min-width: 560px; }
  .entradilla { font-size: 16.5px; }
  .pie-cols { grid-template-columns: 1fr 1fr; }
  .pestanas { margin-top: 14px; }
  .barra-vin { display: flex; }
}
@media (min-width: 901px) { .cab-buscar { display: none; } .barra-vin { display: none !important; } }
@media (max-width: 600px) {
  .cinco i { display: none; } .cinco b { margin: 0; } table.estrellas td:first-child { min-width: 0; }
  table.cmp { table-layout: fixed; font-size: 14px; } table.cmp th[scope="row"] { white-space: normal; width: 34%; font-size: 13px; padding-left: 0; }
  table.cmp td, table.cmp thead th { padding-left: 6px; padding-right: 4px; overflow-wrap: anywhere; } table.cmp .anios-lista a { padding: 3px 5px; font-size: 13px; }
}
/* barra inferior fija en móvil (ficha de coche): comprobar VIN */
.barra-vin { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 18; background: var(--barra-vin); border-top: 1px solid var(--linea2); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); gap: 10px; align-items: center; }
.barra-vin span { flex: 1; font-size: 14px; color: var(--texto2); }
.barra-vin .boton { min-height: 40px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.datos .txt dd { font-size: 20px; line-height: 1.2; }

/* botón de tema claro / oscuro */
.boton-tema { background: none; border: 1px solid var(--linea2); color: var(--texto2); border-radius: var(--radio2); height: 34px; padding: 0 11px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; flex-shrink: 0; }
.boton-tema:hover { color: var(--texto); border-color: var(--texto2); }
.boton-tema span { display: inline-flex; align-items: center; gap: 7px; }
.boton-tema b { font-weight: 600; }
.boton-tema svg { width: 15px; height: 15px; }
.boton-tema .sol, :root[data-tema="oscuro"] .boton-tema .luna { display: none; }
:root[data-tema="oscuro"] .boton-tema .sol { display: inline-flex; }
@media (max-width: 900px) { .boton-tema { height: 38px; width: 38px; padding: 0; justify-content: center; margin-left: auto; } .boton-tema b { display: none; } .boton-menu { margin-left: 0; } }

/* Cajas que antes iban en la columna lateral: al final del contenido, a todo el ancho (VIN, noticias del modelo, afiliados) */
.extra-pagina { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; align-items: start; margin-bottom: 18px; }
.extra-pagina .caja { margin-bottom: 0; height: 100%; }
.caja-vin { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.caja-vin > div { flex: 1 1 260px; }
.caja-vin .h3-caja { margin: 0; }
.caja-vin .nota { margin: 4px 0 0; }
.caja-vin .vin-form { flex: 1 1 340px; margin: 0; }
.faq details p { max-width: 78ch; }
