/* ==========================================================================
   TORNERÍA MONNIER — Design tokens
   Paleta tomada del logo real (verde lima sobre metal gunmetal) + acentos
   de chapa/cartelería de taller (rojo racing, amarillo señalética).
   Tipografía: Oswald (condensada, industrial) para títulos,
   Barlow para texto, JetBrains Mono para códigos de orden de trabajo.
   ========================================================================== */

:root {
  --bg: #121212;
  --bg-soft: #1a1a1a;
  --panel: #202020;
  --panel-border: #34342f;
  --metal: #3a3a38;

  --green: #9FE300;
  --green-dim: #6f9e00;
  --green-glow: rgba(159, 227, 0, 0.35);

  --red: #E2231A;
  --yellow: #F3C215;

  --text: #EDEDE4;
  --text-muted: #A6A69C;
  --text-dim: #6f6f68;

  --cream: #F4F1E6;
  --cream-panel: #FFFFFF;

  --font-display: 'Oswald', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 4px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--green); color: #111; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.section__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 14px;
}
.eyebrow--dark { color: var(--green-dim); }

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.08;
  margin: 0 0 20px;
  color: var(--text);
  letter-spacing: 0.2px;
}
.section__title--dark { color: #161613; }

/* Subtle grain overlay for texture, like worn metal */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn__icon { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: var(--green);
  color: #131300;
  box-shadow: 0 0 0 0 var(--green-glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -4px var(--green-glow); }

.btn--ghost {
  background: transparent;
  border-color: rgba(237, 237, 228, 0.28);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }

.btn--outline-light {
  background: transparent;
  border-color: #161613;
  color: #161613;
}
.btn--outline-light:hover { background: #161613; color: var(--cream); }

.btn--full { width: 100%; justify-content: center; }
.btn--ig { margin-top: 34px; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(18, 18, 18, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  display: flex;
  flex-direction: column;
  line-height: 0.95;
}
.nav__brand-line1 {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  color: var(--text-muted);
}
.nav__brand-line2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 22px;
  color: var(--green);
  letter-spacing: 0.5px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.nav__links a { color: var(--text-muted); transition: color 0.15s ease; }
.nav__links a:hover { color: var(--green); }
.nav__cta {
  background: var(--green);
  color: #131300 !important;
  padding: 9px 16px;
  border-radius: var(--radius);
}
.nav__cta:hover { color: #131300 !important; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav__burger span {
  width: 24px; height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 24px 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 600px at 82% 18%, rgba(159,227,0,0.10), transparent 60%),
    linear-gradient(180deg, #0f0f0f, #141412 60%, #121212);
}

.hero__chuck {
  position: absolute;
  top: 50%; right: -8%;
  transform: translateY(-50%);
  width: min(58vw, 640px);
  opacity: 0.16;
  pointer-events: none;
}
.hero__chuck-svg { width: 100%; height: auto; animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.chuck-ring { fill: none; stroke: var(--green); stroke-width: 1.4; }
.chuck-jaws rect { fill: var(--green); }
.chuck-center { fill: var(--bg); stroke: var(--green); stroke-width: 2; }

.hero__content {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.hero__title { margin: 0 0 22px; }
.hero__title-small {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(18px, 2.4vw, 26px);
  color: var(--text-muted);
}
.hero__title-big {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(52px, 11vw, 128px);
  line-height: 0.92;
  color: var(--green);
  text-shadow: 0 0 60px rgba(159,227,0,0.25);
  letter-spacing: -1px;
}

.hero__lead {
  max-width: 620px;
  font-size: clamp(16px, 1.9vw, 19px);
  color: var(--text-muted);
  margin: 0 0 36px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

.hero__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 26px;
}
.stat { display: flex; flex-direction: column; }
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 32px;
  color: var(--text);
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero__scroll span {
  width: 1px; height: 26px;
  background: linear-gradient(var(--green), transparent);
  animation: scrollpulse 1.8s ease-in-out infinite;
}
@keyframes scrollpulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee {
  background: var(--green);
  overflow: hidden;
  padding: 12px 0;
  border-top: 2px solid #131300;
  border-bottom: 2px solid #131300;
}
.marquee__track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #131300;
  white-space: nowrap;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   HISTORIA
   ========================================================================== */
.historia { background: var(--bg-soft); padding: 100px 0; }
.historia__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: start;
}
.historia__p { color: var(--text-muted); font-size: 17px; margin: 0 0 18px; max-width: 56ch; }
.historia__p strong { color: var(--green); font-weight: 600; }

.historia__timeline {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--panel-border);
  padding-left: 24px;
}
.tl-point {
  position: relative;
  padding-bottom: 26px;
}
.tl-point:last-child { padding-bottom: 0; }
.tl-point::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(159,227,0,0.15);
}
.tl-year {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.tl-desc { color: var(--text-muted); font-size: 15px; }

.historia__panel { display: flex; align-items: center; }
.tool-panel {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 28px;
}
.tool-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.tool-row span {
  font-size: 20px;
  color: var(--metal);
  filter: grayscale(1);
}
.tool-row:not(.tool-row--small) span { color: var(--text-dim); }
.tool-row--small span { font-size: 13px; color: var(--green-dim); }
.tool-panel__caption {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
  border-top: 1px solid var(--panel-border);
  padding-top: 16px;
}

/* ==========================================================================
   SERVICIOS
   ========================================================================== */
.servicios { padding: 100px 0; background: var(--bg); }
.servicios__grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--panel-border);
  border: 1px solid var(--panel-border);
}
.service-card {
  background: var(--bg-soft);
  padding: 34px 28px;
  transition: background 0.2s ease;
}
.service-card:hover { background: var(--panel); }
.service-card__icon {
  width: 44px; height: 44px;
  color: var(--green);
  margin-bottom: 18px;
}
.service-card__icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  margin: 0 0 10px;
  color: var(--text);
}
.service-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0;
}

/* ==========================================================================
   TRABAJOS / ÓRDENES
   ========================================================================== */
.trabajos { padding: 100px 0; background: var(--bg-soft); }
.trabajos__sub { color: var(--text-muted); max-width: 60ch; font-size: 16px; margin: 0 0 40px; }

.trabajos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.order-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.order-card:hover { border-color: var(--green-dim); transform: translateY(-3px); }
.order-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.order-card__id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.06em;
}
.order-card__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 3px 9px;
}
.order-card__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--text);
  margin: 0 0 4px;
}
.order-card__vehicle {
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
}

/* ==========================================================================
   MARCAS / B2B — sticker wall (eco de la máquina cubierta de stickers)
   ========================================================================== */
.marcas {
  background: var(--cream);
  color: #161613;
  padding: 100px 0;
}
.marcas__sub { max-width: 58ch; color: #4a4a42; font-size: 16px; margin: 0 0 44px; }

.sticker-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  padding: 30px;
  background: repeating-linear-gradient(135deg, #e9e5d4, #e9e5d4 2px, #f1eee0 2px, #f1eee0 26px);
  border: 2px solid #161613;
  border-radius: var(--radius);
}
.sticker {
  display: inline-block;
  background: var(--cream-panel);
  border: 2px solid #161613;
  border-radius: 3px;
  padding: 9px 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 15px;
  box-shadow: 3px 3px 0 rgba(22,22,19,0.15);
}
.sticker--1, .sticker--4, .sticker--9 { background: var(--red); color: #fff; border-color: #7a0d08; transform: rotate(-3deg); }
.sticker--2, .sticker--7 { background: #161613; color: var(--green); transform: rotate(2deg); }
.sticker--3, .sticker--10 { background: var(--yellow); color: #161613; border-color: #9c7a00; transform: rotate(-1.5deg); }
.sticker--5, .sticker--11 { background: var(--cream-panel); color: #161613; transform: rotate(3deg); }
.sticker--6, .sticker--8, .sticker--12 { background: var(--green); color: #161613; border-color: var(--green-dim); transform: rotate(-2deg); }

.marcas__cta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 2px solid #161613;
  padding-top: 28px;
}
.marcas__cta p { max-width: 46ch; font-size: 16px; margin: 0; font-weight: 500; }

/* ==========================================================================
   INSTAGRAM
   ========================================================================== */
.instagram { padding: 100px 0; background: var(--bg); text-align: center; }
.instagram__sub {
  max-width: 60ch;
  margin: 0 auto 44px;
  color: var(--text-muted);
  font-size: 16px;
}
.instagram__sub a { color: var(--green); font-weight: 600; }

.ig-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  text-align: left;
}
.ig-card {
  aspect-ratio: 1;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.ig-card:hover { border-color: var(--green-dim); transform: translateY(-3px); }
.ig-card__icon { color: var(--green); width: 22px; height: 22px; }
.ig-card__icon svg { width: 100%; height: 100%; }
.ig-card__title {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.3;
}
.ig-card__caption {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contacto { padding: 100px 0; background: var(--bg-soft); }
.contacto__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contacto__p { color: var(--text-muted); font-size: 16px; max-width: 50ch; margin: 0 0 32px; }

.contacto__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contacto__list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 14px;
}
.contacto__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.contacto__list a { color: var(--green); font-weight: 600; font-size: 17px; }
.contacto__list li span:last-child:not(.contacto__label) { font-size: 17px; }

.contacto__form {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contacto__form label { display: flex; flex-direction: column; gap: 8px; }
.contacto__form span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.contacto__form input,
.contacto__form textarea {
  background: var(--bg-soft);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  resize: vertical;
}
.contacto__form input:focus,
.contacto__form textarea:focus {
  border-color: var(--green);
  outline: none;
}
.contacto__note {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-dim);
  text-align: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: #0d0d0d; padding: 64px 0 0; border-top: 1px solid var(--panel-border); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer__brand-line1 { display: block; font-family: var(--font-body); font-style: italic; color: var(--text-muted); font-size: 13px; }
.footer__brand-line2 { display: block; font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: 24px; color: var(--green); margin-bottom: 10px; }
.footer__brand p { color: var(--text-dim); font-size: 14px; max-width: 32ch; }
.footer__links, .footer__social { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer__links a, .footer__social a { color: var(--text-muted); }
.footer__links a:hover, .footer__social a:hover { color: var(--green); }

.footer__bottom {
  border-top: 1px solid var(--panel-border);
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-dim);
}
.footer__bootcode strong { color: var(--green); }
.footer__bootcode:hover { color: var(--green); }

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */
.fab-whatsapp {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px; height: 56px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #131300;
  box-shadow: 0 8px 24px -4px rgba(0,0,0,0.5);
  z-index: 400;
  transition: transform 0.2s ease;
}
.fab-whatsapp svg { width: 28px; height: 28px; }
.fab-whatsapp:hover { transform: scale(1.08); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .servicios__grid { grid-template-columns: repeat(2, 1fr); }
  .trabajos__grid { grid-template-columns: repeat(2, 1fr); }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .historia__grid { grid-template-columns: 1fr; gap: 40px; }
  .contacto__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #0d0d0d;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    border-bottom: 1px solid var(--panel-border);
  }
  .nav__links.is-open { max-height: 400px; }
  .nav__links a { width: 100%; padding: 16px 24px; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav__cta { margin: 12px 24px; text-align: center; }
  .nav__burger { display: flex; }

  .hero { padding-top: 120px; }
  .hero__chuck { opacity: 0.09; width: 100vw; right: -20%; }
  .hero__stats { gap: 26px; }

  .servicios__grid { grid-template-columns: 1fr; }
  .trabajos__grid { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }

  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .sticker-wall { justify-content: center; padding: 22px; }
  .marcas__cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero__title-big { letter-spacing: -0.5px; }
  .ig-grid { grid-template-columns: 1fr 1fr; }
  .section__inner { padding: 0 18px; }
}
