/* ============================================
   GRUPO AUTO CENTRO — Design tokens + estilos base
   ============================================ */

:root {
  --bg-dark: #0D0F12;
  --surface-dark: #1A1D22;
  --surface-dark-2: #22262d;
  --text-light: #F5F5F5;
  --text-light-muted: #b7bcc4;

  --bg-light: #FFFFFF;
  --surface-light: #F4F5F7;
  --text-dark: #111318;
  --text-dark-muted: #5b6270;

  --accent: #E63946;
  --accent-dark: #B5202C;
  --border-light: #E5E7EB;
  --border-dark: #2b2f36;

  --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --max-width: 1240px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  line-height: 1.05;
}

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

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--dark { background: var(--bg-dark); color: var(--text-light); }
.section--surface { background: var(--surface-light); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--accent);
  display: inline-block;
}

.section-title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  margin-bottom: 14px;
}
.section-title span { color: var(--accent); }
.section-lead {
  max-width: 640px;
  color: var(--text-dark-muted);
  font-size: 17px;
  line-height: 1.6;
}
.section--dark .section-lead { color: var(--text-light-muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn--outline-light { border-color: rgba(255,255,255,0.4); color: var(--text-light); }
.btn--outline-light:hover { border-color: #fff; transform: translateY(-2px); }
.btn--outline-dark { border-color: var(--text-dark); color: var(--text-dark); }
.btn--outline-dark:hover { background: var(--text-dark); color: #fff; }
.btn--block { width: 100%; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,15,18,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-dark);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.site-header .logo img { height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  color: var(--text-light);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 14.5px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.site-nav a:hover, .site-nav a.active { border-color: var(--accent); color: #fff; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 26px; height: 2px; background: #fff; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--bg-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  .site-nav.open { transform: translateX(0); }
}

/* ============ HERO (home) ============ */
.hero {
  color: var(--text-light);
  padding: 150px 0 110px;
  min-height: 660px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-dark);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(9,10,13,0.95) 0%, rgba(9,10,13,0.88) 26%, rgba(9,10,13,0.58) 50%, rgba(9,10,13,0.22) 72%, rgba(9,10,13,0.4) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(230,57,70,0.22), transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.hero::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--bg-dark));
  pointer-events: none;
  z-index: 1;
}
.hero .wrap { position: relative; z-index: 2; max-width: 760px; }
.hero h1 {
  font-size: clamp(42px, 6.5vw, 78px);
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 18px;
  color: var(--text-light-muted);
  max-width: 560px;
  margin-bottom: 34px;
  line-height: 1.6;
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}
.hero .cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero {
    min-height: 0;
    padding: 130px 0 80px;
  }
  .hero-media video,
  .hero-media img { object-position: center 40%; }
  .hero-media::after {
    background: linear-gradient(180deg, rgba(9,10,13,0.75) 0%, rgba(9,10,13,0.88) 55%, rgba(9,10,13,0.98) 100%);
  }
}

/* ============ BRAND HERO (subpages) ============ */
.brand-hero {
  background: radial-gradient(circle at 15% 0%, #1c2027 0%, var(--bg-dark) 60%);
  color: var(--text-light);
  padding: 80px 0 60px;
  text-align: center;
}
.brand-hero .logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 34px;
  margin-bottom: 26px;
  box-shadow: var(--shadow);
}
.brand-hero .logo-chip img { height: 46px; width: auto; }
.brand-hero h1 { font-size: clamp(30px, 4.5vw, 44px); }
.brand-hero h1 span { color: var(--accent); }
.brand-hero p { color: var(--text-light-muted); max-width: 520px; margin: 14px auto 0; }
.breadcrumb {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light-muted);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--text-light-muted); }
.breadcrumb a:hover { color: var(--accent); }

/* ============ MARCAS GRID ============ */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.brand-tile {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 150px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.brand-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--accent); }
.brand-tile img { height: 42px; width: auto; max-width: 130px; object-fit: contain; }
.brand-tile span {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--text-dark-muted);
}
.brand-tile .pro-badge {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 2px 8px;
  border-radius: 3px;
  margin-top: -6px;
}

@media (max-width: 860px) {
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ MODEL CARDS ============ */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
  margin-top: 44px;
}
.model-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.model-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.model-card__img {
  background: var(--surface-light);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.model-card__img img { width: 100%; height: 100%; object-fit: cover; }
.model-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.model-card__price { color: var(--accent); font-weight: 700; font-size: 14px; }
.model-card__name { font-family: var(--font-display); font-size: 24px; font-weight: 700; text-transform: uppercase; }
.model-card__cta {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13.5px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.model-card__cta svg { transition: transform .15s ease; }
.model-card:hover .model-card__cta { color: var(--accent); }
.model-card:hover .model-card__cta svg { transform: translateX(4px); }

/* ============ NOSOTROS ============ */
.nosotros-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  margin-top: 20px;
}
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 20px; margin-top: 30px; }
.stat-box {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
}
.stat-box strong { display: block; font-family: var(--font-display); font-size: 34px; color: var(--accent); }
.stat-box span { font-size: 13px; color: var(--text-dark-muted); text-transform: uppercase; letter-spacing: .5px; }
@media (max-width: 860px) { .nosotros-grid { grid-template-columns: 1fr; } }

/* ============ SEMINUEVOS BANNER ============ */
.banner-proximamente {
  background: linear-gradient(120deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.banner-proximamente h3 { font-size: 26px; margin-bottom: 6px; }
.banner-proximamente p { margin: 0; opacity: .9; max-width: 480px; }
.tag-soon {
  background: rgba(255,255,255,0.18);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
}
.banner-proximamente--dark {
  background: linear-gradient(120deg, var(--surface-dark-2), var(--bg-dark));
  border: 1px solid var(--border-dark);
}
.banner-proximamente--dark .tag-soon { background: var(--accent); }

/* ============ DESTACADOS (Seminuevos / Taller / Promociones) ============ */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.highlight-card {
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #fff;
}
.highlight-card .tag-soon { align-self: flex-start; }
.highlight-card h3 { font-size: 23px; margin-top: 2px; }
.highlight-card p { margin: 0; opacity: .85; font-size: 14.5px; line-height: 1.55; flex: 1; }
.highlight-card .btn { align-self: flex-start; margin-top: 8px; }
.highlight-card--accent { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.highlight-card--dark { background: linear-gradient(135deg, var(--surface-dark-2), var(--bg-dark)); border: 1px solid var(--border-dark); }
.highlight-card--darker { background: var(--bg-dark); border: 1px solid var(--border-dark); }
@media (max-width: 860px) {
  .highlight-grid { grid-template-columns: 1fr; }
}

/* ============ VACANTES ============ */
.vacancy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 44px;
  margin-bottom: 60px;
}
.vacancy-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.vacancy-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.vacancy-card__tag {
  align-self: flex-start;
  background: var(--surface-light);
  color: var(--text-dark-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}
.vacancy-card__title { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin: 0; }
.vacancy-card__location { font-size: 13px; color: var(--text-dark-muted); margin: -4px 0 0; }
.vacancy-card p.vacancy-card__desc { font-size: 14.5px; color: var(--text-dark-muted); line-height: 1.55; margin: 0; }
.vacancy-card__cta {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--accent);
}

/* ============ CONTACTO ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.contact-card {
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--surface-dark);
}
.contact-card h4 { font-size: 18px; margin-bottom: 10px; color: #fff; }
.contact-card p, .contact-card a { color: var(--text-light-muted); font-size: 15px; line-height: 1.6; }
.contact-card a:hover { color: var(--accent); }
.map-embed { border-radius: var(--radius); overflow: hidden; margin-top: 44px; border: 1px solid var(--border-dark); }
.map-embed iframe { width: 100%; height: 360px; border: 0; display: block; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ============ SUCURSALES ============ */
.sucursales-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  margin-top: 44px;
}
.sucursal-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.sucursal-card__map iframe { width: 100%; height: 190px; border: 0; display: block; }
.sucursal-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sucursal-card__tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--surface-light);
  color: var(--text-dark-muted);
}
.sucursal-card__title { font-family: var(--font-display); font-size: 22px; font-weight: 700; text-transform: uppercase; }
.sucursal-card__row { font-size: 14.5px; color: var(--text-dark-muted); line-height: 1.55; margin: 0; }
.sucursal-card__row strong { color: var(--text-dark); }
.sucursal-card__row a { color: var(--text-dark); }
.sucursal-card__row a:hover { color: var(--accent); }
.sucursal-card__cta {
  margin-top: auto;
  padding-top: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--accent);
}
.sucursal-card__cta:hover { text-decoration: underline; }
.sucursal-card--soon {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  min-height: 420px;
  padding: 40px 28px;
  background: var(--surface-light);
  border: 1px dashed var(--border-light);
  box-shadow: none;
}
.sucursal-card--soon .tag-soon { background: var(--accent); color: #fff; }
.sucursal-card--soon h3 { font-family: var(--font-display); font-size: 24px; font-weight: 700; text-transform: uppercase; margin-top: 6px; }
.sucursal-card--soon p { color: var(--text-dark-muted); font-size: 14.5px; line-height: 1.55; max-width: 240px; }

/* ============ FORM (bolsa de trabajo) ============ */
.job-form {
  max-width: 780px;
  margin: 50px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.job-form .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: 14px;
  font-style: italic;
  color: var(--text-dark-muted);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 2px solid var(--text-dark);
  border-radius: 4px;
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  background: #fff;
  color: var(--text-dark);
}
.field textarea { min-height: 130px; resize: vertical; }
.file-upload {
  border: 2px dashed var(--text-dark);
  border-radius: 4px;
  padding: 16px;
  text-align: center;
  font-style: italic;
  cursor: pointer;
  color: var(--text-dark-muted);
  font-size: 14px;
}
.file-upload.has-file { color: var(--accent); font-style: normal; font-weight: 600; }
.field small { display: block; margin-top: 6px; color: var(--text-dark-muted); font-size: 12px; }
.form-note {
  max-width: 780px;
  margin: 20px auto 0;
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-dark-muted);
  text-align: center;
}
@media (max-width: 700px) { .job-form { grid-template-columns: 1fr; } }

/* ============ FOOTER ============ */
.site-footer { background: var(--bg-dark); color: var(--text-light-muted); padding: 64px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-dark);
}
.footer-grid img { height: 34px; margin-bottom: 14px; }
.footer-grid p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h5 {
  color: #fff;
  font-family: var(--font-display);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; font-size: 14px; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============ SEMINUEVOS PAGE (placeholder) ============ */
.proximamente-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-dark);
  color: var(--text-light);
}
.proximamente-page .wrap { max-width: 560px; }
.proximamente-page h1 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 18px; }
.proximamente-page h1 span { color: var(--accent); }
.proximamente-page p { color: var(--text-light-muted); font-size: 17px; line-height: 1.6; margin-bottom: 30px; }

/* ============ UTIL ============ */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
