/* =============================================================================
   Servitech Mrad-Tyre — Theme (Premium Industrial / Automotive Technology)
   Paleta: #111318 (negro) · #D6A72C (dorado) · #F4F4F2 (blanco) · #252B35 (grafito)
   ============================================================================= */

:root {
  --black: #111318;
  --gold: #D6A72C;
  --white: #F4F4F2;
  --graphite: #252B35;
  --graphite-2: #1a1e25;
  --muted: #a8abb0;
  --line: rgba(244, 244, 242, 0.14);
  --radius: 16px;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 76px;
  --font-sans: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Arial Narrow', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); letter-spacing: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---- skip link ---- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--black); font-weight: 700;
  padding: 12px 18px; border-radius: 0 0 10px 10px; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ---- botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 0.95rem;
  padding: 16px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  min-height: 48px; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: #e8bd4a; }

.btn--ghost { background: transparent; color: var(--white); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---- header ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(17, 19, 24, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s, border-color 0.25s;
}
.site-header.is-scrolled { background: rgba(17, 19, 24, 0.92); border-bottom-color: var(--line); }

.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: auto; height: 44px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 0.95rem; font-weight: 600; color: var(--white); opacity: 0.85; transition: color 0.15s, opacity 0.15s; }
.nav a:hover { color: var(--gold); opacity: 1; }
.nav .btn { opacity: 1; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--white);
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 0.85rem;
  padding: 10px 16px; border-radius: 999px; cursor: pointer; min-height: 44px;
}

/* ---- hero editorial ---- */
.hero {
  position: relative; min-height: 85vh; display: flex; align-items: center; overflow: hidden;
  padding-top: calc(var(--header-h) + 40px); padding-bottom: 60px;
  background: radial-gradient(circle at 50% 20%, rgba(37, 43, 53, 0.8) 0%, rgba(17, 19, 24, 1) 75%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(214, 167, 44, 0.08) 1px, transparent 1px);
  background-size: 32px 32px; pointer-events: none; opacity: 0.6;
}
.hero-content { position: relative; z-index: 2; max-width: 880px; margin-inline: auto; text-align: center; }
.hero-lead { color: var(--white); opacity: 0.92; font-size: clamp(1.15rem, 2.2vw, 1.4rem); margin-top: 22px; margin-inline: auto; max-width: 680px; }
.hero-fact { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 700; color: var(--gold); }
.hero-fact:hover { text-decoration: underline; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 36px; }

.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.82rem;
  color: var(--gold); margin-bottom: 16px; background: rgba(214, 167, 44, 0.1);
  padding: 6px 16px; border-radius: 999px; border: 1px solid rgba(214, 167, 44, 0.3);
}

/* ---- marquee de marcas (SVG Wordmarks) ---- */
.marquee-section { padding-block: 36px; background: var(--graphite-2); border-block: 1px solid var(--line); overflow: hidden; }
.marquee-container { width: 100%; overflow: hidden; position: relative; }
.marquee-container::before, .marquee-container::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.marquee-container::before { left: 0; background: linear-gradient(90deg, var(--graphite-2) 0%, transparent 100%); }
.marquee-container::after { right: 0; background: linear-gradient(-90deg, var(--graphite-2) 0%, transparent 100%); }

.marquee-track { display: flex; gap: 20px; width: max-content; animation: marqueeScroll 40s linear infinite; }
.marquee-container:hover .marquee-track { animation-play-state: paused; }

.brand-wordmark-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--black); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 22px; min-width: 170px; transition: border-color 0.2s, transform 0.2s;
}
.brand-wordmark-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.wordmark-svg { width: 130px; height: 26px; }
.brand-tag { font-size: 0.72rem; color: var(--muted); margin-top: 4px; text-align: center; }

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- banda de confianza ---- */
.trust { background: var(--graphite); border-block: 1px solid var(--line); }
.trust-grid { display: flex; flex-wrap: wrap; gap: 20px 44px; justify-content: center; align-items: center; padding-block: 26px; }
.trust-item { font-size: 0.98rem; color: var(--muted); }
.trust-item strong { color: var(--gold); font-weight: 700; margin-right: 6px; }

/* ---- secciones ---- */
.section { padding-block: clamp(64px, 10vw, 124px); }
.section--alt { background: var(--graphite); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head .lead { margin-top: 16px; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 640px; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.card {
  background: var(--graphite-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--gold); }
.card h3 { margin-bottom: 12px; color: var(--white); }
.card p { color: var(--muted); font-size: 0.98rem; }

.photo-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 5; background: var(--graphite-2); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.photo-frame:hover img { transform: scale(1.03); }
/* ---- bento de equipos ---- */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bento-card {
  background: var(--graphite-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform 0.25s, border-color 0.25s;
}
.bento-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.bento-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--black); }
.bento-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.bento-card:hover .bento-media img { transform: scale(1.04); }
.bento-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.bento-model { font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.bento-card h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--white); }
.bento-card p { color: var(--muted); font-size: 0.95rem; }

/* ---- showcase de llantas ---- */
.tire-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tire-card {
  background: var(--graphite-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; position: relative; transition: transform 0.25s, border-color 0.25s;
}
.tire-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.tire-badge {
  position: absolute; top: 20px; right: 20px; z-index: 2;
  background: rgba(214, 167, 44, 0.15); color: var(--gold); border: 1px solid rgba(214, 167, 44, 0.3);
  font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 4px 12px; border-radius: 999px;
}
.tire-media { aspect-ratio: 1 / 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--black); margin-bottom: 20px; display: flex; align-items: center; justify-content: center; }
.tire-media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform 0.3s ease; }
.tire-card:hover .tire-media img { transform: scale(1.05); }
.tire-brand { font-family: var(--font-display); font-size: 0.82rem; font-weight: 700; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.tire-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.tire-size { font-size: 0.88rem; color: var(--white); font-weight: 600; margin-bottom: 10px; }
.tire-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; flex-grow: 1; }

/* ---- scroll reveals ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---- paquetes ---- */
.package-card { position: relative; padding: 34px; }
.package-card .tag { display: inline-block; background: var(--gold); color: var(--black); font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.package-card ul { list-style: none; margin: 18px 0; display: grid; gap: 10px; }
.package-card li { display: flex; align-items: center; gap: 10px; color: var(--white); }
.package-card li::before { content: "✓"; color: var(--gold); font-weight: 700; }
.package-card .extra { color: var(--muted); font-size: 0.95rem; border-top: 1px solid var(--line); padding-top: 16px; }

/* ---- cotizador ---- */
.quote { background: var(--graphite); border-block: 1px solid var(--line); }
.quote-form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label, .field-label { font-size: 0.9rem; font-weight: 600; color: var(--white); }
.field select {
  appearance: none; width: 100%; background: var(--graphite-2); color: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  font-size: 1rem; font-family: var(--font-sans); min-height: 48px;
}
.field select:focus { outline: 3px solid var(--gold); outline-offset: 2px; border-color: var(--gold); }
.radio-group { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-group label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 12px 20px;
  font-weight: 600; transition: border-color 0.15s, background-color 0.15s;
}
.radio-group label:has(input:checked) { border-color: var(--gold); background: rgba(214, 167, 44, 0.12); }
.radio-group input { accent-color: var(--gold); width: 18px; height: 18px; }
.preview {
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700;
  color: var(--gold); text-align: center; padding: 20px; min-height: 1.2em;
  border: 1px dashed var(--line); border-radius: var(--radius);
}

/* ---- clientes ---- */
.customers { background: var(--black); }
.customers-list { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: center; }
.customers-list li { list-style: none; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.customers-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* ---- ubicación / horas ---- */
.hours { list-style: none; margin: 24px 0; display: grid; gap: 10px; }
.hours li { display: flex; gap: 10px; align-items: baseline; }
.hours li::before { content: "•"; color: var(--gold); font-weight: 700; }

/* ---- contacto / socials ---- */
.socials { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.socials a {
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px;
  font-weight: 600; color: var(--muted); transition: color 0.15s, border-color 0.15s;
}
.socials a:hover { color: var(--gold); border-color: var(--gold); }

/* ---- footer ---- */
.site-footer { background: #0b0d11; border-top: 1px solid var(--line); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-grid img { height: 64px; width: auto; margin-bottom: 16px; }
.slogan { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; color: var(--gold); letter-spacing: 0.04em; }
.promise { color: var(--muted); margin-top: 8px; }
.footer-grid nav { display: grid; gap: 10px; align-content: start; }
.footer-grid nav a, .footer-grid p { color: var(--muted); }
.footer-grid nav a:hover { color: var(--gold); }
.footer-grid h3 { margin-bottom: 16px; font-size: 0.95rem; color: var(--white); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.footer-bottom p { color: var(--muted); font-size: 0.9rem; }

/* ---- responsive ---- */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    background: var(--black); flex-direction: column; align-items: stretch;
    gap: 4px; padding: 28px var(--gutter); display: none; overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav a { font-size: 1.25rem; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 18px; }
  .nav-toggle { display: inline-flex; }
  .hero-content { padding-block: 64px; }
}

@media (max-width: 768px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-bg::after {
    background: linear-gradient(180deg, rgba(17, 19, 24, 0.55) 0%, rgba(17, 19, 24, 0.9) 78%);
  }
}

@media (max-width: 390px) {
  .btn { width: 100%; }
  .hero-actions .btn { width: 100%; }
}

/* ---- movimiento reducido ---- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
