/**
 * Metro Life RP - Estilos del Concesionario
 * Copyright (c) 2025 Metro Life Studios. Desarrollado por Mercurio & Melman.
 * Todos los derechos reservados.
 * 
 * Este código fuente es propiedad exclusiva de Metro Life Studios.
 * Queda estrictamente prohibida su reproducción, distribución, modificación
 * o uso no autorizado, total o parcial, sin consentimiento expreso por escrito.
 * 
 * El uso indebido de este material está sujeto a acciones legales conforme
 * a la legislación vigente sobre propiedad intelectual y derechos de autor.
 */

:root {
  --bg-dark: #050505;
  --bg-panel: #0a0a0a;
  --text-main: #e5e5e5;
  --text-muted: #a3a3a3;

  /* Performance Colors */
  --color-speed: #3b82f6;
  --color-power: #ef4444;

  /* VIP & Boost Palette */
  --gold: #ffd700;
  --gold-light: #ffed4e;
  --gold-dark: #b8860b;
  --purple: #a855f7;
  --purple-light: #d8b4fe;
  --purple-dark: #581c87;
  --mafia-red: #8a0b0b;
  --mafia-dark: #4a0404;

  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(10, 10, 10, 0.7);
  --carbon-texture: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0.03) 1px, transparent 0, transparent 50%);
}

/* ... existing code ... */

/* =========================================
   HYPER DESIGN TIERS (VIP & BOOST)
   ========================================= */

/* --- VIP CARD --- */
.car-card.vip {
  border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.9), rgba(10, 10, 10, 1));
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}

/* Animated Golden Border via Pseudo-element */
.car-card.vip::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  padding: 1px;
  /* border width */
  background: linear-gradient(45deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold-dark));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: goldBorderFlow 4s linear infinite;
}

@keyframes goldBorderFlow {
  0% {
    filter: hue-rotate(0deg);
  }

  100% {
    filter: hue-rotate(10deg);
  }

  /* Subtle color shift */
}

.car-card.vip:hover {
  transform: translateY(-10px) skewX(-2deg) scale(1.02);
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
}

.car-card.vip .car-image-wrapper {
  border-bottom: 2px solid var(--gold);
}

.car-card.vip .car-badge {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  border: none;
  box-shadow: 0 0 10px var(--gold);
}

.car-card.vip .car-name {
  color: var(--gold);
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
  font-size: 13px;
}

.car-card.vip .car-btn {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), transparent);
  border-left: 3px solid var(--gold);
  color: var(--gold-light);
}

.car-card.vip .car-btn:hover {
  background: var(--gold);
  color: #000;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}

/* --- BOOST CARD --- */
.car-card.boost {
  border: 1px solid rgba(168, 85, 247, 0.5);
  background: linear-gradient(180deg, rgba(20, 10, 30, 0.9), rgba(10, 5, 15, 1));
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.car-card.boost:hover {
  transform: translateY(-10px) skewX(-2deg) scale(1.02);
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.4);
  border-color: var(--purple-light);
}

.car-card.boost .car-image-wrapper {
  border-bottom: 2px solid var(--purple);
  position: relative;
}

/* Nitro Glow Effect */
.car-card.boost .car-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, rgba(168, 85, 247, 0.3), transparent);
  pointer-events: none;
}

.car-card.boost .car-badge {
  background: var(--purple);
  box-shadow: 0 0 10px var(--purple);
  border: none;
}

.car-card.boost .car-name {
  color: var(--purple-light);
  text-shadow: 0 0 15px var(--purple);
}

.car-card.boost .car-btn {
  border-left: 3px solid var(--purple);
  color: var(--purple-light);
}

.car-card.boost .car-btn:hover {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 0 25px var(--purple);
}

/* --- MAFIA CARD --- */
.car-card.mafia {
  border: 1px solid var(--mafia-red);
  background: linear-gradient(180deg, #1a0505, #0a0000);
  box-shadow: 0 0 20px rgba(138, 11, 11, 0.2);
}

.car-card.mafia:hover {
  transform: translateY(-10px) skewX(-2deg) scale(1.02);
  box-shadow: 0 0 40px rgba(138, 11, 11, 0.5);
  border-color: #ff1a1a;
}

.car-card.mafia .car-image-wrapper {
  border-bottom: 2px solid var(--mafia-red);
}

.car-card.mafia .car-badge {
  background: var(--mafia-red);
  box-shadow: 0 0 10px var(--mafia-red);
  border: none;
  color: #fff;
}

.car-card.mafia .car-name {
  color: #ff4d4d;
  text-shadow: 0 0 15px var(--mafia-red);
}

.car-card.mafia .car-btn {
  border-left: 3px solid var(--mafia-red);
  color: #ffcccc;
}

.car-card.mafia .car-btn:hover {
  background: var(--mafia-red);
  color: #fff;
  box-shadow: 0 0 25px var(--mafia-red);
}

/* Mafia Tag */
.mafia-tag {
  background: linear-gradient(45deg, var(--mafia-dark), var(--mafia-red));
  color: #fff;
  border: 1px solid #ff0000;
  letter-spacing: 2px;
}

/* Mafia Modal Theme */
.modal-content.theme-mafia {
  border: 2px solid var(--mafia-red);
  box-shadow: 0 0 100px rgba(138, 11, 11, 0.25);
}

.modal-content.theme-mafia .modal-left {
  background: radial-gradient(circle at center, #2e0505, #000);
  border-bottom: 2px solid var(--mafia-red);
}

.modal-content.theme-mafia .section-title {
  color: #ff4d4d;
  text-shadow: 0 0 10px var(--mafia-red);
}

.modal-content.theme-mafia .btn-purchase {
  background: linear-gradient(45deg, var(--mafia-red), var(--mafia-dark));
  color: #fff;
}

/* --- SPECIAL TAGS --- */
.special-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  z-index: 5;
  transform: skewX(10deg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
}

.vip-tag {
  background: linear-gradient(45deg, var(--gold), #fff, var(--gold));
  background-size: 200% 200%;
  color: #000;
  animation: shineTag 3s linear infinite;
}

.boost-tag {
  background: linear-gradient(45deg, var(--purple-dark), var(--purple));
  color: #fff;
  border: 1px solid var(--purple-light);
}

@keyframes shineTag {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

/* --- MODAL THEMES (ENHANCED) --- */
.modal-content.theme-vip {
  border: 2px solid var(--gold);
  box-shadow: 0 0 100px rgba(255, 215, 0, 0.15);
}

.modal-content.theme-vip .modal-left {
  background: radial-gradient(circle at center, rgba(50, 40, 10, 1), #000);
  border-bottom: 2px solid var(--gold);
}

.modal-content.theme-vip .section-title {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.modal-content.theme-vip .btn-purchase {
  background: linear-gradient(45deg, var(--gold-dark), var(--gold));
  color: #000;
  text-shadow: none;
}

.modal-content.theme-boost {
  border: 2px solid var(--purple);
  box-shadow: 0 0 100px rgba(168, 85, 247, 0.15);
}

.modal-content.theme-boost .modal-left {
  background: radial-gradient(circle at center, rgba(30, 10, 50, 1), #000);
  border-bottom: 2px solid var(--purple);
}

.modal-content.theme-boost .section-title {
  color: var(--purple-light);
  text-shadow: 0 0 10px var(--purple);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background Effects */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(239, 68, 68, 0.05), transparent 40%);
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--carbon-texture);
  background-size: 10px 10px;
  pointer-events: none;
  z-index: -2;
  opacity: 0.5;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.site-header {
  position: fixed;
  top: 20px;
  left: 30px;
  right: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  pointer-events: none;
}

.logo,
.hamburger {
  pointer-events: auto;
}

.logo {
  text-decoration: none;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 4px;
  display: flex;
  gap: 5px;
}

.logo-text {
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  font-style: italic;
}

.logo-accent {
  background: linear-gradient(90deg, var(--color-speed), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--color-speed);
  text-shadow: 0 0 15px var(--color-speed);
  font-style: italic;
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hamburger span {
  width: 35px;
  height: 3px;
  background: #fff;
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  transform-origin: right;
}

.hamburger:hover span {
  background: var(--color-speed);
  box-shadow: 0 0 15px var(--color-speed);
  transform: scaleX(1.1);
}

/* =========================================
   MAIN CONTAINER
   ========================================= */
.cars-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 120px 30px 60px;
}

.page-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.page-title {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -2px;
  margin-bottom: 10px;
  font-style: italic;
  background: linear-gradient(180deg, #fff, #525252);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.3));
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 4px;
}

/* =========================================
   NEON TITLE EFFECT - INTERACTIVE
   ========================================= */
.neon-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.neon-word {
  position: relative;
  cursor: default;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 0 10px;
  /* Default: White text, always visible */
  color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: unset;
  background-clip: unset;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* "Premium" word - Blue color like LIFE in header */
.neon-word:last-child {
  color: var(--color-speed) !important;
  text-shadow:
    0 0 10px var(--color-speed),
    0 0 20px rgba(59, 130, 246, 0.5),
    0 0 40px rgba(59, 130, 246, 0.3);
}

/* "Concesionario" word - White by default, blue on hover */
.neon-word:first-child {
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.neon-word:first-child:hover {
  color: var(--color-speed) !important;
  text-shadow:
    0 0 5px var(--color-speed),
    0 0 10px var(--color-speed),
    0 0 20px var(--color-speed),
    0 0 40px #0099ff,
    0 0 80px #0066ff,
    0 0 120px #0033ff;
  transform: scale(1.05) translateY(-3px);
  animation: neonPulse 1.5s ease-in-out infinite;
}

/* Neon pulse animation */
@keyframes neonPulse {

  0%,
  100% {
    text-shadow:
      0 0 5px var(--color-speed),
      0 0 10px var(--color-speed),
      0 0 20px var(--color-speed),
      0 0 40px #0099ff,
      0 0 80px #0066ff;
    filter: brightness(1);
  }

  50% {
    text-shadow:
      0 0 10px var(--color-speed),
      0 0 20px var(--color-speed),
      0 0 40px var(--color-speed),
      0 0 60px #0099ff,
      0 0 100px #0066ff,
      0 0 150px #0033ff;
    filter: brightness(1.2);
  }
}

/* Electric flicker effect on hover */
.neon-word:first-child:hover::after {
  content: '';
  position: absolute;
  inset: -10px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  border-radius: 10px;
  animation: electricFlicker 0.3s ease-out;
  pointer-events: none;
}

@keyframes electricFlicker {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  20% {
    opacity: 1;
    transform: scale(1.1);
  }

  40% {
    opacity: 0.6;
    transform: scale(1);
  }

  60% {
    opacity: 1;
    transform: scale(1.05);
  }

  80% {
    opacity: 0.8;
    transform: scale(1);
  }

  100% {
    opacity: 0.5;
    transform: scale(1);
  }
}

/* Underline neon bar on hover */
.neon-word:first-child:hover::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 10px;
  right: 10px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-speed), #0099ff, var(--color-speed), transparent);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--color-speed), 0 0 20px #0099ff;
  animation: neonLineGrow 0.3s ease-out forwards;
}

@keyframes neonLineGrow {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }

  100% {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* Responsive neon title */
@media (max-width: 768px) {
  .neon-title {
    gap: 8px;
  }

  .neon-word {
    padding: 0 5px;
  }

  .neon-word:first-child:hover {
    transform: scale(1.02) translateY(-2px);
    text-shadow:
      0 0 5px var(--color-speed),
      0 0 10px var(--color-speed),
      0 0 20px #0099ff;
  }

}

/* Stats */
.header-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 40px;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.2);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  display: block;
  font-style: italic;
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: var(--color-speed);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

/* =========================================
   FILTERS
   ========================================= */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
  padding: 20px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent);
  border-left: 4px solid var(--color-speed);
}

.search-box {
  flex: 1;
  min-width: 300px;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
  padding: 12px 20px;
  transform: skewX(-10deg);
  /* Racing style */
}

.search-box:focus-within {
  border-color: var(--color-speed);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.search-icon {
  transform: skewX(10deg);
  color: var(--text-muted);
  margin-right: 15px;
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 600;
  transform: skewX(10deg);
}

.search-input:focus {
  outline: none;
}

.search-input::placeholder {
  color: #525252;
}

.sort-box {
  display: flex;
  align-items: center;
  gap: 15px;
}

.sort-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.sort-select {
  background: #000;
  border: 1px solid var(--glass-border);
  color: #fff;
  padding: 10px 20px;
  font-family: inherit;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  transform: skewX(-10deg);
}

/* Filter Controls Container */
.filters-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Category Filters (Removed button styles) */


/* Brand Filter */
.brand-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 60px;
  justify-content: center;
}

.brand-btn {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 8px 20px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.2s;
  transform: skewX(-10deg);
}

.brand-btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.brand-btn.active {
  background: var(--color-speed);
  border-color: var(--color-speed);
  color: #fff;
  box-shadow: 0 0 20px var(--color-speed);
}

/* =========================================
   CARS GRID
   ========================================= */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 100px;
  color: var(--text-muted);
}

.no-results-icon {
  font-size: 50px;
  display: block;
  margin-bottom: 20px;
  opacity: 0.3;
}

/* =========================================
   CAR CARD
   ========================================= */
.car-card {
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.8), rgba(10, 10, 10, 1));
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  /* Sharper corners for cars */
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  transform: skewX(-2deg);
  /* Subtle speed stance */
}

.car-card:hover {
  transform: translateY(-10px) skewX(-2deg) scale(1.02);
  border-color: var(--color-speed);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  z-index: 10;
}

/* Spotlight Effect */
.car-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  mix-blend-mode: screen;
}

.car-card:hover::after {
  opacity: 1;
}

.car-image-wrapper {
  height: 220px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
  background: #151515;
}

.car-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* or contain, depending on assets */
  object-position: center;
  transition: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  filter: grayscale(0.6) contrast(1.1);
  transform: skewX(2deg);
  /* Counter-skew image */
}

.car-card:hover .car-image {
  transform: skewX(2deg) scale(1.1);
  filter: grayscale(0) contrast(1.2);
}

.car-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #000;
  color: #fff;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  border: 1px solid var(--glass-border);
  transform: skewX(2deg);
  /* Counter skew */
  z-index: 2;
}

.car-content {
  padding: 20px;
  position: relative;
  transform: skewX(2deg);
  /* Counter skew for text */
}

.car-brand-model {
  margin-bottom: 15px;
}

.car-name {
  font-size: 12px;
  color: var(--color-speed);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
  display: block;
}

.car-model {
  font-size: 18px;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  font-style: italic;
  display: block;
}

.car-price {
  font-size: 24px;
  color: #fff;
  font-weight: 300;
  letter-spacing: -1px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 2px;
}

.car-price::before {
  content: '$';
  font-size: 14px;
  margin-top: 5px;
  color: var(--text-muted);
}

.car-quick-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 15px;
}

.car-quick-stats span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 8px;
  border-radius: 4px;
}

.car-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #fff;
  padding: 12px;
  font-family: inherit;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: 0.3s;
  border-left: 2px solid var(--color-speed);
}

.car-btn:hover {
  background: var(--color-speed);
  padding-left: 20px;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

/* =========================================
   DESIGN TIERS - ULTRA PREMIUM EDITION
   ========================================= */

/* --- STANDARD CARD (Clean Blue Accent) --- */
.car-card.standard {
  background: linear-gradient(180deg, rgba(15, 20, 25, 0.95), rgba(5, 8, 12, 1));
  border: 1px solid rgba(59, 130, 246, 0.2);
  position: relative;
}

.car-card.standard::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.car-card.standard:hover {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(59, 130, 246, 0.15),
    inset 0 1px 0 rgba(59, 130, 246, 0.1);
}

.car-card.standard .car-image-wrapper {
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.car-card.standard:hover .car-image-wrapper {
  border-bottom-color: rgba(59, 130, 246, 0.4);
}

/* --- VIP CARD (Golden Luxury) --- */
.car-card.vip {
  background: linear-gradient(180deg, rgba(25, 20, 10, 0.95), rgba(10, 8, 5, 1));
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

/* Animated golden border */
.car-card.vip::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  padding: 2px;
  background: linear-gradient(135deg,
      var(--gold-dark) 0%,
      var(--gold) 25%,
      var(--gold-light) 50%,
      var(--gold) 75%,
      var(--gold-dark) 100%);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: vipBorderShine 4s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes vipBorderShine {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Inner gold glow */
.car-card.vip::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: radial-gradient(ellipse at top, rgba(255, 215, 0, 0.1) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.car-card.vip:hover {
  transform: translateY(-12px) skewX(-2deg) scale(1.03);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.9),
    0 0 50px rgba(255, 215, 0, 0.25),
    0 0 100px rgba(255, 215, 0, 0.1);
}

.car-card.vip .car-image-wrapper {
  border-bottom: 2px solid var(--gold);
  position: relative;
}

.car-card.vip .car-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(255, 215, 0, 0.15), transparent);
  pointer-events: none;
}

.car-card.vip .car-image {
  filter: grayscale(0.3) contrast(1.15) saturate(1.1);
}

.car-card.vip:hover .car-image {
  filter: grayscale(0) contrast(1.2) saturate(1.2);
}

.car-card.vip .car-name {
  color: var(--gold);
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.car-card.vip .car-model {
  color: var(--gold-light);
}

.car-card.vip .car-price {
  color: var(--gold);
}

.car-card.vip .car-btn {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), transparent);
  border-left: 3px solid var(--gold);
  color: var(--gold-light);
}

.car-card.vip .car-btn:hover {
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  color: #000;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
  text-shadow: none;
}

/* --- BOOST CARD (Purple Neon Energy) --- */
.car-card.boost {
  background: linear-gradient(180deg, rgba(20, 10, 30, 0.95), rgba(8, 5, 15, 1));
  border: 2px solid rgba(168, 85, 247, 0.5);
  position: relative;
  overflow: hidden;
}

/* Animated purple glow */
.car-card.boost::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg,
      transparent 30%,
      rgba(168, 85, 247, 0.4) 50%,
      transparent 70%);
  background-size: 200% 200%;
  animation: boostGlowSweep 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes boostGlowSweep {
  0% {
    background-position: -100% -100%;
  }

  50% {
    background-position: 200% 200%;
  }

  100% {
    background-position: -100% -100%;
  }
}

/* Nitro particles effect */
.car-card.boost::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background:
    radial-gradient(circle at 20% 80%, rgba(168, 85, 247, 0.3), transparent 30%),
    radial-gradient(circle at 80% 90%, rgba(216, 180, 254, 0.2), transparent 25%),
    radial-gradient(circle at 50% 70%, rgba(168, 85, 247, 0.15), transparent 40%);
  pointer-events: none;
  animation: nitroParticles 2s ease-in-out infinite alternate;
}

@keyframes nitroParticles {
  0% {
    opacity: 0.5;
    transform: translateY(0);
  }

  100% {
    opacity: 1;
    transform: translateY(-5px);
  }
}

.car-card.boost:hover {
  transform: translateY(-12px) skewX(-2deg) scale(1.03);
  border-color: var(--purple-light);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.9),
    0 0 50px rgba(168, 85, 247, 0.4),
    0 0 100px rgba(168, 85, 247, 0.2);
}

.car-card.boost .car-image-wrapper {
  border-bottom: 2px solid var(--purple);
  position: relative;
}

.car-card.boost .car-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(168, 85, 247, 0.2), transparent);
  pointer-events: none;
}

.car-card.boost .car-image {
  filter: grayscale(0.2) contrast(1.15) hue-rotate(-10deg);
}

.car-card.boost:hover .car-image {
  filter: grayscale(0) contrast(1.25) saturate(1.3);
}

.car-card.boost .car-name {
  color: var(--purple-light);
  text-shadow: 0 0 15px var(--purple);
}

.car-card.boost .car-model {
  color: #e9d5ff;
}

.car-card.boost .car-btn {
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.15), transparent);
  border-left: 3px solid var(--purple);
  color: var(--purple-light);
}

.car-card.boost .car-btn:hover {
  background: linear-gradient(90deg, var(--purple), var(--purple-dark));
  color: #fff;
  box-shadow: 0 0 30px var(--purple);
}

/* --- MAFIA CARD (Dark & Dangerous) --- */
.car-card.mafia {
  background: linear-gradient(180deg, rgba(30, 5, 5, 0.95), rgba(10, 0, 0, 1));
  border: 2px solid var(--mafia-red);
  position: relative;
  overflow: hidden;
}

/* Blood drip effect */
.car-card.mafia::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg,
      transparent,
      var(--mafia-red) 20%,
      #ff0000 50%,
      var(--mafia-red) 80%,
      transparent);
  box-shadow: 0 0 20px var(--mafia-red);
  z-index: 2;
}

/* Dark vignette */
.car-card.mafia::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
}

.car-card.mafia:hover {
  transform: translateY(-12px) skewX(-2deg) scale(1.03);
  border-color: #ff1a1a;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.95),
    0 0 60px rgba(138, 11, 11, 0.5),
    0 0 120px rgba(138, 11, 11, 0.25);
}

.car-card.mafia .car-image-wrapper {
  border-bottom: 2px solid var(--mafia-red);
}

.car-card.mafia .car-image {
  filter: grayscale(0.5) contrast(1.2) sepia(0.2);
}

.car-card.mafia:hover .car-image {
  filter: grayscale(0.2) contrast(1.3) saturate(0.9);
}

.car-card.mafia .car-name {
  color: #ff4d4d;
  text-shadow: 0 0 15px var(--mafia-red);
}

.car-card.mafia .car-model {
  color: #ffcccc;
}

.car-card.mafia .car-btn {
  background: linear-gradient(90deg, rgba(138, 11, 11, 0.2), transparent);
  border-left: 3px solid var(--mafia-red);
  color: #ffcccc;
}

.car-card.mafia .car-btn:hover {
  background: linear-gradient(90deg, var(--mafia-red), var(--mafia-dark));
  color: #fff;
  box-shadow: 0 0 30px var(--mafia-red);
}

/* --- MAFIA AZUL (Electric Blue) --- */
.car-card.mafia-azul {
  --mafia-azul-primary: #1a3a5c;
  --mafia-azul-accent: #00bcd4;
  --mafia-azul-glow: #00e5ff;

  background: linear-gradient(180deg, rgba(10, 30, 50, 0.95), rgba(5, 15, 25, 1));
  border: 2px solid var(--mafia-azul-accent);
  position: relative;
  overflow: hidden;
}

.car-card.mafia-azul::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--mafia-azul-accent), var(--mafia-azul-glow), var(--mafia-azul-accent), transparent);
  box-shadow: 0 0 15px var(--mafia-azul-accent);
}

.car-card.mafia-azul:hover {
  transform: translateY(-12px) skewX(-2deg) scale(1.03);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.9),
    0 0 50px rgba(0, 188, 212, 0.4),
    0 0 100px rgba(0, 188, 212, 0.15);
}

.car-card.mafia-azul .car-image-wrapper {
  border-bottom: 2px solid var(--mafia-azul-accent);
}

.car-card.mafia-azul .car-name {
  color: var(--mafia-azul-glow);
  text-shadow: 0 0 15px var(--mafia-azul-accent);
}

.car-card.mafia-azul .car-model {
  color: #b3e5fc;
}

.car-card.mafia-azul .car-btn {
  background: linear-gradient(90deg, rgba(0, 188, 212, 0.15), transparent);
  border-left: 3px solid var(--mafia-azul-accent);
  color: #b3e5fc;
}

.car-card.mafia-azul .car-btn:hover {
  background: linear-gradient(90deg, var(--mafia-azul-accent), var(--mafia-azul-primary));
  color: #fff;
  box-shadow: 0 0 30px var(--mafia-azul-accent);
}

/* --- MAFIA ROJA (Blood Red) --- */
.car-card.mafia-roja {
  --mafia-roja-primary: #5c1a1a;
  --mafia-roja-accent: #ff4444;
  --mafia-roja-glow: #ff6666;

  background: linear-gradient(180deg, rgba(50, 10, 10, 0.95), rgba(25, 5, 5, 1));
  border: 2px solid var(--mafia-roja-accent);
  position: relative;
  overflow: hidden;
}

/* Blood drip effect */
.car-card.mafia-roja::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 8px;
  background: linear-gradient(180deg, var(--mafia-roja-accent), transparent);
  clip-path: polygon(0 0, 5% 100%, 15% 50%, 25% 100%, 35% 70%, 45% 100%, 55% 60%, 65% 100%, 75% 80%, 85% 100%, 95% 50%, 100% 0);
  animation: bloodDrip 3s ease-in-out infinite;
}

@keyframes bloodDrip {

  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

.car-card.mafia-roja:hover {
  transform: translateY(-12px) skewX(-2deg) scale(1.03);
  border-color: var(--mafia-roja-glow);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.95),
    0 0 60px rgba(255, 68, 68, 0.5),
    0 0 120px rgba(255, 68, 68, 0.2);
}

.car-card.mafia-roja .car-image-wrapper {
  border-bottom: 2px solid var(--mafia-roja-accent);
}

.car-card.mafia-roja .car-name {
  color: var(--mafia-roja-glow);
  text-shadow: 0 0 15px var(--mafia-roja-accent);
}

.car-card.mafia-roja .car-model {
  color: #ffcccc;
}

.car-card.mafia-roja .car-btn {
  background: linear-gradient(90deg, rgba(255, 68, 68, 0.15), transparent);
  border-left: 3px solid var(--mafia-roja-accent);
  color: #ffcccc;
}

.car-card.mafia-roja .car-btn:hover {
  background: linear-gradient(90deg, var(--mafia-roja-accent), var(--mafia-roja-primary));
  color: #fff;
  box-shadow: 0 0 30px var(--mafia-roja-accent);
}

/* --- MAFIA SICILIANA (Black & Gold Elegance) --- */
.car-card.mafia-siciliana {
  --siciliana-gold: #d4a574;
  --siciliana-dark: #0a0a0a;

  background: linear-gradient(180deg, rgba(15, 12, 10, 0.98), rgba(5, 5, 5, 1));
  border: 2px solid var(--siciliana-gold);
  position: relative;
  overflow: hidden;
}

/* Italian stripe effect */
.car-card.mafia-siciliana::before {
  content: '';
  position: absolute;
  top: 0;
  right: 20px;
  width: 30px;
  height: 100%;
  background: repeating-linear-gradient(180deg,
      var(--siciliana-gold) 0px,
      var(--siciliana-gold) 2px,
      transparent 2px,
      transparent 8px);
  opacity: 0.3;
}

.car-card.mafia-siciliana::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--siciliana-gold), transparent);
}

.car-card.mafia-siciliana:hover {
  transform: translateY(-12px) skewX(-2deg) scale(1.03);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.95),
    0 0 40px rgba(212, 165, 116, 0.3),
    0 0 80px rgba(212, 165, 116, 0.1);
}

.car-card.mafia-siciliana .car-image-wrapper {
  border-bottom: 2px solid var(--siciliana-gold);
}

.car-card.mafia-siciliana .car-image {
  filter: grayscale(0.4) contrast(1.15) sepia(0.15);
}

.car-card.mafia-siciliana:hover .car-image {
  filter: grayscale(0.1) contrast(1.2) sepia(0.1);
}

.car-card.mafia-siciliana .car-name {
  color: var(--siciliana-gold);
  text-shadow: 0 0 10px rgba(212, 165, 116, 0.5);
  font-style: italic;
}

.car-card.mafia-siciliana .car-model {
  color: #e8d5c4;
}

.car-card.mafia-siciliana .car-btn {
  background: linear-gradient(90deg, rgba(212, 165, 116, 0.1), transparent);
  border-left: 3px solid var(--siciliana-gold);
  color: #e8d5c4;
}

.car-card.mafia-siciliana .car-btn:hover {
  background: linear-gradient(90deg, var(--siciliana-gold), #8b6914);
  color: #000;
  box-shadow: 0 0 25px rgba(212, 165, 116, 0.5);
}

/* --- VIP METRO LIFE (Ultra Premium Platinum) --- */
.car-card.vip-metro-life {
  --vip-metro-platinum: #e5e4e2;
  --vip-metro-gold: #ffd700;
  --vip-metro-diamond: #b9f2ff;

  background: linear-gradient(180deg, rgba(30, 30, 35, 0.98), rgba(10, 10, 15, 1));
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

/* Animated diamond border */
.car-card.vip-metro-life::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  padding: 3px;
  background: linear-gradient(135deg,
      var(--vip-metro-platinum) 0%,
      var(--vip-metro-gold) 25%,
      var(--vip-metro-diamond) 50%,
      var(--vip-metro-gold) 75%,
      var(--vip-metro-platinum) 100%);
  background-size: 400% 400%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: vipMetroBorderShine 5s linear infinite;
  z-index: 1;
}

@keyframes vipMetroBorderShine {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Diamond sparkle effect */
.car-card.vip-metro-life::after {
  content: '✦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 80px;
  color: rgba(185, 242, 255, 0.1);
  pointer-events: none;
  animation: diamondSparkle 3s ease-in-out infinite;
}

@keyframes diamondSparkle {

  0%,
  100% {
    opacity: 0.05;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.15;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.car-card.vip-metro-life:hover {
  transform: translateY(-15px) skewX(-2deg) scale(1.04);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.95),
    0 0 60px rgba(255, 215, 0, 0.3),
    0 0 120px rgba(185, 242, 255, 0.2);
}

.car-card.vip-metro-life .car-image-wrapper {
  border-bottom: 3px solid var(--vip-metro-gold);
  position: relative;
}

.car-card.vip-metro-life .car-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(255, 215, 0, 0.1), transparent);
}

.car-card.vip-metro-life .car-image {
  filter: contrast(1.1) saturate(1.1);
}

.car-card.vip-metro-life:hover .car-image {
  filter: contrast(1.2) saturate(1.2) brightness(1.05);
}

.car-card.vip-metro-life .car-name {
  background: linear-gradient(90deg, var(--vip-metro-gold), var(--vip-metro-platinum), var(--vip-metro-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  font-weight: 900;
}

.car-card.vip-metro-life .car-model {
  color: var(--vip-metro-platinum);
}

.car-card.vip-metro-life .car-price {
  color: var(--vip-metro-gold);
  font-weight: 700;
}

.car-card.vip-metro-life .car-btn {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.15), rgba(185, 242, 255, 0.1));
  border-left: 3px solid var(--vip-metro-gold);
  color: var(--vip-metro-platinum);
}

.car-card.vip-metro-life .car-btn:hover {
  background: linear-gradient(90deg, var(--vip-metro-gold), var(--vip-metro-platinum));
  color: #000;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
}

/* =========================================
   SPECIAL TAGS - PREMIUM EDITION
   ========================================= */
.special-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  border-radius: 3px;
  z-index: 5;
  transform: skewX(-5deg);
  letter-spacing: 1.5px;
  overflow: hidden;
}

/* Shine animation for tags */
.special-tag::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: tagShine 3s infinite;
}

@keyframes tagShine {
  0% {
    left: -100%;
  }

  50%,
  100% {
    left: 100%;
  }
}

.vip-tag {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  font-weight: 900;
  box-shadow:
    0 2px 10px rgba(255, 215, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid var(--gold-light);
}

.boost-tag {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff;
  box-shadow:
    0 2px 10px rgba(168, 85, 247, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid var(--purple-light);
}

.mafia-tag {
  background: linear-gradient(135deg, #cc0000, var(--mafia-dark));
  color: #fff;
  box-shadow:
    0 2px 10px rgba(138, 11, 11, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid #ff3333;
}

.standard-tag {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  box-shadow:
    0 2px 10px rgba(59, 130, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid #60a5fa;
}

.mafia-azul-tag {
  background: linear-gradient(135deg, #00bcd4, #006064);
  color: #fff;
  box-shadow:
    0 2px 10px rgba(0, 188, 212, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid #00e5ff;
}

.mafia-roja-tag {
  background: linear-gradient(135deg, #ff4444, #8b0000);
  color: #fff;
  box-shadow:
    0 2px 10px rgba(255, 68, 68, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 1px solid #ff6666;
}

.mafia-siciliana-tag {
  background: linear-gradient(135deg, #d4a574, #8b6914);
  color: #000;
  font-weight: 900;
  box-shadow:
    0 2px 10px rgba(212, 165, 116, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid #e8c99b;
}

.vip-metro-tag {
  background: linear-gradient(135deg, #ffd700, #e5e4e2, #b9f2ff, #ffd700);
  background-size: 300% 100%;
  color: #000;
  font-weight: 900;
  box-shadow:
    0 2px 15px rgba(255, 215, 0, 0.6),
    0 0 10px rgba(185, 242, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border: 1px solid #fff;
  animation: vipMetroTagShine 3s linear infinite;
}

@keyframes vipMetroTagShine {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 300% 50%;
  }
}

/* =========================================
   MODAL THEMES - ENHANCED
   ========================================= */
/* VIP Modal Theme */
.modal-content.theme-vip {
  border: 2px solid var(--gold);
  box-shadow:
    0 0 80px rgba(255, 215, 0, 0.2),
    inset 0 0 100px rgba(255, 215, 0, 0.03);
}

.modal-content.theme-vip .modal-left {
  background: radial-gradient(ellipse at center, rgba(40, 30, 10, 1), #000);
}

.modal-content.theme-vip .modal-right {
  background: linear-gradient(135deg, #0f0d08, #050400);
}

.modal-content.theme-vip .section-title {
  color: var(--gold);
  border-bottom-color: rgba(255, 215, 0, 0.3);
}

.modal-content.theme-vip .btn-purchase {
  background: linear-gradient(45deg, var(--gold), var(--gold-dark));
  color: #000;
  font-weight: 900;
}

.modal-content.theme-vip .btn-purchase:hover {
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
}

/* Boost Modal Theme */
.modal-content.theme-boost {
  border: 2px solid var(--purple);
  box-shadow:
    0 0 80px rgba(168, 85, 247, 0.2),
    inset 0 0 100px rgba(168, 85, 247, 0.03);
}

.modal-content.theme-boost .modal-left {
  background: radial-gradient(ellipse at center, rgba(30, 15, 50, 1), #000);
}

.modal-content.theme-boost .modal-right {
  background: linear-gradient(135deg, #0d0518, #050008);
}

.modal-content.theme-boost .section-title {
  color: var(--purple-light);
  border-bottom-color: rgba(168, 85, 247, 0.3);
}

.modal-content.theme-boost .btn-purchase {
  background: linear-gradient(45deg, var(--purple), var(--purple-dark));
}

.modal-content.theme-boost .btn-purchase:hover {
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.5);
}

/* Mafia Modal Theme */
.modal-content.theme-mafia {
  border: 2px solid var(--mafia-red);
  box-shadow:
    0 0 80px rgba(138, 11, 11, 0.25),
    inset 0 0 100px rgba(138, 11, 11, 0.05);
}

.modal-content.theme-mafia .modal-left {
  background: radial-gradient(ellipse at center, rgba(40, 5, 5, 1), #000);
}

.modal-content.theme-mafia .modal-right {
  background: linear-gradient(135deg, #0d0505, #050000);
}

.modal-content.theme-mafia .section-title {
  color: #ff4d4d;
  border-bottom-color: rgba(138, 11, 11, 0.4);
}

.modal-content.theme-mafia .btn-purchase {
  background: linear-gradient(45deg, var(--mafia-red), var(--mafia-dark));
}

.modal-content.theme-mafia .btn-purchase:hover {
  box-shadow: 0 0 40px rgba(138, 11, 11, 0.6);
}

/* Mafia Azul Modal Theme */
.modal-content.theme-mafia-azul {
  border: 2px solid #00bcd4;
  box-shadow:
    0 0 80px rgba(0, 188, 212, 0.25),
    inset 0 0 100px rgba(0, 188, 212, 0.05);
}

.modal-content.theme-mafia-azul .modal-left {
  background: radial-gradient(ellipse at center, rgba(10, 40, 60, 1), #000);
}

.modal-content.theme-mafia-azul .modal-right {
  background: linear-gradient(135deg, #051520, #020810);
}

.modal-content.theme-mafia-azul .section-title {
  color: #00e5ff;
  border-bottom-color: rgba(0, 188, 212, 0.4);
}

.modal-content.theme-mafia-azul .btn-purchase {
  background: linear-gradient(45deg, #00bcd4, #006064);
}

.modal-content.theme-mafia-azul .btn-purchase:hover {
  box-shadow: 0 0 40px rgba(0, 188, 212, 0.6);
}

/* Mafia Roja Modal Theme */
.modal-content.theme-mafia-roja {
  border: 2px solid #ff4444;
  box-shadow:
    0 0 80px rgba(255, 68, 68, 0.25),
    inset 0 0 100px rgba(255, 68, 68, 0.05);
}

.modal-content.theme-mafia-roja .modal-left {
  background: radial-gradient(ellipse at center, rgba(60, 10, 10, 1), #000);
}

.modal-content.theme-mafia-roja .modal-right {
  background: linear-gradient(135deg, #150505, #080202);
}

.modal-content.theme-mafia-roja .section-title {
  color: #ff6666;
  border-bottom-color: rgba(255, 68, 68, 0.4);
}

.modal-content.theme-mafia-roja .btn-purchase {
  background: linear-gradient(45deg, #ff4444, #8b0000);
}

.modal-content.theme-mafia-roja .btn-purchase:hover {
  box-shadow: 0 0 40px rgba(255, 68, 68, 0.6);
}

/* Mafia Siciliana Modal Theme */
.modal-content.theme-mafia-siciliana {
  border: 2px solid #d4a574;
  box-shadow:
    0 0 80px rgba(212, 165, 116, 0.2),
    inset 0 0 100px rgba(212, 165, 116, 0.03);
}

.modal-content.theme-mafia-siciliana .modal-left {
  background: radial-gradient(ellipse at center, rgba(25, 20, 15, 1), #000);
}

.modal-content.theme-mafia-siciliana .modal-right {
  background: linear-gradient(135deg, #0d0a08, #050403);
}

.modal-content.theme-mafia-siciliana .section-title {
  color: #d4a574;
  border-bottom-color: rgba(212, 165, 116, 0.3);
}

.modal-content.theme-mafia-siciliana .btn-purchase {
  background: linear-gradient(45deg, #d4a574, #8b6914);
  color: #000;
}

.modal-content.theme-mafia-siciliana .btn-purchase:hover {
  box-shadow: 0 0 40px rgba(212, 165, 116, 0.5);
}

/* VIP Metro Life Modal Theme (Ultra Premium) */
.modal-content.theme-vip-metro-life {
  border: 3px solid transparent;
  background:
    linear-gradient(#050505, #050505) padding-box,
    linear-gradient(135deg, #ffd700, #e5e4e2, #b9f2ff, #ffd700) border-box;
  box-shadow:
    0 0 100px rgba(255, 215, 0, 0.25),
    0 0 50px rgba(185, 242, 255, 0.15),
    inset 0 0 100px rgba(255, 215, 0, 0.03);
}

.modal-content.theme-vip-metro-life .modal-left {
  background: radial-gradient(ellipse at center, rgba(40, 35, 20, 1), #000);
}

.modal-content.theme-vip-metro-life .modal-right {
  background: linear-gradient(135deg, #101010, #050505);
}

.modal-content.theme-vip-metro-life .section-title {
  background: linear-gradient(90deg, #ffd700, #e5e4e2, #ffd700);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border-bottom-color: rgba(255, 215, 0, 0.3);
}

.modal-content.theme-vip-metro-life .btn-purchase {
  background: linear-gradient(45deg, #ffd700, #e5e4e2, #b9f2ff);
  color: #000;
  font-weight: 900;
}

.modal-content.theme-vip-metro-life .btn-purchase:hover {
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.6), 0 0 30px rgba(185, 242, 255, 0.4);
}

/* =========================================
   GALERÍA DE IMÁGENES EN MODAL
   ========================================= */
.modal-gallery-section {
  margin-top: 20px;
}

.gallery-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-gallery {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.gallery-thumb {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.gallery-thumb::after {
  content: '🔍';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 16px;
}

.gallery-thumb:hover {
  border-color: var(--gold);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.gallery-thumb:hover::after {
  opacity: 1;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================
   LIGHTBOX PARA IMÁGENES AMPLIADAS
   ========================================= */
.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 3000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
}

.lightbox-close:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
  transform: rotate(90deg);
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
}

.lightbox-image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

/* Responsive Gallery */
@media (max-width: 768px) {
  .gallery-thumb {
    width: 60px;
    height: 45px;
  }

  .lightbox-close {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}

/* =========================================
   SIDE MENU (Standardized)
   ========================================= */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 190;
}

.menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

.side-menu {
  position: fixed;
  top: 0;
  right: -400px;
  width: 350px;
  height: 100%;
  background: var(--bg-panel);
  border-left: 1px solid var(--glass-border);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  z-index: 200;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.side-menu.open {
  right: 0;
}

.side-menu-header {
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
}

.side-menu-logo {
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 18px;
}

.close-menu {
  background: transparent;
  border: 1px solid var(--glass-border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.close-menu:hover {
  background: var(--color-speed);
  border-color: var(--color-speed);
  transform: rotate(90deg);
}

.close-icon::before,
.close-icon::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.close-icon::before {
  transform: rotate(45deg);
}

.close-icon::after {
  transform: rotate(-45deg);
}

.side-menu-content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

.side-title {
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  border-left: 2px solid var(--color-speed);
  padding-left: 10px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  transition: 0.3s;
}

.side-link:hover,
.side-link.active {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--color-speed);
  transform: translateX(5px);
}

.side-link.active {
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.link-icon {
  font-size: 20px;
}

.link-text {
  font-weight: 600;
  font-size: 14px;
}

.link-arrow {
  margin-left: auto;
  opacity: 0;
  transition: 0.3s;
  color: var(--color-speed);
}

.side-link:hover .link-arrow,
.side-link.active .link-arrow {
  opacity: 1;
  transform: translateX(0);
}

.side-menu-footer {
  padding: 20px;
  text-align: center;
  border-top: 1px solid var(--glass-border);
}

.footer-text {
  color: var(--text-muted);
  font-size: 11px;
}

/* =========================================
   MODAL
   ========================================= */
.car-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.8);
}

.car-modal.active {
  display: flex;
  animation: fadeIn 0.2s;
}

.modal-content {
  background: #050505;
  border: 1px solid var(--glass-border);
  width: 95%;
  /* Wider for car modal */
  max-width: 1200px;
  height: 85vh;
  position: relative;
  z-index: 2;
  display: flex;
  overflow: hidden;
  box-shadow: 0 50px 100px -20px black;
  animation: modalSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlide {
  from {
    transform: translateY(50px) scale(0.95);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  z-index: 10;
  opacity: 0.7;
  transition: 0.3s;
}

.modal-close:hover {
  opacity: 1;
  color: var(--color-speed);
}

.modal-body {
  display: flex;
  width: 100%;
  height: 100%;
}

.modal-left {
  flex: 0 0 60%;
  /* More space for image */
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image-wrapper {
  width: 100%;
  height: 100%;
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-right {
  flex: 1;
  padding: 50px;
  overflow-y: auto;
  border-left: 1px solid var(--glass-border);
  background: linear-gradient(135deg, rgba(20, 20, 20, 1), rgba(5, 5, 5, 1));
}

.modal-title {
  font-size: 36px;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  font-style: italic;
  margin-bottom: 30px;
}

.modal-section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--color-speed);
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-weight: 800;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.spec-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 15px;
  border-left: 2px solid var(--glass-border);
}

.spec-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 5px;
}

.spec-value {
  font-size: 16px;
  color: #fff;
  font-weight: 700;
}

.features-list {
  list-style: none;
  padding: 0;
}

.features-list li {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: #ccc;
  display: flex;
  justify-content: space-between;
}

.features-list li::after {
  content: '✓';
  color: var(--color-speed);
}

.btn-purchase {
  width: 100%;
  padding: 20px;
  background: var(--color-power);
  border: none;
  color: #fff;
  font-weight: 900;
  letter-spacing: 2px;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  text-transform: uppercase;
  font-style: italic;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: 0.3s;
}

.btn-purchase:hover {
  background: #ff2222;
  transform: translateX(5px);
  box-shadow: -5px 5px 0 rgba(255, 255, 255, 0.1);
}


.modal-watermark {
  text-align: center;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 15px;
  opacity: 0.5;
  letter-spacing: 1px;
  font-style: italic;
}

/* Responsive */
/* Responsive Modal - "Bootstrap-like" Stacking */
@media (max-width: 900px) {
  .modal-content {
    width: 90% !important;
    height: 85vh !important;
    max-height: 800px !important;
    border-radius: 20px;
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Key Fix: The children are inside .modal-body, not directly in .modal-content */
  .modal-body {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Contain scrolling to right side */
  }

  /* Image Section (Top) */
  .modal-left {
    width: 100% !important;
    height: 35% !important;
    /* Fixed relative height */
    min-height: 220px;
    flex: none !important;
    border-bottom: 2px solid var(--color-speed);
    position: relative;
    padding: 0 !important;
    background: #000;
  }

  .modal-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #2a2a2a 0%, #000 100%);
  }

  .modal-image {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
  }

  /* Details Section (Bottom) */
  .modal-right {
    width: 100% !important;
    flex: 1 1 auto !important;
    /* Grow to fill remaining space */
    overflow-y: auto !important;
    /* Internal Scroll */
    padding: 25px !important;
    background: #111;
    display: block !important;
  }

  /* Adjust Grid for Mobile */
  .specs-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .spec-item {
    margin-bottom: 0;
    padding: 10px;
  }

  .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 200;
    /* High z-index */
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
  }
}

@media (max-width: 480px) {
  .specs-grid {
    grid-template-columns: 1fr 1fr;
    /* Keep 2 cols if space allows, or 1 if very tight */
  }

  .modal-left {
    flex: 0 0 200px;
    /* Smaller image area for phones */
  }
}

@media (max-width: 600px) {
  .cars-grid {
    grid-template-columns: 1fr;
  }

  .specs-grid {
    grid-template-columns: 1fr;
    /* Single column stats for very small phones */
  }

  .filter-bar {
    padding: 10px;
    flex-direction: column;
    gap: 10px;
  }

  .page-title {
    font-size: 32px;
  }

  .modal-left {
    height: 200px !important;
    /* Smaller image area on small phones */
  }
}

/* =========================================
   ANIMACIONES DE APERTURA - PREMIUM
   ========================================= */

/* Base overlay - oculto por defecto */
.animation-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.animation-overlay.active {
  display: flex;
  opacity: 1;
}

.animation-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Partículas de fondo */
.animation-particles {
  position: absolute;
  inset: -100px;
  background:
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.1), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.08), transparent 35%);
  pointer-events: none;
  animation: particlesFloat 4s ease-in-out infinite;
}

.animation-particles.sport {
  background:
    radial-gradient(circle at 20% 30%, rgba(239, 68, 68, 0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(239, 68, 68, 0.1), transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(255, 100, 50, 0.05), transparent 50%);
}

@keyframes particlesFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-10px) scale(1.02);
  }
}

/* =========================================
   ANIMACIÓN DE LLAVE
   ========================================= */
.key-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* Cerradura */
.keyhole {
  position: relative;
  width: 80px;
  height: 120px;
}

.keyhole-outer {
  position: absolute;
  width: 80px;
  height: 80px;
  background: linear-gradient(180deg, #2a2a2a, #1a1a1a);
  border-radius: 50%;
  border: 4px solid #444;
  box-shadow:
    inset 0 5px 15px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(0, 0, 0, 0.5);
}

.keyhole-inner {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: #000;
  border-radius: 50%;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 1);
}

.keyhole-slot {
  position: absolute;
  top: 45px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 40px;
  background: #000;
  border-radius: 0 0 6px 6px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 1);
}

/* Llave SVG */
.key-svg {
  width: 250px;
  height: 100px;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
  transform-origin: right center;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.key-animation.turning .key-svg {
  animation: keyTurn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes keyTurn {
  0% {
    transform: translateX(0) rotate(0deg);
  }

  30% {
    transform: translateX(50px) rotate(0deg);
  }

  50% {
    transform: translateX(50px) rotate(-45deg);
  }

  70% {
    transform: translateX(50px) rotate(-90deg);
  }

  100% {
    transform: translateX(50px) rotate(-90deg);
  }
}

/* Texto de la llave */
.key-text {
  font-size: 18px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0;
  transition: opacity 0.3s;
}

.key-animation.turning .key-text {
  opacity: 1;
  animation: textPulse 0.5s ease-in-out infinite;
}

@keyframes textPulse {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

/* Chispa de encendido */
.ignition-spark {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.8), transparent 60%);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}

.key-animation.ignited .ignition-spark {
  animation: sparkBurst 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sparkBurst {
  0% {
    opacity: 0;
    transform: scale(0);
  }

  50% {
    opacity: 1;
    transform: scale(1.5);
  }

  100% {
    opacity: 0;
    transform: scale(2);
  }
}

/* =========================================
   ANIMACIÓN BOTÓN START (SUPERCAR)
   ========================================= */
.dashboard-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 50px;
  background: linear-gradient(180deg, #1a1a1a, #0a0a0a);
  border: 2px solid #333;
  border-radius: 20px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Indicadores LED */
.led-indicators {
  display: flex;
  gap: 20px;
}

.led {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #333;
  border: 2px solid #222;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: all 0.3s;
}

.led.active {
  background: #00ff00;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    0 0 10px #00ff00,
    0 0 20px #00ff00;
}

.led.warning {
  background: #ffaa00;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    0 0 10px #ffaa00;
}

/* Contenedor del botón Start */
.start-button-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.start-button-ring {
  position: absolute;
  width: 160px;
  height: 160px;
  border: 4px solid #444;
  border-radius: 50%;
  background: linear-gradient(180deg, #2a2a2a, #1a1a1a);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Botón principal */
.start-button {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(180deg, #cc0000, #990000);
  border: 4px solid #880000;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.5),
    inset 0 -5px 20px rgba(0, 0, 0, 0.4),
    inset 0 5px 15px rgba(255, 100, 100, 0.3);
  transition: all 0.15s;
  z-index: 2;
}

.start-button:hover {
  background: linear-gradient(180deg, #dd1111, #aa0000);
  transform: scale(1.02);
}

.start-button:active {
  transform: scale(0.98);
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.5),
    inset 0 -3px 15px rgba(0, 0, 0, 0.5),
    inset 0 3px 10px rgba(255, 100, 100, 0.2);
}

.start-button-text {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.start-button-subtext {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 3px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Efecto glow cuando está activo */
.start-button-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.start-animation.pressed .start-button-glow {
  opacity: 1;
  animation: buttonGlow 0.5s ease-out;
}

@keyframes buttonGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }

  100% {
    box-shadow: 0 0 50px 30px rgba(239, 68, 68, 0);
  }
}

/* Luz de estado */
.status-light {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #222;
  border: 3px solid #333;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
  transition: all 0.3s;
}

.status-light-inner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #440000;
  transition: all 0.3s;
}

/* Estado: Listo (rojo) */
.status-light.ready .status-light-inner {
  background: #cc0000;
  box-shadow: 0 0 10px #cc0000;
}

/* Estado: Encendido (verde) */
.status-light.running .status-light-inner {
  background: #00ff00;
  box-shadow: 0 0 15px #00ff00, 0 0 30px #00ff00;
  animation: statusPulse 1s ease-in-out infinite;
}

@keyframes statusPulse {

  0%,
  100% {
    box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
  }

  50% {
    box-shadow: 0 0 20px #00ff00, 0 0 40px #00ff00;
  }
}

/* Texto de estado */
.engine-status {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #666;
  text-transform: uppercase;
  transition: all 0.3s;
}

.engine-status.running {
  color: #00ff00;
  text-shadow: 0 0 10px #00ff00;
}

/* Efecto de vibración del motor */
.engine-rumble {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.start-animation.running .dashboard-panel {
  animation: engineVibration 0.1s linear infinite;
}

@keyframes engineVibration {

  0%,
  100% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(-1px, 1px);
  }

  50% {
    transform: translate(1px, -1px);
  }

  75% {
    transform: translate(-1px, -1px);
  }
}

/* =========================================
   RESPONSIVE PARA ANIMACIONES
   ========================================= */
@media (max-width: 600px) {
  .key-svg {
    width: 180px;
    height: 70px;
  }

  .key-container {
    gap: 25px;
    transform: scale(0.85);
  }

  .dashboard-panel {
    padding: 30px;
    transform: scale(0.8);
  }

  .start-button {
    width: 100px;
    height: 100px;
  }

  .start-button-ring {
    width: 130px;
    height: 130px;
  }

  .start-button-text {
    font-size: 11px;
  }

  .start-button-subtext {
    font-size: 16px;
  }
}

/* =========================================
   SMOOTH TRANSITION OVERLAY (Replacing Key Animation)
   ========================================= */
.smooth-transition-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: background 0.4s ease;
}

.smooth-transition-overlay.active {
  background: rgba(0, 0, 0, 0.7);
  pointer-events: auto;
}

.smooth-transition-overlay.closing {
  background: rgba(0, 0, 0, 0);
}

.smooth-transition-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.smooth-circle {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-speed), #00f5ff);
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
  box-shadow:
    0 0 30px var(--color-speed),
    0 0 60px rgba(59, 130, 246, 0.5);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.smooth-transition-overlay.active .smooth-circle {
  transform: scale(1);
  opacity: 1;
}

.smooth-transition-overlay.closing .smooth-circle {
  transform: scale(2.5);
  opacity: 0;
}

.smooth-pulse {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 3px solid var(--color-speed);
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
}

.smooth-transition-overlay.active .smooth-pulse {
  animation: smoothPulseExpand 0.6s ease-out forwards;
}

@keyframes smoothPulseExpand {
  0% {
    transform: scale(0);
    opacity: 1;
  }

  100% {
    transform: scale(3);
    opacity: 0;
  }
}