/* ====================================================================
   TALLER ANDEREGGEN
   Idea: el croquis de la denuncia del seguro. El auto visto desde
   arriba, como en el formulario, y cada parte golpeada se raya en
   birome azul al tocarla. Papel blanco, azul formulario, rojo de
   pintura de fábrica. Plex Condensed de planilla; bordes finos, sin sombras.
   ==================================================================== */
:root {
  --papel: #F7F8FA;
  --azul: #1D3F8F;
  --azul-claro: #DCE5F7;
  --rojo: #B3121F;
  --chapa: #E3E6EA;
  --tinta: #1B2230;
  --gris: #5A6275;
  --blanco: #FFFFFF;
  --wa: #25D366;

  --planilla: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  --texto: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::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(--papel); color: var(--tinta); line-height: 1.6; }
a { color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--rojo); outline-offset: 3px; }

.contenedor { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1rem; }
h1, h2, h3, .marca, .pedido-titulo { font-family: var(--planilla); font-weight: 700; }

/* Cabecera */
.cabecera { background: var(--azul); color: var(--blanco); }
.cabecera-fila { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.marca { font-size: 1.3rem; text-decoration: none; }
.cabecera-tel { font-weight: 600; text-decoration: none; white-space: nowrap; }

/* ====================================================================
   PRESENTACIÓN + CROQUIS
   ==================================================================== */
.inicio { padding: 2.2rem 0 3.2rem; border-bottom: 1px solid #C9CFDA; }
.inicio-grilla { display: grid; gap: 2rem; align-items: start; }
.inicio h1 { font-size: clamp(2.4rem, 9vw, 4.4rem); line-height: 1; letter-spacing: -0.01em; color: var(--rojo); max-width: 11ch; }
.bajada { max-width: 44ch; margin: 1rem 0 0.8rem; font-size: 1.05rem; }
.estado { font-size: 0.95rem; font-weight: 600; }
.estado::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 0.5rem; border-radius: 50%; background: var(--gris); }
.estado.esta-abierto::before { background: #1F9D55; }

/* El pedido: como un renglón del formulario */
.pedido { margin-top: 0.4rem; padding: 1.2rem; background: var(--blanco); border: 1px solid var(--azul); border-top-width: 6px; max-width: 480px; }
.pedido-titulo { display: block; font-size: 1rem; color: var(--azul); }
.marcadas { min-height: 1.6em; margin: 0.1rem 0 1rem; padding-bottom: 0.4rem; border-bottom: 1px dashed var(--azul); font-weight: 600; }
.marcadas.vacia { font-weight: 400; color: var(--gris); }
.pedido select {
  width: 100%;
  min-height: 48px;
  margin: 0.2rem 0 1.1rem;
  padding: 0.5rem 0.7rem;
  font: inherit;
  color: var(--tinta);
  background: var(--papel);
  border: 1px solid var(--azul);
  border-radius: 2px;
}
.boton-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 54px;
  padding: 0.7rem 1.2rem;
  background: var(--wa);
  color: #0B2915;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
}
.boton-wa:hover { background: #1FB855; }

.croquis { justify-self: center; width: min(100%, 270px); text-align: center; }
.croquis figcaption { font-family: var(--planilla); font-weight: 700; color: var(--azul); font-size: 1.1rem; }
.croquis-frente { font-size: 0.85rem; color: var(--gris); margin: 0.2rem 0 0.4rem; }
.croquis-frente::after { content: ""; display: block; width: 0; height: 0; margin: 0.2rem auto 0; border: 7px solid transparent; border-bottom-color: var(--gris); transform: translateY(-7px); }
.croquis svg { display: block; width: 100%; height: auto; }
.ruedas rect { fill: var(--tinta); }
.carroceria { fill: var(--blanco); stroke: var(--tinta); stroke-width: 2; }
.vidrios path { fill: var(--chapa); stroke: var(--tinta); stroke-width: 1.5; }
.pieza { fill: var(--blanco); stroke: var(--tinta); stroke-width: 1.5; cursor: pointer; outline: none; }
.pieza:hover { fill: var(--azul-claro); }
.pieza:focus-visible { stroke: var(--rojo); stroke-width: 3; }
.pieza[aria-pressed="true"] { fill: url(#rayado); stroke: var(--azul); stroke-width: 2.5; }

@media (min-width: 860px) {
  .inicio { padding: 3.2rem 0 4rem; }
  .inicio-grilla { grid-template-columns: 1.3fr 1fr; grid-template-areas: "texto croquis" "pedido croquis"; gap: 0 3rem; }
  .inicio-texto { grid-area: texto; }
  .croquis { grid-area: croquis; width: min(100%, 340px); }
  .pedido { grid-area: pedido; }
}

/* ====================================================================
   EL TALLER
   ==================================================================== */
.taller { padding: 3.2rem 0; }
.taller h2, .seguros h2, .ubicacion h2 { font-size: clamp(1.8rem, 6.5vw, 2.6rem); line-height: 1.05; margin-bottom: 1.2rem; }
.taller-lista { display: grid; gap: 0; border-top: 2px solid var(--tinta); }
.taller-lista li { display: grid; gap: 0.2rem; padding: 1rem 0; border-bottom: 1px solid #C9CFDA; }
.taller-lista h3 { font-size: 1.25rem; color: var(--azul); }
@media (min-width: 760px) {
  .taller-lista li { grid-template-columns: 16rem 1fr; gap: 2rem; align-items: baseline; }
}

/* ====================================================================
   SEGUROS
   ==================================================================== */
.seguros { background: var(--azul); color: var(--blanco); padding: 3rem 0; }
.seguros h2 { margin-bottom: 0.4rem; }
.seguros p { color: #C3CEEA; margin-bottom: 1rem; }
.seguros-lista { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.seguros-lista li { padding: 0.35rem 0.8rem; border: 1px solid #7C93C9; font-family: var(--planilla); font-weight: 600; font-size: 1.05rem; }

/* ====================================================================
   HORARIOS + UBICACIÓN
   ==================================================================== */
.ubicacion { padding: 3.2rem 0; }
.ubicacion-fila { display: grid; gap: 1.6rem; align-items: start; }
.ubicacion h2 { margin-bottom: 0.8rem; }
.ubicacion p { color: var(--gris); margin-bottom: 0.3rem; }
.ubicacion p a { color: var(--azul); font-weight: 600; }
.horarios { margin: 1.2rem 0 0.4rem; max-width: 340px; }
.horarios h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.horarios li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; border-bottom: 1px solid #DDE1E8; font-size: 0.95rem; }
.horarios li.es-hoy { font-weight: 600; color: var(--azul); }
.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(--azul);
  color: var(--azul);
  font-weight: 600;
  text-decoration: none;
}
.boton-contorno:hover { background: var(--azul); color: var(--blanco); }
#mapa-iframe { width: 100%; height: 320px; border: 1px solid var(--tinta); background: var(--chapa); }
@media (min-width: 860px) { .ubicacion-fila { grid-template-columns: 1fr 1.4fr; gap: 3rem; } #mapa-iframe { height: 420px; } }

/* Pie */
.pie { background: var(--tinta); color: #A9B0C0; 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: var(--wa);
  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; } }
