/* TechoRojo Lubricentro · Peumo
   Identidad: letrero rojo 3D bajo una barra-techo, chapa corrugada,
   reja roja y loseta del taller. No es un kit de tarjetas SaaS. */

@font-face {
  font-family: "Teko";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../assets/fonts/teko-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Teko";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../assets/fonts/teko-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --rojo: #c21812;
  --rojo-profundo: #7a100e;
  --rojo-reja: #a31410;
  --chapa: #cfd2d6;
  --chapa-sombra: #9ea3aa;
  --asfalto: #161311;
  --goma: #241f1c;
  --loseta: #e7e4dc;
  --aceite: #c9892A;
  --linea: #e3c43a;
  --humo: #5e5954;
  --papel: #f6f4ef;
  --blanco: #fbfaf6;
  --teko: "Teko", "Arial Narrow", Impact, sans-serif;
  --plex: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --canopy: 4.4rem;
  --barra: 4.6rem;
  --radio: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
html, body { margin: 0; }
body {
  font-family: var(--plex);
  color: var(--asfalto);
  background: var(--loseta);
  line-height: 1.5;
  padding-bottom: calc(var(--barra) + env(safe-area-inset-bottom));
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
h1, h2, h3 {
  font-family: var(--teko);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0;
  text-transform: uppercase;
}
p { margin: 0 0 0.8em; }
p:last-child { margin-bottom: 0; }

.saltar {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--rojo);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 80;
}
.saltar:focus { left: 0.6rem; top: 0.6rem; }

.envoltura {
  width: min(1120px, calc(100% - 1.6rem));
  margin-inline: auto;
}

/* —— Franja demo —— */
.franja {
  background: var(--asfalto);
  color: #d9d4cc;
  font-size: 0.78rem;
  padding: 0.4rem 0.8rem;
  text-align: center;
}
.franja b { color: #fff; font-weight: 600; }
.franja button {
  appearance: none;
  border: 0;
  background: none;
  color: var(--linea);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* —— Canopy header —— */
.canopy {
  position: sticky;
  top: 0;
  z-index: 40;
  background:
    repeating-linear-gradient(90deg,
      #b91c16 0 11px,
      #9e1612 11px 13px,
      #c9221b 13px 24px);
  color: #fff;
  box-shadow: 0 10px 0 var(--rojo-profundo);
}
.canopy-in {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--canopy);
  padding: 0.35rem 0;
}
.marca {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.55rem;
  text-decoration: none;
  min-width: 0;
}
.marca-techo {
  grid-row: 1 / 3;
  width: 2.4rem;
  height: 2.4rem;
  align-self: center;
  background:
    linear-gradient(#f4efe6, #cfc8bc);
  clip-path: polygon(0 28%, 50% 0, 100% 28%, 88% 28%, 88% 100%, 12% 100%, 12% 28%);
  box-shadow: inset 0 -6px 0 #8d1612;
}
.marca-nombre {
  font-family: var(--teko);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0.9;
  text-transform: uppercase;
}
.marca-giro {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
}
.canopy nav {
  margin-left: auto;
  display: none;
  gap: 1rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.canopy nav a { text-decoration: none; }
.canopy nav a:hover { text-decoration: underline; }
.bt-llamar {
  margin-left: auto;
  background: var(--asfalto);
  color: #fff;
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  font-weight: 600;
  font-size: 0.82rem;
  border: 1px solid #0006;
  white-space: nowrap;
}
.bt-llamar:hover { background: #000; }
.bt-llamar-num { display: none; }
@media (min-width: 880px) {
  .canopy nav { display: flex; }
  .bt-llamar { margin-left: 0.4rem; }
  .bt-llamar-num { display: inline; }
}

/* —— Hero: foto a sangre, placa de mesón abajo. Sin círculo. —— */
.hero {
  position: relative;
  background: var(--asfalto);
  color: var(--blanco);
}
.hero-foto {
  min-height: 44vh;
  max-height: 720px;
}
.hero-foto img {
  width: 100%;
  height: 44vh;
  max-height: 720px;
  object-fit: cover;
  object-position: 12% 40%;
}
.hero-sombra {
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(transparent, #0c0a08 92%);
  pointer-events: none;
}
.hero-placa {
  position: relative;
  margin-top: -7.5rem;
  padding: 0 0 calc(var(--barra) + 1.4rem);
  z-index: 2;
}
.hero-lugar {
  display: inline-block;
  background: var(--linea);
  color: var(--asfalto);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.55rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 10vw, 4.6rem);
  max-width: 16ch;
  margin-bottom: 0.45rem;
  text-shadow: 0 2px 0 #0008;
}
.hero-bajada {
  max-width: 38rem;
  color: #ddd6cc;
  font-size: 1.02rem;
}
.hero-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 1.1rem;
}
.bt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  padding: 0.72rem 1.05rem;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: var(--radio);
}
.bt-rojo { background: var(--rojo); color: #fff; }
.bt-rojo:hover { background: #a31410; }
.bt-claro { background: var(--blanco); color: var(--asfalto); }
.bt-claro:hover { background: #fff; }
.bt-linea {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}
.hero-datos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.8rem;
  border-top: 3px solid var(--linea);
  padding-top: 0.7rem;
  font-size: 0.8rem;
}
.hero-datos b {
  display: block;
  font-family: var(--teko);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
}
.hero-datos span { color: #c9c2b8; }
@media (min-width: 800px) {
  .hero-foto { min-height: 70vh; }
  .hero-foto img { height: 70vh; }
  .hero-placa {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    margin: 0;
    padding-bottom: 1.8rem;
  }
  .hero-datos {
    grid-template-columns: repeat(4, auto);
    justify-content: start;
    gap: 1.4rem;
    font-size: 0.92rem;
  }
  .hero-datos b { font-size: 1.7rem; }
}

/* —— Bahías (tabs de servicio) —— */
.seccion { padding: 2.4rem 0 2.6rem; }
.seccion h2 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  margin: 0.2rem 0 0.5rem;
}
.seccion-lead { max-width: 40rem; color: #3b3733; }
.bahias { background: var(--goma); color: var(--papel); }
.bahias h2 { color: #fff; }
.bahias .seccion-lead { color: #cfc8be; }

.tablist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin: 1.2rem 0 0.9rem;
}
.tab {
  appearance: none;
  background: #1c1815;
  color: #d7d0c6;
  border: 1px solid #3a342f;
  padding: 0.7rem 0.6rem 0.55rem;
  text-align: left;
  cursor: pointer;
  font-family: var(--teko);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.tab[aria-selected="true"] {
  background: var(--rojo);
  color: #fff;
  border-color: var(--rojo);
}
.tab:focus-visible { outline: 2px solid var(--linea); outline-offset: 2px; }
@media (min-width: 760px) {
  .tablist { grid-template-columns: repeat(4, 1fr); }
}

.panel {
  display: none;
  background: #1a1613;
  border: 1px solid #3a342f;
}
.panel.es-activo { display: grid; }
.panel-media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.panel-cuerpo { padding: 1.05rem 1rem 1.2rem; }
.panel-cuerpo h3 {
  font-size: 1.85rem;
  margin-bottom: 0.35rem;
}
.panel-cuerpo p { color: #d4cdc4; }
.panel-nota {
  margin-top: 0.8rem;
  padding: 0.7rem 0.75rem;
  background: #120f0d;
  border-left: 4px solid var(--linea);
  font-size: 0.92rem;
  color: #ece6dc;
}
.marcas-vistas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.8rem 0;
  padding: 0;
  list-style: none;
}
.marcas-vistas li {
  border: 1px solid #4a433c;
  padding: 0.15rem 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@media (min-width: 800px) {
  .panel.es-activo {
    grid-template-columns: 1.15fr 1fr;
    align-items: stretch;
  }
  .panel-media img { height: 100%; min-height: 360px; }
}

/* —— Vitrina —— */
.vitrina { background: var(--loseta); }
.rejilla {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1.2rem;
}
.ficha {
  background: var(--blanco);
  border: 1px solid #cfc9be;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ficha img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ddd;
}
.ficha-cuerpo { padding: 0.7rem 0.7rem 0.85rem; display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.ficha-cuerpo h3 { font-size: 1.35rem; text-transform: none; letter-spacing: 0; font-family: var(--teko); }
.ficha .precio {
  font-weight: 600;
  color: var(--rojo-profundo);
  margin-top: auto;
  padding-top: 0.4rem;
}
.ficha small { color: var(--humo); font-size: 0.8rem; }
@media (min-width: 900px) {
  .rejilla { grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
}

/* —— Opiniones —— */
.opiniones { background: var(--papel); }
.op-cabeza {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.nota-google {
  font-family: var(--teko);
  font-size: 2.6rem;
  line-height: 1;
}
.nota-google small { font-family: var(--plex); font-size: 0.85rem; font-weight: 400; display: block; }
.estrellas { color: var(--aceite); letter-spacing: 0.08em; }
.carril-wrap { position: relative; }
.carril {
  display: flex;
  gap: 0.7rem;
  overflow: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.2rem;
}
.carril::-webkit-scrollbar { display: none; }
blockquote.resena {
  margin: 0;
  min-width: min(82vw, 320px);
  scroll-snap-align: start;
  background: #fff;
  border-top: 6px solid var(--rojo);
  padding: 1rem 0.95rem 0.9rem;
}
blockquote.resena p { font-size: 0.98rem; }
blockquote.resena footer {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--humo);
}
.carril-ctrl {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.8rem;
  align-items: center;
}
.carril-ctrl button {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--asfalto);
  background: transparent;
  cursor: pointer;
}
.puntos { display: flex; gap: 0.3rem; }
.puntos button {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: #bbb;
  cursor: pointer;
}
.puntos button[aria-current="true"] { background: var(--rojo); }

/* —— Ubicación —— */
.ubicacion { background: var(--chapa); }
.ubi-caja {
  display: grid;
  gap: 0;
  background: var(--blanco);
  border: 1px solid #b7b3aa;
}
.mapa {
  min-height: 240px;
  background: #d5d2cc;
}
.mapa iframe {
  width: 100%;
  height: 240px;
  border: 0;
  display: block;
}
.ubi-datos { padding: 1.1rem 1rem 1.2rem; }
.horario {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0.7rem 0 1rem;
}
.horario th { text-align: left; font-weight: 500; padding: 0.28rem 0.4rem 0.28rem 0; }
.horario td { text-align: right; padding: 0.28rem 0; }
.horario tr.es-hoy { background: #fff3c4; font-weight: 600; }
.estado {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.estado i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #2f9e44;
}
.estado.es-cerrado i { background: var(--rojo); }
@media (min-width: 800px) {
  .ubi-caja { grid-template-columns: 1.3fr 1fr; }
  .mapa iframe, .mapa { height: 100%; min-height: 340px; }
}

/* —— Agenda demo —— */
.agenda {
  background: var(--asfalto);
  color: var(--papel);
}
.agenda h2 { color: #fff; }
.agenda .seccion-lead { color: #cfc8be; }
.sello-demo {
  display: inline-block;
  background: var(--linea);
  color: var(--asfalto);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.18rem 0.45rem;
  margin-bottom: 0.5rem;
}
.agenda-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}
.agenda-pasos {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: paso;
}
.agenda-pasos li {
  counter-increment: paso;
  padding: 0.55rem 0 0.55rem 2.4rem;
  position: relative;
  border-bottom: 1px solid #3a342f;
}
.agenda-pasos li::before {
  content: counter(paso);
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 1.7rem;
  height: 1.7rem;
  background: var(--rojo);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--teko);
  font-size: 1.2rem;
}
#agenda-saas {
  min-height: 420px;
  background: #1c1815;
  border: 1px solid #3f3832;
  padding: 1rem;
}
.agenda-widget h3 {
  font-size: 1.6rem;
  margin-bottom: 0.7rem;
}
.opciones {
  display: grid;
  gap: 0.4rem;
}
.opciones label {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.55rem 0.6rem;
  border: 1px solid #3f3832;
  cursor: pointer;
  background: #14110f;
}
.opciones label:has(input:checked) {
  border-color: var(--rojo);
  background: #2a1614;
}
.dias, .horas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.dias button, .horas button {
  appearance: none;
  border: 1px solid #4a433c;
  background: #14110f;
  color: #eee;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
  font-size: 0.85rem;
}
.dias button[aria-pressed="true"],
.horas button[aria-pressed="true"] {
  background: var(--rojo);
  border-color: var(--rojo);
}
.campo {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0.7rem;
}
.campo input, .campo textarea {
  background: #0f0d0b;
  border: 1px solid #4a433c;
  color: #fff;
  padding: 0.55rem 0.6rem;
}
.aviso-widget {
  font-size: 0.85rem;
  color: #cfc8be;
  margin-bottom: 0.8rem;
}
.resultado-demo {
  background: #102214;
  border-left: 4px solid #3d9a4a;
  padding: 0.8rem;
}
@media (min-width: 860px) {
  .agenda-grid { grid-template-columns: 0.9fr 1.2fr; align-items: start; }
}

/* —— Pie —— */
.pie {
  background: #100e0c;
  color: #cfc8be;
  padding: 1.6rem 0 5.5rem;
  font-size: 0.92rem;
}
.pie-grid {
  display: grid;
  gap: 1.1rem;
}
.pie a { color: #fff; }
.pie h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.3rem;
  text-transform: none;
  letter-spacing: 0;
}
.firma {
  margin-top: 1.3rem;
  padding-top: 0.9rem;
  border-top: 1px solid #2c2824;
  font-size: 0.82rem;
}
@media (min-width: 800px) {
  .pie-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .pie { padding-bottom: 1.8rem; }
}

/* —— Barra fija móvil —— */
.barra-fija {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 35;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  padding: 0.45rem 0.6rem calc(0.45rem + env(safe-area-inset-bottom));
  background: #0f0d0b;
  border-top: 3px solid var(--rojo);
}
.barra-fija .bt { width: 100%; }
@media (min-width: 800px) {
  .barra-fija { display: none; }
}

/* —— Overlay demo —— */
.overlay {
  position: fixed;
  inset: 0;
  background: #100e0ccc;
  z-index: 60;
  display: none;
  align-items: end;
  justify-content: center;
  padding: 1rem;
}
.overlay.es-abierto { display: flex; }
.overlay-caja {
  background: var(--goma);
  color: var(--papel);
  border-top: 8px solid var(--rojo);
  padding: 1.2rem 1.1rem 1.3rem;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow: auto;
}
.overlay-caja h2 {
  font-size: 2rem;
  margin-bottom: 0.4rem;
  color: #fff;
}
.overlay-acciones { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
@media (min-width: 700px) {
  .overlay { align-items: center; }
}

.fuente-foto {
  font-size: 0.75rem;
  color: #8a847c;
  margin-top: 0.35rem;
}

/* foco */
:focus-visible {
  outline: 2px solid var(--linea);
  outline-offset: 2px;
}
#servicios, #vitrina, #opiniones, #ubicacion, #reservar {
  scroll-margin-top: 5.2rem;
}
@media print {
  .barra-fija, .overlay, .franja { display: none !important; }
  body { padding-bottom: 0; }
  .canopy { position: static; }
}
