/* ==========================================================================
   MANO SOLUTIONSS — sistema de diseño
   Basado en el material publicitario real del cliente: negro/rojo/blanco,
   tipografía impact tipo cartel, velocímetro + llave como marca, y el tache
   diagonal rojo como elemento de firma que se repite en toda la página.
   ========================================================================== */

:root {
  --bg:          #0A0A0A;
  --bg-panel:    #141412;
  --bg-panel-2:  #1C1C19;
  --bg-raised:   #232320;

  --white:       #F5F3EE;
  --grey:        #9C9A94;
  --grey-dim:    #67655F;

  --red:         #D81E27;
  --red-bright:  #F2413B;
  --red-deep:    #7A0F13;

  --line:        rgba(245, 243, 238, 0.09);
  --line-strong: rgba(245, 243, 238, 0.20);

  --radius:      2px;
  --radius-lg:   3px;

  --shadow-deep: 0 26px 60px rgba(0,0,0,0.55);

  --font-display: 'Anton', 'Arial Black', sans-serif;
  --font-sub:     'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', 'Work Sans', sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --ease-swipe: cubic-bezier(.2, .9, .25, 1);
}

* { 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;
    scroll-behavior: auto !important;
  }
}

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

/* faint carbon-fiber style texture, ties to the trade without competing with the red */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image:
    repeating-linear-gradient(45deg, var(--white) 0, var(--white) 1px, transparent 1px, transparent 22px),
    repeating-linear-gradient(-45deg, var(--white) 0, var(--white) 1px, transparent 1px, transparent 22px);
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
  font-weight: 400;
}

.eyebrow {
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-bright);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 3px;
  background: var(--red);
  display: inline-block;
  transform: skewX(-20deg);
}

/* ---- signature element: the diagonal racing slash ---- */
.slash-divider {
  height: 14px;
  margin: 0 auto;
  max-width: 1180px;
  position: relative;
  overflow: hidden;
}
.slash-divider span {
  position: absolute;
  top: 0; left: -6%;
  width: 40%;
  height: 300%;
  background: var(--red);
  transform: skewX(-32deg) scaleX(0);
  transform-origin: left center;
  transition: transform .7s var(--ease-swipe);
}
.slash-divider.in-view span { transform: skewX(-32deg) scaleX(1); }
.slash-divider span:nth-child(2) {
  left: 34%;
  width: 14%;
  background: var(--bg-panel-2);
  transition-delay: .12s;
}

.corner-flag {
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 64px 64px 0;
  border-color: transparent var(--red) transparent transparent;
  z-index: 2;
}
.corner-flag::after {
  content: attr(data-label);
  position: absolute;
  top: 8px; right: -58px;
  transform: rotate(45deg);
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--white);
  white-space: nowrap;
}

.btn {
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--red-bright); }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--white);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--red); color: var(--red-bright); transform: translateY(-2px); }

/* ---------------------------------- header --------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { width: 42px; height: 42px; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-text .name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: var(--white);
}
.brand-text .name em {
  font-style: normal;
  color: var(--red);
}
.brand-text .slogan {
  font-family: var(--font-sub);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--grey);
  text-transform: uppercase;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  text-decoration: none;
  color: var(--grey);
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}
.main-nav a:hover { color: var(--white); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--red);
  transition: width .25s ease;
}
.main-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--white);
  width: 42px; height: 42px;
  border-radius: var(--radius);
  cursor: pointer;
}

/* ---------------------------------- hero ------------------------------ */

.hero {
  padding: 76px 0 0;
  position: relative;
  overflow: hidden;
}
.hero-panel {
  position: relative;
  background: linear-gradient(155deg, var(--bg-panel) 0%, var(--bg) 65%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  padding: 66px 56px;
  overflow: hidden;
}
.hero-panel::before {
  content: "";
  position: absolute;
  top: -20%; right: -8%;
  width: 60%;
  height: 160%;
  background: var(--red);
  transform: skewX(-18deg);
  opacity: 0.94;
  z-index: 0;
}
.hero-panel::after {
  content: "";
  position: absolute;
  top: -20%; right: 14%;
  width: 6%;
  height: 160%;
  background: var(--bg);
  transform: skewX(-18deg);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.hero-inner .eyebrow { color: var(--white); }
.hero-inner .eyebrow::before { background: var(--bg); }

.hero-inner h1 {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 0.98;
  color: var(--white);
  margin: 18px 0 20px;
  opacity: 0;
  transform: translateX(-24px);
  animation: swipe-in .75s var(--ease-swipe) .15s forwards;
}
.hero-inner p.lead {
  color: var(--grey);
  max-width: 44ch;
  margin-bottom: 30px;
  font-size: 1.05rem;
  opacity: 0;
  animation: swipe-in .75s var(--ease-swipe) .32s forwards;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: swipe-in .75s var(--ease-swipe) .48s forwards;
}

@keyframes swipe-in {
  to { opacity: 1; transform: translateX(0); }
}

/* trust strip inside hero, mirrors the flyer's bottom row */
.confianza-strip {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 30px;
  position: relative;
  z-index: 1;
}
.confianza-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.confianza-item .icon {
  width: 30px; height: 30px;
  color: var(--red-bright);
  flex-shrink: 0;
}
.confianza-item span {
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* stats — odometer style */
.stats {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 30px 22px;
  border-right: 1px solid var(--line);
  text-align: left;
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  color: var(--red-bright);
  font-weight: 700;
}
.stat .label {
  color: var(--grey-dim);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-sub);
}

/* ------------------------------ section shell -------------------------- */

section { padding: 96px 0; position: relative; }
.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}
.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  margin-top: 12px;
}
.section-head p {
  color: var(--grey);
  margin-top: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-swipe), transform .7s var(--ease-swipe);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* --------------------------------- servicios ---------------------------- */

.servicios-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.servicio-item {
  background: var(--bg-panel);
  padding: 30px 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border-left: 3px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.servicio-item:hover {
  background: var(--bg-raised);
  border-left-color: var(--red);
}
.servicio-item .icono {
  width: 30px; height: 30px;
  color: var(--red-bright);
  flex-shrink: 0;
  margin-top: 3px;
}
.servicio-item h3 {
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.servicio-item p {
  color: var(--grey);
  font-size: 0.92rem;
  margin: 0;
}

/* --------------------------- modalidades (taller / domicilio) ----------- */

.modalidades-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.modalidad-card {
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 38px 36px;
  position: relative;
  overflow: hidden;
}
.modalidad-card.domicilio {
  background: linear-gradient(160deg, var(--red-deep) 0%, var(--bg-panel) 60%);
}
.modalidad-card .tag {
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 14px;
  display: block;
}
.modalidad-card h3 {
  font-size: 1.7rem;
  margin-bottom: 14px;
}
.modalidad-card p {
  color: var(--grey);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.zonas-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.zona-chip {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  border: 1px solid var(--line-strong);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(245,243,238,0.05);
}

.mapa-frame {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
  filter: grayscale(0.65) invert(0.92) contrast(0.9);
}
.mapa-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
}
.direccion-linea {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--grey);
}
.direccion-linea .icon { width: 18px; height: 18px; color: var(--red-bright); flex-shrink: 0; margin-top: 2px; }

/* -------------------------------- testimonios --------------------------- */

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonio {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
}
.testimonio .sello-mini {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--red-bright);
  border: 1px solid var(--red);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 16px;
}
.testimonio p.texto {
  color: var(--grey);
  font-size: 0.94rem;
  margin-bottom: 18px;
}
.testimonio .quien {
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.testimonio .quien span {
  display: block;
  color: var(--grey-dim);
  font-size: 0.75rem;
  margin-top: 3px;
  text-transform: none;
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0;
}
.testimonios-nota {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--grey-dim);
}

/* -------------------------------- contacto ------------------------------ */

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contacto-info .item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contacto-info .item:first-child { padding-top: 0; }
.contacto-info .icon {
  width: 22px; height: 22px;
  color: var(--red-bright);
  flex-shrink: 0;
  margin-top: 2px;
}
.contacto-info .label {
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--grey-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.contacto-info .value { color: var(--white); margin-top: 2px; }
.contacto-info .value a { text-decoration: none; }
.contacto-info .value a:hover { color: var(--red-bright); }

form.orden {
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-dim);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--white);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  border-color: var(--red);
}
.field textarea { resize: vertical; min-height: 100px; }
.form-msg { font-family: var(--font-mono); font-size: 0.85rem; margin-top: 14px; }
.form-msg.ok { color: #7FCB8E; }
.form-msg.error { color: #E27B7B; }

/* ---------------------------------- footer ------------------------------ */

footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--grey-dim);
}
.footer-row a { color: var(--grey); text-decoration: none; }
.footer-row a:hover { color: var(--red-bright); }

/* ---------------------------------- responsive --------------------------- */

@media (max-width: 940px) {
  .hero-panel { padding: 48px 32px; }
  .hero-panel::before, .hero-panel::after { display: none; }
  .confianza-strip { grid-template-columns: 1fr; gap: 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .servicios-list { grid-template-columns: 1fr; }
  .modalidades-grid { grid-template-columns: 1fr; }
  .testimonios-grid { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 80px; left: 0; right: 0;
    background: var(--bg-panel);
    flex-direction: column;
    padding: 20px 28px;
    border-bottom: 1px solid var(--line);
    gap: 18px;
    z-index: 60;
  }
  .stats { grid-template-columns: 1fr 1fr; }
}
