/* ====================================================================
   MAX-LIS ELECTRICIDAD AUTOMOTOR
   Idea: el tablero de noche. Los testigos se prenden todos al girar
   la llave (como en el auto) y después marcás el que te quedó
   encendido. Azul noche de tablero, ámbar y rojo de testigo; el
   resto de la página, claro y tranquilo. Exo 2, letra de instrumental.
   ==================================================================== */
:root {
  --noche: #0E1726;
  --bisel: #1C2A40;
  --apagado: #566A8E;
  --ambar: #FFB000;
  --rojo: #FF4136;
  --verde: #2ECC71;
  --claro: #F2F5F9;
  --tinta: #121A28;
  --gris: #56627A;
  --blanco: #FFFFFF;
  --wa: #25D366;

  --fuente: "Exo 2", 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(--fuente); background: var(--claro); color: var(--tinta); line-height: 1.6; }
a { color: inherit; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--ambar); outline-offset: 3px; }

.contenedor { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1rem; }
h1, h2, .marca { font-weight: 800; letter-spacing: -0.01em; line-height: 1.05; }

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

/* ====================================================================
   PRESENTACIÓN + TABLERO
   ==================================================================== */
.inicio { background: var(--noche); color: var(--blanco); padding: 1.6rem 0 3.2rem; }
.inicio h1 { font-size: clamp(2.3rem, 9.5vw, 4.6rem); max-width: 13ch; }
.bajada { max-width: 46ch; margin: 1rem 0 1.8rem; color: #AEB9CC; font-size: 1.05rem; }

.tablero {
  max-width: 760px;
  padding: 1.2rem;
  background: radial-gradient(ellipse at 50% 0%, #17243A, #0A111C 75%);
  border: 3px solid var(--bisel);
  border-radius: 28px 28px 14px 14px;
}
.testigos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.testigo {
  display: grid;
  place-items: center;
  aspect-ratio: 1.3;
  background: #0B1320;
  border: 2px solid var(--bisel);
  border-radius: 12px;
  color: var(--apagado);
  transition: color 0.15s, border-color 0.15s;
}
.testigo svg { width: 58%; height: auto; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.testigo svg text { fill: currentColor; stroke: none; font-family: var(--fuente); font-weight: 800; font-size: 11px; }
.testigo:hover { border-color: #4A5E80; }
/* Testigo marcado: encendido con su color */
.testigo-rojo[aria-pressed="true"] { color: var(--rojo); border-color: var(--rojo); filter: drop-shadow(0 0 8px rgba(255, 65, 54, 0.55)); }
.testigo-ambar[aria-pressed="true"] { color: var(--ambar); border-color: var(--ambar); filter: drop-shadow(0 0 8px rgba(255, 176, 0, 0.5)); }
/* Chequeo de lámparas al girar la llave */
.chequeo .testigo-rojo { animation: chequeo-rojo 1.4s steps(1) both; }
.chequeo .testigo-ambar { animation: chequeo-ambar 1.4s steps(1) both; }
@keyframes chequeo-rojo { 0% { color: var(--rojo); } 100% { color: var(--apagado); } }
@keyframes chequeo-ambar { 0% { color: var(--ambar); } 100% { color: var(--apagado); } }
.chequeo .testigo[aria-pressed="true"] { animation: none; }

.tablero-pie { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-top: 1rem; }
.llave {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.5rem 1rem;
  background: none;
  border: 2px solid var(--apagado);
  border-radius: 999px;
  color: var(--blanco);
  font-weight: 600;
}
.llave svg { fill: none; stroke: var(--ambar); stroke-width: 2.2; stroke-linecap: round; }
.llave:hover { border-color: var(--ambar); }
.tablero-leyenda { color: #AEB9CC; }

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

@media (min-width: 700px) {
  .testigos { grid-template-columns: repeat(6, 1fr); }
  .inicio { padding: 3rem 0 4rem; }
}

/* ====================================================================
   A PIE
   ==================================================================== */
.apie { background: var(--ambar); color: var(--tinta); padding: 2.2rem 0; }
.apie-fila { display: grid; gap: 1rem; align-items: center; }
.apie h2 { font-size: clamp(1.6rem, 6vw, 2.3rem); }
.boton-llamar {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0.7rem 1.4rem;
  background: var(--noche);
  color: var(--blanco);
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
}
@media (min-width: 760px) { .apie-fila { grid-template-columns: 1fr auto; } }

/* ====================================================================
   SERVICIOS
   ==================================================================== */
.servicios { padding: 3.2rem 0; }
.servicios h2, .ubicacion h2 { font-size: clamp(1.8rem, 6.5vw, 2.6rem); margin-bottom: 1.2rem; }
.servicios-lista { display: grid; gap: 1rem; }
.servicios-lista li { padding: 1.1rem 1.2rem; background: var(--blanco); border-radius: 12px; border: 1px solid #DCE2EA; }
.servicios-lista h3 { font-size: 1.2rem; }
.servicios-lista p { color: var(--gris); }
@media (min-width: 760px) { .servicios-lista { grid-template-columns: repeat(2, 1fr); } }

/* ====================================================================
   UBICACIÓN
   ==================================================================== */
.ubicacion { padding: 0 0 3.2rem; }
.ubicacion-fila { display: grid; gap: 1.6rem; align-items: center; }
.ubicacion h2 { margin-bottom: 0.8rem; }
.ubicacion p { color: var(--gris); margin-bottom: 0.3rem; }
.ubicacion p a { color: var(--tinta); font-weight: 600; }
.boton-contorno {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 0.8rem;
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--noche);
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}
.boton-contorno:hover { background: var(--noche); color: var(--blanco); }
#mapa-iframe { width: 100%; height: 300px; border: 0; border-radius: 12px; background: var(--blanco); }
@media (min-width: 860px) { .ubicacion-fila { grid-template-columns: 1fr 1.4fr; gap: 3rem; } #mapa-iframe { height: 340px; } }

/* Pie */
.pie { background: var(--noche); color: #93A0B6; 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; }
  .testigo { transition: none; }
  .chequeo .testigo-rojo, .chequeo .testigo-ambar { animation: none; }
}
