/* ============================================
   CAR VISION — CONCESSIONÁRIO PREMIUM
   ============================================ */

:root {
  /* brand accent — green, from the real Car Vision signage (storefront sign photo) */
  --metal-hi: #34d399;
  --metal-lo: #0e7c46;
  --gradient: linear-gradient(135deg, #34d399 0%, #0e7c46 100%);
  --glow: 0 0 32px rgba(52, 211, 153, 0.45);
  --glow-soft: 0 0 70px rgba(52, 211, 153, 0.28);

  --ink: #0a0a0d;
  --white: #f5f5f7;

  /* light theme throughout — neutral grey canvas, white cards floating on top */
  --paper: #ffffff;
  --paper-soft: #ececef;
  --paper-tint: #f1f0f4;
  --text: #16151c;
  --text-soft: #5e5c68;
  --line: rgba(10, 10, 15, 0.08);
  --line-strong: rgba(10, 10, 15, 0.14);
  --card-shadow: 0 20px 45px -25px rgba(20, 18, 30, 0.25);
  --card-shadow-lg: 0 35px 70px -30px rgba(20, 18, 30, 0.35);

  --display: 'Space Grotesk', sans-serif;
  --sans: 'Inter', sans-serif;

  --container: 1200px;
  --gap: 22px;
  --radius: 10px;
  --radius-sm: 6px;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper-soft);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* ---------- Typography helpers ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.01em;
}

.section-desc {
  max-width: 560px;
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 16px;
  font-weight: 400;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-head .section-desc { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 12px 30px -12px rgba(20, 18, 30, 0.4), var(--glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(20, 18, 30, 0.5), 0 0 44px rgba(52, 211, 153, 0.6);
}

.btn--outline {
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn--outline:hover { border-color: var(--metal-lo); color: var(--metal-lo); }

.btn--small { padding: 11px 22px; font-size: 12px; }
.btn--full { width: 100%; }

/* ============================================
   PRELOADER
   ============================================ */

.preloader {
  position: fixed;
  inset: 0;
  background: var(--paper-soft);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader__mark {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: pulseMark 1.4s ease-in-out infinite;
}
@keyframes pulseMark {
  0%, 100% { opacity: 0.4; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1); }
}

.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient);
  z-index: 1001;
  transition: width 0.1s ease-out;
}

/* ============================================
   LOGO
   ============================================ */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}
.logo__accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================
   HEADER
   ============================================ */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 24px 0;
  transition: all 0.4s var(--ease);
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  padding: 15px 0;
  box-shadow: 0 8px 30px -12px rgba(20, 18, 30, 0.14);
  border-bottom: 1px solid var(--line);
}

/* Header starts life over the dark photo hero — light text until scrolled
   past it, when .is-scrolled brings back the solid white bar + dark text. */
.header .logo { color: var(--white); transition: color 0.3s ease; }
.header .logo__accent {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  color: var(--metal-hi);
  text-shadow: 0 0 18px rgba(52, 211, 153, 0.55);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.header .nav a { color: rgba(245, 245, 247, 0.75); }
.header .nav a:hover { color: var(--white); }
.header .header__cta.btn--outline {
  border-color: rgba(245, 245, 247, 0.4);
  color: var(--white);
}
.header .header__cta.btn--outline:hover { border-color: var(--white); color: var(--white); }
.header .burger span { background: var(--white); }

.header.is-scrolled .logo { color: var(--text); }
.header.is-scrolled .logo__accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
}
.header.is-scrolled .nav a { color: var(--text-soft); }
.header.is-scrolled .nav a:hover { color: var(--text); }
.header.is-scrolled .header__cta.btn--outline {
  border-color: var(--line-strong);
  color: var(--text);
}
.header.is-scrolled .header__cta.btn--outline:hover { border-color: var(--metal-lo); color: var(--metal-lo); }
.header.is-scrolled .burger span { background: var(--text); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav {
  display: flex;
  gap: 34px;
  flex: 1;
  justify-content: center;
}
.nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-soft);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 1px;
  background: var(--gradient);
  transition: width 0.3s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}
.burger span {
  height: 1px;
  background: var(--text);
  width: 100%;
  transition: all 0.3s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: 300px;
  max-width: 82vw;
  background: var(--paper);
  z-index: 950;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  display: flex;
  align-items: center;
  box-shadow: -20px 0 60px rgba(20,18,30,0.2);
  border-left: 1px solid var(--line);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 40px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
}
.mobile-nav a:hover { color: var(--metal-lo); }
.mobile-nav__cta { margin-top: 12px; text-align: center; }

/* ============================================
   HERO — full-bleed photo (v5)
   The only dark/photographic section on the site; everything below
   stays on the light --paper-soft canvas. Real photo lives at
   assets/img/hero-speedometer.jpg — until that file exists, the layered
   gradients alone carry the section (no broken-image icon).
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: block;
  padding: 190px 0 90px;
  overflow: hidden;
  color: var(--white);
}

.hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--ink);
  background-image:
    linear-gradient(180deg, rgba(10,10,13,0.5) 0%, rgba(10,10,13,0.38) 45%, rgba(8,8,10,0.92) 100%),
    linear-gradient(100deg, rgba(10,10,13,0.8) 0%, rgba(10,10,13,0.35) 48%, rgba(10,10,13,0.15) 100%),
    url('../assets/img/hero-photo.jpg');
  background-size: cover;
  background-position: center 42%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 900px 480px at 50% 100%, rgba(8,8,10,0.55), transparent 70%),
    radial-gradient(ellipse 640px 500px at 8% 8%, rgba(52, 211, 153, 0.22), transparent 65%);
  pointer-events: none;
}

.hero__gauge {
  position: absolute;
  z-index: 1;
  bottom: -80px;
  right: -80px;
  width: 420px;
  height: 420px;
  opacity: 0.7;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
}

.hero__content { max-width: 560px; }

.eyebrow--light {
  background: none;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  -webkit-background-clip: initial;
  color: rgba(245, 245, 247, 0.75);
}

.hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.08;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
  color: var(--white);
  text-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

.hero__subtitle {
  font-size: 16px;
  font-weight: 400;
  color: rgba(245, 245, 247, 0.78);
  max-width: 460px;
  margin-bottom: 34px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn--ghost {
  border: 1px solid rgba(245, 245, 247, 0.35);
  color: var(--white);
  background: rgba(245, 245, 247, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(245, 245, 247, 0.16);
  border-color: rgba(245, 245, 247, 0.7);
}

.hero__social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 38px;
}
.hero__social span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.5);
}
.hero__social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--white);
  background: rgba(245, 245, 247, 0.08);
  border: 1px solid rgba(245, 245, 247, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.hero__social a:hover { background: var(--gradient); border-color: transparent; transform: translateY(-3px); }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.float-card {
  position: absolute;
  z-index: 3;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow-lg);
  animation: floatY 6s ease-in-out infinite;
}

/* ---------- Assist card (real WhatsApp quick-contact, styled like an assistant panel) ---------- */

.assist-card {
  top: 130px;
  right: 0;
  width: 264px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation-delay: 0.7s;
}
.assist-card__head { display: flex; flex-direction: column; gap: 2px; }
.assist-card__head strong { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--text); }
.assist-card__head span { font-size: 12px; color: var(--text-soft); }

.assist-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.assist-card__opt {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 10px;
  background: var(--paper-soft);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: background 0.25s ease, color 0.25s ease;
}
.assist-card__opt svg { width: 17px; height: 17px; }
.assist-card__opt span { font-size: 11px; font-weight: 600; line-height: 1.25; }
.assist-card__opt:hover { background: var(--gradient); color: var(--white); }

.assist-card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: var(--gradient);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--glow);
}
.assist-card__cta svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Info row (real business info, glass cards over the photo) ---------- */

.hero__infos {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: 72px;
}
.info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--card-shadow);
}
.info-card--glass {
  background: rgba(245, 245, 247, 0.08);
  border: 1px solid rgba(245, 245, 247, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 45px -25px rgba(0,0,0,0.5);
}
.info-card--glass .info-card__icon { background: rgba(245, 245, 247, 0.12); color: var(--white); }
.info-card--glass .info-card__label { color: rgba(245, 245, 247, 0.6); }
.info-card--glass .info-card__value { color: var(--white); }
.info-card--glass .info-card__value a:hover { color: var(--metal-hi); }
.info-card__icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--paper-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--metal-lo);
}
.info-card__icon svg { width: 20px; height: 20px; }
.info-card__label {
  display: block;
  font-size: 11px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.info-card__value { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--text); }
.info-card__value a:hover { color: var(--metal-lo); }

/* ---------- Scroll cue ---------- */

.hero__scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 245, 247, 0.6);
  border: 1px solid rgba(245, 245, 247, 0.3);
  border-radius: 50%;
  animation: scrollCue 2.2s ease-in-out infinite;
}
.hero__scroll-cue svg { width: 15px; height: 15px; }
@keyframes scrollCue {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* ---------- Entrance animation ---------- */

.hero-in {
  opacity: 0;
  animation: heroFadeUp 0.9s var(--ease) forwards;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Floating search widget ---------- */

.hero__search-wrap {
  position: relative;
  z-index: 3;
  margin-top: -20px;
  margin-bottom: 60px;
  padding: 0 24px;
  display: flex;
  justify-content: center;
}

.hero__search {
  width: min(1000px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--card-shadow-lg);
}
.hero__search-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.hero__search-field label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.hero__search-field select {
  background: var(--paper-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
}
.hero__search-field select:focus { outline: none; border-color: var(--metal-lo); }
.hero__search-btn { white-space: nowrap; }

/* ============================================
   MARQUEE
   ============================================ */

.marquee {
  background: var(--paper-soft);
  padding: 20px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 24px;
  animation: marqueeScroll 30s linear infinite;
}
.marquee__track span {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.marquee__track span:nth-child(2n) {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   CATEGORIAS
   ============================================ */

.categorias { padding: 70px 0; background: var(--paper-soft); }

.categorias__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap);
}

.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-soft);
  box-shadow: var(--card-shadow);
  transition: transform 0.35s var(--ease), border-color 0.35s ease, color 0.3s ease;
}
.cat-tile svg { width: 30px; height: 30px; }
.cat-tile span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.cat-tile:hover {
  transform: translateY(-6px);
  border-color: var(--metal-lo);
  color: var(--text);
  box-shadow: var(--card-shadow), var(--glow);
}

/* ============================================
   ABOUT
   ============================================ */

.about {
  padding: 130px 0;
  background: var(--paper-soft);
}

.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.about__media {
  position: relative;
  height: 460px;
}
.about__mark {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background-color: var(--paper-soft);
  background-image:
    radial-gradient(rgba(20, 18, 30, 0.05) 1px, transparent 1.4px),
    radial-gradient(ellipse 460px 380px at 20% 15%, rgba(52, 211, 153, 0.2), transparent 62%),
    radial-gradient(ellipse 520px 440px at 85% 90%, rgba(20, 18, 30, 0.1), transparent 65%);
  background-size: 24px 24px, auto, auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.brand-badge {
  width: 260px;
  aspect-ratio: 5 / 3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f6f6f7 0%, #d9d9dc 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: var(--card-shadow-lg);
}
.brand-badge__title {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #191919;
}
.brand-badge__rule {
  width: 80px;
  height: 3px;
  background: #191919;
}
.brand-badge__sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #191919;
}
.about__badge {
  position: absolute;
  top: 24px;
  right: -24px;
  background: var(--gradient);
  color: var(--white);
  width: 116px;
  height: 116px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 3;
  box-shadow: 0 20px 40px -10px rgba(20, 18, 30, 0.4);
}
.about__badge strong {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}
.about__badge span {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

.about__text {
  color: var(--text-soft);
  font-size: 16px;
  margin-bottom: 40px;
  max-width: 520px;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 44px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 700;
  color: var(--text);
}
.stat__label {
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text-soft);
  text-transform: uppercase;
}

/* ============================================
   VANTAGENS
   ============================================ */

.vantagens {
  padding: 130px 0;
  background: var(--paper-soft);
}

.vantagens__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.vcard {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--card-shadow);
  transition: transform 0.4s var(--ease), border-color 0.4s ease;
}
.vcard:hover {
  transform: translateY(-6px);
  border-color: var(--metal-lo);
  box-shadow: var(--card-shadow), var(--glow);
}
.vcard__icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 22px;
}
.vcard__icon svg { width: 24px; height: 24px; }
.vcard h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.vcard p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.65;
}

/* ============================================
   STOCK
   ============================================ */

.stock {
  padding: 130px 0;
  background: var(--paper-soft);
}

.stock__tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}
.stock__tab {
  padding: 12px 26px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: all 0.3s var(--ease);
}
.stock__tab:hover { color: var(--metal-lo); border-color: var(--metal-lo); }
.stock__tab.is-active {
  background: var(--gradient);
  color: var(--white);
  border-color: transparent;
}

.stock__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.car {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--card-shadow);
  transition: transform 0.4s var(--ease), border-color 0.4s ease;
}
.car:hover {
  transform: translateY(-8px);
  border-color: var(--metal-lo);
  box-shadow: var(--card-shadow), var(--glow);
}

.car__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-soft);
}
.car__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.car:hover .car__media img { transform: scale(1.08); }

.car__noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--line-strong);
}
.car__noimg svg { width: 64px; height: 64px; }

.car__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--gradient);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

.car__body {
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.car__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.car__top h3 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.car__price {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--metal-lo);
  white-space: nowrap;
  text-transform: uppercase;
}
.car__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.car__specs li {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 999px;
}
.car__cta {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.3s ease, gap 0.3s ease;
}
.car__cta:hover { color: var(--metal-lo); }

.stock__empty {
  display: none;
  margin-top: 20px;
  text-align: center;
  font-size: 15px;
  color: var(--text-soft);
  padding: 56px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.stock__empty::before {
  content: '';
  display: block;
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  opacity: 0.45;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e5c68' stroke-width='1.4'%3E%3Cpath d='M3 13.5 5 8h14l2 5.5'/%3E%3Crect x='3' y='13.5' width='18' height='6' rx='2'/%3E%3Ccircle cx='7.5' cy='17' r='1.3'/%3E%3Ccircle cx='16.5' cy='17' r='1.3'/%3E%3C/svg%3E");
}
.stock__empty.is-visible { display: block; }

/* ============================================
   INSTAGRAM
   Real posts from @car.visionpro. Each tile's photo lives at
   assets/img/instagram/0X-*.jpg — until that file exists, the tile
   falls back to the same "no image yet" treatment as .car__noimg
   (metallic gradient + car icon), never a broken-image icon.
   ============================================ */

.instagram { padding: 130px 0; background: var(--paper-soft); }

.instagram__layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: var(--gap);
  align-items: stretch;
}

.instagram__profile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.instagram__avatar { margin-bottom: 4px; }
.brand-badge--sm {
  width: 92px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  gap: 3px;
}
.brand-badge--sm .brand-badge__title { font-size: 13px; letter-spacing: 0.04em; }
.brand-badge--sm .brand-badge__rule { width: 30px; }
.brand-badge--sm .brand-badge__sub { font-size: 6px; letter-spacing: 0.2em; }

.instagram__handle { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--text); }
.instagram__bio { font-size: 13px; color: var(--text-soft); line-height: 1.6; }

.instagram__stats {
  display: flex;
  gap: 22px;
  padding: 18px 0;
  margin: 6px 0 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  width: 100%;
  justify-content: center;
}
.instagram__stats li { display: flex; flex-direction: column; gap: 2px; }
.instagram__stats strong { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--text); }
.instagram__stats span { font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-soft); }

.instagram__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: var(--gap);
}

.ig-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 14px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--metal-lo);
  background-image: var(--gradient);
  background-size: cover;
  background-position: center;
  box-shadow: var(--card-shadow);
  transition: transform 0.4s var(--ease);
}
.ig-tile:hover { transform: translateY(-4px); box-shadow: var(--card-shadow), var(--glow); }
.ig-tile__icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 245, 247, 0.85);
  background: rgba(10, 10, 13, 0.25);
  backdrop-filter: blur(4px);
  opacity: 0.85;
  transition: opacity 0.3s ease;
}
.ig-tile__icon svg { width: 15px; height: 15px; }
.ig-tile:hover .ig-tile__icon { opacity: 1; }

.ig-tile--1 { background-image: linear-gradient(180deg, transparent 55%, rgba(10,10,13,0.55) 100%), url('../assets/img/instagram/01-citroen-c3-aircross.jpg'); }
.ig-tile--2 { background-image: linear-gradient(180deg, transparent 55%, rgba(10,10,13,0.55) 100%), url('../assets/img/instagram/02-peugeot-208.jpg'); }
.ig-tile--3 { background-image: linear-gradient(180deg, transparent 55%, rgba(10,10,13,0.55) 100%), url('../assets/img/instagram/03-citroen-c3.jpg'); }
.ig-tile--4 { background-image: linear-gradient(180deg, transparent 55%, rgba(10,10,13,0.55) 100%), url('../assets/img/instagram/04-vw-scirocco.jpg'); }
.ig-tile--5 { background-image: linear-gradient(180deg, transparent 55%, rgba(10,10,13,0.55) 100%), url('../assets/img/instagram/05-renault-clio.jpg'); }
.ig-tile--6 { background-image: linear-gradient(180deg, transparent 55%, rgba(10,10,13,0.55) 100%), url('../assets/img/instagram/06-peugeot-308.jpg'); }

/* ============================================
   PROMO
   ============================================ */

.promo {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 700px 500px at 20% 30%, rgba(215, 217, 221, 0.4), transparent 65%),
    radial-gradient(ellipse 700px 500px at 80% 70%, rgba(70, 72, 79, 0.05), transparent 65%),
    var(--paper-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.promo__content { max-width: 640px; margin: 0 auto; }
.promo__content .eyebrow { text-align: center; }
.promo__content .section-title { text-align: center; }
.promo__text {
  color: var(--text-soft);
  font-size: 16px;
  margin: 22px 0 36px;
}

/* ============================================
   CONTACTO
   ============================================ */

.contacto {
  position: relative;
  padding: 130px 0;
  background: var(--paper-soft);
}
.contacto__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
}

.contacto__text {
  color: var(--text-soft);
  font-size: 16px;
  margin: 26px 0 44px;
  max-width: 440px;
}

.contacto__list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 36px;
}
.contacto__list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.contacto__list strong {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--metal-lo);
}
.contacto__list span { color: var(--text); font-size: 16px; }
.contacto__list a:hover { color: var(--metal-lo); }

.contacto__social { display: flex; gap: 12px; }
.contacto__social a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-soft);
  transition: all 0.3s ease;
}
.contacto__social a:hover {
  border-color: var(--metal-lo);
  color: var(--metal-lo);
  transform: translateY(-3px);
}

.contacto__form {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: var(--card-shadow);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form__group label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--metal-lo);
}
.form__group input,
.form__group select,
.form__group textarea {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  transition: border-color 0.3s ease;
}
.form__group textarea { resize: vertical; min-height: 80px; }
.form__group input::placeholder,
.form__group textarea::placeholder { color: var(--text-soft); opacity: 0.6; }
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--metal-lo);
}

.form__success {
  display: none;
  text-align: center;
  color: var(--metal-lo);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.form__success.is-visible { display: block; }

/* ============================================
   FOOTER
   ============================================ */

.footer { background: var(--paper-soft); padding-top: 100px; border-top: 1px solid var(--line); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--line);
}

.footer__brand p {
  color: var(--text-soft);
  font-size: 14px;
  margin: 22px 0 28px;
  max-width: 320px;
  line-height: 1.7;
}

.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-soft);
  transition: all 0.3s ease;
}
.footer__social a:hover {
  border-color: var(--metal-lo);
  color: var(--metal-lo);
  transform: translateY(-3px);
}

.footer__col { display: flex; flex-direction: column; gap: 16px; }
.footer__col h4 {
  font-family: var(--display);
  font-size: 15px;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 600;
}
.footer__col a,
.footer__col span {
  font-size: 14px;
  color: var(--text-soft);
  transition: color 0.3s ease;
}
.footer__col a:hover { color: var(--metal-lo); }

.footer__bottom { padding: 28px 0; }
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}

/* ============================================
   TO TOP
   ============================================ */

.to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--gradient);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  box-shadow: 0 12px 30px -10px rgba(20,18,30,0.4);
  transition: all 0.35s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -10px rgba(20, 18, 30, 0.4); }

/* ============================================
   REVEAL ANIMATION (below the fold)
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-active { opacity: 1; transform: translateY(0); }

/* ============================================
   FUNCIONÁRIO ALEX — chat widget
   ============================================ */

.alex-widget {
  position: fixed;
  right: 32px;
  bottom: 96px;
  z-index: 600;
}

.alex-fab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 14px 14px;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  box-shadow: var(--card-shadow-lg), var(--glow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.alex-fab:hover { transform: translateY(-3px); }
.alex-fab.is-open { transform: scale(0.94); opacity: 0.85; }

.alex-fab__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.alex-fab__label {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.alex-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 16px);
  width: 340px;
  max-width: calc(100vw - 48px);
  height: 460px;
  max-height: 70vh;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: alexPanelIn 0.25s var(--ease);
}
@keyframes alexPanelIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.alex-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  background: var(--ink);
  color: var(--white);
  flex-shrink: 0;
}
.alex-panel__who { display: flex; align-items: center; gap: 10px; }
.alex-panel__who strong { display: block; font-family: var(--display); font-size: 14px; }
.alex-panel__who span { display: block; font-size: 11px; color: rgba(245, 245, 247, 0.6); }
.alex-panel__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.alex-panel__close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 245, 247, 0.7);
  transition: background 0.25s ease, color 0.25s ease;
}
.alex-panel__close svg { width: 15px; height: 15px; }
.alex-panel__close:hover { background: rgba(245, 245, 247, 0.12); color: var(--white); }

.alex-panel__messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--paper-soft);
}

.alex-msg {
  max-width: 85%;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.alex-msg--assistant {
  align-self: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--text);
}
.alex-msg--user {
  align-self: flex-end;
  background: var(--gradient);
  color: var(--white);
}
.alex-msg--typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 13px;
}
.alex-msg--typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-soft);
  animation: alexTyping 1.2s ease-in-out infinite;
}
.alex-msg--typing span:nth-child(2) { animation-delay: 0.15s; }
.alex-msg--typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes alexTyping {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.alex-panel__form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  flex-shrink: 0;
}
.alex-panel__form input {
  flex: 1;
  padding: 11px 14px;
  background: var(--paper-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
}
.alex-panel__form input:focus { outline: none; border-color: var(--metal-lo); }
.alex-panel__form button {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--gradient);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}
.alex-panel__form button:hover { transform: scale(1.06); }
.alex-panel__form button svg { width: 17px; height: 17px; }

@media (max-width: 640px) {
  .alex-widget { right: 16px; bottom: 84px; }
  .alex-fab__label { display: none; }
  .alex-fab { padding: 12px; }
  .alex-panel { width: calc(100vw - 32px); right: -8px; }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
  .hero__content { max-width: 620px; }
  .assist-card { position: static; width: 100%; max-width: 420px; margin-top: 32px; animation: none; }
  .hero__gauge { width: 300px; height: 300px; }
  .hero__infos { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .header__cta { display: none; }
  .burger { display: flex; }

  .about__grid,
  .contacto__grid { grid-template-columns: 1fr; gap: 56px; }
  .about__media { height: 340px; max-width: 460px; margin: 0 auto; }

  .categorias__grid { grid-template-columns: repeat(3, 1fr); }
  .vantagens__grid { grid-template-columns: repeat(2, 1fr); }
  .stock__grid { grid-template-columns: repeat(2, 1fr); }

  .instagram__layout { grid-template-columns: 1fr; }
  .instagram__grid { grid-template-columns: repeat(3, 1fr); }

  .hero__search { grid-template-columns: 1fr 1fr; }
  .hero__search-btn { grid-column: 1 / -1; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 44px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .btn { white-space: normal; text-align: center; line-height: 1.3; }
  .about, .vantagens, .stock, .categorias, .promo, .contacto, .instagram { padding: 80px 0; }
  .hero { padding: 130px 0 40px; }

  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }

  .hero__gauge { display: none; }
  .assist-card { max-width: none; }
  .hero__infos { grid-template-columns: 1fr; gap: 12px; margin-top: 30px; }
  .hero__scroll-cue { display: none; }

  .hero__search-wrap { margin-top: 24px; padding: 0 16px; }
  .hero__search { grid-template-columns: 1fr; padding: 20px; }

  .categorias__grid { grid-template-columns: repeat(2, 1fr); }
  .about__stats { grid-template-columns: 1fr; gap: 18px; }
  .vantagens__grid { grid-template-columns: 1fr; }
  .stock__grid { grid-template-columns: 1fr; }
  .instagram__grid { grid-template-columns: repeat(2, 1fr); }
  .stock__tabs { justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }

  .form__row { grid-template-columns: 1fr; }
  .contacto__form { padding: 28px; }

  .footer__grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 50px; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }

  .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}
