/* ─── RESET & BASE ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:     #e01f26;
  --red-dk:  #b5161c;
  --black:   #0d0d0d;
  --dark:    #111318;
  --dark2:   #1a1d24;
  --gray:    #2a2d35;
  --muted:   #6b7280;
  --light:   #f4f5f7;
  --white:   #ffffff;
  --font-h:  'Bebas Neue', sans-serif;
  --font-b:  'Inter', sans-serif;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(0,0,0,.18);
  --trans:   .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; }

/* ─── BUTTONS ─────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-b);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .04em;
  padding: .65rem 1.5rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
}
.btn-primary:hover {
  background: var(--red-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(224,31,38,.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--white);
  font-family: var(--font-b);
  font-weight: 600;
  font-size: .9rem;
  padding: .65rem 1.5rem;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,.5);
  cursor: pointer;
  transition: border-color var(--trans), background var(--trans);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

.btn-lg { font-size: 1rem; padding: .85rem 2rem; }
.btn-sm { font-size: .82rem; padding: .45rem 1rem; }

/* ─── NAVBAR ──────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.10);
  transition: box-shadow var(--trans);
}
.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.18);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand { display: flex; align-items: center; }
.nav-logo { width: auto; height: 48px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }

.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.nav-links a {
  color: var(--dark);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--trans);
}
.nav-links a:hover { color: var(--red); }

.nav-cta { margin-left: 1rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(13,13,13,.98);
  padding: 1rem 2rem 1.5rem;
}
.mobile-menu.open { display: flex; }
.mob-link {
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  font-weight: 500;
  padding: .75rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mob-cta { margin-top: 1rem; text-align: center; justify-content: center; }

/* ─── HERO ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black)
    url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1600&q=80') center/cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,13,13,.85) 0%, rgba(13,13,13,.5) 60%, rgba(224,31,38,.15) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 0 2rem;
  padding-top: 70px;
}

.hero-eyebrow {
  color: var(--red);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-h);
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 1;
  color: var(--white);
  letter-spacing: .02em;
  margin-bottom: 1.25rem;
}
.hero-title .accent { color: var(--red); }

.hero-sub {
  color: rgba(255,255,255,.75);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.4);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ─── STATS BAR ───────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--red);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 3rem;
  border-right: 1px solid rgba(255,255,255,.2);
}
.stat:last-child { border-right: none; }
.stat strong {
  font-family: var(--font-h);
  font-size: 2rem;
  color: var(--white);
  letter-spacing: .04em;
}
.stat span {
  font-size: .8rem;
  color: rgba(255,255,255,.7);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .15rem;
}

/* ─── SECTIONS ────────────────────────────────────────────────────────── */
.section { padding: 6rem 0; }
.section-dark { background: var(--dark); }
.section-alt  { background: var(--light); }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-tag {
  color: var(--red);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.section-tag.light { color: rgba(255,255,255,.5); }

.section-title {
  font-family: var(--font-h);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.05;
  color: var(--dark);
  margin-bottom: 1rem;
  letter-spacing: .02em;
}
.section-title.light { color: var(--white); }

.section-desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin-bottom: 3rem;
}

/* ─── FILTER TABS ─────────────────────────────────────────────────────── */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 3rem;
}
.filter-tab {
  padding: .55rem 1.35rem;
  border: 2px solid #e5e7eb;
  border-radius: 100px;
  background: none;
  font-family: var(--font-b);
  font-size: .87rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--trans);
}
.filter-tab:hover { border-color: var(--red); color: var(--red); }
.filter-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ─── VEHICLES GRID ───────────────────────────────────────────────────── */
.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.75rem;
}

.vehicle-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans);
  border: 1px solid #f0f0f0;
}
.vehicle-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.14);
}

.card-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 3;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 100px;
}
.card-badge.gas  { background: #fff3cd; color: #92600a; }
.card-badge.elec { background: #d1fae5; color: #065f46; }

.card-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #f8f8f8;
}
.card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
}
.vehicle-card:hover .card-img-wrap img { transform: scale(1.04); }

.card-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,13,13,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--trans);
}
.vehicle-card:hover .card-img-overlay { opacity: 1; }

.btn-view {
  background: rgba(255,255,255,.15);
  border: 2px solid var(--white);
  color: var(--white);
  font-family: var(--font-b);
  font-weight: 600;
  font-size: .85rem;
  padding: .55rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--trans);
  backdrop-filter: blur(4px);
}
.btn-view:hover { background: rgba(255,255,255,.25); }

.card-body { padding: 1.5rem; }

.card-category {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .4rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.card-specs {
  list-style: none;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #e5e7eb transparent;
}
.card-specs::-webkit-scrollbar { width: 4px; }
.card-specs::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 2px; }
.card-specs li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  font-size: .82rem;
  padding: .28rem 0;
  border-bottom: 1px solid #f3f4f6;
}
.card-specs li:last-child { border-bottom: none; }
.card-specs span { color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.card-specs strong { color: var(--dark); font-weight: 600; text-align: right; }

.btn-cotizar {
  width: 100%;
  padding: .75rem;
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-b);
  font-weight: 700;
  font-size: .88rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--trans);
  letter-spacing: .03em;
}
.btn-cotizar:hover { background: var(--red); }

/* hidden card */
.vehicle-card.hidden { display: none; }

/* ─── STEPS ───────────────────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.step { padding: 2rem; background: rgba(255,255,255,.05); border-radius: var(--radius); border: 1px solid rgba(255,255,255,.08); }
.step-num {
  font-family: var(--font-h);
  font-size: 4rem;
  color: var(--red);
  opacity: .7;
  line-height: 1;
  margin-bottom: .75rem;
}
.step h3 { color: var(--white); font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.step p  { color: rgba(255,255,255,.6); font-size: .92rem; line-height: 1.6; }

/* ─── QUOTE FORM ──────────────────────────────────────────────────────── */
.quote-wrapper {
  max-width: 760px;
  margin: 0 auto;
}

.quote-form {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group.full { margin-bottom: 1.25rem; }

label {
  font-size: .84rem;
  font-weight: 600;
  color: var(--dark);
}

input, select, textarea {
  font-family: var(--font-b);
  font-size: .92rem;
  padding: .7rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  background: var(--white);
  color: var(--dark);
  outline: none;
  transition: border-color var(--trans), box-shadow var(--trans);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(224,31,38,.12);
}
textarea { resize: vertical; min-height: 110px; }
select { cursor: pointer; }

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.form-legal { font-size: .78rem; color: var(--muted); max-width: 340px; }

.btn-submit { min-width: 200px; justify-content: center; }

/* Success */
.form-success {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #d1fae5;
  color: #065f46;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.form-success h3 { font-size: 1.5rem; margin-bottom: .75rem; }
.form-success p  { color: var(--muted); margin-bottom: 2rem; }
.form-success .btn-outline { color: var(--dark); border-color: #d1d5db; }
.form-success .btn-outline:hover { background: var(--light); }

/* ─── CONTACT ─────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.footer-logo { height: 64px; width: auto; margin-bottom: 1.25rem; }
.contact-info h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: .75rem; }
.contact-info > p { color: var(--muted); margin-bottom: 1.5rem; }

.contact-list { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9rem;
  color: var(--dark);
}
.contact-list svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--red); }
.contact-list a { color: var(--red); font-weight: 500; }
.contact-list a:hover { text-decoration: underline; }

.map-placeholder {
  height: 340px;
  background: linear-gradient(135deg, #1a1d24 0%, #2a2d35 100%);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgba(255,255,255,.5);
}
.map-placeholder svg { width: 48px; height: 48px; color: var(--red); opacity: .6; }
.map-placeholder p { font-size: 1rem; font-weight: 500; color: rgba(255,255,255,.7); }

/* ─── FOOTER ──────────────────────────────────────────────────────────── */
.footer { background: var(--black); padding: 1.5rem 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer p { font-size: .82rem; color: rgba(255,255,255,.4); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.footer-links a { font-size: .82rem; color: rgba(255,255,255,.4); }
.footer-links a:hover { color: var(--white); }

.contact-map { display: flex; flex-direction: column; align-items: flex-start; }

/* ─── MODAL ───────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}

.modal-img {
  width: 100%;
  height: auto;
  display: block;
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 10;
  background: rgba(0,0,0,.6);
  border: none;
  color: var(--white);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--trans);
}
.modal-close:hover { background: var(--red); }

.modal-actions {
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  background: var(--white);
}
.modal-actions .btn-primary { font-size: 1rem; padding: .85rem 2.5rem; }

/* ─── CLIENTES ────────────────────────────────────────────────────────── */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.client-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  border: 1px solid #f0f0f0;
  overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans);
}
.client-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}

.client-logo-wrap {
  background: #6b21a8;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}
.client-logo-wrap img {
  max-height: 100px;
  width: auto;
  object-fit: contain;
}

.client-body {
  padding: 1.5rem;
}
.client-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .25rem;
}
.client-location {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: .85rem;
  display: flex;
  align-items: center;
  gap: .35rem;
}
.client-location svg { width: 14px; height: 14px; color: var(--red); flex-shrink: 0; }
.client-purchase {
  font-size: .84rem;
  color: var(--dark);
  background: var(--light);
  border-radius: 6px;
  padding: .55rem .85rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 500;
}
.client-purchase::before {
  content: '✓';
  color: #059669;
  font-weight: 700;
  font-size: .9rem;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 4rem 0; }
  .stats-bar { flex-direction: column; }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.2); padding: 1.2rem 2rem; }
  .stat:last-child { border-bottom: none; }
  .vehicles-grid { grid-template-columns: 1fr; }
  .quote-form { padding: 1.5rem; }
  .form-footer { flex-direction: column; align-items: flex-start; }
  .btn-submit { width: 100%; }
  .hero-actions { flex-direction: column; align-items: center; }
}
