:root {
  --black: #0a0a0a;
  --black-2: #111111;
  --black-3: #1a1a1a;
  --black-4: #222222;
  --white: #ffffff;
  --white-2: #f5f5f5;
  --white-3: #e8e8e8;
  --red: #dc2626;
  --red-hover: #f87171;
  --red-dark: #991b1b;
  --red-glow: rgba(220, 38, 38, 0.15);
  --red-dim: rgba(220, 38, 38, 0.08);
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111111;
  --whatsapp: #25d366;
  --whatsapp-hover: #20bd5a;
  --gradient-red: linear-gradient(135deg, #dc2626, #ef4444, #dc2626);
  --gradient-red-subtle: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(239, 68, 68, 0.05));
  --gradient-dark: linear-gradient(180deg, #0a0a0a 0%, #111111 50%, #0a0a0a 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.3);
  --shadow-red: 0 8px 32px rgba(220, 38, 38, 0.2);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --bounce: 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1200px;
  --header-h: 80px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--gray-300);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul { list-style: none; }

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

/* Animated grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(220, 38, 38, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 38, 38, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
  pointer-events: none;
  animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

/* Animated gradient orb */
body::after {
  content: '';
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.06) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  z-index: -1;
  pointer-events: none;
  animation: orbFloat 15s ease-in-out infinite alternate;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-100px, 200px) scale(1.3); }
  100% { transform: translate(-200px, 100px) scale(0.9); }
}

/* ========== BUTTONS ========== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: var(--transition);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* Red sweep animation on primary button */
.btn-primary {
  background: var(--gradient-red);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
  background-size: 200% 100%;
  animation: redSweep 3s ease infinite;
}

@keyframes redSweep {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(220, 38, 38, 0.45);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  animation: pulseGreen 2s ease-in-out infinite;
}

@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3); }
  50% { box-shadow: 0 4px 40px rgba(37, 211, 102, 0.5); }
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-3px);
  animation: none;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp i, .btn-primary i {
  font-size: 1.2em;
}

/* Button outline style */
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--red);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--red);
  transition: var(--transition);
  z-index: -1;
}

.btn-outline:hover::before {
  left: 0;
}

.btn-outline:hover {
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-red);
}

/* ========== SECTION ========== */

.section {
  padding: 120px 0;
  position: relative;
}

.section-dark {
  background: var(--black-2);
  position: relative;
}

.section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0.4;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-dim);
  padding: 6px 20px;
  border-radius: 50px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.section-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmerTag 3s ease-in-out infinite;
}

@keyframes shimmerTag {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.section-title span {
  background: var(--gradient-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--gray-400);
  max-width: 600px;
  margin: 0 auto;
}

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

#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition);
}

#header.scrolled {
  background: rgba(10, 10, 10, 0.96);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  border-bottom-color: rgba(220, 38, 38, 0.15);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 80px;
  width: auto;
  border-radius: var(--radius-xs);
}

@media (max-width: 480px) {
  .logo img {
    height: 56px;
  }
}

#nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

#nav a {
  padding: 10px 18px;
  border-radius: var(--radius-xs);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-400);
  position: relative;
  transition: var(--transition);
}

#nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: var(--transition);
  transform: translateX(-50%);
  border-radius: 2px;
}

#nav a:hover::after,
#nav a.active::after {
  width: 60%;
}

#nav a:hover, #nav a.active {
  color: var(--white);
}

.nav-whatsapp {
  background: var(--whatsapp) !important;
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: var(--radius-xs) !important;
  animation: pulseGreen 2s ease-in-out infinite;
}

.nav-whatsapp::after {
  display: none !important;
}

.nav-whatsapp:hover {
  background: var(--whatsapp-hover) !important;
  transform: translateY(-2px);
  animation: none;
}

/* Menu Toggle */
#menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

#menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

#menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background: var(--red);
}

#menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

#menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background: var(--red);
}

/* ========== WHATSAPP FLOAT ========== */

#whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}

#whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  font-size: 1.8rem;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
  animation: floatPulse 3s ease-in-out infinite;
  transition: var(--transition);
  position: relative;
}

#whatsapp-float a::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: ringPulse 2s ease-out infinite;
}

@keyframes ringPulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}

#whatsapp-float a:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6);
}

@keyframes floatPulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4); }
  50% { transform: translateY(-10px); box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6); }
}

/* ========== HERO ========== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-h);
  background-image: url("../Chevrolet ONIX Premier 2021/WhatsApp Image 2026-05-29 at 5.29.55 PM.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(220, 38, 38, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(220, 38, 38, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.9) 0%, transparent 50%),
    linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.9) 100%);
  z-index: 1;
}

/* Animated hero gradient bars */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-red);
  background-size: 200% 100%;
  animation: barMove 3s linear infinite;
  z-index: 2;
}

@keyframes barMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Hero particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--red);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 3;
}

.hero-text {
  animation: fadeInUp 1s ease;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 8px;
  letter-spacing: -1.5px;
}

.hero-title .highlight {
  background: var(--gradient-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.hero-title-line {
  display: block;
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--gray-300);
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.3s forwards;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 500;
  color: var(--white);
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--gray-400);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.8;
}

.hero-consignacion {
  font-size: 1rem;
  color: var(--gray-400);
  margin-bottom: 28px;
  max-width: 520px;
  line-height: 1.7;
  font-style: italic;
  opacity: 0.9;
}

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

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 1s ease 0.3s both;
  position: relative;
}

.hero-image::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--gradient-red);
  border-radius: var(--radius);
  opacity: 0.08;
  filter: blur(40px);
  transform: scale(0.9);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.08; transform: scale(0.9); }
  50% { opacity: 0.15; transform: scale(1); }
}

.hero-image img {
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
  position: relative;
}

.hero-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 30px 80px rgba(220, 38, 38, 0.15);
  border-color: rgba(220, 38, 38, 0.2);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray-500);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  z-index: 2;
  animation: fadeInUp 1s ease 1.2s both;
}

.hero-scroll i {
  animation: scrollDown 2s ease infinite;
  color: var(--red);
}

@keyframes scrollDown {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ========== NOSOTROS ========== */

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.nosotros-imgs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.nosotros-img-main {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
}

.nosotros-img-main:hover {
  border-color: rgba(220, 38, 38, 0.2);
  transform: scale(1.01);
}

/* Red accent corner on images */
.nosotros-imgs::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  width: 60px;
  height: 60px;
  border-top: 3px solid var(--red);
  border-left: 3px solid var(--red);
  border-radius: 4px;
  opacity: 0.6;
}

.nosotros-text p {
  color: var(--gray-400);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.nosotros-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.stat {
  text-align: center;
  padding: 24px 16px;
  background: var(--black-3);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-red);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.stat:hover::before {
  transform: scaleX(1);
}

.stat:hover {
  transform: translateY(-6px);
  border-color: rgba(220, 38, 38, 0.15);
  box-shadow: 0 12px 40px rgba(220, 38, 38, 0.1);
}

.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--gradient-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-400);
  font-weight: 500;
}

/* ========== CATÁLOGO ========== */

.catalogo-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: var(--gray-400);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-red);
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.filter-btn:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

.filter-btn.active {
  border-color: var(--red);
  color: var(--white);
}

.filter-btn.active::before {
  opacity: 1;
}

.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.vehicle-card {
  background: var(--black-3);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition);
  opacity: 1;
  transform: scale(1);
  position: relative;
}

.vehicle-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, transparent, transparent, transparent, var(--red), transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.vehicle-card:hover::before {
  opacity: 0.6;
  animation: borderRotate 2s linear infinite;
}

@keyframes borderRotate {
  0% { background: linear-gradient(0deg, transparent, transparent, transparent, var(--red), transparent, transparent); }
  25% { background: linear-gradient(90deg, transparent, transparent, transparent, var(--red), transparent, transparent); }
  50% { background: linear-gradient(180deg, transparent, transparent, transparent, var(--red), transparent, transparent); }
  75% { background: linear-gradient(270deg, transparent, transparent, transparent, var(--red), transparent, transparent); }
  100% { background: linear-gradient(360deg, transparent, transparent, transparent, var(--red), transparent, transparent); }
}

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

.vehicle-card:hover {
  transform: translateY(-8px);
  border-color: rgba(220, 38, 38, 0.15);
  box-shadow: 0 20px 60px rgba(220, 38, 38, 0.08);
}

.vehicle-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}

.vehicle-card-gallery-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  z-index: 2;
  pointer-events: none;
}

.vehicle-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.vehicle-card:hover .vehicle-card-img img {
  transform: scale(1.08);
}

.vehicle-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gradient-red);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 12px rgba(220, 38, 38, 0.3);
}

.vehicle-card-body {
  padding: 24px;
}

.vehicle-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.vehicle-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.vehicle-card-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--gray-400);
  background: rgba(255, 255, 255, 0.04);
  padding: 5px 12px;
  border-radius: 50px;
}

.vehicle-card-detail i {
  color: var(--red);
  font-size: 0.7rem;
}

.vehicle-card-desc {
  font-size: 0.88rem;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vehicle-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.vehicle-card-price {
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--gradient-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vehicle-card-whatsapp {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  font-size: 1.2rem;
  transition: var(--transition);
  position: relative;
}

.vehicle-card-whatsapp:hover {
  transform: scale(1.15) rotate(-10deg);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
}

/* ========== SERVICIOS ========== */

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.servicio-card {
  background: var(--black-3);
  padding: 44px 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.servicio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
  z-index: 2;
}

.servicio-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-red-subtle);
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.servicio-card:hover::before {
  transform: scaleX(1);
}

.servicio-card:hover::after {
  opacity: 1;
}

.servicio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(220, 38, 38, 0.12);
  box-shadow: 0 16px 48px rgba(220, 38, 38, 0.06);
}

.servicio-icon {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  border-radius: 18px;
  background: var(--red-dim);
  font-size: 1.7rem;
  color: var(--red);
  transition: var(--transition);
  position: relative;
}

.servicio-card:hover .servicio-icon {
  background: var(--red);
  color: var(--white);
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.25);
}

.servicio-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.servicio-card p {
  font-size: 0.92rem;
  color: var(--gray-400);
  line-height: 1.7;
}

/* ========== RAZONES ========== */

.razones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.razon {
  padding: 40px 28px;
  background: var(--black-3);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.razon::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-red);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.razon:hover::before {
  transform: scaleX(1);
}

.razon:hover {
  transform: translateY(-8px);
  border-color: rgba(220, 38, 38, 0.12);
  box-shadow: 0 16px 48px rgba(220, 38, 38, 0.06);
}

.razon-num {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(220, 38, 38, 0.08);
  margin-bottom: 12px;
  line-height: 1;
  font-family: 'Inter', sans-serif;
}

.razon h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.razon p {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.7;
}

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

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contacto-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--black-3);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.contacto-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-red);
  transform: scaleY(0);
  transition: var(--transition);
  transform-origin: top;
}

.contacto-item:hover::before {
  transform: scaleY(1);
}

.contacto-item:hover {
  border-color: rgba(220, 38, 38, 0.1);
  transform: translateX(6px);
}

.contacto-item i {
  font-size: 1.3rem;
  color: var(--red);
  margin-top: 4px;
  width: 24px;
  text-align: center;
}

.contacto-item h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contacto-item a, .contacto-item p {
  font-size: 1rem;
  color: var(--white);
}

.contacto-item a:hover {
  color: var(--red);
}

.contacto-form {
  background: var(--black-3);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
}

.contacto-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-red);
  border-radius: var(--radius) var(--radius) 0 0;
}

.form-group {
  margin-bottom: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  background: rgba(220, 38, 38, 0.04);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-500);
}

.form-group select {
  color: var(--gray-400);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239ca3af' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-group select option {
  background: var(--black);
  color: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ========== MAPA ========== */

.mapa {
  width: 100%;
  height: 400px;
  overflow: hidden;
  position: relative;
}

.mapa::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-red);
  z-index: 2;
}

.mapa iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(1) brightness(0.35);
  transition: var(--transition);
}

.mapa:hover iframe {
  filter: grayscale(0.6) brightness(0.5);
}

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

#footer {
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 64px 0 32px;
  position: relative;
}

#footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0.3;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 140px;
  width: auto;
  margin-bottom: 16px;
  border-radius: var(--radius-xs);
  cursor: pointer;
}

.footer-brand img:hover {
  animation: logoBounce 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes logoBounce {
  0% { transform: translateY(0); }
  20% { transform: translateY(-18px); }
  40% { transform: translateY(0); }
  55% { transform: translateY(-10px); }
  70% { transform: translateY(0); }
  82% { transform: translateY(-4px); }
  94% { transform: translateY(0); }
  100% { transform: translateY(0); }
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--gray-400);
  font-size: 1.1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--gray-500);
  position: relative;
  padding-left: 0;
}

.footer-links a::before {
  content: '→';
  position: absolute;
  left: -16px;
  opacity: 0;
  transition: var(--transition);
  color: var(--red);
}

.footer-links a:hover {
  color: var(--red);
  padding-left: 16px;
}

.footer-links a:hover::before {
  opacity: 1;
  left: 0;
}

.footer-contact p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact p i {
  color: var(--red);
  width: 16px;
}

.footer-contact a:hover {
  color: var(--red);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.8;
}

.footer-bottom a:hover {
  color: var(--red);
}

/* ========== ANIMATIONS ========== */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-children.revealed > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }

/* ========== LOADING / SKELETON ========== */

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

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

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-desc {
    margin: 0 auto 36px;
  }

  .hero-consignacion {
    margin: 0 auto 28px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image img {
    max-width: 480px;
  }

  .nosotros-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .nosotros-imgs {
    max-width: 500px;
    margin: 0 auto;
  }

  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .razones-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacto-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 70px;
  }

  .section {
    padding: 80px 0;
  }

  #menu-toggle {
    display: flex;
  }

  #nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--black-2);
    padding: 100px 32px 32px;
    transition: var(--transition);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    border-left: 1px solid rgba(220, 38, 38, 0.1);
  }

  #nav.open {
    right: 0;
  }

  #nav ul {
    flex-direction: column;
    gap: 4px;
  }

  #nav a {
    display: block;
    padding: 14px 20px;
    font-size: 1.05rem;
    width: 100%;
  }

  #nav a::after {
    display: none;
  }

  #nav a:hover, #nav a.active {
    background: rgba(220, 38, 38, 0.08);
    color: var(--red);
  }

  .nav-whatsapp {
    text-align: center;
    margin-top: 8px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .hero-image img {
    max-width: 100%;
  }

  .catalogo-grid {
    grid-template-columns: 1fr;
  }

  .servicios-grid {
    grid-template-columns: 1fr;
  }

  .razones-grid {
    grid-template-columns: 1fr;
  }

  .contacto-form {
    padding: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-contact p {
    justify-content: center;
  }

  .nosotros-stats {
    grid-template-columns: 1fr;
  }

  #whatsapp-float {
    bottom: 16px;
    right: 16px;
  }

  #whatsapp-float a {
    width: 54px;
    height: 54px;
    font-size: 1.5rem;
  }

  .hero {
    background-position: 65% center;
  }

  .hero-scroll {
    display: none;
  }

  .catalogo-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .catalogo-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
  }

  .nosotros-imgs::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .vehicle-card-body {
    padding: 18px;
  }

  .servicio-card {
    padding: 28px 20px;
  }

  .contacto-item {
    padding: 16px;
  }

  .nosotros-imgs {
    grid-template-columns: 1fr;
  }
}

/* ========== OVERLAY ========== */

#nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.35s ease;
}

#nav-overlay.show {
  opacity: 1;
}

@media (max-width: 768px) {
  #nav-overlay.show {
    display: block;
  }
}

/* ========== SCROLLBAR ========== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--black-4);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-600);
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 40px;
}

.lightbox-image-wrap {
  max-width: 85vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 2;
  opacity: 0.7;
  transition: opacity 0.2s;
  line-height: 1;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .lightbox-content {
    padding: 20px;
  }

  .lightbox-image-wrap {
    max-width: 95vw;
    max-height: 70vh;
  }

  .lightbox-image {
    max-height: 70vh;
  }

  .lightbox-close {
    top: 12px;
    right: 16px;
    font-size: 2rem;
  }

  .lightbox-nav {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }
}
