/* ===== AUTOCRASH SOLUTIONS — DESIGN TOKENS ===== */
:root {
  --bg: #FFFFFF;
  --bg-1: #F7F7F7;
  --bg-2: #F0F0F0;
  --bg-3: #E8E8E8;
  --border: #E2E2E2;
  --border-soft: #ECECEC;
  --fg: #0A0A0A;
  --fg-muted: #555555;
  --fg-dim: #8A8A8A;
  --red: #E63946;
  --red-dark: #B82531;
  --red-glow: rgba(230, 57, 70, 0.18);
  --metal: #D4D4D4;
  --metal-2: #8E8E8E;
  --gold: #D4A93C;
  --gold-soft: #E8C56B;
  --green: #4ADE80;
  --yellow: #FACC15;

  --font-display: 'Archivo', 'Helvetica Neue', sans-serif;
  --font-body: 'Manrope', 'Helvetica Neue', sans-serif;
  --font-mono: 'Archivo', 'Helvetica Neue', sans-serif;

  --nav-h: 80px;
  --max: 1480px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ===== TYPE ===== */
.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 0.95; }
.display-xl { font-size: clamp(56px, 9vw, 148px); }
.display-l  { font-size: clamp(44px, 6.5vw, 96px); }
.display-m  { font-size: clamp(24px, 3vw, 40px); }
.display-s  { font-size: clamp(19px, 2vw, 27px); }
.eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-muted); }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; }
.muted { color: var(--fg-muted); }
.dim { color: var(--fg-dim); }

/* ===== LAYOUT ===== */
.shell { padding: 0 32px; max-width: var(--max); margin: 0 auto; }
.shell-narrow { padding: 0 32px; max-width: 1100px; margin: 0 auto; }
@media (max-width: 720px) {
  .shell, .shell-narrow { padding: 0 20px; }
}

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(10,10,10,0.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 100%; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 900; letter-spacing: -0.02em; font-size: 18px; color: #fff; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  display: grid; place-items: center;
  position: relative;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 8px 24px -8px var(--red-glow);
}
.brand-mark::before {
  content: ''; position: absolute; inset: 5px;
  background: var(--bg); border-radius: 4px;
}
.brand-mark::after {
  content: ''; position: absolute;
  width: 10px; height: 2px; background: var(--red);
  box-shadow: 0 4px 0 var(--red), 0 -4px 0 var(--red);
}
.brand-name { line-height: 1; }
.brand-sub { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em; color: var(--fg-dim); margin-top: 3px; font-weight: 500; white-space: nowrap; }

.nav-links { display: flex; gap: 4px; align-items: center; justify-self: center; }
.nav-link {
  position: relative; padding: 10px 14px; font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.7); transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: #fff; }
.nav-link.active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--red);
}

.nav-socials { display: inline-flex; align-items: center; gap: 14px; justify-self: end; }
.nav-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  transition: color 0.15s, border-color 0.15s, background 0.2s, transform 0.15s;
}
.nav-social:hover { transform: translateY(-1px); }
.nav-social-ig { color: #E1306C; border-color: rgba(225,48,108,0.35); }
.nav-social-ig:hover { background: #E1306C; color: #fff; border-color: #E1306C; }
.nav-social-fb { color: #1877F2; border-color: rgba(24,119,242,0.35); }
.nav-social-fb:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.nav-social-wa { background: #25D366; color: #0A0A0A; border-color: #25D366; }
.nav-social-wa:hover { background: #2BE070; color: #0A0A0A; border-color: #2BE070; }
.nav-social-tt { color: #fff; border-color: rgba(255,255,255,0.35); }
.nav-social-tt:hover { background: #fff; color: #0A0A0A; border-color: #fff; }

.nav-burger { display: inline-flex; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.15); align-items: center; justify-content: center; background: transparent; cursor: pointer; transition: background 0.2s, border-color 0.2s; justify-self: start; }
.nav-burger:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.3); }
.nav-burger.is-open { background: rgba(255,255,255,0.1); }
.nav-burger span { display: block; width: 18px; height: 2px; background: #fff; position: relative; }
.nav-burger span::before, .nav-burger span::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: #fff; transition: transform 0.25s; }
.nav-burger span::before { top: -6px; } .nav-burger span::after { top: 6px; }
.nav-burger.is-open span { background: transparent; }
.nav-burger.is-open span::before { transform: translateY(6px) rotate(45deg); }
.nav-burger.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

/* Steering wheel button (desktop replacement for hamburger) */
.nav-wheel {
  display: none; width: 48px; height: 48px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  align-items: center; justify-content: center;
  background: transparent; cursor: pointer; padding: 4px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.nav-wheel:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.35); transform: rotate(-15deg); }
.nav-wheel.is-open { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); transform: rotate(90deg); }
.nav-wheel img {
  width: 100%; height: 100%; object-fit: contain;
  pointer-events: none;
}

.nav-burger-hamburger { display: none !important; }
.nav-wheel { display: inline-flex; }

@media (max-width: 880px) {
  .nav-inner { grid-template-columns: auto 1fr auto; }
  .nav-links { display: none; }
  .nav-socials { gap: 6px; }
  .nav-social { width: 36px; height: 36px; border-radius: 8px; }
  .nav-social svg { width: 14px; height: 14px; }
}
@media (max-width: 420px) {
  .nav-social { width: 32px; height: 32px; border-radius: 8px; }
  .nav-socials { gap: 4px; }
}
@media (max-width: 560px) {
  :root { --nav-h: 64px; }
  .brand img { height: 38px !important; }
}

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(20px);
  padding: 32px;
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-menu a { padding: 14px 4px; font-family: var(--font-display); font-size: 18px; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-menu a.active { color: var(--red); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700; font-size: 14px; letter-spacing: 0.01em;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: var(--fg); }
.btn-red:hover { background: #FF4654; }
.btn-white { background: var(--fg); color: var(--bg); }
.btn-white:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--fg-muted); background: var(--bg-1); }
.btn-lg { padding: 18px 28px; font-size: 15px; }
.btn-sm { padding: 9px 14px; font-size: 12px; }

.btn-wa {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: #25D366; color: #0A0A0A;
  font-weight: 800; font-size: 14px;
  transition: transform 0.15s, background 0.2s;
}
.btn-wa:hover { background: #2EE57A; transform: translateY(-1px); }
.btn-wa-lg { padding: 20px 30px; font-size: 16px; }

/* ===== FLOATING WA ===== */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center;
  color: #0A0A0A;
  box-shadow: 0 14px 40px -10px rgba(37, 211, 102, 0.45), 0 0 0 1px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid #25D366; opacity: 0;
  animation: pulse 2.5s infinite;
}
@keyframes pulse { 0%{opacity:0.6;transform:scale(1)} 100%{opacity:0;transform:scale(1.4)} }

/* ===== IMAGE PLACEHOLDER (striped) ===== */
.ph {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, #ECECEC 0 14px, #F4F4F4 14px 28px);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 14px;
  color: var(--fg-dim);
}
.ph-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; }
.ph-corner { display: flex; justify-content: space-between; align-items: end; }
.ph-corner .mono { color: var(--fg-dim); font-size: 9px; }
.ph::before {
  content: ''; position: absolute; top: 10px; right: 10px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}
.ph-red {
  background:
    repeating-linear-gradient(135deg, rgba(230,57,70,0.18) 0 14px, rgba(230,57,70,0.06) 14px 28px),
    #140607;
  border-color: rgba(230,57,70,0.25);
}

/* ===== SECTION FRAMES ===== */
.section { padding: 100px 0; border-top: 1px solid var(--border-soft); }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--bg-2); }
.section-deep { background: var(--bg-3); }
@media (max-width: 720px) { .section { padding: 64px 0; } }

.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end;
  margin-bottom: 56px;
}
@media (max-width: 880px) { .section-head { grid-template-columns: 1fr; gap: 20px; } }
.section-head .num {
  font-family: var(--font-mono); font-size: 11px; color: var(--red);
  letter-spacing: 0.2em; margin-bottom: 12px;
}

/* Título de página: visible solo en móvil, cuando el nav superior con los
   enlaces se oculta (≤880px) y queda únicamente la rueda del menú. */
.page-title-mobile { display: none; }
@media (max-width: 880px) {
  .page-title-mobile {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 30px;
    color: var(--fg);
    margin-bottom: 12px;
  }
}

/* ===== CARD ===== */
.card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.card:hover { border-color: var(--fg-muted); }
.card-pad { padding: 28px; }

/* ===== INPUTS ===== */
.field {
  width: 100%;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--fg);
  transition: border-color 0.2s;
}
.field:focus { outline: none; border-color: var(--red); }
/* Input de archivos personalizado (texto en español, alineado en web y móvil) */
.file-input { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.file-input > input[type="file"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.file-input-btn { cursor: pointer; white-space: nowrap; }
.file-input-text { font-size: 11px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field-label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 8px; }
/* Campo de contraseña con botón de mostrar/ocultar */
.field-password-wrap { position: relative; }
.field-password-wrap .field { padding-right: 44px; }
.field-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--fg-muted);
  cursor: pointer;
}
.field-toggle:hover { color: var(--fg); }
.field-toggle .icon-eye-off { display: none; }
.field-toggle.is-visible .icon-eye { display: none; }
.field-toggle.is-visible .icon-eye-off { display: inline-flex; }
/* En los modales admin las etiquetas van en tipo oración (no todo en mayúscula) */
.admin-modal .field-label { text-transform: none; letter-spacing: 0.02em; }
/* El texto dentro de los campos iguala el tamaño del título del campo */
.admin-modal .field { font-size: 11px; }

/* ===== BADGE ===== */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 600;
}
.badge-green { background: rgba(74, 222, 128, 0.12); color: var(--green); }
.badge-yellow { background: rgba(250, 204, 21, 0.12); color: var(--yellow); }
.badge-red { background: rgba(230, 57, 70, 0.12); color: var(--red); }
.badge-outline { border: 1px solid var(--border); color: var(--fg-muted); }

/* ===== ICON BOX ===== */
.icon-box {
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--bg-2); border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--red);
}
.icon-box-lg { width: 56px; height: 56px; }
.icon-box-red { background: var(--red); color: var(--fg); border-color: var(--red); }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 80px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 56px;
  align-items: end;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero-title { position: relative; }
.hero-title em {
  font-style: normal; color: var(--red);
  position: relative;
}
.hero-image {
  aspect-ratio: 4/5;
  min-height: 420px;
}
@media (max-width: 980px) { .hero-image { aspect-ratio: 16/10; min-height: 280px; } }

/* ===== HERO SPLIT (Audi-style) ===== */
.hero-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  min-height: calc(100vh - var(--nav-h));
  padding-top: var(--nav-h);
  background: var(--bg);
}
.hero-split-text {
  display: flex;
  align-items: center;
  padding: 80px 64px;
  background: var(--bg);
}
.hero-split-text-inner { max-width: 480px; }
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 18px;
}
.hero-rule {
  width: 64px;
  height: 3px;
  background: var(--red);
  margin-bottom: 32px;
}
.hero-split-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 22px;
}
.hero-split-desc {
  font-size: 19px;
  line-height: 1.5;
  color: var(--fg-muted);
  margin-bottom: 40px;
  max-width: 420px;
}
.hero-split-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 30px;
  background: var(--fg);
  color: var(--bg);
  border: 0;
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, gap 0.2s, transform 0.15s;
}
.hero-split-cta:hover { background: var(--red); color: #fff; gap: 18px; }
.hero-split-cta svg { transition: transform 0.2s; }
.hero-split-cta:hover svg { transform: translateX(2px); }
.hero-split-image {
  position: relative;
  overflow: hidden;
  background: #000;
}
.hero-split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 980px) {
  .hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-split-text {
    padding: 56px 32px;
    order: 2;
  }
  .hero-split-image {
    order: 1;
    aspect-ratio: 16/10;
  }
}
@media (max-width: 560px) {
  .hero-split-text { padding: 40px 24px; }
  .hero-split-desc { font-size: 17px; margin-bottom: 32px; }
}

/* ===== HERO OVERLAY (V2 · text over image, full bleed) ===== */
.hero-overlay {
  position: relative;
  width: 100%;
  padding-top: var(--nav-h);
  overflow: hidden;
  background: #000;
  min-height: 88vh;
}
.hero-overlay-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}
.hero-overlay-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.78) 0%,
    rgba(0,0,0,0.55) 35%,
    rgba(0,0,0,0.15) 65%,
    rgba(0,0,0,0) 100%
  );
  pointer-events: none;
}
.hero-overlay-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 64px;
  min-height: calc(88vh - var(--nav-h));
  display: flex;
  align-items: center;
}
.hero-overlay-text {
  max-width: 540px;
  color: #fff;
}
.hero-overlay-text .hero-eyebrow {
  color: #fff;
}
.hero-overlay-text .hero-split-title {
  color: #fff;
}
.hero-overlay-text .hero-split-desc {
  color: rgba(255,255,255,0.88);
}
.hero-overlay-text .hero-split-cta {
  background: #fff;
  color: #0A0A0A;
}
.hero-overlay-text .hero-split-cta:hover {
  background: var(--red);
  color: #fff;
}
@media (max-width: 980px) {
  .hero-overlay { min-height: 75vh; }
  .hero-overlay-inner { padding: 64px 32px; min-height: calc(75vh - var(--nav-h)); }
  .hero-overlay-scrim {
    background: linear-gradient(
      180deg,
      rgba(0,0,0,0.35) 0%,
      rgba(0,0,0,0.55) 40%,
      rgba(0,0,0,0.85) 100%
    );
  }
}
@media (max-width: 560px) {
  .hero-overlay { min-height: 65vh; }
  .hero-overlay-inner { padding: 48px 24px; min-height: calc(65vh - var(--nav-h)); }
}

/* Hero banner image */
.hero-banner {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.04);
}
.hero-slides {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.9s ease, transform 6s ease;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.hero-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 32px;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.45) 60%, transparent 100%);
  display: flex; flex-direction: column; gap: 6px;
  pointer-events: none;
}
.hero-slide-dots {
  position: absolute; right: 24px; top: 24px;
  display: flex; gap: 8px;
  z-index: 2;
}
.hero-dot {
  width: 28px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}
.hero-dot:hover { background: rgba(255,255,255,0.7); }
.hero-dot.is-active { background: #fff; width: 44px; }
@media (max-width: 560px) {
  .hero-slide-caption { padding: 18px 20px; }
  .hero-slide-caption span:last-child { font-size: 14px !important; }
  .hero-slide-dots { right: 16px; top: 16px; }
  .hero-dot { width: 22px; }
  .hero-dot.is-active { width: 34px; }
}
@media (max-width: 560px) {
  .hero { padding-top: calc(var(--nav-h) + 32px); padding-bottom: 40px; }
}

.hero-meta {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin-top: 48px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 32px;
}
.hero-meta > div { border-right: 1px solid var(--border-soft); padding-right: 24px; padding-left: 24px; }
.hero-meta > div:first-child { padding-left: 0; }
.hero-meta > div:last-child { border-right: 0; }
.hero-meta strong { font-family: var(--font-display); font-size: 32px; font-weight: 800; display: block; line-height: 1; }
.hero-meta span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-muted); margin-top: 10px; display: block; }
@media (max-width: 720px) { .hero-meta { grid-template-columns: repeat(2, 1fr); row-gap: 24px; } }

.ticker {
  display: flex; gap: 48px; overflow: hidden;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 22px 0;
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track {
  display: flex; gap: 48px; align-items: center;
  animation: tick 30s linear infinite;
  flex-shrink: 0;
}
.ticker-item { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; white-space: nowrap; color: var(--fg-muted); }
.ticker-item svg { color: var(--red); flex-shrink: 0; }
@keyframes tick { to { transform: translateX(calc(-50% - 24px)); } }

/* ===== SERVICES GRID ===== */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } }

.svc-card { padding: 28px; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.svc-card:hover { background: var(--bg-2); }
.svc-card .num { position: absolute; top: 20px; right: 20px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim); }
.svc-card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 1.05; margin-top: 24px; letter-spacing: -0.02em; }
.svc-card p { color: var(--fg-muted); font-size: 14px; margin-top: 12px; }
.svc-card .arrow { margin-top: 28px; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); transition: gap 0.2s; }
.svc-card:hover .arrow { gap: 14px; }

/* ===== PARTS GRID ===== */
.parts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .parts-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px) { .parts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .parts-grid { grid-template-columns: 1fr; } }

.part-card { display: flex; flex-direction: column; overflow: hidden; }
.part-img { aspect-ratio: 4/3; }

/* Galería de imágenes del repuesto (carrusel) */
.part-gallery { position: relative; }
.gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track > img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: start;
    display: block;
}
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
    color: var(--fg);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s, background 0.15s;
}
.part-gallery:hover .gallery-nav { opacity: 1; }
.gallery-nav:hover { background: #fff; }
.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }
.gallery-dots {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
}
.gallery-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: background 0.15s;
}
.gallery-dot.is-active { background: var(--red); }
.part-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.part-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.part-meta { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); letter-spacing: 0.04em; }
.part-detail-tag {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: max-content; max-width: calc(100% - 20px);
  background: #f21a27; color: #fff;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.04em;
  padding: 6px 11px; border-radius: 999px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.part-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border); margin-top: auto; }
.part-price { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--fg); white-space: nowrap; }

/* ===== FOOTER ===== */
.footer { background: #060606; color: #fff; border-top: 1px solid var(--border-soft); padding: 80px 0 32px; margin-top: 0; }
.foot-brand { display: inline-block; line-height: 0; }
.foot-brand img { width: 240px; max-width: 100%; height: auto; display: block; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }
.foot-col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 18px; }
.foot-col a { display: block; padding: 6px 0; color: #fff; font-size: 14px; opacity: 0.85; }
.foot-col a:hover { color: var(--red); opacity: 1; }
.foot-base { display: flex; justify-content: center; align-items: center; text-align: center; margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.45); letter-spacing: 0.04em; }
@media (max-width: 720px) { .foot-base { flex-direction: column; gap: 12px; align-items: center; text-align: center; } }

/* ===== UTIL ===== */
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; }
.divider { border-top: 1px solid var(--border-soft); }
.fade-in { animation: fadeIn 0.5s ease-out both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #CDCDCD; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #B5B5B5; }

/* Selection */
::selection { background: var(--red); color: var(--fg); }

/* ===== RESPONSIVE: colapsar grids inline en tablet / móvil ===== */
/* Estos grids se definen con estilo inline en las páginas, por eso se
   sobreescriben con !important para que colapsen en pantallas pequeñas. */

/* Tablet */
@media (max-width: 900px) {
  .testimonials { grid-template-columns: repeat(2, 1fr) !important; }
  .admin-stats  { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Móvil: una sola columna */
@media (max-width: 760px) {
  .who-grid,
  .svc-detail,
  .contact-grid,
  .overview-grid,
  .benefits-grid,
  .testimonials { grid-template-columns: 1fr !important; }

  /* Reducir separaciones grandes al apilar */
  .who-grid,
  .svc-detail,
  .contact-grid { gap: 28px !important; }

  /* Al apilar, usar el orden del DOM (texto → imagen) en todos los servicios,
     ignorando el 'order' inline que invierte el servicio 02 en escritorio. */
  .svc-detail > div { order: 0 !important; }

  /* Separador horizontal entre tarjetas de beneficios al apilarse */
  .benefits-grid > div { border-right: none !important; border-bottom: 1px solid var(--border); }
  .benefits-grid > div:last-child { border-bottom: none; }

  /* Tabla admin de repuestos: en móvil se apila como tarjetas (sin scroll horizontal) */
  .admin-table-scroll { overflow-x: visible !important; }
  .admin-table-scroll .admin-row { min-width: 0 !important; }
  .admin-row-head { display: none !important; }
  .admin-row { grid-template-columns: 1fr auto !important; gap: 10px 12px !important; padding: 16px 18px !important; }
  .admin-row > div:nth-child(1),
  .admin-row > div:nth-child(2),
  .admin-row > div:nth-child(3) { grid-column: 1 / -1; }
  .admin-row > div:nth-child(4) { grid-column: 1; justify-self: start; }
  .admin-row > div:nth-child(5) { grid-column: 2; justify-self: end; }
  .admin-cell-label { display: inline !important; }
}

/* Móvil pequeño: total en una fila completa; disponibles y agotados lado a lado */
@media (max-width: 560px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr) !important; }
  .admin-stats > :first-child { grid-column: 1 / -1; }
}
