@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;800;900&display=swap');

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

html {
  scroll-behavior: smooth;
}

/* ==================================================================
   AUTOCOMPLETE OVERRIDE — Chrome / Edge / WebKit
   Mantiene fondo, texto y bordes consistentes aunque el navegador
   autocomplete campos.
   ================================================================== */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text) !important;
  -webkit-box-shadow: 0 0 0px 1000px var(--bg-alt) inset !important;
  box-shadow: 0 0 0px 1000px var(--bg-alt) inset !important;
  transition: background-color 999999s ease-in-out 0s;
  caret-color: var(--text);
}

input:-webkit-autofill:focus,
textarea:-webkit-autofill:focus,
select:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px var(--surface) inset !important;
  box-shadow: 0 0 0px 1000px var(--surface) inset !important;
  -webkit-text-fill-color: var(--text) !important;
}

:root {
  /* Color Palette — Luxury Automotive Theme */
  --primary: #050b1a;        /* Deep midnight navy */
  --primary-light: #0d1a3a;  /* Medium midnight navy */
  --primary-glow: #3b82f6;   /* Electric blue glow */
  --accent: #c8102e;         /* Warm crimson red */
  --accent-hover: #a30d24;   /* Darker crimson */
  --gold: #d4a853;           /* Champagne gold */
  --gold-light: #e9c47c;     /* Light gold */
  --red: #c8102e;            /* Crimson red (alias for --accent) */
  --green: #10b981;          /* Emerald/WhatsApp Green */
  --green-hover: #059669;

  /* Surfaces — Warm & Premium */
  --bg: #fdfdfc;             /* Very light warm cream */
  --bg-alt: #f4f2ee;         /* Slightly darker cream background */
  --surface: #ffffff;        /* Crisp white card surface */
  --surface-glass: rgba(255, 255, 255, 0.76);
  --surface-dark: #070d19;
  --surface-dark-glass: rgba(13, 26, 58, 0.8);
  --border: rgba(0, 0, 0, 0.07);
  --border-light: rgba(255, 255, 255, 0.12);

  /* Typography Colors */
  --text: #0b0f19;           /* Soft near-black for readability */
  --text-secondary: #4b5563; /* Dark gray for secondary elements */
  --text-muted: #8b96a5;     /* Medium gray for placeholder and muted text */
  --text-on-dark: #f3f4f6;   /* Off-white for dark background text */

  /* Radius & Shadows */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(5, 11, 26, 0.05);
  --shadow-lg: 0 16px 48px rgba(5, 11, 26, 0.08);
  --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.15);

  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

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

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

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

::selection {
  background: var(--gold);
  color: var(--primary);
}

/* ==================================================================
   MENU & NAVIGATION
   ================================================================== */
.menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 88px;
  background: rgba(5, 11, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
  transition: height var(--transition), background var(--transition);
}

.menu.scrolled {
  height: 76px;
  background: rgba(5, 11, 26, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

header .logo img, .menu .logo img {
  height: 158px;
  width: auto;
}

.logo img {
  transition: transform var(--transition);
}

.logo:hover img {
  transform: scale(1.05);
}

.menu-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.op a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.8);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: var(--transition);
  position: relative;
}

.op a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
  transform: translateX(-50%);
}

.op a:hover {
  color: #fff;
}

.op a:hover::after {
  width: 20px;
}

.op a.current-page {
  color: var(--primary);
  background: var(--gold);
  border-color: var(--gold);
}

.op a.current-page::after {
  display: none;
}

.op a.current-page:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1010;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

/* Mobile Nav Drawer open state */
.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 900px) {
  .menu {
    padding: 0 24px;
  }
  .hamburger {
    display: flex;
  }
  .menu-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--primary);
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 40px;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    z-index: 1005;
    border-left: 1px solid var(--border-light);
  }
  .menu-links.active {
    right: 0;
  }
  .op a {
    font-size: 18px;
    display: block;
    text-align: center;
    width: 100%;
    padding: 14px 24px;
  }
}

/* ==================================================================
   ORIGINAL ANIMATION ENGINE KEYFRAMES
   ================================================================== */
@keyframes mesh {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

@keyframes textReveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

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

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.1); }
  50% { box-shadow: 0 0 35px rgba(59, 130, 246, 0.3); }
}

/* Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(to right, var(--gold), var(--accent));
  z-index: 2000;
  transition: width 0.1s ease-out;
}

/* Shimmer Loading Skeleton */
.shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

.shimmer-dark {
  background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

/* ==================================================================
   UTILITIES
   ================================================================== */
.glass {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
}

.glass-dark {
  background: var(--surface-dark-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
}

.text-gradient {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.magnetic-wrap {
  display: inline-block;
  transition: transform 0.2s ease-out;
}

.loading-spinner {
  grid-column: 1/-1;
  display: flex;
  justify-content: center;
  padding: 60px 0;
}

.loading-spinner::after {
  content: '';
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.no-results {
  padding: 80px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 20px;
  grid-column: 1/-1;
  font-weight: 500;
}

/* Button UI */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gold);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(212, 168, 83, 0.25);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 168, 83, 0.4);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.25);
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  border-color: var(--text);
  color: var(--text);
  background: var(--bg-alt);
}

.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-outline-white:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ==================================================================
   HERO SECTION
   ================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: #020611;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('IMAGENES/Main.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.15); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Shifting mesh animated background gradient */
  background: linear-gradient(135deg, rgba(5, 11, 26, 0.92) 20%, rgba(200, 16, 46, 0.15) 60%, rgba(5, 11, 26, 0.85) 100%);
  background-size: 200% 200%;
  animation: mesh 12s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 60px 80px;
  max-width: 780px;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 168, 83, 0.12);
  border: 1px solid rgba(212, 168, 83, 0.3);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(44px, 7.5vw, 84px);
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-title span {
  display: inline-block;
  color: var(--gold);
  position: relative;
}

.hero-sub {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 600px;
  font-weight: 300;
}

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

.hero-stats {
  position: absolute;
  bottom: 60px;
  right: 60px;
  display: flex;
  gap: 48px;
  z-index: 2;
  animation: fadeUp 1s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  font-size: 42px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  font-family: 'Playfair Display', serif;
}

.hero-stat-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .hero-content {
    padding: 120px 24px 60px;
  }
  .hero-stats {
    display: none;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

/* ==================================================================
   MARQUEE
   ================================================================== */
.marquee-strip {
  background: var(--primary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  white-space: nowrap;
  padding: 16px 0;
  position: relative;
}

.marquee-strip::before, .marquee-strip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.marquee-strip::before {
  left: 0;
  background: linear-gradient(to right, var(--primary), transparent);
}

.marquee-strip::after {
  right: 0;
  background: linear-gradient(to left, var(--primary), transparent);
}

.marquee-inner {
  display: inline-block;
  animation: marquee 25s linear infinite;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--gold);
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-inner:hover {
  animation-play-state: paused;
}

/* ==================================================================
   SECTIONS GENERAL
   ================================================================== */
.section-wrap {
  padding: 100px 60px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title-large {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.section-title-large span {
  color: var(--gold);
}

.section-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .section-wrap {
    padding: 60px 24px;
  }
  .section-header {
    margin-bottom: 40px;
  }
}

/* ==================================================================
   FEATURES (BENEFITS)
   ================================================================== */
.features-section {
  background: #020611;
  color: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.feature-icon {
  font-size: 40px;
  margin-bottom: 20px;
  display: inline-block;
  transition: transform var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(5deg);
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* ==================================================================
   CATALOGO HOME & INV CARDS
   ================================================================== */
.catalogo-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.catalogo-home-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.catalogo-home-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.ch-img {
  width: 100%;
  aspect-ratio: 16/11;
  overflow: hidden;
  background: #000;
  position: relative;
}

.ch-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalogo-home-card:hover .ch-img img {
  transform: scale(1.08);
}

.ch-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ch-body h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.ch-precio {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.ch-cta {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ch-cta::after {
  content: '→';
  transition: transform var(--transition);
}

.catalogo-home-card:hover .ch-cta::after {
  transform: translateX(4px);
}

/* ==================================================================
   INVENTORY CARDS (CATALOG LIST)
   ================================================================== */
.container-item {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 32px;
}

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

@media (max-width: 600px) {
  .container-item { grid-template-columns: 1fr; }
}

.inv-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  perspective: 1000px;
}

.inv-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.inv-item .carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: relative;
  aspect-ratio: 16/11;
  background: #000;
}

.inv-item .carousel-track img {
  width: 100%;
  flex-shrink: 0;
  scroll-snap-align: start;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.inv-item .carousel-track::-webkit-scrollbar {
  display: none;
}

.inv-item .img-wrap {
  position: relative;
}

.inv-item .img-wrap .car-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  background: var(--surface3);
}

.btn-left, .btn-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(5, 11, 26, 0.6);
  color: #fff;
  border: none;
  font-size: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(4px);
  opacity: 0;
}

.inv-item:hover .btn-left,
.inv-item:hover .btn-right {
  opacity: 1;
}

.btn-left:hover, .btn-right:hover {
  background: var(--gold);
  color: var(--primary);
}

.btn-left { left: 12px; }
.btn-right { right: 12px; }

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
  pointer-events: none;
  background: rgba(5, 11, 26, 0.4);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: var(--transition);
}

.dot.active {
  width: 12px;
  background: var(--gold);
  border-radius: 3px;
}

.info-product {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.info-product h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.price {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
}

.Km {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 4px;
}

.oferta-validez {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 4px;
}

.year {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.more-info {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  margin-top: auto;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.more-info::after {
  content: '→';
  transition: transform var(--transition);
}

.inv-item:hover .more-info::after {
  transform: translateX(4px);
}

.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.badge.nuevo {
  background: var(--green);
  color: #fff;
  animation: pulseGlow 3s infinite;
}

.badge.vendido {
  background: var(--accent);
  color: #fff;
}

/* ==================================================================
   OFFER BADGE — Ribbon style with pulse
   ================================================================== */
@keyframes pulse-oferta {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.badge.oferta {
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 8px 16px 8px 14px;
  border-radius: 0 6px 6px 0;
  position: absolute;
  top: 16px;
  left: 0;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.35);
  animation: pulse-oferta 2s ease-in-out infinite;
  text-transform: uppercase;
  border-left: 3px solid var(--gold);
}
.badge.oferta::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 8px 10px;
  border-color: transparent transparent transparent var(--accent-hover);
  filter: brightness(0.7);
}

.oferta-precios {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.precio-original {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: line-through;
}
.precio-oferta {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.ch-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.ch-badge-oferta {
  background: var(--accent);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 14px 5px 12px;
  border-radius: 0 6px 6px 0;
  left: 0;
  top: 10px;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.35);
  animation: pulse-oferta 2s ease-in-out infinite;
  border-left: 2px solid var(--gold);
}
.ch-badge-oferta::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 6px 8px;
  border-color: transparent transparent transparent var(--accent-hover);
  filter: brightness(0.7);
}

.ch-precio-oferta {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 8px;
}
.ch-precio-oferta-destacado {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}

.btn-wsp-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 24px 24px;
  padding: 10px;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-wsp-card:hover {
  background: var(--green-hover);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

/* ==================================================================
   TESTIMONIOS
   ================================================================== */
.testimonios-section {
  background: #020611;
  color: #fff;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonio-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  transition: var(--transition);
}

.testimonio-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.testimonio-card::after {
  content: '"';
  position: absolute;
  top: 15px;
  right: 30px;
  font-size: 120px;
  font-family: 'Playfair Display', serif;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
}

.stars {
  color: var(--gold);
  font-size: 18px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonio-texto {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
  position: relative;
  z-index: 2;
}

.testimonio-autor {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.autor-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}

.autor-nombre {
  font-weight: 700;
  color: #fff;
  font-size: 16px;
}

.autor-ciudad {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}

/* ==================================================================
   CTA CONTACTO
   ================================================================== */
.cta-section {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
}

.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* ==================================================================
   FOOTER
   ================================================================== */
.footer {
  background: #020611;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 80px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: auto;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
}

.footer-logo span {
  color: var(--gold);
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
  padding-top: 24px;
}

@media (max-width: 768px) {
  .footer {
    padding: 40px 24px;
    gap: 24px;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
  }
}

/* ==================================================================
   WHATSAPP FLOATING FAB
   ================================================================== */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
  cursor: pointer;
  z-index: 999;
  text-decoration: none;
  animation: float 4s ease-in-out infinite;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.whatsapp-fab:hover {
  transform: scale(1.1) rotate(8deg);
  background: var(--green-hover);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.6);
}

.whatsapp-fab svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.wa-tooltip {
  position: fixed;
  bottom: 38px;
  right: 100px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  border: 1px solid var(--border-light);
}

.whatsapp-fab:hover + .wa-tooltip {
  opacity: 1;
  transform: none;
}

@media (max-width: 480px) {
  .whatsapp-fab {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }
  .wa-tooltip {
    display: none;
  }
}

/* ==================================================================
   CONTACT HOME (CONTACT BLOCK ON HOME)
   ================================================================== */
.contact-section-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.contact-mini-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  color: #fff;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.contact-mini-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.contact-mini-card .cm-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 12px;
  transition: transform var(--transition);
}

.contact-mini-card:hover .cm-icon {
  transform: scale(1.15);
}

.contact-mini-card .cm-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  color: var(--gold);
}

.contact-mini-card .cm-detail {
  font-size: 15px;
  opacity: 0.85;
  display: block;
  margin-top: 6px;
  font-weight: 500;
}

.contact-main-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-info-glass {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-glass h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 24px;
}

.contact-info-glass h3 span {
  color: var(--gold);
}

.contact-info-list {
  list-style: none;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.contact-info-list li img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.contact-info-list a {
  color: #fff;
  font-weight: 600;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
}

.contact-info-list a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.contact-social {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.contact-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 20px;
  transition: var(--transition);
}

.contact-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--primary);
  transform: translateY(-4px);
}

.contact-map-glass {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  min-height: 350px;
  box-shadow: var(--shadow-md);
}

.contact-map-glass iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@media (max-width: 900px) {
  .contact-cards-grid { grid-template-columns: 1fr; }
  .contact-main-row { grid-template-columns: 1fr; }
}

/* ==================================================================
   CATALOG PAGE (INVENTARIO.HTML EXTRAS)
   ================================================================== */
.page-hero-cat, .page-hero {
  margin-top: 88px;
  background: var(--surface-dark);
  color: #fff;
  padding: 60px 20px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero-cat::before, .page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 11, 26, 0.95) 20%, rgba(200, 16, 46, 0.1) 60%, rgba(5, 11, 26, 0.9) 100%);
  z-index: 1;
}

.page-hero-cat h1, .page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 52px);
  font-weight: 900;
  position: relative;
  z-index: 2;
  letter-spacing: -0.5px;
}

.page-hero-cat h1 span, .page-hero h1 span {
  color: var(--gold);
}

.page-hero-cat p, .page-hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  margin-top: 8px;
  position: relative;
  z-index: 2;
  font-weight: 300;
}

.main-area {
  padding: 0 60px 80px;
  max-width: 1300px;
  margin: 0 auto;
}

.filtros-wrap {
  padding: 32px 60px 0;
}

.filtros {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.filtros-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.filtros-header h2 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.filtros-count {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(212, 168, 83, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.filtros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.filtros-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filtros-group h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.filtros input, .filtros select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}

.filtros input:focus, .filtros select:focus {
  border-color: var(--gold);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.15);
}

.rango-inputs {
  display: flex;
  gap: 8px;
}

.rango-inputs input {
  flex: 1;
  min-width: 0;
}

.filtros-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.btn-filtrar {
  padding: 12px 32px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-filtrar:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.btn-limpiar {
  background: var(--bg-alt) !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border);
}

.btn-limpiar:hover {
  background: #e2e8f0 !important;
  color: var(--text) !important;
}

.ordenar-btns {
  display: flex;
  gap: 8px;
}

.btn-filtrar-sm {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-alt);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-filtrar-sm:hover {
  background: #e2e8f0;
  color: var(--text);
}

.btn-filtrar-sm.active-sort {
  background: var(--gold);
  color: var(--primary);
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}

.search-bar {
  width: 100%;
  padding: 14px 18px !important;
  font-size: 16px !important;
  background: var(--bg) !important;
  border-width: 2px !important;
}

.search-bar:focus {
  border-color: var(--gold) !important;
}

@media (max-width: 768px) {
  .filtros-wrap { padding: 24px 24px 0; }
  .main-area { padding: 0 24px 60px; }
  .filtros { padding: 20px; }
  .filtros-actions { flex-direction: column; gap: 8px; }
  .btn-filtrar { width: 100%; text-align: center; }
  .container-item { grid-template-columns: 1fr; gap: 20px; }
}

/* PAGINATION */
.paginacion {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.pag-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  padding: 6px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.pag-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.pag-btn:hover:not(:disabled) {
  background: var(--bg-alt);
  color: var(--text);
}

.pag-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.pag-active {
  background: var(--gold) !important;
  color: var(--primary) !important;
  box-shadow: var(--shadow-sm);
}

.pag-dots {
  color: var(--text-muted);
  font-size: 15px;
  padding: 0 4px;
}

/* ==================================================================
   DETAIL PAGE (DETALLE.HTML)
   ================================================================= */
.contenedor-plantilla {
  padding: 140px 60px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.fila-superior {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.galeria-auto {
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
}

.imagen-principal {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 16/11;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.imagen-principal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.imagen-principal:hover img {
  transform: scale(1.02);
}

.flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.85);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 5;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.flecha:hover {
  background: var(--gold);
  transform: translateY(-50%) scale(1.05);
}

.flecha-izq { left: 16px; }
.flecha-der { right: 16px; }

.foto-counter {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(5, 11, 26, 0.85);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.miniaturas {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 16px;
  height: 80px;
  z-index: 5;
  background: linear-gradient(transparent, rgba(5,11,26,0.7) 40%);
  justify-content: center;
  scrollbar-width: none;
}

.miniaturas::-webkit-scrollbar {
  display: none;
}

.miniaturas img {
  width: 70px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: var(--transition);
  flex-shrink: 0;
}

.miniaturas img:hover, .miniaturas img.active {
  opacity: 1;
  border-color: var(--gold);
  transform: translateY(-2px);
}

.equipamiento-wrap {
  margin-top: 20px;
}

.info-carro {
  flex: 1;
}

.info-carro h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: var(--primary);
  line-height: 1.2;
}

.info-carro h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--accent);
  margin: 12px 0;
}

.info-carro h3 {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 8px;
}

.oferta-badge-detalle {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
  padding: 5px 14px 5px 12px;
  border-radius: 0 6px 6px 0;
  margin-left: 10px;
  vertical-align: middle;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.35);
  animation: pulse-oferta 2s ease-in-out infinite;
  border-left: 3px solid var(--gold);
  position: relative;
}
.oferta-badge-detalle::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 6px 8px;
  border-color: transparent transparent transparent var(--accent-hover);
  filter: brightness(0.7);
}

.oferta-validez-detalle {
  font-size: 13px;
  color: var(--gold);
  margin: 4px 0 10px;
  font-weight: 600;
}

.oferta-precios-detalle {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 8px 0 4px;
  flex-wrap: wrap;
}
.precio-original-detalle {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: line-through;
}
.precio-oferta-detalle {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.descripcion-auto {
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.descripcion-auto b, .descripcion-auto strong {
  color: var(--text-primary);
  font-weight: 700;
}

.specs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.spec-item {
  flex: 1 0 auto;
  min-width: 140px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.spec-lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}
.spec-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.equipamiento-lista {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.equipamiento-lista li {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.equipamiento-lista li:hover {
  background: var(--surface);
  border-color: var(--gold);
  color: var(--primary);
  transform: translateY(-2px);
}

.equipamiento-lista li img {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.link-simulador {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 15px;
  border: 2px solid var(--border);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  width: 100%;
}

.link-simulador:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-wsp-detalle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 14px;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
  transition: var(--transition);
}

.btn-wsp-detalle:hover {
  background: var(--green-hover);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

/* FINANCIAMIENTO SIMULATOR IN DETAIL */
.financiamiento {
  margin-top: 60px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.financiamiento h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 24px;
}

.fin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.fin-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fin-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.financiamiento input, .financiamiento select {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  outline: none;
  transition: var(--transition);
}

.financiamiento input:focus, .financiamiento select:focus {
  border-color: var(--gold);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.15);
}

.fin-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn-simular {
  flex: 2;
  padding: 14px 28px;
  background: var(--gold);
  color: var(--primary);
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-simular:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-limpiar-fin {
  flex: 1;
  padding: 14px 20px;
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-limpiar-fin:hover {
  background: var(--bg-alt);
  color: var(--text);
}

#error-fin, #error {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  margin-top: 12px;
  min-height: 20px;
}

.resultados {
  margin-top: 28px;
  display: flex;
  gap: 20px;
}

.tarjeta {
  flex: 1;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 24px 18px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
}

.tarjeta:hover {
  background: var(--surface);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.tarjeta h3 {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.monto {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}

.extra {
  font-size: 13px;
  color: var(--accent);
  margin-top: 6px;
  font-weight: 600;
}

.fin-resumen {
  margin-top: 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.fin-resumen strong {
  color: var(--primary);
}

.btn-budget {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-budget:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
  .contenedor-plantilla { padding: 110px 24px 60px; }
  .fila-superior { flex-direction: column; gap: 32px; }
  .galeria-auto, .info-carro { width: 100%; }
  .imagen-principal { aspect-ratio: 16/11; }
  .financiamiento { padding: 24px; }
  .resultados { flex-direction: column; gap: 12px; }
}

@media (max-width: 768px) {
  .contenedor-plantilla { padding: 95px 16px 20px; }

  /* Gallery */
  .fila-superior { flex-direction: column; gap: 0; }
  .galeria-auto, .info-carro { width: 100%; }
  .imagen-principal { aspect-ratio: 4/3; border-radius: 10px; margin: 0; }
  .flecha { width: 36px; height: 36px; font-size: 16px; }
  .flecha-izq { left: 8px; }
  .flecha-der { right: 8px; }
  .foto-counter { font-size: 10px; padding: 3px 10px; top: 8px; right: 8px; }
  .miniaturas { height: 56px; padding: 6px 8px; gap: 4px; }
  .miniaturas img { width: 50px; height: 36px; border-radius: 4px; }

  /* Title & Price */
  .info-carro { padding: 10px 0 0; }
  .info-carro h1 { font-size: 26px; margin: 0; line-height: 1.1; }
  .info-carro hr { margin: 8px 0; }
  .info-carro h2 { font-size: 26px; margin: 4px 0 8px; }

  /* Specs */
  .specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0; }
  .spec-item { min-width: 0; padding: 8px 10px; border-radius: 6px; }
  .spec-lbl { font-size: 8px; }
  .spec-val { font-size: 14px; }

  /* Action buttons */
  .btn-wsp-detalle { padding: 14px; font-size: 16px; margin-top: 10px; border-radius: 8px; }
  .link-simulador { padding: 11px 14px; font-size: 14px; margin-top: 10px; }

  /* Equipment */
  .equipamiento-wrap { margin-top: 8px; }
  .equipamiento-titulo { font-size: 17px; margin-bottom: 6px; }
  .equipamiento-lista { gap: 5px; margin: 8px 0; }
  .equipamiento-lista li { width: 100%; font-size: 13px; padding: 7px 10px; gap: 6px; }

  /* Financing */
  .financiamiento { padding: 14px 0; margin-top: 8px; }
  .financiamiento h2 { font-size: 18px; margin-bottom: 8px; }
  .fin-grid { grid-template-columns: 1fr; gap: 8px; }
  .fin-actions { flex-direction: column; gap: 6px; margin-top: 14px; }
  .btn-simular, .btn-limpiar-fin { flex: none; width: 100%; padding: 12px; font-size: 14px; }
  .resultados { flex-direction: column; gap: 6px; margin-top: 14px; }
  .tarjeta { padding: 12px; }
  .monto { font-size: 22px; }
  .financiamiento input, .financiamiento select { font-size: 14px; padding: 10px; }
  .fin-resumen { margin-top: 12px; padding: 12px; font-size: 13px; }
  .btn-budget { margin-top: 12px; padding: 12px; font-size: 14px; }
}

/* ==================================================================
   MODALS
   ================================================================== */
.modal-img-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 11, 26, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
  backdrop-filter: blur(10px);
}

.modal-img-overlay.activo {
  display: flex;
}

.modal-img-content {
  max-width: 95%;
  max-height: 90vh;
  object-fit: contain;
  transition: transform 0.2s ease;
  cursor: grab;
  border-radius: var(--radius-md);
}

.cerrar {
  position: absolute;
  top: 24px;
  right: 32px;
  color: #fff;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  opacity: 0.6;
  transition: var(--transition);
  z-index: 10000;
}

.cerrar:hover {
  opacity: 1;
  transform: rotate(90deg);
}

/* Standard Overlay Modal */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 11, 26, 0.6);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(8px);
}

.overlay.open {
  display: flex;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: none; }
}

.modal-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text);
  transform: rotate(90deg);
}

.modal-body {
  padding: 24px;
}

.modal-ftr {
  display: flex;
  gap: 10px;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
  justify-content: flex-end;
}

.fg {
  margin-bottom: 16px;
}

.flbl {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.finput {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  background: var(--bg-alt);
  color: var(--text);
  box-sizing: border-box;
  outline: none;
  transition: var(--transition);
}

.finput:focus {
  border-color: var(--gold);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.15);
}

.finput[contenteditable]:empty:before {
  content: attr(data-placeholder);
  color: var(--text-muted);
  pointer-events: none;
}

.form-err {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
}

/* ==================================================================
   CONTACT PAGE (CONTACTANOS.HTML)
   ================================================================= */
.contact-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.qa-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.qa-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.qa-card:nth-child(1):hover { border-color: #1877f2; }
.qa-card:nth-child(2):hover { border-color: var(--green); }
.qa-card:nth-child(3):hover { border-color: var(--accent); }
.qa-card:nth-child(4):hover { border-color: var(--gold); }

.qa-icon {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
  transition: transform 0.4s ease;
}

.qa-card:hover .qa-icon {
  transform: scale(1.15) translateY(-2px);
}

.qa-label {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.contact-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.contact-details-card, .contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.contact-details-card h2, .contact-form-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 24px;
}

.contact-details-card h2 span, .contact-form-card h2 span {
  color: var(--gold);
}

.contact-list {
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-list li img {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-list li a {
  color: var(--primary);
  font-weight: 700;
  border-bottom: 1px dotted rgba(5, 11, 26, 0.4);
}

.contact-list li a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.contact-list .hours-detail {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

.contact-social-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.contact-social-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  font-size: 20px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.contact-social-bar a:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--primary);
  transform: translateY(-4px);
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--gold);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.15);
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-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='%23c9a84c' d='M1.41.59L6 5.17 10.59.59 12 2l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 36px;
  cursor: pointer;
}

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

/* ==================================================================
   FILE UPLOAD BUTTON — estilizado para inputs type="file"
   ================================================================== */
.file-upload-group {
  position: relative;
}

.file-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
  justify-content: center;
}

.file-upload-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 168, 83, 0.04);
}

.file-upload-btn svg {
  flex-shrink: 0;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.25);
}

.btn-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4);
}

.contact-map-full {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.contact-map-full iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

@media (max-width: 768px) {
  .contact-quick-actions { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .contact-two-col { grid-template-columns: 1fr; gap: 20px; }
  .contact-details-card, .contact-form-card { padding: 24px; }
}

/* ==================================================================
   LOGIN PAGE (LOGIN.HTML)
   ================================================================= */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background: #050b1a;
}

.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('COCHES/NISSAN/XTRAIL/XTRAIL-1.jpg') center / cover no-repeat;
  filter: brightness(0.3) saturate(0.4);
  z-index: 1;
}

.login-page::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(212, 168, 83, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(200, 16, 46, 0.15) 0%, transparent 50%);
  z-index: 1;
}

.login-container {
  background: #0d1528;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 48px 40px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  text-align: center;
  position: relative;
  z-index: 2;
  animation: modalIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-container .logo {
  width: 110px;
  margin: 0 auto 20px;
}

.login-container .logo img {
  width: 100%;
  height: auto;
  display: block;
}

.login-container h1 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.login-container h1 span {
  color: var(--gold);
}

.login-container .sub {
  color: rgba(255, 255, 255, 0.35);
  font-size: 14px;
  margin-bottom: 28px;
}

.login-container .finput {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  color: #e8e8e8;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  outline: none;
  width: 100%;
  transition: var(--transition);
  text-align: left;
}
.login-container .finput:-webkit-autofill,
.login-container .finput:-webkit-autofill:hover,
.login-container .finput:-webkit-autofill:focus {
  -webkit-text-fill-color: #e8e8e8 !important;
  -webkit-box-shadow: 0 0 0px 1000px #0d1528 inset !important;
  box-shadow: 0 0 0px 1000px #0d1528 inset !important;
  transition: background-color 999999s ease-in-out 0s;
  caret-color: #e8e8e8;
}

.login-container .finput:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.12);
}

.login-container .finput::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.login-container .form-err {
  color: var(--accent-hover);
  font-size: 13px;
  margin-top: 10px;
  min-height: 20px;
  font-weight: 600;
}

.login-container .btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
}

.login-container .back-link {
  display: inline-block;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.25);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.login-container .back-link:hover {
  color: var(--gold);
}

.login-mb { margin-bottom: 14px; }
.login-btn-mt { margin-top: 16px; }

/* ==================================================================
   VERIFICATION CODE (OTP) IN ADMIN
   ================================================================= */
.verify-header {
  text-align: center;
  margin-bottom: 24px;
}

.verify-icon {
  font-size: 44px;
  margin-bottom: 12px;
}

.verify-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.verify-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.5;
}

.otp-wrap {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.otp-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  color: var(--text);
  outline: none;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.otp-input:focus {
  border-color: var(--gold);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.15);
}

.otp-input.filled {
  border-color: var(--green);
  background: rgba(16, 185, 129, 0.05);
}

.verify-timer {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

.verify-resend {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
}

.char-counter {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  text-align: right;
  transition: color var(--tr);
}
.char-counter.limit {
  color: var(--red);
  font-weight: 600;
}

@media (max-width: 480px) {
  .otp-input { width: 38px; height: 48px; font-size: 20px; }
  .otp-wrap { gap: 6px; }
}