/* ====================================================================
   CHARLY MOTO'S
   Idea: la lámina de despiece de un catálogo de repuestos. La moto en
   trazo azul acero y los números de referencia en rojo, unidos a cada
   pieza con su línea. Tocás los números y se arma el pedido. Blanco de
   catálogo, rojo, azul acero. Anybody, ancha para los títulos.
   ==================================================================== */
:root {
  --rojo: #D62828;
  --acero: #274060;
  --fondo: #FFFFFF;
  --papel: #EEF0F3;
  --tinta: #1A2231;
  --gris: #586274;
  --linea: #D9DEE5;
  --pie-fondo: #274060;
  --pie-texto: #B4C1D4;
  --radio: 4px;
  --foco: #D62828;

  --titular: "Anybody", "Arial Black", sans-serif;
  --texto: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ====================================================================
   BASE (reset, contenedor, ubicación, horarios, pie y botón flotante).
   Usa las variables que define la identidad de cada sitio:
   --fondo, --tinta, --gris, --linea, --pie-fondo, --pie-texto,
   --radio, --texto (familia) y --foco.
   ==================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--texto); background: var(--fondo); color: var(--tinta); line-height: 1.6; }
a { color: inherit; }
ul, ol { list-style: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; }
.contenedor { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1rem; }

.cabecera-fila { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.marca, .cabecera-tel { text-decoration: none; }
.cabecera-tel { white-space: nowrap; font-weight: 600; }

.boton-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 54px;
  padding: 0.7rem 1.3rem;
  background: #25D366;
  color: #0B2915;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radio);
}
.boton-wa:hover { background: #1FB855; }

/* Ubicación y horarios */
.ubicacion { padding: 3.2rem 0; }
.ubicacion-fila { display: grid; gap: 1.6rem; align-items: start; }
.ubicacion p { color: var(--gris); margin-bottom: 0.3rem; }
.ubicacion p a { color: var(--tinta); font-weight: 600; }
.horarios { margin: 1.2rem 0 0.4rem; max-width: 360px; }
.horarios h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.horarios li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; border-bottom: 1px solid var(--linea); font-size: 0.95rem; }
.horarios li.es-hoy { font-weight: 700; }
.horarios li.dia-cerrado { color: var(--gris); }
.horarios em { font-style: normal; font-size: 0.8rem; }
.boton-contorno {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--tinta);
  border-radius: var(--radio);
  font-weight: 600;
  text-decoration: none;
}
.boton-contorno:hover { background: var(--tinta); color: var(--fondo); }
#mapa-iframe { width: 100%; height: 300px; border: 0; border-radius: var(--radio); background: var(--linea); }
@media (min-width: 860px) { .ubicacion-fila { grid-template-columns: 1fr 1.4fr; gap: 3rem; } #mapa-iframe { height: 380px; } }

/* Pie */
.pie { background: var(--pie-fondo); color: var(--pie-texto); padding: 2rem 0 6rem; font-size: 0.9rem; }
.pie p + p { margin-top: 0.3rem; }
.demo-aviso { font-style: italic; }

/* Botón flotante */
.flotante {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem;
  background: #25D366;
  color: #0B2915;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.flotante span { display: none; }
@media (min-width: 640px) { .flotante { padding: 0.85rem 1.25rem; } .flotante span { display: inline; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

h1, h2, .marca, .pedido-titulo, .numero, .boton-claro { font-family: var(--titular); }
h1, h2, .marca { font-weight: 850; font-stretch: 140%; line-height: 1; letter-spacing: -0.02em; }
.cabecera { border-bottom: 3px solid var(--rojo); }
.marca { font-size: 1.3rem; color: var(--rojo); }

/* ====================================================================
   PRESENTACIÓN + DESPIECE
   ==================================================================== */
.inicio { padding: 1.8rem 0 3.2rem; }
.inicio h1 { font-size: clamp(2rem, 8vw, 4rem); max-width: 14ch; color: var(--acero); }
.bajada { max-width: 50ch; margin: 1rem 0 1.4rem; color: var(--gris); font-size: 1.05rem; }

.lamina { display: grid; gap: 1.2rem; }
.despiece { position: relative; background: var(--papel); border: 1px solid var(--linea); }
.moto { display: block; width: 100%; height: auto; }
.moto-trazo { fill: none; stroke: var(--acero); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.moto-trazo .goma { stroke-width: 12; }
.moto-trazo .disco { stroke-dasharray: 5 4; }
.moto-trazo .lleno { fill: #C9D3E0; }
.moto-trazo .lleno-suave { fill: #DCE3EC; }
.moto-trazo .cadena { stroke-dasharray: 3 3; }
.llamadas line { stroke: var(--gris); stroke-width: 1.5; }
.llamadas line.activa { stroke: var(--rojo); stroke-width: 2.5; }
.llamadas circle { fill: var(--rojo); }
.numeros { position: absolute; inset: 0; }
.numero {
  position: absolute;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 2px solid var(--rojo);
  background: var(--fondo);
  color: var(--rojo);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
}
.numero:hover { background: #FDE8E8; }
.numero[aria-pressed="true"] { background: var(--rojo); color: var(--fondo); }

.pedido { display: grid; gap: 0.3rem; align-content: start; padding: 1.1rem; border: 1px solid var(--linea); border-top: 4px solid var(--acero); }
.pedido-titulo { font-weight: 800; font-stretch: 120%; color: var(--acero); }
.elegidas { margin-bottom: 0.8rem; }
.elegidas li { padding: 0.25rem 0; border-bottom: 1px dotted var(--linea); }
.elegidas li b { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 0.5rem; border-radius: 50%; background: var(--rojo); color: var(--fondo); font-size: 0.8rem; }
.elegidas .vacia { color: var(--gris); border: 0; }
.pedido input {
  min-height: 48px;
  margin-bottom: 0.8rem;
  padding: 0.5rem 0.7rem;
  border: 2px solid var(--acero);
  border-radius: var(--radio);
  background: var(--fondo);
  color: var(--tinta);
}

@media (max-width: 520px) { .numero { width: 28px; height: 28px; margin: -14px 0 0 -14px; font-size: 0.82rem; } }
@media (min-width: 900px) {
  .inicio { padding: 3rem 0 4rem; }
  .lamina { grid-template-columns: 1.7fr 1fr; gap: 1.6rem; }
}

/* ====================================================================
   DIFÍCIL DE CONSEGUIR
   ==================================================================== */
.dificil { background: var(--rojo); color: var(--fondo); padding: 2.6rem 0; }
.dificil-fila { display: grid; gap: 1.2rem; align-items: center; }
.dificil h2 { font-size: clamp(1.7rem, 6.5vw, 2.6rem); margin-bottom: 0.4rem; }
.dificil p { max-width: 46ch; }
.boton-claro {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0.7rem 1.3rem;
  background: var(--fondo);
  color: var(--rojo);
  border-radius: var(--radio);
  font-weight: 800;
  text-decoration: none;
}
@media (min-width: 860px) { .dificil-fila { grid-template-columns: 1fr auto; } }

.ubicacion h2 { font-size: clamp(1.8rem, 6.5vw, 2.6rem); margin-bottom: 0.8rem; color: var(--acero); }
