/* ===========================================================
   Demos de páginas para casas de repuestos — GO TOOLS
   Lenguaje visual: caja de repuesto, código de pieza, despiece
   técnico, señalización de taller.
   =========================================================== */

:root {
  /* Color — tomado del logo del cliente: rojo de marca y gris metálico.
     El rojo no se usa para texto sobre fondo oscuro (no contrasta lo
     suficiente): ahí va blanco, y el rojo queda en el filete y los botones. */
  --tinta:    #23262A;  /* grafito: el gris metálico del logotipo, en oscuro */
  --tinta-90: #2E3237;
  --ambar:    #C0302A;  /* rojo exacto del logo, muestreado del archivo */
  --ambar-os: #9E2621;
  --rojo-cl:  #E8635C;  /* rojo aclarado, solo para texto sobre fondo oscuro */
  --acero:    #7E7E7E;   /* derivado del gris #909090 del logotipo */
  --acero-cl: #C0C4C8;
  --papel:    #FAFAF9;
  --carbon:   #17191C;
  --linea:    #DFDCD8;
  --alerta:   #C0302A;

  --sans: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Courier New", monospace;

  --max: 1180px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--papel);
  color: var(--carbon);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--rojo-cl);
  outline-offset: 3px;
}

.envoltorio { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Cinta de demo (solo en las muestras) ---------- */
.cinta-demo {
  background: var(--carbon);
  color: #fff;
  font-size: 13px;
  padding: 9px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  align-items: center; justify-content: center;
  text-align: center;
}
.cinta-demo strong { color: var(--ambar); font-weight: 700; }
.cinta-demo a { color: #fff; text-underline-offset: 3px; }

/* ---------- El cartel del frente (hero) ---------- */
.frente {
  background: var(--tinta);
  color: #fff;
  position: relative;
  overflow: hidden;
}
/* trama de plano técnico, muy tenue */
.frente::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.frente .envoltorio { position: relative; padding-block: 56px 0; }

.rotulo-rubro {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--rojo-cl);
  margin: 0 0 18px;
}

/* El logotipo del cliente es oblicuo: el nombre en itálica dialoga con él
   sin intentar imitarlo. El filete rojo es el que lleva la marca. */
.nombre-local {
  font-size: clamp(3.2rem, 10.8vw, 7.6rem);
  font-weight: 800;
  font-style: italic;
  font-stretch: 75%;
  line-height: .9;
  letter-spacing: -.022em;
  margin: 0;
  text-transform: uppercase;
}
.nombre-local span { display: block; }
.nombre-local .renglon-2 {
  padding-top: .1em;
  margin-top: .12em;
  border-top: 5px solid var(--ambar);
  display: inline-block;
}

.bajada {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--acero-cl);
  max-width: 44ch;
  margin: 22px 0 0;
  font-weight: 400;
}

/* La información dura, a la vista: es lo que la gente vino a buscar */
.ficha-mostrador {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  border-top: 2px solid rgba(255,255,255,.16);
}
.ficha-mostrador > div {
  padding: 20px 22px 24px 0;
  border-right: 1px solid rgba(255,255,255,.12);
}
.ficha-mostrador > div:last-child { border-right: 0; }
.ficha-mostrador dt {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--acero-cl);
  margin-bottom: 7px;
}
.ficha-mostrador dd {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.35;
}
.ficha-mostrador dd small { display: block; font-weight: 400; font-size: .85rem; color: var(--acero-cl); margin-top: 3px; }

.abierto {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; color: #7BD88F;
}
.abierto::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: #7BD88F; flex: none;
}

.barra-acciones {
  margin-top: 8px;
  display: flex; flex-wrap: wrap; gap: 12px;
  padding-block: 28px 40px;
}

.boton {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 1.02rem; font-weight: 700;
  padding: 15px 26px;
  border: 2px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.boton-primario { background: var(--ambar); color: #fff; }
.boton-primario:hover { background: var(--ambar-os); }
.boton-secundario { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.boton-secundario:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.boton-oscuro { background: var(--tinta); color: #fff; }
.boton-oscuro:hover { background: var(--carbon); }
.boton svg { width: 20px; height: 20px; flex: none; }

/* ---------- Banda ámbar ---------- */
.banda {
  background: var(--ambar);
  color: #fff;
  padding-block: 20px;
  font-weight: 600;
}
.banda .envoltorio {
  display: flex; flex-wrap: wrap; gap: 10px 36px;
  align-items: center; justify-content: space-between;
}
.banda p { margin: 0; font-size: 1.08rem; }
.banda .dato-fuerte { font-weight: 800; font-stretch: 85%; }

.calificacion { display: inline-flex; align-items: center; gap: 10px; }
.calificacion .estrellas { display: inline-flex; gap: 2px; }
.calificacion svg { width: 19px; height: 19px; fill: currentColor; }
.calificacion .puntaje { font-weight: 800; font-stretch: 85%; font-size: 1.14rem; }
.calificacion .cantidad { font-weight: 500; opacity: .92; }

/* ---------- Secciones ---------- */
.seccion { padding-block: 66px; }
.seccion-ajustada { padding-block: 52px; }

.titulo-seccion {
  font-size: clamp(1.75rem, 4.2vw, 2.7rem);
  font-weight: 800;
  font-stretch: 80%;
  line-height: 1.04;
  letter-spacing: -.015em;
  margin: 0 0 14px;
}
.parrafo-intro {
  max-width: 62ch;
  color: #414A54;
  margin: 0 0 40px;
  font-size: 1.08rem;
}

/* ---------- Casilleros de rubro (estantería) ---------- */
.estanteria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 1px;
  /* El fondo va en papel, no en línea: si una fila queda incompleta,
     el hueco no se ve como un bloque gris suelto. */
  background: var(--papel);
  border: 1px solid var(--linea);
}
.casillero {
  background: var(--papel);
  box-shadow: 0 0 0 1px var(--linea);
  padding: 26px 24px 28px;
  display: flex; flex-direction: column; gap: 15px;
  min-height: 196px;
}
.casillero svg { width: 58px; height: 58px; color: var(--tinta); }
.casillero h3 { margin: 0; font-size: 1.16rem; font-weight: 700; font-stretch: 90%; }
.casillero p { margin: 0; font-size: .95rem; color: #545C66; line-height: 1.45; }
.casillero .marcas {
  margin-top: auto; font-family: var(--mono); font-size: 11.5px;
  color: var(--acero); line-height: 1.6;
}

/* ---------- Carrusel de fotos del local ---------- */
.carrusel { position: relative; }

.carrusel-ventana {
  overflow: hidden;
  border: 1px solid var(--linea);
  touch-action: pan-y;
}
.carrusel-riel {
  display: flex;
  transition: transform .62s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
.carrusel-placa {
  flex: 0 0 100%;
  min-height: 430px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
  padding: 30px;
  text-align: center;
  /* Provisorio hasta que lleguen las fotos del local: trama de
     señalización de taller, para que el espacio no quede muerto. */
  background:
    repeating-linear-gradient(135deg, #22262A 0 26px, #272B30 26px 52px);
  color: #fff;
  position: relative;
}
.carrusel-placa::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: var(--ambar);
}
.carrusel-placa img { width: 100%; height: 430px; object-fit: cover; }
.carrusel-placa .simbolo { width: 124px; height: 124px; opacity: .22; color: #fff; }
.carrusel-placa .rotulo-foto {
  font-family: var(--mono); font-size: 12.5px;
  color: rgba(255,255,255,.68);
  max-width: 30ch; line-height: 1.7; margin: 0;
}

.carrusel-flecha {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: rgba(23, 25, 28, .72);
  color: #fff; border: 0; cursor: pointer;
  transition: background-color .15s ease;
}
.carrusel-flecha:hover { background: var(--ambar); }
.carrusel-flecha svg { width: 22px; height: 22px; }
.carrusel-flecha.previa { left: 0; }
.carrusel-flecha.siguiente { right: 0; }

.carrusel-puntos {
  display: flex; gap: 9px; justify-content: center;
  margin-top: 18px;
}
.carrusel-puntos button {
  width: 34px; height: 4px; padding: 0;
  border: 0; background: var(--linea); cursor: pointer;
  transition: background-color .2s ease;
}
.carrusel-puntos button[aria-current="true"] { background: var(--ambar); }

@media (prefers-reduced-motion: reduce) {
  .carrusel-riel { transition: none; }
}
@media (max-width: 620px) {
  .carrusel-placa, .carrusel-placa img { min-height: 260px; height: 260px; }
  .carrusel-flecha { width: 40px; height: 40px; }
}

/* ---------- Bloque de fotos del local (grilla alternativa) ---------- */
.tira-fotos {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 14px;
}
.hueco-foto {
  position: relative;
  background: #EBEAE8;
  border: 1px dashed #B9B7B4;
  min-height: 210px;
  display: grid; place-items: center;
  text-align: center;
  padding: 18px;
}
.hueco-foto span {
  font-family: var(--mono); font-size: 12px; color: #78766F; max-width: 22ch; line-height: 1.5;
}
.tira-fotos > :first-child { min-height: 330px; }

/* ---------- Mapa / cómo llegar ---------- */
.franja-contacto {
  background: var(--tinta);
  color: #fff;
}
.franja-contacto .envoltorio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  padding-block: 66px;
  align-items: start;
}
.franja-contacto .titulo-seccion { color: #fff; }
.lista-datos { margin: 0; padding: 0; list-style: none; }
.lista-datos li {
  padding-block: 17px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  display: grid; grid-template-columns: 116px 1fr; gap: 16px; align-items: baseline;
}
.lista-datos li:first-child { border-top: 1px solid rgba(255,255,255,.14); }
.lista-datos .etiqueta { font-family: var(--mono); font-size: 11.5px; color: var(--acero-cl); }
.lista-datos .valor { font-size: 1.06rem; font-weight: 600; }
.lista-datos .valor a { text-decoration: none; }
.lista-datos .valor a:hover { color: var(--rojo-cl); }

.mapa-marco {
  border: 1px solid rgba(255,255,255,.2);
  min-height: 330px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 34px),
    var(--tinta-90);
  display: grid; place-items: center; text-align: center; padding: 26px;
}
.mapa-marco p { font-family: var(--mono); font-size: 12.5px; color: var(--acero-cl); margin: 0; max-width: 26ch; line-height: 1.6; }

/* ---------- Pie ---------- */
.pie {
  background: var(--carbon);
  color: var(--acero-cl);
  padding-block: 34px;
  font-size: .9rem;
}
.pie .envoltorio { display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: space-between; align-items: center; }
.pie strong { color: #fff; font-weight: 700; }

/* ---------- WhatsApp flotante ---------- */
.flotante-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  display: inline-flex; align-items: center; gap: 10px;
  background: #1FAF54; color: #fff;
  font-weight: 700; font-size: .98rem;
  padding: 14px 20px; border-radius: 40px;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(0,0,0,.26);
}
.flotante-wa svg { width: 21px; height: 21px; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .franja-contacto .envoltorio { grid-template-columns: 1fr; gap: 38px; padding-block: 52px; }
  .tira-fotos { grid-template-columns: 1fr 1fr; }
  .tira-fotos > :first-child { grid-column: 1 / -1; min-height: 240px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .frente .envoltorio { padding-top: 40px; }
  .ficha-mostrador { grid-template-columns: 1fr 1fr; }
  .ficha-mostrador > div { padding-right: 16px; }
  .ficha-mostrador > div:nth-child(2n) { border-right: 0; }
  .seccion { padding-block: 54px; }
  .tira-fotos { grid-template-columns: 1fr; }
  .lista-datos li { grid-template-columns: 1fr; gap: 4px; }
  .flotante-wa span { display: none; }
  .flotante-wa { padding: 15px; border-radius: 50%; }
}

/* ---------- Mosaico de fotos fijas (Nivel 1: sin movimiento) ---------- */
.mosaico-fotos {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  grid-template-rows: 214px 214px;
  gap: 12px;
}
.mosaico-fotos figure { margin: 0; overflow: hidden; background: #EBEAE8; }
.mosaico-fotos figure:first-child { grid-row: span 2; }
.mosaico-fotos img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 880px) {
  .mosaico-fotos { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 150px 150px; }
  .mosaico-fotos figure:first-child { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 520px) {
  .mosaico-fotos { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 128px 128px; }
}

/* ---------- Foto de fondo del cartel del frente ---------- */
.frente-media { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.frente-media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.12) contrast(1.05); }
.frente-media::after {
  content: "";
  position: absolute; inset: 0;
  /* El texto vive en la mitad izquierda, asi que ahi el velo es fuerte y
     parejo; de la mitad para la derecha se abre y la foto del local se ve.
     La capa vertical sostiene el contraste de los datos de abajo. */
  background:
    linear-gradient(180deg,
      rgba(23,25,28,.04) 0%,
      rgba(23,25,28,.26) 55%,
      rgba(23,25,28,.72) 100%),
    linear-gradient(95deg,
      rgba(23,25,28,.93) 0%,
      rgba(23,25,28,.86) 38%,
      rgba(23,25,28,.44) 70%,
      rgba(23,25,28,.20) 100%);
}
.frente::before { z-index: 1; }
.frente .envoltorio { z-index: 2; }

/* ---------- Foto ancha de cierre ---------- */
.franja-foto { position: relative; height: 340px; overflow: hidden; }
.franja-foto img { width: 100%; height: 100%; object-fit: cover; }
.franja-foto .leyenda {
  position: absolute; left: 0; bottom: 0;
  background: var(--ambar); color: #fff;
  font-weight: 700; font-size: 1.05rem;
  padding: 14px 26px;
}
@media (max-width: 620px) { .franja-foto { height: 220px; } }

/* ---------- Foto dentro de los casilleros de rubro ---------- */
/* La foto se posiciona absoluta para que una imagen vertical no estire
   la fila entera: la altura la marcan los casilleros de texto. */
.casillero-foto { padding: 0; min-height: 196px; position: relative; overflow: hidden; }
.casillero-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ===========================================================
   CATÁLOGO (Niveles 2 y 3)
   =========================================================== */

.barra-buscador {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 26px;
}
.campo-busqueda {
  flex: 1 1 320px;
  position: relative;
}
.campo-busqueda svg {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--acero); pointer-events: none;
}
.campo-busqueda input {
  width: 100%;
  font-family: var(--sans); font-size: 1.02rem;
  padding: 16px 16px 16px 48px;
  border: 1px solid var(--linea);
  border-radius: 2px;
  background: #fff;
  color: var(--carbon);
}
.campo-busqueda input:focus { border-color: var(--ambar); outline: none; box-shadow: 0 0 0 3px rgba(192,48,42,.16); }

.filtros-rubro { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filtros-rubro button {
  font-family: var(--sans); font-size: .93rem; font-weight: 600;
  padding: 10px 17px;
  border: 1px solid var(--linea); background: #fff; color: #4A525B;
  border-radius: 2px; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.filtros-rubro button:hover { border-color: var(--acero); }
.filtros-rubro button[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: #fff; }

.grilla-productos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 18px;
}

.producto {
  border: 1px solid var(--linea);
  background: #fff;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.producto .foto { aspect-ratio: 4 / 3; overflow: hidden; background: #EFEEEC; }
.producto .foto img { width: 100%; height: 100%; object-fit: cover; }
.producto .cuerpo { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.producto .codigo { font-family: var(--mono); font-size: 11px; color: var(--acero); margin: 0; }
.producto h3 { margin: 0; font-size: 1.04rem; font-weight: 700; line-height: 1.3; }
.producto .detalle { margin: 0; font-size: .89rem; color: #5A626B; }
.producto .precio {
  margin: 4px 0 0; font-size: 1.42rem; font-weight: 800;
  font-stretch: 84%; letter-spacing: -.015em;
}
.producto .pie-producto { margin-top: auto; padding-top: 14px; }
.producto .boton { width: 100%; justify-content: center; padding: 12px 16px; font-size: .95rem; }

.etiqueta-stock {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 600; color: #1B8A45;
}
.etiqueta-stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1B8A45; }
.etiqueta-stock.pedido { color: #9A6A00; }
.etiqueta-stock.pedido::before { background: #D79B00; }

.sin-resultados {
  padding: 44px 20px; text-align: center; color: var(--acero);
  border: 1px dashed var(--linea); grid-column: 1 / -1;
}

.aviso-precios {
  background: #FFF6E9; border-left: 4px solid #E0A020;
  padding: 15px 20px; margin-bottom: 26px;
  font-size: .94rem; color: #6A4E16;
}

/* ---------- Movimiento (Niveles 2 y 3) ---------- */
.mov .producto { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.mov .producto:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(23,25,28,.13);
  border-color: var(--acero-cl);
}
.mov .producto .foto img { transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.mov .producto:hover .foto img { transform: scale(1.06); }

.mov .casillero { transition: background-color .2s ease; }
.mov .casillero:hover { background: #fff; }

/* El contenido se ve siempre. La animacion de entrada solo se activa
   cuando el JS confirma que puede manejarla (clase js-anim en el body):
   si el JS falla o tarda, nadie se queda mirando una pagina en blanco. */
.js-anim .aparece {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.js-anim .aparece.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js-anim .aparece { opacity: 1 !important; transform: none !important; }
  .mov .producto:hover { transform: none; }
  .mov .producto:hover .foto img { transform: none; }
}

/* ===========================================================
   NIVEL 3 — movimiento y panel
   =========================================================== */

/* Carrusel de fondo del cartel del frente */
.frente-media .placa-fondo {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.frente-media .placa-fondo.activa { opacity: 1; }
.frente-media .placa-fondo img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) {
  .frente-media .placa-fondo { transition: none; }
}

/* Números que cuentan */
.tira-numeros {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: var(--linea);
  border: 1px solid var(--linea);
}
.tira-numeros div { background: var(--papel); padding: 30px 24px; }
.tira-numeros .cifra {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800; font-stretch: 80%; letter-spacing: -.02em;
  line-height: 1; margin: 0 0 8px;
  font-variant-numeric: tabular-nums;
}
.tira-numeros .leyenda-numero { margin: 0; font-size: .95rem; color: #545C66; }

/* Panel de administración */
.panel-demo {
  border: 1px solid #343A40;
  background: #1A1D21;
  overflow: hidden;
  box-shadow: 0 24px 54px rgba(0,0,0,.3);
}
.panel-barra {
  background: #24282D;
  padding: 13px 18px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid #343A40;
}
.panel-barra .luces { display: flex; gap: 7px; }
.panel-barra .luces i { width: 11px; height: 11px; border-radius: 50%; background: #3E444B; display: block; }
.panel-barra .titulo-panel {
  font-family: var(--mono); font-size: 12px; color: #9AA1A9;
}
.panel-cuerpo { padding: 24px; }

.tabla-panel { width: 100%; border-collapse: collapse; color: #E4E7EA; }
.tabla-panel th {
  text-align: left; font-family: var(--mono); font-size: 11px;
  color: #8B939B; font-weight: 500;
  padding: 0 12px 12px 0; border-bottom: 1px solid #343A40;
}
.tabla-panel td { padding: 14px 12px 14px 0; border-bottom: 1px solid #2A2E33; font-size: .96rem; }
.tabla-panel tr:last-child td { border-bottom: 0; }
.tabla-panel .nombre-prod { font-weight: 600; }
.tabla-panel .cod { font-family: var(--mono); font-size: 11.5px; color: #8B939B; }

.tabla-panel input[type="number"] {
  width: 128px;
  font-family: var(--sans); font-size: .96rem; font-weight: 600;
  background: #24282D; color: #fff;
  border: 1px solid #3E444B; border-radius: 2px;
  padding: 9px 11px;
}
.tabla-panel input[type="number"]:focus { border-color: var(--ambar); outline: none; }

.interruptor {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .89rem; color: #B4BAC1; cursor: pointer;
}
.interruptor input { position: absolute; opacity: 0; width: 0; height: 0; }
.interruptor .pista {
  width: 40px; height: 22px; border-radius: 22px;
  background: #3E444B; position: relative;
  transition: background-color .2s ease;
}
.interruptor .pista::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; transition: transform .2s ease;
}
.interruptor input:checked + .pista { background: #1B8A45; }
.interruptor input:checked + .pista::after { transform: translateX(18px); }
.interruptor input:focus-visible + .pista { outline: 3px solid var(--rojo-cl); outline-offset: 2px; }

.panel-acciones {
  margin-top: 22px; padding-top: 20px; border-top: 1px solid #343A40;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
}
.aviso-guardado {
  font-size: .92rem; font-weight: 600; color: #6FD98D;
  opacity: 0; transform: translateX(-6px);
  transition: opacity .3s ease, transform .3s ease;
}
.aviso-guardado.visible { opacity: 1; transform: none; }

.vista-previa {
  margin-top: 26px;
  border: 1px solid var(--linea); background: #fff;
  padding: 22px 24px;
  display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center;
}
.vista-previa .rotulo-vista { font-family: var(--mono); font-size: 11.5px; color: var(--acero); width: 100%; margin: 0; }
.vista-previa .item-vista { display: flex; align-items: baseline; gap: 12px; }
.vista-previa .item-vista .nombre { font-weight: 600; }
.vista-previa .item-vista .valor-precio {
  font-size: 1.3rem; font-weight: 800; font-stretch: 84%;
  font-variant-numeric: tabular-nums;
  transition: color .3s ease;
}
.vista-previa .item-vista .valor-precio.cambiado { color: var(--ambar); }
.vista-previa .agotado { text-decoration: line-through; opacity: .45; }

@media (max-width: 620px) {
  .panel-cuerpo { padding: 16px; }
  .tabla-panel .ocultar-chico { display: none; }
  .tabla-panel input[type="number"] { width: 104px; }
}

/* ===========================================================
   COMPONENTES PREMIUM (Niveles 2 y 3)
   =========================================================== */

/* ---------- Barra de navegación fija ---------- */
.nav-fija {
  position: sticky; top: 0; z-index: 50;
  background: rgba(23,25,28,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.nav-fija .envoltorio {
  display: flex; align-items: center; gap: 14px 28px;
  padding-block: 13px;
}
.nav-marca {
  font-weight: 800; font-style: italic; font-stretch: 78%;
  text-transform: uppercase; letter-spacing: -.01em;
  color: #fff; font-size: 1.12rem; text-decoration: none;
  line-height: 1; white-space: nowrap;
}
.nav-marca em { color: var(--ambar); font-style: inherit; }
.nav-enlaces { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.nav-enlaces a {
  color: #D3D7DB; text-decoration: none; font-size: .95rem; font-weight: 600;
  transition: color .15s ease;
}
.nav-enlaces a:hover { color: #fff; }
.nav-fija .boton { padding: 10px 18px; font-size: .92rem; }
@media (max-width: 760px) {
  .nav-enlaces { display: none; }
  .nav-fija .envoltorio { justify-content: space-between; }
}

/* Barra de progreso de lectura */
.progreso-lectura {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--ambar); z-index: 60;
  transition: width .1s linear;
}

/* ---------- Buscador por vehículo (el patrón del rubro) ---------- */
.buscador-vehiculo {
  background: #fff;
  border: 1px solid var(--linea);
  border-top: 4px solid var(--ambar);
  padding: 26px 28px 28px;
  box-shadow: 0 18px 44px rgba(23,25,28,.14);
}
.buscador-vehiculo h2 {
  margin: 0 0 6px; font-size: 1.32rem; font-weight: 800; font-stretch: 84%;
  letter-spacing: -.015em;
}
.buscador-vehiculo .ayuda { margin: 0 0 20px; color: #5A626B; font-size: .96rem; }
.fila-selectores {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.campo-selector label {
  display: block; font-family: var(--mono); font-size: 11px;
  color: var(--acero); margin-bottom: 7px;
}
.campo-selector select {
  width: 100%;
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  padding: 14px 40px 14px 14px;
  border: 1px solid var(--linea); border-radius: 2px;
  background: #fff; color: var(--carbon);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371767C' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 18px;
  cursor: pointer;
}
.campo-selector select:disabled { background-color: #F3F2F0; color: #A8ADB3; cursor: not-allowed; }
.campo-selector select:focus { border-color: var(--ambar); outline: none; box-shadow: 0 0 0 3px rgba(192,48,42,.16); }
.fila-selectores .boton { height: 50px; }

.vehiculo-elegido {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--linea);
  display: none; align-items: center; gap: 14px; flex-wrap: wrap;
}
.vehiculo-elegido.visible { display: flex; }
.chip-vehiculo {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--tinta); color: #fff;
  font-weight: 700; font-size: .95rem;
  padding: 9px 16px; border-radius: 2px;
}
.chip-vehiculo button {
  background: none; border: 0; color: #fff; cursor: pointer;
  font-size: 1.1rem; line-height: 1; padding: 0 0 0 4px; opacity: .7;
}
.chip-vehiculo button:hover { opacity: 1; }
.vehiculo-elegido .conteo { color: #5A626B; font-size: .95rem; }

@media (max-width: 760px) {
  .fila-selectores { grid-template-columns: 1fr 1fr; }
  .fila-selectores .boton { grid-column: 1 / -1; justify-content: center; }
  .buscador-vehiculo { padding: 22px 20px 24px; }
}

/* Compatibilidad en la ficha de producto */
.compatible {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .84rem; font-weight: 600; color: #1B8A45;
  background: #EAF7EF; padding: 5px 10px; border-radius: 2px;
}
.compatible svg { width: 14px; height: 14px; }

/* ---------- Reseñas ---------- */
.grilla-resenas {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px;
}
.resena {
  background: #fff; border: 1px solid var(--linea);
  padding: 26px 26px 24px;
  display: flex; flex-direction: column; gap: 13px;
}
.resena .estrellas-chicas { display: flex; gap: 2px; color: #E8A400; }
.resena .estrellas-chicas svg { width: 16px; height: 16px; fill: currentColor; }
.resena blockquote { margin: 0; font-size: 1.02rem; line-height: 1.55; color: #2C3238; }
.resena .firma { margin: auto 0 0; font-size: .89rem; color: var(--acero); font-weight: 600; }

/* ---------- Marcas que trabajan ---------- */
.tira-marcas {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.tira-marcas span {
  border: 1px solid var(--linea); background: #fff;
  padding: 11px 19px; font-weight: 700; font-stretch: 88%;
  color: #3C434A; font-size: .97rem;
}

/* ---------- Mapa embebido ---------- */
.mapa-real { border: 0; width: 100%; height: 340px; display: block; filter: grayscale(.25); }

/* ---------- Galería con lightbox ---------- */
.visor {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10,11,13,.94);
  display: none; align-items: center; justify-content: center;
  padding: 34px 20px;
}
.visor.abierto { display: flex; }
.visor img { max-width: min(1100px, 94vw); max-height: 86vh; object-fit: contain; }
.visor .cerrar-visor, .visor .nav-visor {
  position: absolute; background: rgba(255,255,255,.12); color: #fff;
  border: 0; width: 50px; height: 50px; cursor: pointer;
  display: grid; place-items: center;
  transition: background-color .15s ease;
}
.visor .cerrar-visor:hover, .visor .nav-visor:hover { background: var(--ambar); }
.visor .cerrar-visor { top: 22px; right: 22px; font-size: 1.5rem; line-height: 1; }
.visor .nav-visor svg { width: 24px; height: 24px; }
.visor .anterior { left: 18px; top: 50%; transform: translateY(-50%); }
.visor .siguiente { right: 18px; top: 50%; transform: translateY(-50%); }
.visor .contador-visor {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: #B9BEC4; font-family: var(--mono); font-size: 12.5px;
}
.mov .mosaico-fotos figure { cursor: zoom-in; overflow: hidden; }
.mov .mosaico-fotos img { transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.mov .mosaico-fotos figure:hover img { transform: scale(1.05); }

/* ---------- Nivel 1: deliberadamente mas sobrio ---------- */
.sobrio .frente { background: var(--tinta); }
.sobrio .nombre-local { font-size: clamp(2.5rem, 7.2vw, 4.6rem); }
.sobrio .frente .envoltorio { padding-block: 46px 0; }
.sobrio .bajada { font-size: 1.04rem; }
.sobrio .titulo-seccion { font-size: clamp(1.5rem, 3.2vw, 2rem); }
.sobrio .seccion { padding-block: 52px; }
.sobrio .banda { padding-block: 15px; font-weight: 500; }
.sobrio .banda p { font-size: .98rem; }

/* ---------- Logo del cliente ----------
   Si el archivo img/logo.png existe, se muestra y el nombre tipografiado
   pasa a ser texto para Google (sigue en el HTML, no se ve). Si no existe,
   la imagen se borra sola y manda la tipografia. */
.logo-local {
  max-width: min(420px, 78vw);
  max-height: 128px;
  width: auto;
  object-fit: contain;
  margin-bottom: 22px;
}
.nombre-local.con-logo {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; white-space: nowrap;
  clip-path: inset(50%);
}
.nav-marca .logo-nav { max-height: 30px; width: auto; margin: 0; }

/* Tira de 3 fotos del Nivel 1: alto fijo para que una foto vertical
   no estire la fila y deje media pagina en blanco. */
.tira-fotos figure { margin: 0; height: 250px; overflow: hidden; background: #EBEAE8; }
.tira-fotos figure img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) {
  .tira-fotos { grid-template-columns: 1fr 1fr; }
  .tira-fotos figure { height: 190px; }
  .tira-fotos figure:first-child { grid-column: 1 / -1; height: 230px; }
}
@media (max-width: 520px) {
  .tira-fotos { grid-template-columns: 1fr; }
  .tira-fotos figure, .tira-fotos figure:first-child { height: 200px; grid-column: auto; }
}
/* Anula el min-height heredado de la grilla vieja: si no, la primera
   foto sigue midiendo 330 y las otras dos quedan con un hueco abajo. */
.tira-fotos > :first-child { min-height: 0; }


/* ---------- Redes en el pie ---------- */
.redes { display: inline-flex; gap: 10px; }
.redes a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  color: #fff; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.redes a:hover { background: var(--ambar); border-color: var(--ambar); }
.redes svg { width: 19px; height: 19px; }

/* ===========================================================
   TOPE DE GAMA — Niveles 2 y 3
   La escalera tambien se ve en la tipografia: el Nivel 1 usa la
   escala normal, el 2 sube, y el 3 es editorial.
   =========================================================== */

/* ---------- Comun a los dos ---------- */
.epico {
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}
.epico .titulo-seccion {
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  letter-spacing: -.03em;
  line-height: .97;
  margin-bottom: 18px;
}
.epico .seccion { padding-block: 92px; }
.epico .seccion-ajustada { padding-block: 64px; }
.epico .parrafo-intro {
  font-size: 1.14rem;
  line-height: 1.6;
  max-width: 58ch;
  margin-bottom: 48px;
  color: #4A525B;
}
.epico .bajada {
  font-size: clamp(1.14rem, 2.4vw, 1.46rem);
  line-height: 1.5;
  letter-spacing: -.008em;
  max-width: 40ch;
}

/* Rotulo sobre el titulo: da jerarquia sin gritar */
.rotulo-seccion {
  display: flex; align-items: center; gap: 13px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ambar);
  margin: 0 0 16px;
}
.rotulo-seccion::after {
  content: ""; height: 1px; flex: 1; max-width: 90px;
  background: currentColor; opacity: .38;
}
.franja-contacto .rotulo-seccion { color: var(--rojo-cl); }

/* Numeros alineados en columna, como en una lista de precios */
.epico .precio,
.epico .cifra,
.epico .valor-precio,
.epico .tabla-panel input { font-variant-numeric: tabular-nums; }

/* Fichas de producto mas trabajadas */
.epico .producto { border-color: #E6E3DE; }
.epico .producto .cuerpo { padding: 20px 20px 22px; gap: 10px; }
.epico .producto h3 { font-size: 1.1rem; letter-spacing: -.012em; line-height: 1.26; }
.epico .producto .precio { font-size: 1.54rem; letter-spacing: -.028em; }
.epico .producto .codigo { letter-spacing: .02em; }
.epico.mov .producto:hover { box-shadow: 0 16px 36px rgba(23,25,28,.15); }

.epico .casillero h3 { font-size: 1.2rem; letter-spacing: -.012em; }

/* ---------- Solo el Nivel 3 ---------- */
.epico-max .titulo-seccion {
  font-size: clamp(2.5rem, 6.6vw, 4.6rem);
  letter-spacing: -.038em;
  line-height: .93;
}
.epico-max .seccion { padding-block: 124px; }
.epico-max .seccion-ajustada { padding-block: 84px; }
.epico-max .parrafo-intro { font-size: 1.2rem; max-width: 56ch; margin-bottom: 56px; }

/* La portada ocupa la pantalla entera */
.epico-max .frente .envoltorio {
  /* Tiene que entrar TODO sin scrollear, botones incluidos: son la accion
     principal de la pagina. Por eso 88vh y no 100vh. */
  min-height: calc(80vh - 62px);
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 46px 30px;
}
.epico-max .logo-local { max-height: 124px; margin-bottom: 22px; }
.epico-max .bajada { font-size: clamp(1.2rem, 2.6vw, 1.62rem); max-width: 38ch; }
.epico-max .ficha-mostrador { margin-top: 32px; }
.epico-max .ficha-mostrador dd { font-size: 1.12rem; }
.epico-max .barra-acciones { padding-block: 28px 0; }
.epico-max .boton { padding: 17px 32px; font-size: 1.06rem; }

/* Flecha de "segui bajando" */
.indicador-scroll {
  position: absolute; left: 50%; bottom: 26px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.62);
  font-family: var(--mono); font-size: 11px;
  z-index: 3;
}
.indicador-scroll svg { width: 20px; height: 20px; animation: bajar 2.1s ease-in-out infinite; }
@keyframes bajar {
  0%, 100% { transform: translateY(0); opacity: .55; }
  50%      { transform: translateY(6px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .indicador-scroll svg { animation: none; }
}

/* Numeros grandes, con la unidad separada */
.epico-max .tira-numeros div { padding: 42px 30px; }
.epico-max .tira-numeros .cifra {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  letter-spacing: -.035em;
}
.epico-max .tira-numeros .leyenda-numero { font-size: 1rem; }

/* Opiniones con la comilla como pieza grafica */
.epico-max .resena { padding: 34px 32px 30px; position: relative; }
.epico-max .resena blockquote {
  font-size: 1.12rem; line-height: 1.6; letter-spacing: -.008em;
}
.epico-max .resena::before {
  content: "\201C";
  position: absolute; top: 12px; right: 24px;
  font-size: 5.4rem; line-height: 1;
  color: var(--ambar); opacity: .13;
  font-weight: 800;
}

/* Panel mas presente */
.epico-max .panel-demo { box-shadow: 0 36px 78px rgba(0,0,0,.34); }
.epico-max .panel-cuerpo { padding: 32px; }
.epico-max .tabla-panel td { padding: 17px 14px 17px 0; }

/* Marcas: mas aire y mas peso */
.epico-max .tira-marcas span {
  padding: 14px 24px; font-size: 1.02rem;
  transition: border-color .18s ease, color .18s ease;
}
.epico-max .tira-marcas span:hover { border-color: var(--ambar); color: var(--ambar); }

/* Buscador por vehiculo: la pieza central de la pagina */
.epico-max .buscador-vehiculo {
  padding: 40px 42px 44px;
  border-top-width: 6px;
  box-shadow: 0 26px 60px rgba(23,25,28,.17);
}
.epico-max .buscador-vehiculo h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  letter-spacing: -.028em;
  margin-bottom: 8px;
}
.epico-max .buscador-vehiculo .ayuda { font-size: 1.04rem; margin-bottom: 26px; }
.epico-max .campo-selector select { padding: 16px 42px 16px 16px; font-size: 1.04rem; }
.epico-max .fila-selectores .boton { height: 56px; }

@media (max-width: 760px) {
  .epico-max .frente .envoltorio { min-height: 0; padding-block: 44px 30px; }
  .epico-max .seccion { padding-block: 72px; }
  .epico .seccion { padding-block: 62px; }
  .epico-max .buscador-vehiculo { padding: 26px 22px 28px; }
  .indicador-scroll { display: none; }
}


/* ===========================================================
   REFINAMIENTO TIPOGRAFICO (Niveles 2 y 3)
   Archivo es variable: tiene eje de ancho ademas del de peso.
   Los titulos grandes van levemente expandidos y con el tracking
   cerrado; el texto chico queda normal. Eso es lo que separa un
   titulo compuesto de uno solamente agrandado.
   =========================================================== */

.epico, .epico * { text-rendering: optimizeLegibility; }

.epico .titulo-seccion {
  font-variation-settings: "wdth" 104, "wght" 800;
  font-stretch: 104%;
}
.epico-max .titulo-seccion {
  font-variation-settings: "wdth" 112, "wght" 800;
  font-stretch: 112%;
  letter-spacing: -.042em;
  word-spacing: -.02em;
}
.epico-max .titulo-seccion + .parrafo-intro { margin-top: 20px; }

/* Filete rojo bajo los titulos: la marca aparece en cada seccion */
.epico-max .titulo-seccion::after {
  content: "";
  display: block;
  width: 88px; height: 5px;
  background: var(--ambar);
  margin-top: 22px;
}
.epico-max .franja-contacto .titulo-seccion::after { background: var(--rojo-cl); }

/* Las cifras, con el mismo criterio */
.epico-max .tira-numeros .cifra {
  font-variation-settings: "wdth" 108, "wght" 800;
  font-stretch: 108%;
}
.epico .producto .precio {
  font-variation-settings: "wdth" 102, "wght" 800;
  font-stretch: 102%;
}

/* ===========================================================
   MAS MARCA EN EL NIVEL 3
   =========================================================== */

/* La tira de numeros pasa a rojo: es el bloque que mas se mira */
.epico-max .tira-numeros {
  background: var(--ambar);
  border-color: var(--ambar);
  gap: 1px;
}
.epico-max .tira-numeros div {
  background: var(--ambar);
  box-shadow: 0 0 0 1px rgba(255,255,255,.18);
  color: #fff;
}
.epico-max .tira-numeros .cifra { color: #fff; }
.epico-max .tira-numeros .leyenda-numero { color: rgba(255,255,255,.88); }

/* Filtros: el activo en rojo, no en gris */
.epico .filtros-rubro button[aria-pressed="true"] {
  background: var(--ambar);
  border-color: var(--ambar);
}

/* Ficha de producto: filete rojo arriba al pasar el mouse */
.epico .producto { position: relative; }
.epico .producto::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--ambar);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s cubic-bezier(.22,.61,.36,1);
  z-index: 2;
}
.epico.mov .producto:hover::before { transform: scaleX(1); }

/* Marcas sobre el gris metalico del logotipo */
.epico-max .tira-marcas span {
  background: #fff;
  border-color: #D8D6D2;
}

/* Codigo de pieza en rojo: es el dato del rubro */
.epico .producto .codigo { color: var(--ambar-os); font-weight: 500; }

/* Panel: barra superior con la marca */
.epico-max .panel-barra { border-bottom: 2px solid var(--ambar); }
.epico-max .panel-demo { border-color: #2C3136; }

/* Opiniones: estrellas en el rojo de la casa, no en amarillo generico */
.epico-max .resena .estrellas-chicas { color: var(--ambar); }

/* Franja de contacto: filete rojo arriba */
.epico-max .franja-contacto { border-top: 6px solid var(--ambar); }

@media (prefers-reduced-motion: reduce) {
  .epico .producto::before { transition: none; }
}

/* ===========================================================
   SOLO EL NIVEL 3 — detalles que el 2 no tiene
   =========================================================== */

/* ---------- Sello de casa oficial ---------- */
.sello-oficial {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid rgba(255,255,255,.26);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 9px 16px 9px 12px;
  margin-bottom: 22px;
  align-self: flex-start;
}
.sello-oficial .escudo {
  width: 26px; height: 26px; flex: none;
  display: grid; place-items: center;
  background: var(--ambar); color: #fff;
}
.sello-oficial .escudo svg { width: 15px; height: 15px; }
.sello-oficial .texto-sello {
  font-size: .86rem; font-weight: 600; color: #fff; line-height: 1.25;
}
.sello-oficial .texto-sello small {
  display: block; font-family: var(--mono); font-size: 10.5px;
  color: var(--acero-cl); font-weight: 400; margin-top: 2px;
}

/* ---------- Cinta de marcas en movimiento ---------- */
.cinta-marcas {
  overflow: hidden;
  border-block: 1px solid var(--linea);
  background: #fff;
  padding-block: 26px;
  position: relative;
}
.cinta-marcas::before, .cinta-marcas::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2;
  pointer-events: none;
}
.cinta-marcas::before { left: 0;  background: linear-gradient(90deg, #fff, rgba(255,255,255,0)); }
.cinta-marcas::after  { right: 0; background: linear-gradient(270deg, #fff, rgba(255,255,255,0)); }
.riel-marcas {
  display: flex; gap: 56px; width: max-content;
  animation: desfilar 34s linear infinite;
}
.cinta-marcas:hover .riel-marcas { animation-play-state: paused; }
.riel-marcas span {
  font-size: 1.44rem; font-weight: 800;
  font-variation-settings: "wdth" 96, "wght" 800;
  color: #A9AEB4;
  white-space: nowrap;
  transition: color .2s ease;
}
.riel-marcas span:hover { color: var(--ambar); }
@keyframes desfilar {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .riel-marcas { animation: none; }
}

/* ---------- Buscador de vehiculo pegajoso ---------- */
.barra-vehiculo-fija {
  /* Fija y no pegajosa: una barra sticky oculta igual ocupa lugar en el
     flujo y deja una franja en blanco arriba de la portada. */
  position: fixed; top: 62px; left: 0; right: 0; z-index: 40;
  background: rgba(23,25,28,.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--ambar);
  padding-block: 12px;
  transform: translateY(-100%);
  opacity: 0; pointer-events: none;
  transition: transform .3s ease, opacity .3s ease;
}
.barra-vehiculo-fija.visible { transform: none; opacity: 1; pointer-events: auto; }
.barra-vehiculo-fija .envoltorio {
  display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap;
}
.barra-vehiculo-fija .rotulo-fijo {
  font-family: var(--mono); font-size: 11px; color: var(--acero-cl);
}
.barra-vehiculo-fija .auto-fijo {
  font-weight: 700; color: #fff; font-size: 1.02rem;
}
.barra-vehiculo-fija .cuenta-fijo { color: var(--acero-cl); font-size: .92rem; }
.barra-vehiculo-fija button {
  margin-left: auto;
  background: none; border: 1px solid rgba(255,255,255,.3); color: #fff;
  font-family: var(--sans); font-size: .86rem; font-weight: 600;
  padding: 7px 14px; cursor: pointer;
}
.barra-vehiculo-fija button:hover { border-color: var(--ambar); background: var(--ambar); }

/* ---------- Vista rapida del producto ---------- */
.producto .lupa {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.94); color: var(--carbon);
  border: 0; cursor: pointer;
  opacity: 0; transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, background-color .15s ease;
}
.producto:hover .lupa, .producto .lupa:focus-visible { opacity: 1; transform: none; }
.producto .lupa:hover { background: var(--ambar); color: #fff; }
.producto .lupa svg { width: 18px; height: 18px; }

.ficha-rapida {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(10,11,13,.82);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 26px 20px;
}
.ficha-rapida.abierta { display: flex; }
.ficha-rapida .tarjeta {
  background: #fff;
  max-width: 880px; width: 100%;
  max-height: 88vh; overflow: auto;
  display: grid; grid-template-columns: 1.05fr 1fr;
  position: relative;
}
.ficha-rapida .lado-foto { background: #EFEEEC; }
.ficha-rapida .lado-foto img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.ficha-rapida .lado-datos { padding: 40px 38px 36px; display: flex; flex-direction: column; gap: 14px; }
.ficha-rapida .cod-rapida { font-family: var(--mono); font-size: 12px; color: var(--ambar-os); margin: 0; }
.ficha-rapida h3 {
  margin: 0; font-size: 1.86rem; font-weight: 800; line-height: 1.12;
  font-variation-settings: "wdth" 104, "wght" 800; letter-spacing: -.028em;
}
.ficha-rapida .detalle-rapida { margin: 0; color: #4A525B; font-size: 1.04rem; line-height: 1.55; }
.ficha-rapida .precio-rapida {
  font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em;
  font-variation-settings: "wdth" 104, "wght" 800;
  margin: 6px 0 0; font-variant-numeric: tabular-nums;
}
.ficha-rapida .compat-rapida {
  border-top: 1px solid var(--linea); padding-top: 16px; margin-top: 6px;
  font-size: .95rem; color: #545C66;
}
.ficha-rapida .compat-rapida strong { display: block; font-family: var(--mono); font-size: 11px; color: var(--acero); margin-bottom: 7px; font-weight: 500; }
.ficha-rapida .boton { margin-top: auto; justify-content: center; }
.ficha-rapida .cerrar-rapida {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); color: var(--carbon);
  font-size: 1.5rem; line-height: 1; display: grid; place-items: center;
}
.ficha-rapida .cerrar-rapida:hover { background: var(--ambar); color: #fff; }
@media (max-width: 760px) {
  .ficha-rapida .tarjeta { grid-template-columns: 1fr; }
  .ficha-rapida .lado-foto img { min-height: 220px; max-height: 240px; }
  .ficha-rapida .lado-datos { padding: 26px 22px 24px; }
}

/* ---------- Revelado de las fotos del local ---------- */
.epico-max .mosaico-fotos figure {
  clip-path: inset(0 0 100% 0);
  transition: clip-path .85s cubic-bezier(.22,.61,.36,1);
}
.epico-max .mosaico-fotos figure.revelada { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) {
  .epico-max .mosaico-fotos figure { clip-path: none !important; transition: none; }
}

/* ---------- Parallax de la portada ---------- */
.epico-max .frente-media img { will-change: transform; }

/* ===========================================================
   NIVEL 2 — un escalon mas abajo, a proposito
   =========================================================== */
.epico:not(.epico-max) .rotulo-seccion { display: none; }
.epico:not(.epico-max) .titulo-seccion {
  font-size: clamp(1.8rem, 4.2vw, 2.6rem);
  font-variation-settings: "wdth" 100, "wght" 800;
  font-stretch: 100%;
  letter-spacing: -.024em;
}
.epico:not(.epico-max) .seccion { padding-block: 76px; }
.epico:not(.epico-max) .parrafo-intro { font-size: 1.06rem; margin-bottom: 38px; }


/* ===========================================================
   NIVEL 1 — De Palma, pulido (2026-09-21)
   =========================================================== */

/* ---------- Abierto / cerrado ---------- */
.abierto {
  background: rgba(123,216,143,.15);
  padding: 3px 12px 3px 10px;
  border-radius: 999px;
}
.abierto::before { animation: respirar 2.2s ease-out infinite; }
@keyframes respirar {
  0%   { box-shadow: 0 0 0 0 rgba(123,216,143,.65); }
  70%  { box-shadow: 0 0 0 9px rgba(123,216,143,0); }
  100% { box-shadow: 0 0 0 0 rgba(123,216,143,0); }
}
.cerrado {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; color: #F2B8B4;
  background: rgba(232,99,92,.14);
  padding: 3px 12px 3px 10px;
  border-radius: 999px;
}
.cerrado::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: #E8635C; flex: none;
}
@media (prefers-reduced-motion: reduce) {
  .abierto::before { animation: none; }
}

/* ---------- Titulos con filete de la marca ---------- */
.sobrio .titulo-seccion::after {
  content: ""; display: block;
  width: 56px; height: 4px;
  background: var(--ambar);
  margin-top: 14px;
}

/* ---------- Que conseguimos ---------- */
.sobrio .estanteria { background: #fff; border-color: #E6E3DE; }
.sobrio .casillero {
  background: #fff;
  box-shadow: 0 0 0 1px #E6E3DE;
  padding: 30px 26px 28px;
  gap: 14px;
  position: relative;
}
.sobrio .casillero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--ambar);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.sobrio .casillero:hover::before { transform: scaleX(1); }
.sobrio .casillero svg {
  width: 30px; height: 30px;
  padding: 13px; box-sizing: content-box;
  color: var(--ambar);
  background: rgba(192,48,42,.08);
  stroke-width: 2.3;
  transition: background-color .2s ease, color .2s ease;
}
.sobrio .casillero:hover svg { background: var(--ambar); color: #fff; }
.sobrio .casillero h3 { font-size: 1.14rem; letter-spacing: -.01em; }
.sobrio .casillero .marcas { color: var(--ambar-os); }

.pie-rubros {
  margin-top: 26px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px 24px;
  padding: 22px 26px;
  background: var(--tinta); color: #fff;
}
.pie-rubros p { margin: 0; font-size: 1.04rem; font-weight: 500; max-width: 52ch; }
.pie-rubros .boton { padding: 13px 22px; }

/* ---------- Las fotos, grandes ---------- */
.sobrio .mosaico-fotos { grid-template-rows: 250px 250px; gap: 10px; }
.mosaico-fotos figure { position: relative; }
.mosaico-fotos figcaption {
  position: absolute; left: 0; bottom: 0;
  background: var(--ambar); color: #fff;
  font-weight: 700; font-size: .95rem;
  padding: 10px 16px;
}
@media (max-width: 880px) {
  .sobrio .mosaico-fotos { grid-template-rows: 240px 170px 170px; }
}
@media (max-width: 520px) {
  .sobrio .mosaico-fotos { grid-template-rows: 220px 140px 140px; }
  .pie-rubros { padding: 20px; }
}


/* ===========================================================
   TIPOGRAFIA (2026-09-21) — menos generica, menos cuadrada
   Bricolage Grotesque en los titulos: tiene curvas y corte optico,
   dialoga con el logo redondeado. Instrument Sans en el texto.
   Fuera lo condensado y la letra de maquina en las etiquetas.
   =========================================================== */
:root {
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
}
body { font-family: var(--sans); }

.titulo-seccion, .casillero h3, .buscador-vehiculo h2, .producto h3, .plan h3,
.ficha-rapida h3, .nav-marca, .pie-rubros p, .precio, .cifra, .precio-rapida,
.calificacion .puntaje, .banda .dato-fuerte, .mosaico-fotos figcaption,
.ficha-mostrador dd, .lista-datos .valor, .boton {
  font-family: var(--display);
  font-stretch: normal;
}
.titulo-seccion { font-weight: 700; letter-spacing: -.028em; line-height: 1.02; }
.casillero h3 { font-weight: 650; letter-spacing: -.012em; }
.producto h3 { font-weight: 650; letter-spacing: -.01em; }
.ficha-mostrador dd { font-weight: 600; letter-spacing: -.005em; }
.boton { font-weight: 650; letter-spacing: -.005em; }

.rotulo-rubro, .ficha-mostrador dt, .lista-datos .etiqueta, .casillero .marcas,
.rotulo-seccion, .leyenda-numero, .campo-selector label, .rotulo-fijo,
.resena .firma {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: .01em;
}
.rotulo-rubro { font-size: 13.5px; }
.ficha-mostrador dt { font-size: 12.5px; }
.lista-datos .etiqueta { font-size: 13px; }
.casillero .marcas { font-size: 12.5px; }

/* ---------- Opiniones en el Nivel 1 ---------- */
.seccion-opiniones { background: #F2F1EF; }
.sobrio .grilla-resenas { gap: 16px; }
.sobrio .resena { background: #fff; border-color: #E6E3DE; padding: 28px 28px 24px; }
.sobrio .resena blockquote { font-size: 1.04rem; line-height: 1.6; color: #2C3238; }
.sobrio .resena blockquote::before {
  content: "\201C";
  display: block;
  font-family: var(--display);
  font-size: 3.2rem; line-height: .55; font-weight: 700;
  color: var(--ambar);
  margin-bottom: 10px;
}
.sobrio .resena .firma { color: #5A626B; }
.sobrio .resena .firma strong { color: var(--carbon); font-weight: 650; }
.enlace-google {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 26px;
  color: var(--ambar-os); font-weight: 600;
  text-underline-offset: 3px;
}
.enlace-google:hover { color: var(--ambar); }


/* ===========================================================
   NIVEL 1 — movimiento (2026-09-21)
   =========================================================== */

/* La foto del frente se acerca muy despacio, como una toma de camara */
.sobrio .frente-media img {
  animation: acercar 26s ease-in-out infinite alternate;
  transform-origin: 62% 38%;
}
@keyframes acercar {
  from { transform: scale(1); }
  to   { transform: scale(1.09); }
}

/* Las fotos del local se revelan de abajo hacia arriba */
.js-anim.sobrio .mosaico-fotos figure {
  clip-path: inset(100% 0 0 0);
  transition: clip-path .9s cubic-bezier(.22,.61,.36,1);
}
.js-anim.sobrio .mosaico-fotos figure.revelada { clip-path: inset(0 0 0 0); }
.sobrio.mov .mosaico-fotos figure { cursor: default; }

/* El cartelito rojo de la foto grande entra despues de la foto */
.js-anim.sobrio .mosaico-fotos figcaption {
  transform: translateX(-100%);
  transition: transform .6s cubic-bezier(.22,.61,.36,1) .55s;
}
.js-anim.sobrio .mosaico-fotos figure.revelada figcaption { transform: none; }

/* La barra de consulta y las opiniones entran con el resto */
.sobrio .pie-rubros .boton { transition: transform .2s ease, background-color .15s ease; }
.sobrio .pie-rubros .boton:hover { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  .sobrio .frente-media img { animation: none; }
  .js-anim.sobrio .mosaico-fotos figure { clip-path: none; transition: none; }
  .js-anim.sobrio .mosaico-fotos figcaption { transform: none; transition: none; }
}


/* ===========================================================
   NIVEL 1 — los detalles de regalo (2026-09-21)
   =========================================================== */
.sobrio .sello-oficial { margin-bottom: 20px; }

/* Marcas: en el Nivel 1 van pegadas a la franja roja */
.sobrio .cinta-marcas { padding-block: 22px; border-top: 0; }
.sobrio .riel-marcas span { font-family: var(--display); font-weight: 700; font-size: 1.36rem; letter-spacing: -.01em; }

/* Como pedir */
.seccion-pasos { background: #fff; border-block: 1px solid #ECEAE6; }
.pasos {
  list-style: none; margin: 0 0 34px; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px;
}
.paso { position: relative; padding-top: 26px; border-top: 2px solid #E6E3DE; }
.paso::before {
  content: ""; position: absolute; top: -2px; left: 0;
  width: 64px; height: 2px; background: var(--ambar);
}
.paso .numero {
  display: block;
  font-family: var(--display); font-weight: 700;
  font-size: 3.4rem; line-height: .9; letter-spacing: -.05em;
  color: var(--ambar);
}
.paso h3 {
  font-family: var(--display); font-weight: 650;
  font-size: 1.26rem; letter-spacing: -.014em;
  margin: 16px 0 8px;
}
.paso p { margin: 0; color: #545C66; max-width: 32ch; line-height: 1.55; }

/* Agendar numeros y como llegar */
.agendar {
  margin-top: 28px; padding: 22px 24px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.03);
}
.agendar p { margin: 0 0 16px; color: var(--acero-cl); font-size: .98rem; line-height: 1.5; }
.agendar p strong {
  display: block; margin-bottom: 4px;
  color: #fff; font-family: var(--display); font-weight: 650; font-size: 1.2rem;
}
.acciones-contacto { display: flex; flex-wrap: wrap; gap: 10px; }
.acciones-contacto .boton { padding: 13px 20px; font-size: .96rem; }

@media (max-width: 760px) {
  .pasos { grid-template-columns: 1fr; gap: 26px; }
  .paso .numero { font-size: 2.8rem; }
}

/* La bajada del sello, sin letra de maquina */
.sello-oficial .texto-sello small { font-family: var(--sans); font-size: 11.5px; font-weight: 500; letter-spacing: .01em; }


/* ===========================================================
   NIVEL 1 — efectos del rubro (2026-09-21)
   Todo es CSS y un poco de JS propio de la pagina: no usa nada
   externo ni pago. Sin JS o con "reducir movimiento" se ve el
   estado final, quieto.
   =========================================================== */
.definiciones { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Portada: el emblema cromado ---------- */
.emblema { position: relative; display: block; width: fit-content; margin-bottom: 22px; }
.emblema .logo-local { display: block; margin-bottom: 0; }
.emblema::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, rgba(255,255,255,0) 42%, rgba(255,255,255,.9) 50%, rgba(255,255,255,0) 58%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-mask: url(img/logo.webp) center / 100% 100% no-repeat;
          mask: url(img/logo.webp) center / 100% 100% no-repeat;
  animation: cromado 9s ease-in-out 1.2s infinite;
}
@keyframes cromado {
  0%       { background-position: 100% 0; }
  16%, 100% { background-position: 0% 0; }
}

/* ---------- Portada: pasa la luz de un faro ---------- */
.luz-faro {
  position: absolute; inset: -10% -30%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg,
    rgba(255,240,214,0) 36%, rgba(255,240,214,.1) 45%,
    rgba(255,248,234,.32) 50%, rgba(255,240,214,.1) 55%, rgba(255,240,214,0) 64%);
  mix-blend-mode: screen;
  transform: translateX(-70%);
  animation: faro 3.4s cubic-bezier(.5,.05,.3,1) .35s 1 both;
}
@keyframes faro {
  from { transform: translateX(-70%); }
  to   { transform: translateX(70%); }
}

/* ---------- Franja roja: el puntaje lleva a las opiniones ---------- */
.banda a.calificacion { color: inherit; text-decoration: none; }
.banda a.calificacion:hover .cantidad { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Rubros: el icono se dibuja como un plano ---------- */
.icono-rubro { overflow: visible; }
.js-anim.sobrio .casillero.visible .icono-rubro :is(path, circle, rect):not(.sin-trazo) {
  animation: trazar 1.15s cubic-bezier(.65,0,.35,1) .12s backwards;
}
@keyframes trazar {
  from { stroke-dasharray: 1; stroke-dashoffset: 1; }
  to   { stroke-dasharray: 1; stroke-dashoffset: 0; }
}
.js-anim.sobrio .casillero .icono-rubro .sin-trazo { opacity: 0; transition: opacity .5s ease .9s; }
.js-anim.sobrio .casillero.visible .icono-rubro .sin-trazo { opacity: 1; }

/* ...y despues hace lo que hace esa pieza en el auto.
   Una vez al aparecer, y de nuevo cada vez que se pasa el mouse. */
.icono-rubro g { transform-box: view-box; }
.icono-rubro .piston    { transform-origin: 24px 14px; }
.icono-rubro .amortigua { transform-origin: 24px 37px; }
.icono-rubro .disco     { transform-origin: 21px 24px; }
.icono-rubro .volante   { transform-origin: 24px 24px; }
.icono-rubro .botella   { transform-origin: 24px 39px; }

@keyframes pistonear  { 0%, 50%, 100% { transform: none; } 25%, 75% { transform: translateY(3px); } }
@keyframes amortiguar { 0%, 100% { transform: none; } 30% { transform: scaleY(.78); } 55% { transform: scaleY(1.05); } 78% { transform: scaleY(.97); } }
@keyframes girar      { to { transform: rotate(360deg); } }
@keyframes chispear   { 0%, 35%, 62%, 100% { opacity: 1; } 20% { opacity: .1; } 50% { opacity: .25; } }
@keyframes destellar  { 0%, 50%, 100% { opacity: 1; } 25%, 75% { opacity: .15; } }
@keyframes alumbrar   { 0%, 100% { fill-opacity: 0; } 50% { fill-opacity: .4; } }
@keyframes fluir      { from { stroke-dasharray: 3 3; stroke-dashoffset: 0; } to { stroke-dasharray: 3 3; stroke-dashoffset: -12; } }
@keyframes servir     { 0%, 100% { transform: none; } 40%, 62% { transform: rotate(-18deg); } }

.js-anim.sobrio .casillero.visible .piston    { animation: pistonear  .9s ease-in-out 1.3s 1; }
.js-anim.sobrio .casillero.visible .amortigua { animation: amortiguar 1s ease-out 1.3s 1; }
.js-anim.sobrio .casillero.visible .disco     { animation: girar 1.3s cubic-bezier(.3,.1,.25,1) 1.3s 1; }
.js-anim.sobrio .casillero.visible .volante   { animation: girar 1.5s cubic-bezier(.3,.1,.25,1) 1.3s 1; }
.js-anim.sobrio .casillero.visible .chispa    { animation: chispear .8s linear 1.3s 1; }
.js-anim.sobrio .casillero.visible .rayos     { animation: destellar 1s ease-in-out 1.3s 1; }
.js-anim.sobrio .casillero.visible .bombita   { animation: alumbrar 1s ease-in-out 1.3s 1; }
.js-anim.sobrio .casillero.visible .tubos     { animation: fluir .6s linear 1.4s 2; }
.js-anim.sobrio .casillero.visible .botella   { animation: servir 1.4s ease-in-out 1.3s 1; }

.sobrio .casillero:hover .piston,    .js-anim.sobrio .casillero.visible:hover .piston    { animation: pistonear .6s ease-in-out infinite; }
.sobrio .casillero:hover .amortigua, .js-anim.sobrio .casillero.visible:hover .amortigua { animation: amortiguar 1s ease-out infinite; }
.sobrio .casillero:hover .disco,     .js-anim.sobrio .casillero.visible:hover .disco     { animation: girar .9s linear infinite; }
.sobrio .casillero:hover .volante,   .js-anim.sobrio .casillero.visible:hover .volante   { animation: girar 1.2s linear infinite; }
.sobrio .casillero:hover .chispa,    .js-anim.sobrio .casillero.visible:hover .chispa    { animation: chispear .8s linear infinite; }
.sobrio .casillero:hover .rayos,     .js-anim.sobrio .casillero.visible:hover .rayos     { animation: destellar 1.2s ease-in-out infinite; }
.sobrio .casillero:hover .bombita,   .js-anim.sobrio .casillero.visible:hover .bombita   { animation: alumbrar 1.2s ease-in-out infinite; }
.sobrio .casillero:hover .tubos,     .js-anim.sobrio .casillero.visible:hover .tubos     { animation: fluir .6s linear infinite; }
.sobrio .casillero:hover .botella,   .js-anim.sobrio .casillero.visible:hover .botella   { animation: servir 1.6s ease-in-out infinite; }

/* ---------- Como pedir: la palanca pasa 1, 2 y 3 ---------- */
.cabeza-pasos {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px 32px;
}
.cabeza-pasos > div { min-width: 0; }
.palanca { width: 128px; height: auto; flex: none; margin-bottom: 34px; overflow: visible; }
.palanca .rejilla {
  fill: none; stroke: #DCD8D2; stroke-width: 7;
  stroke-linecap: round; stroke-linejoin: round;
}
.palanca text {
  font-family: var(--display); font-weight: 700; font-size: 13px;
  fill: #A3A8AE; text-anchor: middle;
}
.palanca .m3 { fill: var(--ambar); }
.palanca .perilla { transform: translate(0px, -34px); filter: drop-shadow(0 3px 3px rgba(0,0,0,.25)); }
.palanca .bola { fill: var(--ambar); }
.palanca .brillo { fill: #fff; fill-opacity: .5; }

.js-anim .seccion-pasos .palanca .perilla { transform: none; }
.js-anim .seccion-pasos .palanca .m3 { fill: #A3A8AE; }
.js-anim .seccion-pasos.en-marcha .palanca .perilla { animation: cambios 3.4s ease-in-out .3s forwards; }
.js-anim .seccion-pasos.en-marcha .palanca .m1 { animation: marcha-pasa .82s ease .84s both; }
.js-anim .seccion-pasos.en-marcha .palanca .m2 { animation: marcha-pasa .75s ease 1.93s both; }
.js-anim .seccion-pasos.en-marcha .palanca .m3 { animation: marcha-queda .3s ease 3.16s forwards; }
@keyframes cambios {
  0%        { transform: translate(0px, 0px); }
  8%        { transform: translate(-36px, 0px); }
  16%, 34%  { transform: translate(-36px, -34px); }
  40%       { transform: translate(-36px, 0px); }
  48%, 64%  { transform: translate(-36px, 34px); }
  70%       { transform: translate(-36px, 0px); }
  76%       { transform: translate(0px, 0px); }
  84%, 100% { transform: translate(0px, -34px); }
}
@keyframes marcha-pasa  { 0%, 100% { fill: #A3A8AE; } 10%, 85% { fill: var(--ambar); } }
@keyframes marcha-queda { from { fill: #A3A8AE; } to { fill: var(--ambar); } }

/* Cada paso se enciende cuando entra su cambio */
.js-anim .seccion-pasos .paso .numero { color: #D3CEC7; }
.js-anim .seccion-pasos .paso::before { transform: scaleX(0); transform-origin: left; }
.js-anim .seccion-pasos.en-marcha .paso:nth-child(1) .numero  { animation: numero-enciende .45s ease .84s forwards; }
.js-anim .seccion-pasos.en-marcha .paso:nth-child(2) .numero  { animation: numero-enciende .45s ease 1.93s forwards; }
.js-anim .seccion-pasos.en-marcha .paso:nth-child(3) .numero  { animation: numero-enciende .45s ease 3.16s forwards; }
.js-anim .seccion-pasos.en-marcha .paso:nth-child(1)::before { animation: filete-enciende .6s ease .84s forwards; }
.js-anim .seccion-pasos.en-marcha .paso:nth-child(2)::before { animation: filete-enciende .6s ease 1.93s forwards; }
.js-anim .seccion-pasos.en-marcha .paso:nth-child(3)::before { animation: filete-enciende .6s ease 3.16s forwards; }
@keyframes numero-enciende { to { color: var(--ambar); } }
@keyframes filete-enciende { to { transform: scaleX(1); } }

@media (max-width: 760px) {
  .palanca { width: 92px; margin-bottom: 30px; }
}

/* ---------- Opiniones: el tablero ---------- */
.tablero-opiniones {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 18px; align-items: stretch;
}
.panel-google {
  background: radial-gradient(130% 80% at 50% 0%, #30343A 0%, #1C1E22 62%, #17191C 100%);
  color: #fff;
  padding: 30px 30px 32px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 24px 48px -28px rgba(0,0,0,.55);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.tacometro { width: min(100%, 300px); }
.tacometro svg { display: block; width: 100%; height: auto; overflow: visible; }
.tacometro .pista-arco { fill: none; stroke: rgba(255,255,255,.09); stroke-width: 10; }
.tacometro .arco-valor {
  fill: none; stroke: url(#grad-arco); stroke-width: 10;
  stroke-dasharray: 100; stroke-dashoffset: 10;
  filter: drop-shadow(0 0 6px rgba(232,99,92,.55));
}
.tacometro .marca { stroke: rgba(255,255,255,.4); stroke-width: 1.6; stroke-linecap: round; }
.tacometro .marca.menor { stroke: rgba(255,255,255,.22); stroke-width: 1.2; }
.tacometro .marca.mayor { stroke: rgba(255,255,255,.9); stroke-width: 2.4; }
.tacometro .numeros text {
  fill: #9AA1A8; font-family: var(--sans); font-weight: 600; font-size: 11.5px;
  text-anchor: middle;
}
.tacometro .rotulo-dial {
  fill: #6F767D; font-family: var(--sans); font-weight: 600; font-size: 7.5px;
  letter-spacing: .18em; text-anchor: middle;
}
.tacometro .aguja { transform-box: view-box; transform-origin: 120px 118px; transform: rotate(72deg); }
.tacometro .aguja path { fill: #FF6B5E; filter: drop-shadow(0 0 5px rgba(255,107,94,.7)); }
.tacometro .eje { fill: #0F1113; stroke: rgba(255,255,255,.25); stroke-width: 1.5; }
.tacometro .eje-centro { fill: var(--rojo-cl); }

.lectura { margin: 8px 0 0; display: flex; align-items: baseline; gap: 8px; }
.cifra-tacometro {
  font-family: var(--display); font-weight: 700;
  font-size: 3.8rem; line-height: 1; letter-spacing: -.045em;
}
.de-cinco { color: #9AA1A8; font-weight: 500; font-size: 1.05rem; }
.estrellas-google { margin: 12px 0 8px; display: flex; gap: 4px; justify-content: center; }
.estrellas-google svg { width: 24px; height: 24px; fill: #F4B400; }
.total-opiniones { margin: 0 0 24px; color: #BFC4C9; font-size: 1rem; }
.total-opiniones strong { color: #fff; font-weight: 650; }

.barras-opiniones {
  list-style: none; margin: 0; padding: 0;
  width: 100%; max-width: 330px; display: grid; gap: 9px;
}
.barras-opiniones li {
  display: grid; grid-template-columns: 30px 1fr 38px;
  align-items: center; gap: 10px;
  font-size: .86rem; color: #AEB4BA;
}
.barras-opiniones .n { display: inline-flex; align-items: center; justify-content: flex-end; gap: 3px; font-weight: 600; }
.barras-opiniones .n svg { width: 11px; height: 11px; fill: #F4B400; }
.barras-opiniones .pista { height: 7px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; }
.barras-opiniones .pista i {
  display: block; height: 100%; width: var(--v);
  background: linear-gradient(90deg, #E9A800, #F4B400);
  border-radius: inherit; transform-origin: left;
}
.barras-opiniones .pc { text-align: right; font-variant-numeric: tabular-nums; }

/* El barrido de arranque: como el tablero cuando se da contacto,
   la aguja va hasta el fondo y vuelve a su lugar. */
.js-anim .panel-google .aguja { transform: rotate(-90deg); }
.js-anim .panel-google .arco-valor { stroke-dashoffset: 100; }
.js-anim .panel-google .lectura,
.js-anim .panel-google .total-opiniones { opacity: 0; transform: translateY(8px); }
.js-anim .panel-google .estrellas-google svg { opacity: 0; transform: scale(.4); }
.js-anim .panel-google .pista i { transform: scaleX(0); }

.js-anim .panel-google.en-marcha .aguja      { animation: barrido 2.3s cubic-bezier(.45,0,.25,1) .2s forwards; }
.js-anim .panel-google.en-marcha .arco-valor { animation: arco 2.3s cubic-bezier(.45,0,.25,1) .2s forwards; }
.js-anim .panel-google.en-marcha .lectura,
.js-anim .panel-google.en-marcha .total-opiniones {
  opacity: 1; transform: none;
  transition: opacity .5s ease 1.7s, transform .5s cubic-bezier(.22,.61,.36,1) 1.7s;
}
.js-anim .panel-google.en-marcha .estrellas-google svg {
  opacity: 1; transform: none;
  transition: opacity .3s ease, transform .45s cubic-bezier(.34,1.56,.64,1);
}
.js-anim .panel-google.en-marcha .estrellas-google svg:nth-child(1) { transition-delay: 1.9s; }
.js-anim .panel-google.en-marcha .estrellas-google svg:nth-child(2) { transition-delay: 1.98s; }
.js-anim .panel-google.en-marcha .estrellas-google svg:nth-child(3) { transition-delay: 2.06s; }
.js-anim .panel-google.en-marcha .estrellas-google svg:nth-child(4) { transition-delay: 2.14s; }
.js-anim .panel-google.en-marcha .estrellas-google svg:nth-child(5) { transition-delay: 2.22s; }
.js-anim .panel-google.en-marcha .pista i {
  transform: none;
  transition: transform .9s cubic-bezier(.22,.61,.36,1) calc(2.1s + var(--d));
}
@keyframes barrido {
  0%   { transform: rotate(-90deg); }
  45%  { transform: rotate(90deg); }
  70%  { transform: rotate(64deg); }
  86%  { transform: rotate(75deg); }
  100% { transform: rotate(72deg); }
}
@keyframes arco {
  0%   { stroke-dashoffset: 100; }
  45%  { stroke-dashoffset: 0; }
  70%  { stroke-dashoffset: 14.4; }
  86%  { stroke-dashoffset: 8.3; }
  100% { stroke-dashoffset: 10; }
}

/* Las opiniones, al lado del tablero */
.lista-resenas { display: flex; flex-direction: column; gap: 14px; }
.sobrio .lista-resenas .resena {
  flex: 1 1 auto; justify-content: center;
  padding: 22px 24px 24px; gap: 12px;
}
.sobrio .lista-resenas .resena blockquote::before { content: none; display: none; }
.sobrio .lista-resenas .resena blockquote {
  font-family: var(--display); font-weight: 600;
  font-size: 1.3rem; line-height: 1.28; letter-spacing: -.014em;
  color: var(--carbon);
}
.resena-cabeza { display: flex; align-items: center; gap: 12px; }
.inicial {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  color: #fff; background: var(--tinta);
}
.lista-resenas .resena:nth-child(2) .inicial { background: var(--ambar); }
.lista-resenas .resena:nth-child(3) .inicial { background: var(--acero); }
.quien { margin: 0; flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.quien strong { font-weight: 650; color: var(--carbon); }
.quien span { font-size: .84rem; color: #6B727A; }
.resena-cabeza .estrellas-chicas { color: #F4B400; }

.resena-cta {
  background: var(--ambar); color: #fff;
  padding: 22px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px 20px;
}
.resena-cta p { margin: 0; max-width: 36ch; line-height: 1.45; }
.resena-cta p strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.18rem; }
.resena-cta .boton { background: #fff; color: var(--ambar-os); padding: 12px 20px; font-size: .95rem; }
.resena-cta .boton:hover { background: #F6ECEB; }

@media (max-width: 860px) {
  .tablero-opiniones { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .panel-google { padding: 26px 20px 28px; }
  .cifra-tacometro { font-size: 3.3rem; }
  .sobrio .lista-resenas .resena blockquote { font-size: 1.18rem; }
}

/* ---------- Visor de fotos ---------- */
.sobrio.mov .mosaico-fotos figure.ampliable { cursor: zoom-in; }
.mosaico-fotos figure.ampliable:focus-visible { outline: 3px solid var(--ambar); outline-offset: 3px; }
.visor-foto {
  padding: 0; border: 0; background: transparent;
  max-width: 94vw; max-height: 94vh; overflow: visible;
}
.visor-foto::backdrop { background: rgba(14,15,17,.9); }
.visor-foto[open] { animation: visor-entra .28s cubic-bezier(.22,.61,.36,1); }
@keyframes visor-entra { from { opacity: 0; transform: scale(.96); } }
.marco-visor { position: relative; }
.visor-foto img {
  display: block; width: auto; height: auto;
  max-width: min(1100px, 94vw); max-height: 82vh;
  box-shadow: 0 30px 70px rgba(0,0,0,.55);
}
.visor-foto p { margin: 12px 0 0; color: #E4E6E8; font-weight: 500; }
.cerrar-visor {
  position: absolute; top: 10px; right: 10px;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(15,16,18,.6); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer;
}
.cerrar-visor:hover { background: var(--ambar); border-color: var(--ambar); }

@media (prefers-reduced-motion: reduce) {
  .emblema::after, .luz-faro { animation: none; }
  .luz-faro { display: none; }
  .sobrio .casillero:hover .icono-rubro *,
  .js-anim.sobrio .casillero.visible:hover .icono-rubro * { animation: none; }
  .visor-foto[open] { animation: none; }
}

/* Iconos de rubro mas grandes: que el dibujo y el gesto se vean */
.sobrio .casillero .icono-rubro { width: 42px; height: 42px; padding: 13px; stroke-width: 1.9; }
.panel-google { justify-content: center; }
@media (max-width: 520px) {
  .resena-cabeza { flex-wrap: wrap; row-gap: 6px; }
  .resena-cabeza .estrellas-chicas { order: 3; flex-basis: 100%; padding-left: 52px; }
}

/* El sello: "Todas las marcas", con una llave que aprieta una vez al entrar.
   Sin tilde: el tilde daba a entender una certificacion. */
.sobrio .sello-oficial .escudo svg { width: 18px; height: 18px; overflow: visible; }
.sello-oficial .llave { transform-box: view-box; transform-origin: 12px 12px; }
.sobrio .sello-oficial .llave { animation: ajustar 1.1s ease-in-out 1.4s 1; }
@keyframes ajustar {
  0%, 100% { transform: none; }
  35%      { transform: rotate(-30deg); }
  65%      { transform: rotate(8deg); }
}
@media (prefers-reduced-motion: reduce) {
  .sobrio .sello-oficial .llave { animation: none; }
}

/* ---------- Boton flotante de WhatsApp (Nivel 1) ----------
   Quieto es el logo solo, en un circulo que late como un llamado.
   Al pasar el mouse se estira y aparece la palabra. */
.sobrio .flotante-wa {
  height: 60px; min-width: 60px; padding: 0 16px; gap: 0;
  border-radius: 30px; justify-content: center;
  transition: gap .35s ease, padding .35s cubic-bezier(.22,.61,.36,1),
              background-color .2s ease, box-shadow .2s ease;
}
.sobrio .flotante-wa svg { width: 28px; height: 28px; }
.sobrio .flotante-wa span {
  display: inline-block; max-width: 0; opacity: 0;
  overflow: hidden; white-space: nowrap;
  transition: max-width .4s cubic-bezier(.22,.61,.36,1), opacity .2s ease;
}
.sobrio .flotante-wa::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none;
  animation: llamar 3.2s ease-out 2s infinite;
}
@keyframes llamar {
  0%        { box-shadow: 0 0 0 0 rgba(31,175,84,.55); }
  45%, 100% { box-shadow: 0 0 0 16px rgba(31,175,84,0); }
}
@media (hover: hover) {
  .sobrio .flotante-wa:hover,
  .sobrio .flotante-wa:focus-visible {
    gap: 10px; padding: 0 22px 0 18px;
    background: #1A9E4B; box-shadow: 0 10px 28px rgba(0,0,0,.3);
  }
  .sobrio .flotante-wa:hover span,
  .sobrio .flotante-wa:focus-visible span { max-width: 120px; opacity: 1; transition-delay: 0s, .1s; }
  .sobrio .flotante-wa:hover::before { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sobrio .flotante-wa::before { animation: none; }
}

/* Los renglones chicos de la ficha van en la letra de texto. La de titulos
   (Bricolage) cambia de dibujo segun el tamano y Safari la ajusta distinto
   que Chrome: en chico quedaba apretada y en negrita en el iPhone. */
.ficha-mostrador dd small { font-family: var(--sans); font-weight: 400; letter-spacing: 0; }
