/* ====================================================================
   PALMUCCI NEUMÁTICOS
   Idea: una cubierta enorme con la medida escrita en el flanco, en
   letras de goma. La medida que elegís se escribe ahí mismo y viaja
   en el WhatsApp. Caucho, llanta de aluminio, amarillo señal y gris
   asfalto claro. Letra extendida de flanco (Michroma).
   ==================================================================== */
:root {
  --caucho: #1D1E21;
  --costado: #2B2D31;
  --asfalto: #EEF0F1;
  --aluminio: #BFC3C9;
  --amarillo: #F5B700;
  --tinta: #16181B;
  --gris: #5B6068;
  --blanco: #FFFFFF;
  --wa: #25D366;

  --flanco: "Michroma", "Arial", sans-serif;
  --texto: "Mulish", 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(--asfalto); color: var(--tinta); line-height: 1.6; }
a { color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; }

.contenedor { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1rem; }
h1, h2, .marca { font-family: var(--flanco); font-weight: 400; letter-spacing: 0.01em; }

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

/* ====================================================================
   PRESENTACIÓN + CUBIERTA
   ==================================================================== */
.inicio { padding: 2rem 0 3rem; overflow: hidden; }
.inicio-grilla { display: grid; gap: 1.6rem; }
.inicio h1 { font-size: clamp(1.7rem, 6.8vw, 3rem); line-height: 1.15; max-width: 16ch; }
.bajada { max-width: 42ch; margin: 1rem 0 0.8rem; font-size: 1.05rem; color: var(--gris); }
.estado { font-weight: 700; font-size: 0.95rem; }
.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; }

.rueda-zona { justify-self: center; width: min(100%, 460px); }
.rueda { display: block; width: 100%; height: auto; animation: rodar 1.2s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
@keyframes rodar { from { transform: translateX(40%) rotate(140deg); opacity: 0; } to { transform: none; opacity: 1; } }
.banda { fill: #151618; }
.tacos { fill: none; stroke: #2A2C2F; stroke-width: 24; stroke-dasharray: 16 9; }
.costado { fill: var(--costado); }
.costado-borde { fill: none; stroke: #3A3D42; stroke-width: 4; }
.flanco-texto { font-family: var(--flanco); font-size: 26px; letter-spacing: 3px; fill: #5E6269; }
.flanco-texto-medida { font-size: 40px; letter-spacing: 2px; fill: var(--blanco); }
.llanta-aro { fill: var(--aluminio); }
.llanta-cara { fill: #A5AAB1; }
.llanta-hueco { fill: var(--costado); }
.llanta-maza { fill: var(--aluminio); stroke: #8E939A; stroke-width: 4; }

/* El formulario de medida */
.medida { background: var(--blanco); border-top: 6px solid var(--amarillo); padding: 1.2rem; max-width: 520px; }
.medida-campos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.medida label span, .medida legend { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.2rem; }
.medida select {
  width: 100%;
  min-height: 50px;
  padding: 0.4rem 0.5rem;
  font-family: var(--flanco);
  font-size: 1rem;
  color: var(--tinta);
  background: var(--asfalto);
  border: 2px solid var(--caucho);
  border-radius: 6px;
}
.medida-cantidad { border: 0; margin: 1rem 0 1.2rem; }
#medida-cantidad { display: flex; gap: 0.5rem; }
#medida-cantidad label { position: relative; }
#medida-cantidad input { position: absolute; opacity: 0; }
#medida-cantidad span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 48px;
  margin: 0;
  border: 2px solid var(--caucho);
  border-radius: 6px;
  font-family: var(--flanco);
  font-size: 1.05rem;
  cursor: pointer;
}
#medida-cantidad input:checked + span { background: var(--caucho); color: var(--amarillo); }
#medida-cantidad input:focus-visible + span { outline: 3px solid var(--amarillo); outline-offset: 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: 700;
  text-decoration: none;
  border-radius: 6px;
}
.boton-wa:hover { background: #1FB855; }

@media (min-width: 900px) {
  .inicio { padding: 3rem 0 4rem; }
  .inicio-grilla { grid-template-columns: 1fr 1fr; grid-template-areas: "texto rueda" "medida rueda"; gap: 1.4rem 3rem; }
  .inicio-texto { grid-area: texto; }
  .medida { grid-area: medida; align-self: start; }
  .rueda-zona { grid-area: rueda; width: 560px; justify-self: start; align-self: center; }
}

/* ====================================================================
   SERVICIOS
   ==================================================================== */
.servicios { background: var(--caucho); color: var(--blanco); padding: 3.2rem 0; }
.servicios h2, .ubicacion h2 { font-size: clamp(1.4rem, 5.5vw, 2.1rem); line-height: 1.2; margin-bottom: 1.4rem; }
.servicios-lista { display: grid; gap: 1.2rem 2rem; }
.servicios-lista li { padding-left: 1rem; border-left: 4px solid var(--amarillo); }
.servicios-lista h3 { font-size: 1.15rem; }
.servicios-lista p { color: #B9BDC4; }
@media (min-width: 760px) { .servicios-lista { grid-template-columns: repeat(2, 1fr); } }

/* ====================================================================
   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(--tinta); font-weight: 700; }
.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 #D5D8DC; 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; background: var(--amarillo); padding: 0 0.35rem; border-radius: 3px; }
.boton-contorno {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--caucho);
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}
.boton-contorno:hover { background: var(--caucho); color: var(--blanco); }
#mapa-iframe { width: 100%; height: 320px; border: 0; border-radius: 6px; background: var(--blanco); }
@media (min-width: 860px) { .ubicacion-fila { grid-template-columns: 1fr 1.4fr; gap: 3rem; } #mapa-iframe { height: 440px; } }

/* Pie */
.pie { background: var(--caucho); color: #A3A8B0; 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: 700;
  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; }
  .rueda { animation: none; }
}
