/* Tasador de autos usados. El mundo de la ruta uruguaya: asfalto, rojo de señal vial, azul de chapa
   Mercosur y amarillo de carril. El rojo es siempre lo que dice el modelo; el azul, lo que pone el usuario. */
@font-face {
  font-family: 'Archivo';
  src: url('fuentes/archivo-latin.woff2') format('woff2');
  font-weight: 300 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
:root {
  --blanco: #FFFFFF;
  --asfalto: #15181D;
  --gris: #5B6270;          /* texto secundario: 6,3:1 sobre blanco */
  --gris-medio: #8A909C;    /* bordes de controles y marcas: 3,2:1 */
  --gris-claro: #E3E6EB;
  --gris-ruta: #F2F3F5;
  --rojo: #D52B1E;
  --rojo-osc: #B3241A;
  --azul: #1C3F94;
  --amarillo: #F3B300;
  --letra: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --curva: cubic-bezier(.2, .8, .2, 1);
  --resorte: cubic-bezier(.34, 1.4, .64, 1);
  --margen: clamp(16px, 4vw, 56px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { font-size: clamp(100%, .25vw + 83%, 112.5%); background: var(--blanco); scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--letra); color: var(--asfalto); background: var(--blanco);
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; line-height: 1.5;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--azul); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--rojo); color: var(--blanco); }
button, label, summary, .chapa, a { -webkit-tap-highlight-color: transparent; }
.envoltura { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--margen); }
.sprite { position: absolute; }
.saltar { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--asfalto); color: var(--blanco); padding: .7rem 1rem; border-radius: 4px; font-weight: 700; text-decoration: none; }
.saltar:focus { top: 1rem; }
.resumen-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Cabecera ---------- */
.cabecera { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--gris-claro); }
.cabecera-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; }
.sitio { display: flex; align-items: center; gap: .65rem; color: var(--asfalto); text-decoration: none; font-weight: 800; font-stretch: 112%; font-size: 1rem; white-space: nowrap; }
.sitio svg { width: 2.4rem; height: .72rem; }
.sitio-pais { font-weight: 500; font-stretch: 100%; color: var(--gris); }
.nav { display: flex; gap: .25rem 1.4rem; font-size: .92rem; }
.nav a { color: var(--asfalto); text-decoration: none; padding: .7rem 0; font-weight: 600; }
.nav a:hover { color: var(--rojo); }
@media (max-width: 880px) { .sitio-pais { display: none; } }
@media (max-width: 560px) { .nav a:not(:last-child) { display: none; } }

/* ---------- Portada ---------- */
.portada { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0 3rem; padding-top: clamp(1.8rem, 4vw, 3.2rem); padding-bottom: clamp(1.4rem, 3vw, 2.4rem); }
/* Título y bajada a la izquierda del auto; los ejemplos, en una fila a todo el ancho. */
.portada-texto { display: contents; }
.portada h1, .portada .bajada { grid-column: 1; }
.portada .ejemplos { grid-column: 1 / -1; }
#auto-intro { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
h1 { font-size: clamp(2.35rem, 5.4vw, 4.6rem); font-weight: 800; font-stretch: 125%; letter-spacing: -.028em; line-height: .98; max-width: 14ch; text-wrap: balance; }
.bajada { font-size: clamp(1.05rem, 1.2vw + .7rem, 1.25rem); color: var(--gris); margin-top: 1rem; max-width: 52ch; }
.ejemplos { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem .8rem; margin-top: 1.5rem; }
.ejemplos > span { font-size: .9rem; font-weight: 600; color: var(--gris); margin-right: .2rem; }
@media (max-width: 760px) { .ejemplos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .ejemplos > span { grid-column: 1 / -1; } }

/* Chapas uruguayas */
.chapa { display: flex; flex-direction: column; border: 2.5px solid var(--asfalto); border-radius: 7px; overflow: hidden; background: var(--blanco); cursor: pointer; min-height: 44px; transition: transform .35s var(--resorte), box-shadow .35s var(--curva), border-color .2s; }
.chapa .banda { background: var(--azul); color: var(--blanco); font-size: .5rem; font-weight: 700; letter-spacing: .34em; padding: .14rem 0 .12rem .34em; text-align: center; }
.chapa .texto { font-size: 1rem; font-weight: 700; font-stretch: 72%; letter-spacing: .05em; padding: .3rem .85rem .34rem; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chapa .ch-km::before { content: ' · '; }
@media (max-width: 760px) {
  .chapa .texto { padding: .25rem .6rem .3rem; line-height: 1.15; }
  .chapa .ch-auto, .chapa .ch-km { display: block; }
  .chapa .ch-km { font-size: .8rem; font-stretch: 80%; color: var(--gris); }
  .chapa .ch-km::before { content: none; }
}
.chapa[aria-pressed="true"] { border-color: var(--rojo); }
.chapa[aria-pressed="true"] .texto { color: var(--rojo); }
@media (hover: hover) { .chapa:hover { transform: translateY(-3px); box-shadow: 0 10px 18px -12px rgba(21, 24, 29, .55); } }
.chapa:active { transform: translateY(0); }

#auto-intro { width: clamp(220px, 21vw, 340px); height: auto; overflow: visible; }
#auto-intro .todo { animation: llega 1.9s cubic-bezier(.16, .84, .3, 1) .15s both; }
#auto-intro .rueda { transform-box: fill-box; transform-origin: center; animation: gira 1.9s cubic-bezier(.16, .84, .3, 1) .15s both; }
#auto-intro .estela { stroke: var(--gris-claro); stroke-width: 6; stroke-linecap: round; animation: estela 1.9s ease .15s both; }
@keyframes llega { from { transform: translateX(-900px); } to { transform: none; } }
@keyframes gira { from { transform: rotate(-1080deg); } to { transform: none; } }
@keyframes estela { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 960px) { .portada { grid-template-columns: minmax(0, 1fr); } #auto-intro { display: none; } }

/* ---------- Tablero ---------- */
.tablero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem clamp(2rem, 5vw, 5rem); align-items: start; padding-bottom: 2rem; }
.tablero:focus { outline: none; }
@media (max-width: 960px) { .tablero { grid-template-columns: minmax(0, 1fr); } }
/* En escritorio, el formulario acompaña mientras se mira el resultado (si entra en la pantalla). */
@media (min-width: 961px) and (min-height: 820px) { .formulario { position: sticky; top: 4.5rem; } }
.formulario, .tasacion { border-top: 6px solid var(--asfalto); padding-top: 1.1rem; }
.titulo-bloque { font-size: 1.15rem; font-weight: 800; font-stretch: 115%; margin-bottom: 1.3rem; }
.rotulo { display: block; font-size: .9rem; font-weight: 600; color: var(--gris); margin-bottom: .3rem; }
.campos { display: flex; flex-direction: column; gap: 1.6rem; }
.dos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.4rem; }
@media (max-width: 420px) { .dos { grid-template-columns: minmax(0, 1fr); } }
fieldset { border: 0; min-width: 0; }
legend { padding: 0; }
.pista { font-size: .875rem; color: var(--gris); margin-top: .4rem; }
.pista:empty { display: none; }
.pista.aviso { color: var(--rojo-osc); font-weight: 600; }

/* Desplegables propios: el <select> queda oculto como fuente de datos y esto es lo que se ve */
.nativo { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.desplegable { position: relative; }
.disparador { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: .6rem; background: none; border: 0;
  border-bottom: 2px solid var(--asfalto); border-radius: 0; padding: .2rem 0 .35rem; font-size: 1.35rem; font-weight: 700; font-stretch: 108%;
  text-align: left; cursor: pointer; transition: border-color .25s, box-shadow .25s; }
.disparador .valor { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.disparador.sin-dato .valor { color: var(--gris); font-weight: 600; }
.disparador:disabled { cursor: not-allowed; border-bottom-color: var(--gris-claro); }
.disparador:disabled .valor { color: var(--gris); }
.disparador:hover:not(:disabled), .abierto .disparador { border-bottom-color: var(--rojo); }
.disparador:focus-visible { outline: none; border-bottom-color: var(--rojo); box-shadow: 0 2px 0 var(--rojo), 0 0 0 3px var(--blanco), 0 0 0 6px var(--azul); }
.flecha-d { width: .8rem; height: .55rem; flex: none; fill: none; stroke: var(--asfalto); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--resorte), stroke .25s; }
.abierto .flecha-d { transform: rotate(180deg); stroke: var(--rojo); }
.panel { position: absolute; left: 0; top: calc(100% + 8px); z-index: 30; width: max(100%, 15rem); max-width: calc(100vw - 2 * var(--margen));
  background: var(--blanco); border: 2px solid var(--asfalto); border-radius: 6px; box-shadow: 0 22px 44px -20px rgba(21, 24, 29, .5);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transform-origin: top;
  transition: opacity .18s var(--curva), transform .28s var(--curva), visibility 0s .28s; }
.panel.derecha { left: auto; right: 0; }
.panel.arriba { top: auto; bottom: calc(100% + 8px); transform: translateY(8px); transform-origin: bottom; }
.abierto .panel { opacity: 1; visibility: visible; transform: none; transition: opacity .18s var(--curva), transform .28s var(--curva), visibility 0s; }
.buscador { display: flex; align-items: center; gap: .55rem; padding: .55rem .9rem; border-bottom: 1px solid var(--gris-claro); }
.buscador svg { width: 1rem; height: 1rem; flex: none; fill: none; stroke: var(--gris); stroke-width: 2.4; stroke-linecap: round; }
.buscador input { flex: 1; min-width: 0; min-height: 36px; border: 0; outline: none; background: none; font-size: 1rem; font-weight: 600; caret-color: var(--rojo); }
.buscador input::placeholder { color: var(--gris); font-weight: 500; }
.buscador:focus-within { box-shadow: inset 0 -2px 0 var(--azul); }
.panel ul { list-style: none; max-height: var(--alto-lista, 18.5rem); overflow-y: auto; padding: .3rem 0; outline: none; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--gris-medio) transparent; }
.panel ul:focus-visible { box-shadow: inset 0 0 0 2px var(--azul); }
.panel li { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px;
  padding: .45rem .95rem .45rem 1.15rem; font-size: 1rem; font-weight: 600; cursor: pointer; }
@media (pointer: coarse) { .panel li { min-height: 48px; } }
.panel li::before { content: ''; position: absolute; left: 0; top: .35rem; bottom: .35rem; width: 3px; background: var(--rojo); transform: scaleY(0); transition: transform .2s var(--curva); }
.panel li.activo { background: var(--gris-ruta); }
.panel li.activo::before { transform: none; }
.panel li[aria-selected="true"] { color: var(--rojo-osc); font-weight: 800; }
.panel li .extra { font-size: .8rem; font-weight: 500; color: var(--gris); white-space: nowrap; }
.panel li.vacio { color: var(--gris); font-weight: 500; cursor: default; }

/* Campos de texto grandes */
.campo-texto { display: flex; align-items: baseline; gap: .5rem; border-bottom: 2px solid var(--asfalto); transition: border-color .25s, box-shadow .25s; }
.campo-texto:hover, .campo-texto:focus-within { border-bottom-color: var(--rojo); }
.campo-texto:focus-within { box-shadow: 0 2px 0 var(--rojo); }
.campo-texto input { width: 100%; min-width: 0; flex: 1; appearance: none; -webkit-appearance: none; background: transparent; border: 0; border-radius: 0;
  padding: .1rem 0 .3rem; font-size: 1.9rem; font-weight: 800; font-stretch: 115%; caret-color: var(--rojo); }
.campo-texto input:focus-visible { outline: none; }
.campo-texto input::placeholder { color: var(--gris-medio); font-weight: 600; font-size: 1.35rem; }
.campo-texto .unidad { font-size: 1rem; font-weight: 700; color: var(--gris); }

/* Kilómetros: la barra es una ruta y el cursor, un auto */
.ruta-km { margin-top: .9rem; --f: .3; }
.ruta-km input { --p: calc(33px + (100% - 66px) * var(--f)); width: 100%; appearance: none; -webkit-appearance: none; background: transparent; height: 2.2rem; cursor: pointer; display: block; touch-action: pan-y; }
.ruta-km input::-webkit-slider-runnable-track { height: 8px; border-radius: 4px;
  background: repeating-linear-gradient(90deg, var(--amarillo) 0 10px, transparent 10px 20px) 0 50% / var(--p) 2px no-repeat,
              linear-gradient(90deg, var(--asfalto) var(--p), var(--gris-claro) var(--p)); }
.ruta-km input::-moz-range-track { height: 8px; border-radius: 4px;
  background: repeating-linear-gradient(90deg, var(--amarillo) 0 10px, transparent 10px 20px) 0 50% / var(--p) 2px no-repeat,
              linear-gradient(90deg, var(--asfalto) var(--p), var(--gris-claro) var(--p)); }
.ruta-km input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 66px; height: 26px; margin-top: -21px; border: 0; background: var(--auto-svg) center bottom / contain no-repeat; transition: transform .25s var(--resorte); }
.ruta-km input::-moz-range-thumb { width: 66px; height: 26px; border: 0; border-radius: 0; background: var(--auto-svg) center bottom / contain no-repeat; transform: translateY(-11px); }
.ruta-km input:active::-webkit-slider-thumb { transform: translateY(-2px) scale(1.06); }
.ruta-km input:focus-visible { outline: 3px solid var(--azul); outline-offset: 4px; }
.ruta-km .marcas-km { display: flex; justify-content: space-between; font-size: .8rem; color: var(--gris); margin-top: .1rem; }
:root { --auto-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='40 50 730 216'%3E%3Cpath fill='%23D52B1E' d='M58 214 L52 178 Q54 152 80 144 L160 128 Q190 122 214 104 L262 76 Q282 64 306 63 L428 62 Q454 63 472 78 L540 122 L690 138 Q728 143 742 162 L752 186 Q756 210 736 214 L664 214 A54 54 0 0 0 556 214 L246 214 A54 54 0 0 0 138 214 Z'/%3E%3Cpath fill='%23FFFFFF' d='M246 122 L282 86 Q294 76 310 76 L372 76 L372 122 Z M386 76 L428 76 Q448 77 462 90 L512 122 L386 122 Z'/%3E%3Ccircle cx='192' cy='214' r='44' fill='%2315181D'/%3E%3Ccircle cx='192' cy='214' r='18' fill='%23FFFFFF'/%3E%3Ccircle cx='610' cy='214' r='44' fill='%2315181D'/%3E%3Ccircle cx='610' cy='214' r='18' fill='%23FFFFFF'/%3E%3C/svg%3E"); }

/* Quién vende: interruptor de dos posiciones */
.segmento { position: relative; display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--asfalto); border-radius: 999px; padding: 3px; }
.segmento::before { content: ''; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--asfalto); transition: transform .4s var(--resorte); }
.segmento.derecha::before { transform: translateX(100%); }
.segmento input { position: absolute; opacity: 0; pointer-events: none; }
.segmento label { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 40px; padding: .35rem .4rem; font-size: 1rem; font-weight: 700; font-stretch: 108%; cursor: pointer; border-radius: 999px; transition: color .25s; }
.segmento input:checked + label { color: var(--blanco); }
.segmento input:focus-visible + label { outline: 3px solid var(--azul); outline-offset: 3px; }

details { border-top: 1px solid var(--gris-claro); padding-top: .6rem; }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 44px; font-size: 1rem; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary i { position: relative; width: 14px; height: 14px; flex: none; }
summary i::before, summary i::after { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--asfalto); transition: transform .3s var(--curva); }
summary i::after { transform: rotate(90deg); }
details[open] summary i::after { transform: rotate(0); }
summary small { font-weight: 500; color: var(--gris); font-size: .875rem; margin-left: .4rem; }
details > .pista { margin: 0 0 .2rem; }
.tres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-top: 1rem; }
.tres .disparador { font-size: 1.1rem; }
@media (max-width: 1180px) and (min-width: 961px), (max-width: 520px) { .tres { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .tres > :first-child { grid-column: 1 / -1; } }

/* ---------- Resultado ---------- */
.resultado { display: flex; flex-direction: column; gap: 2.2rem; min-width: 0; }
.tasacion:focus { outline: none; }
.que-auto { font-size: 1.05rem; font-weight: 700; overflow-wrap: anywhere; }
.precio { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .55rem; margin-top: .4rem; font-weight: 800; font-stretch: 122%; letter-spacing: -.03em; line-height: .95; }
.precio .moneda { font-size: clamp(1.25rem, 2.2vw, 2rem); color: var(--gris); letter-spacing: 0; }
.precio .monto { font-size: clamp(3rem, 10vw, 6.2rem); color: var(--asfalto); white-space: nowrap; }
.barrido { height: 4px; background: var(--rojo); margin: 1rem 0 .9rem; transform-origin: left; }
.rango { font-size: 1.05rem; max-width: 46ch; }
.rango b { font-weight: 800; font-stretch: 108%; white-space: nowrap; }
.delta { color: var(--gris); }

.confianza { display: flex; align-items: flex-start; gap: .75rem; margin-top: 1.1rem; padding: .8rem 1rem; background: var(--gris-ruta); border-radius: 6px; max-width: 46rem; }
.confianza p { font-size: .95rem; }
.senal { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; flex: none; margin-top: .15rem; }
.senal i { display: block; width: 6px; background: var(--gris-claro); border-radius: 1px; }
.senal i:nth-child(1) { height: 7px; } .senal i:nth-child(2) { height: 12px; } .senal i:nth-child(3) { height: 18px; }
.confianza .senal i { background: #C9CDD4; }
.senal[data-nivel="alta"] i { background: var(--asfalto) !important; }
.senal[data-nivel="media"] i:nth-child(-n+2) { background: var(--asfalto) !important; }
.senal[data-nivel="baja"] i:nth-child(1) { background: var(--rojo) !important; }
.sesgo { margin-top: .8rem; font-size: .95rem; padding-left: .9rem; border-left: 3px solid var(--amarillo); max-width: 46rem; }
.sesgo button { background: none; border: 0; padding: 0; color: var(--azul); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; font-weight: 600; }

.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1.3rem; }
.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem 1.1rem; border: 2px solid var(--asfalto); border-radius: 6px;
  background: var(--asfalto); color: var(--blanco); font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s; }
.boton:hover { background: var(--rojo); border-color: var(--rojo); text-decoration: none; }
.boton.secundario { background: var(--blanco); color: var(--asfalto); }
.boton.secundario:hover { background: var(--gris-ruta); border-color: var(--asfalto); }
.copiado { font-size: .9rem; color: var(--gris); }
.copiado input { font-size: .85rem; width: min(100%, 28rem); padding: .4rem; border: 1px solid var(--gris-medio); border-radius: 4px; margin-top: .3rem; }
.fecha { margin-top: 1rem; font-size: .85rem; color: var(--gris); }

/* ¿Viste un aviso? */
.comparar { border-top: 1px solid var(--gris-claro); padding-top: 1.3rem; }
.comparar h3, .seccion-titulo h3 { font-size: 1.1rem; font-weight: 800; font-stretch: 110%; }
.comparar-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 1rem 2.5rem; align-items: start; margin-top: 1rem; }
@media (max-width: 600px) { .comparar-in { grid-template-columns: minmax(0, 1fr); } .medidor { max-width: 320px; } }
.medidor svg { width: 100%; height: auto; overflow: visible; }
.medidor .zona { fill: none; stroke-width: 18; }
.medidor .marca-fina { stroke: var(--gris-medio); stroke-width: 2; }
.medidor text { font-family: var(--letra); font-size: 17px; fill: var(--gris); }
.medidor .lim { font-size: 19px; font-weight: 800; font-stretch: 112%; fill: var(--rojo-osc); }
#aguja { transform-box: view-box; transform-origin: 216px 196px; transition: transform 1s var(--resorte), opacity .4s; }
#aguja.quieta { opacity: .3; }
.veredicto { margin-top: 1rem; }
.sello { display: inline-block; font-size: .9rem; font-weight: 800; font-stretch: 110%; padding: .3rem .75rem; border-radius: 4px; border: 2px solid var(--asfalto); }
.sello.mercado { background: var(--asfalto); color: var(--blanco); }
.sello.fuera { background: var(--rojo); border-color: var(--rojo); color: var(--blanco); }
.sello.cerca { background: var(--blanco); }
.sello.espera { border-color: var(--gris-claro); color: var(--gris); }
.sello.pop { animation: pop .45s var(--resorte); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.veredicto p { font-size: .95rem; margin-top: .5rem; color: var(--gris); }
.veredicto p b { color: var(--asfalto); font-weight: 800; }

/* Avisos reales del mismo modelo y año */
.seccion-titulo { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .4rem 1.5rem; margin-bottom: .5rem; }
.leyenda { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .85rem; color: var(--gris); }
.leyenda i { display: inline-block; vertical-align: -1px; margin-right: .4rem; }
.leyenda .pt { width: 10px; height: 10px; border-radius: 50%; background: var(--asfalto); }
.leyenda .ln { width: 3px; height: 13px; }
.leyenda .rojo { background: var(--rojo); }
.leyenda .azul { background: var(--azul); }
.franja { min-height: 150px; }
.franja svg { width: 100%; overflow: visible; }
.franja text { font-family: var(--letra); font-size: 13px; fill: var(--gris); }
.franja .punto { fill: var(--asfalto); }
.franja .punto.cae { animation: cae .6s var(--curva) both; }
@keyframes cae { from { transform: translateY(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
.franja .marcador { transition: transform .7s var(--curva), opacity .3s; }
.franja .marcador text { font-size: 14px; font-weight: 800; font-stretch: 108%; }
.franja #m-tas text { fill: var(--rojo-osc); }
.franja #m-pub text { fill: var(--azul); }

/* Desglose: de un auto típico a esta tasación */
.desglose .fila { display: grid; grid-template-columns: minmax(0, 1fr) minmax(5rem, 11rem) minmax(6.5rem, max-content); align-items: center; gap: 1.2rem;
  padding: .65rem 0; border-bottom: 1px solid var(--gris-claro); }
.desglose .fila:first-child { border-top: 1px solid var(--gris-claro); }
.desglose .v { text-align: right; font-weight: 800; font-stretch: 108%; white-space: nowrap; }
.desglose .v.baja { color: var(--rojo-osc); }
.desglose .eje-z { position: relative; height: 12px; }
.desglose .eje-z::before { content: ''; position: absolute; left: 50%; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--gris-medio); }
.desglose .eje-z i { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; background: var(--asfalto); border-radius: 2px; transition: left .7s var(--curva), width .7s var(--curva), background-color .3s; }
.desglose .eje-z i.baja { background: var(--rojo); }
.desglose .total { border-bottom: 0; }
.desglose .total .et { font-weight: 800; font-stretch: 112%; }
.desglose .total .v { font-size: 1.35rem; }
.desglose .base .et b { font-weight: 700; }
@media (max-width: 520px) {
  .desglose .fila { grid-template-columns: minmax(0, 1fr) max-content; gap: .8rem; }
  .desglose .eje-z, .desglose .hueco { display: none; }
}

/* Barra fija con la tasación, solo en pantallas chicas mientras se completa el formulario */
.barra-precio { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "auto ver" "monto ver";
  align-items: center; column-gap: 1rem; padding: .55rem var(--margen) calc(.55rem + env(safe-area-inset-bottom)); background: var(--asfalto); color: var(--blanco);
  text-decoration: none; box-shadow: 0 -8px 24px -12px rgba(21, 24, 29, .6); }
.bp-auto { grid-area: auto; font-size: .8rem; color: #C9CDD4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-monto { grid-area: monto; font-size: 1.35rem; font-weight: 800; font-stretch: 118%; line-height: 1.1; }
.bp-ver { grid-area: ver; font-size: .9rem; font-weight: 700; padding: .5rem .8rem; border: 2px solid var(--blanco); border-radius: 6px; }
.barra-precio:focus-visible { outline-color: var(--amarillo); outline-offset: -4px; }
@media (min-width: 961px) { .barra-precio { display: none !important; } }

/* ---------- Secciones de información ---------- */
.info { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1.2rem clamp(2rem, 5vw, 5rem); padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: 1rem; }
.info > h2 { grid-column: 1; border-top: 6px solid var(--asfalto); padding-top: 1rem; font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 800; font-stretch: 122%; letter-spacing: -.02em; line-height: 1.05; align-self: start; }
.info-cuerpo { grid-column: 2; border-top: 1px solid var(--gris-claro); padding-top: 1.2rem; max-width: 46rem; min-width: 0; }
.info-cuerpo > * + * { margin-top: 1.1rem; }
.info-cuerpo h3 { font-size: 1.15rem; font-weight: 800; font-stretch: 110%; margin-top: 2rem; }
.info-cuerpo p { max-width: 68ch; }
.lead { font-size: clamp(1.15rem, 1.1vw + .8rem, 1.45rem); line-height: 1.35; font-weight: 500; }
.lead b { font-weight: 800; }
@media (max-width: 860px) { .info { grid-template-columns: minmax(0, 1fr); } .info > h2, .info-cuerpo { grid-column: 1; } .info-cuerpo { border-top: 0; padding-top: 0; } }

.comparacion figcaption { font-size: .9rem; color: var(--gris); margin-bottom: .6rem; }
.barras { list-style: none; }
.barras li { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) 3.6rem; align-items: center; gap: .9rem; padding: .5rem 0; border-bottom: 1px solid var(--gris-claro); }
.b-nombre { font-weight: 600; font-size: .95rem; line-height: 1.25; }
.b-nombre small { display: block; font-weight: 500; color: var(--gris); font-size: .8rem; }
.b-barra { height: 12px; background: var(--gris-ruta); border-radius: 2px; overflow: hidden; }
.b-barra i { display: block; height: 100%; width: calc(var(--v) / 16 * 100%); background: var(--gris-medio); border-radius: 2px; }
.barras .este .b-barra i { background: var(--rojo); }
.barras .este .b-nombre, .barras .este .b-valor { font-weight: 800; }
.b-valor { text-align: right; font-weight: 700; }
@media (max-width: 520px) {
  .barras li { grid-template-columns: minmax(0, 1fr) 3.6rem; grid-template-areas: "n v" "b b"; row-gap: .35rem; }
  .b-nombre { grid-area: n; } .b-valor { grid-area: v; } .b-barra { grid-area: b; }
}

.niveles { display: grid; gap: .1rem; }
.niveles > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .3rem 1rem; padding: .55rem 0; border-bottom: 1px solid var(--gris-claro); }
.niveles dt { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.niveles dd b { font-weight: 800; }
@media (max-width: 520px) { .niveles > div { grid-template-columns: minmax(0, 1fr); } }

.tabla-envoltura { overflow-x: auto; }
.tabla { border-collapse: collapse; width: 100%; font-size: .95rem; }
.tabla caption { text-align: left; font-size: .9rem; color: var(--gris); padding-bottom: .5rem; }
.tabla th, .tabla td { padding: .5rem .6rem .5rem 0; border-bottom: 1px solid var(--gris-claro); text-align: right; }
.tabla th:first-child { text-align: left; font-weight: 600; }
.tabla thead th { font-weight: 700; color: var(--gris); font-size: .875rem; }
.tabla td:last-child { font-weight: 800; }

.figuras { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; margin-top: 1.8rem; }
figure img { width: 100%; height: auto; border: 1px solid var(--gris-claro); border-radius: 4px; background: var(--blanco); }
figure figcaption { font-size: .875rem; color: var(--gris); margin-top: .5rem; }
.figura-sola { margin-top: 1.2rem; }

.pasos { list-style: none; counter-reset: paso; }
.pasos > li { counter-increment: paso; position: relative; padding-left: 3rem; padding-bottom: 1.6rem; }
.pasos > li::before { content: counter(paso); position: absolute; left: 0; top: .1rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--asfalto); color: var(--blanco);
  display: grid; place-items: center; font-weight: 800; font-size: .95rem; }
.pasos > li::after { content: ''; position: absolute; left: calc(1rem - 1px); top: 2.4rem; bottom: .2rem; width: 2px; background: repeating-linear-gradient(var(--amarillo) 0 8px, transparent 8px 16px); }
.pasos > li:last-child::after { display: none; }
.pasos h3 { margin-top: 0 !important; margin-bottom: .35rem; }
.pasos p + p, .pasos p + ul { margin-top: .6rem; }
.embudo { list-style: none; max-width: 36rem; }
.embudo li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed var(--gris-claro); font-size: .95rem; }
.embudo b { font-weight: 700; color: var(--rojo-osc); white-space: nowrap; }
.embudo b::before { content: '−'; }

.limites { list-style: none; }
.limites li { padding: .8rem 0 .8rem 1.1rem; border-left: 3px solid var(--rojo); margin-bottom: .8rem; background: linear-gradient(90deg, var(--gris-ruta), transparent 70%); }
.limites b { display: block; font-weight: 800; }
.enlaces { display: flex; flex-wrap: wrap; gap: .8rem; }

.pie { margin-top: 3rem; padding-top: 1.2rem; padding-bottom: 6rem; border-top: 1px solid var(--gris-claro); font-size: .875rem; color: var(--gris); }
@media (min-width: 961px) { .pie { padding-bottom: 2.5rem; } }
.sin-js { padding-block: 1rem; font-weight: 700; color: var(--rojo-osc); }

/* Entrada: un solo momento orquestado al cargar */
.entra { animation: sube .8s var(--curva) both; animation-delay: var(--d, 0s); }
@keyframes sube { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Sin transiciones (no una duración mínima: con transition-property "all" por defecto, hasta la
     visibilidad heredada transicionaría y no se podría enfocar el buscador de un desplegable). */
  *, *::before, *::after { animation-duration: .01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* Página 404 */
.p404 { min-height: 70vh; display: grid; align-content: center; gap: 1.2rem; padding-block: 3rem; }
.p404 .carro-404 { width: min(320px, 70vw); height: auto; }
.p404 p { font-size: 1.15rem; color: var(--gris); max-width: 40ch; }
