/* =========================================================
   TALLER MOTORPRO — Landing
   Paleta oscura + amarillo taller · Oswald + Barlow
   ========================================================= */

:root {
  --bg: #0b0b0b;
  --bg-2: #121212;
  --card: #161616;
  --card-2: #1c1c1c;
  --line: #262626;
  --text: #f2f2f2;
  --muted: #a3a3a3;
  --muted-2: #7a7a7a;
  --accent: #ffb800;
  --accent-dark: #e6a400;
  --accent-soft: rgba(255, 184, 0, .12);
  --wa: #25d366;
  --danger: #ef4444;

  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;

  --radius: 10px;
  --header-h: 72px;
  --gutter: 20px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); text-transform: uppercase; line-height: 1.05; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.ico { width: 22px; height: 22px; flex-shrink: 0; }
.ico--accent { color: var(--accent); }

/* ---------- Tipografía común ---------- */
.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section { padding: 72px 0 0; }
.section:last-of-type { padding-bottom: 72px; }
.section__head { margin-bottom: 28px; max-width: 640px; }
.section__title { font-size: clamp(2rem, 6.5vw, 3.2rem); font-weight: 700; letter-spacing: .01em; }
.section__text { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

.stars { color: var(--accent); letter-spacing: 3px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 6px;
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #111; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--outline { border-color: #e8e8e8; color: #fff; background: transparent; }
.btn--outline:hover { background: #fff; color: #111; }
.btn--block { width: 100%; }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .95rem; }

/* ---------- Cabecera ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 11, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: inline-flex; flex-direction: column; line-height: 1; }
.logo__small {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.logo__big {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.85rem;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.logo__big span { color: var(--accent); }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.burger { display: flex; flex-direction: column; gap: 6px; cursor: pointer; padding: 8px 0 8px 8px; }
.burger span { width: 30px; height: 2.5px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle:checked + .burger span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle:checked + .burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked + .burger span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
.nav-toggle:focus-visible + .burger { outline: 2px solid var(--accent); outline-offset: 4px; }

.nav {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px var(--gutter) 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, transform .25s, visibility .25s;
}
.nav a:not(.btn) {
  font-family: var(--font-head);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.nav .btn { margin-top: 16px; }
.nav-toggle:checked ~ .nav { opacity: 1; visibility: visible; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero__media { position: relative; height: 340px; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,11,0) 35%, rgba(11,11,11,.75) 75%, var(--bg) 100%);
}
.hero__content { position: relative; margin-top: -70px; }
.hero__title { font-size: clamp(2.6rem, 11vw, 5rem); font-weight: 700; letter-spacing: .005em; }
.hero__text { color: #cfcfcf; font-size: 1.1rem; margin-top: 18px; }
.hero__actions { display: grid; gap: 14px; margin-top: 28px; }
.rating { margin-top: 22px; color: var(--muted); font-size: .98rem; }
.rating strong { color: #fff; }

/* ---------- Datos rápidos ---------- */
.quick { margin-top: 44px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quick__grid { display: grid; grid-template-columns: 1fr 1fr; padding-inline: 0; }
.quick__item { padding: 26px var(--gutter); border-bottom: 1px solid var(--line); }
.quick__item:nth-child(odd) { border-right: 1px solid var(--line); }
.quick__item:nth-last-child(-n+2) { border-bottom: 0; }
.quick__item h3 { font-size: 1rem; font-weight: 600; letter-spacing: .04em; margin: 14px 0 6px; }
.quick__item p,
.quick__item > a { color: var(--muted); font-size: .92rem; }
.link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.service {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.service:hover { border-color: rgba(255,184,0,.5); transform: translateY(-3px); }
.service img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.service__body { padding: 14px 14px 18px; }
.service h3 { overflow-wrap: anywhere; font-size: 1.05rem; font-weight: 600; letter-spacing: .03em; margin: 12px 0 6px; }
.service p { color: var(--muted); font-size: .9rem; line-height: 1.45; }

/* ---------- CTA cita ---------- */
.cta-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  margin-top: 40px;
  padding: 26px 22px;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  background: radial-gradient(120% 140% at 0% 0%, rgba(255,184,0,.10), transparent 60%), var(--card);
}
.cta-box__icon { width: 34px; height: 34px; margin-top: 4px; }
.cta-box h3 { font-size: 1.6rem; font-weight: 600; }
.cta-box p { color: var(--muted); margin-top: 6px; }
.cta-box__actions { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; margin-top: 18px; }

.cta-box__actions .btn { padding: 0 12px; }

/* ---------- Sobre nosotros ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { text-align: center; padding: 26px 6px; display: flex; flex-direction: column; align-items: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .ico { width: 26px; height: 26px; }
.stat strong { font-family: var(--font-head); font-size: 2rem; font-weight: 600; margin-top: 12px; line-height: 1; }
.stat span { color: var(--muted-2); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 8px; line-height: 1.35; }
.about__img { width: 100%; border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- Por qué elegirnos ---------- */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.check__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.check__icon .ico { width: 18px; height: 18px; }
.check h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: .03em; margin-bottom: 4px; }
.check p { color: var(--muted); font-size: .95rem; }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery__item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; }
.gallery__item img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item--wide { grid-column: 1 / -1; }
.gallery__item--wide img { aspect-ratio: 16 / 9; }
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.75));
  pointer-events: none;
}
.gallery figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ---------- Opiniones ---------- */
.reviews { display: grid; gap: 14px; }
.score,
.review {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.score { display: flex; align-items: center; gap: 18px; }
.score strong { font-family: var(--font-head); font-size: 3rem; font-weight: 600; line-height: 1; }
.score .stars { font-size: 1.3rem; }
.score p { color: var(--muted-2); font-size: .88rem; }
.review { margin: 0; }
.review p { margin: 14px 0 18px; color: #d6d6d6; font-size: 1rem; }
.review footer { display: flex; align-items: center; gap: 12px; color: #d6d6d6; font-size: .95rem; }
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2a2a2a;
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 600;
}

/* ---------- Contacto ---------- */
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 18px 4px; border-top: 1px solid var(--line); font-size: 1rem; }
.hours tr:last-child td { border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; color: var(--muted); }
.hours .closed { color: var(--danger) !important; }

.contact__side { display: grid; gap: 14px; margin-top: 28px; }
.map {
  position: relative;
  display: block;
  height: 240px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(28deg, transparent 47%, #2c2c2c 47.5%, #2c2c2c 50.5%, transparent 51%),
    linear-gradient(118deg, transparent 58%, #262626 58.5%, #262626 60.5%, transparent 61%),
    linear-gradient(90deg, transparent 72%, #232323 72.3%, #232323 74%, transparent 74.3%),
    linear-gradient(0deg, transparent 30%, #232323 30.3%, #232323 32%, transparent 32.3%),
    linear-gradient(160deg, transparent 20%, #1f1f1f 20.3%, #1f1f1f 21.5%, transparent 21.8%),
    #181818;
}
.map__pin {
  position: absolute;
  left: 50%;
  top: 38%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  color: var(--accent);
  fill: var(--accent);
  filter: drop-shadow(0 6px 12px rgba(255,184,0,.35));
}
.map__label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: rgba(0,0,0,.75);
  border-radius: 4px;
  font-size: .85rem;
}

/* ---------- Pie ---------- */
.footer { border-top: 1px solid var(--line); padding: 44px 0 110px; background: var(--bg-2); }
.footer .logo__big { font-size: 1.5rem; }
.footer p { color: var(--muted); font-size: .92rem; margin-top: 16px; }
.footer__legal { font-size: .82rem !important; color: var(--muted-2) !important; margin-top: 22px !important; }
.footer a:hover { color: var(--accent); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 10px 25px rgba(37, 211, 102, .35);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

/* =========================================================
   TABLET
   ========================================================= */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .hero__actions { grid-template-columns: 1fr 1fr; max-width: 560px; }
  .quick__grid { grid-template-columns: repeat(4, 1fr); padding-inline: var(--gutter); }
  .quick__item { border-bottom: 0; border-right: 1px solid var(--line); }
  .quick__item:last-child { border-right: 0; }
  .services { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .checks { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gallery__item--wide { grid-column: span 2; grid-row: span 2; }
  .gallery__item--wide img { aspect-ratio: auto; }
  .reviews { grid-template-columns: 1fr 1fr; }
  .score { grid-column: 1 / -1; }
  .cta-box { grid-template-columns: auto 1fr auto; align-items: center; padding: 30px; }
  .cta-box__actions { grid-column: auto; margin-top: 0; min-width: 320px; }
}

/* =========================================================
   ESCRITORIO
   ========================================================= */
@media (min-width: 1000px) {
  :root { --header-h: 84px; }
  .section { padding-top: 110px; }
  .section:last-of-type { padding-bottom: 110px; }

  /* Menú horizontal */
  .burger { display: none; }
  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    padding: 0;
    background: none;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav a:not(.btn) { font-size: .95rem; padding: 0; border: 0; color: #d9d9d9; transition: color .2s; }
  .nav a:not(.btn):hover { color: var(--accent); }
  .nav .btn { margin-top: 0; }

  /* Hero a pantalla completa con imagen de fondo */
  .hero { min-height: calc(100vh - var(--header-h)); display: flex; align-items: flex-end; }
  .hero__media { position: absolute; inset: 0; height: auto; }
  .hero__media img { object-position: center 40%; }
  .hero__media::after {
    background:
      linear-gradient(90deg, rgba(11,11,11,.92) 0%, rgba(11,11,11,.55) 45%, rgba(11,11,11,.1) 75%),
      linear-gradient(180deg, transparent 60%, var(--bg) 100%);
  }
  .hero__content { margin-top: 0; padding-bottom: 90px; padding-top: 120px; }
  .hero__title { max-width: 720px; }
  .hero__text { max-width: 520px; }

  .quick { margin-top: 0; }
  .services { gap: 22px; }
  .service h3 { font-size: 1.2rem; }

  .about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .about__img { aspect-ratio: 4 / 5; }

  .why { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
  .checks { grid-template-columns: 1fr; }

  .reviews { grid-template-columns: 0.8fr 1fr 1fr; }
  .score { grid-column: auto; flex-direction: column; align-items: flex-start; justify-content: center; }
  .score strong { font-size: 4.5rem; }

  .contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
  .contact__side { margin-top: 0; }
  .map { height: 300px; }

  .footer { padding-bottom: 50px; }
  .footer .container { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
  .footer p { margin-top: 0; }
  .footer__legal { margin-top: 0 !important; }
}
