:root{
  --bs-primary: #800020;
  --bs-primary-contrast: #ffffff;
}

/* Override Bootstrap primary button */
.btn-primary{
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: var(--bs-primary-contrast) !important;
}
.btn-primary:hover, .btn-primary:focus{
  background-color: #660018 !important;
  border-color: #660018 !important;
}

/* Link and hover helpers */
a.nav-link:hover{ color: var(--bs-primary) !important; }

/* Navbar explore button uses primary styles */
.btn-explore{ background-color:var(--bs-primary); border-color:var(--bs-primary); color:var(--bs-primary-contrast); }
.btn-explore:hover{ background-color:#660018; border-color:#660018; }

/* Hero section */
.hero{
  position:relative;
  min-height:720px;
  /* Background image for landing page hero */
  background-image: url('/images/lp/fondohero.png');
  background-size: cover;
  background-position: center center;
  display:block;
  border-radius:8px;
  overflow:hidden;
}
.hero-overlay{
  position:absolute; inset:0; background:linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.45)); z-index:1;
}
.hero .container{ position:relative; z-index:2; height:100%; }
.hero-content{ max-width:980px; margin:0 auto; padding:6rem 1rem; }
.hero-title{
  font-weight:800; line-height:0.9; font-size:5rem; text-transform:uppercase; text-shadow:0 6px 18px rgba(0,0,0,0.6);
}
.hero-accent{
  font-weight:900; font-size:4.5rem; margin-top:-0.4rem; color:var(--bs-primary); opacity:0.95; font-style:italic; text-transform:uppercase; text-shadow:0 6px 18px rgba(0,0,0,0.6);
}
.hero-subtext{ max-width:760px; opacity:0.95; }
.hero-buttons .btn{ min-width:180px; }
.hero-scroll-down{ position:absolute; left:50%; transform:translateX(-50%); bottom:18px; z-index:3; opacity:0.9; }

@media(max-width:992px){
  .hero{ min-height:560px; }
  .hero-title{ font-size:3rem; }
  .hero-accent{ font-size:2.6rem; }
  .hero-content{ padding:3.5rem 1rem; }
}

/* Vehicles / cards */
.vehicle-card{ border-radius:0.6rem; overflow:hidden; background:#0b0b0b; color:#fff; box-shadow:0 8px 30px rgba(3,3,3,0.35); }
.vehicle-card .card-image{ height:220px; background-size:cover; background-position:center; }
.vehicle-card .card-body{ background:linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.6) 100%); }
.vehicle-title{ font-weight:800; font-size:1.15rem; }
.vehicle-meta{ color:rgba(255,255,255,0.85); }
.vehicle-price{ color:#fff; font-size:1.05rem; }
.vehicle-action{ width:40px; height:40px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; opacity:0.95; }

@media(min-width:992px){
  .vehicle-card .card-image{ height:240px; }
}

/* Ours / Why trust us */
.ours-section h2{ font-weight:800; font-size:2.6rem; }
.feature-list .feature-icon{ width:56px; height:56px; border-radius:12px; background:rgba(0,0,0,0.04); display:flex; align-items:center; justify-content:center; }
.feature-list .feature-icon img{ width:28px; height:28px; opacity:0.95; }
.feature-list .feature-icon i{ font-size:20px; color:var(--bs-primary); }

.ours-image-wrapper{ height:420px; }
.ours-image-wrapper img{ width:100%; height:100%; object-fit:cover; border-radius:12px; }

.rating-badge{ top:12px; right:12px; }
.rating-badge .rating-inner{ background:#fff; padding:12px 16px; border-radius:8px; box-shadow:0 8px 22px rgba(0,0,0,0.12); display:flex; gap:10px; align-items:center; }
.rating-badge .star{ color:var(--bs-primary); font-size:20px; }
.rating-badge .rating-text{ font-size:0.9rem; color:#222; }

.badge-years{ right:20px; bottom:20px; }
.badge-years .years-num{ background:var(--bs-primary); color:#fff; padding:22px 28px; border-radius:12px; font-weight:800; font-size:1.6rem; box-shadow:0 12px 28px rgba(0,0,0,0.2); }
.badge-years .years-label{ text-align:center; font-size:0.7rem; color:#fff; margin-top:6px; letter-spacing:0.6px; }

@media(max-width:991.98px){
  .ours-image-wrapper{ height:320px; margin-top:2rem; }
  .badge-years{ right:12px; bottom:12px; }
}

/* Footer and floating chat */
.site-footer{ background:#f7fafc; border-top:1px solid rgba(0,0,0,0.04); }
.site-footer .social-btn{ width:40px; height:40px; display:inline-flex; align-items:center; justify-content:center; border-radius:8px; background:#eef2f6; color:#6b6b6b; text-decoration:none; }

.chat-floating{ position:fixed; right:18px; bottom:18px; z-index:9999; display:inline-block; border-radius:10px; box-shadow:0 8px 22px rgba(0,0,0,0.18); }
.chat-floating svg{ display:block; }

/* Make Bootstrap .text-primary use the theme primary color */
.text-primary{ color: var(--bs-primary) !important; }

/* Ensure Font Awesome icons inherit primary color when used with text-primary */
.text-primary .fa, .fa.text-primary{ color: var(--bs-primary) !important; }

/* Financing form: ensure links and active controls use theme primary when scoped */
.financing-form-root{ /* allows JS to update variables scoped to the form */ }
.financing-form-root a{ color: var(--bs-primary) !important; }
.financing-form-root .month-btn.active, .financing-form-root .score-btn.active{ border-color: var(--bs-primary) !important; box-shadow: 0 6px 18px rgba(128,0,32,0.12); }
.financing-form-root .month-btn.active{ background: rgba(128,0,32,0.06); }
.financing-form-root .score-btn.active{ background: rgba(128,0,32,0.06); }

/* Ensure form controls reflect theme primary when focused/active */
.financing-form-root .form-control:focus{
  border-color: var(--bs-primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(128,0,32,0.08) !important;
}
.financing-form-root .form-check-input:checked{
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}
.financing-form-root .btn-outline-primary{
  color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}
.financing-form-root .btn-outline-secondary.active,
.financing-form-root .month-btn.active,
.financing-form-root .score-btn.active{
  background-color: rgba(0,0,0,0.02);
  color: var(--bs-primary) !important;
}

/* Range thumb and track colors inside the form root */
.financing-form-root input[type=range]::-webkit-slider-runnable-track{ background: linear-gradient(90deg, var(--bs-primary) 0%, var(--bs-primary) 50%, #e9ecef 50%); }
.financing-form-root input[type=range]::-webkit-slider-thumb{ -webkit-appearance:none; height:16px; width:16px; border-radius:50%; background:var(--bs-primary); margin-top:-6px; }
.financing-form-root input[type=range]::-moz-range-track{ background:#e9ecef; }
.financing-form-root input[type=range]::-moz-range-thumb{ background:var(--bs-primary); border:none; }


/* Neutralize Bootstrap outline-danger/secondary active backgrounds and enforce dynamic primary color */
.financing-form-root .score-btn.active{ background: rgba(var(--bs-primary-rgb,128,0,32),0.12) !important; color: var(--bs-primary) !important; border-color: var(--bs-primary) !important; }
.financing-form-root .month-btn.active{ background: rgba(var(--bs-primary-rgb,128,0,32),0.08) !important; color: var(--bs-primary) !important; border-color: var(--bs-primary) !important; }
.financing-form-root .btn-outline-secondary.active{ background: rgba(var(--bs-primary-rgb,128,0,32),0.06) !important; color: var(--bs-primary) !important; border-color: var(--bs-primary) !important; }





