/* MVD Motors — brand styles */
:root {
  --red: #e30613;
  --red-dark: #b80510;
  --black: #111111;
  --black-soft: #1a1a1a;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-500: #6b6b6b;
  --gray-700: #3a3a3a;
  --font: "Outfit", system-ui, sans-serif;
  --header-top-h: 48px;
  --header-sticky-h: 5.75rem;
  --transition: 0.25s ease;
}

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

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

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  padding-top: 0;
}

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

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.header-top {
  background: var(--black);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  min-height: var(--header-top-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  max-height: var(--header-top-h);
  opacity: 1;
  transition:
    max-height 0.3s ease,
    min-height 0.3s ease,
    opacity 0.25s ease,
    padding 0.3s ease;
}

.site-header.header-top-hidden .header-top {
  max-height: 0;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
}

.header-top a {
  color: rgba(255, 255, 255, 0.85);
}

.header-top a:hover {
  color: var(--white);
}

.header-top .whatsapp-link:hover {
  color: #25d366;
}

.header-main {
  background: var(--black-soft);
  border-bottom: 2px solid var(--red);
}

.header-main .navbar {
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.brand-logo img,
.brand-logo svg {
  height: 52px;
  width: auto;
}

.brand-mark {
  width: 58px;
  height: 48px;
  flex-shrink: 0;
}

.brand-text {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: var(--white);
  text-transform: uppercase;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.65rem 1rem !important;
  position: relative;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--white);
}

.navbar-dark .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-dark .dropdown-menu {
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 0.5rem 0;
}

.navbar-dark .dropdown-item {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
}

.navbar-dark .dropdown-item:hover {
  background: var(--red);
  color: var(--white);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white) !important;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 0;
  padding: 0.7rem 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background var(--transition), transform var(--transition);
}

.btn-whatsapp:hover {
  background: #1ebe57;
  color: var(--white) !important;
  transform: translateY(-1px);
}

.btn-brand {
  background: var(--red);
  color: var(--white) !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 0;
  padding: 0.75rem 1.5rem;
  transition: background var(--transition), transform var(--transition);
}

.btn-brand:hover {
  background: var(--red-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
}

.btn-outline-brand {
  background: transparent;
  color: var(--white) !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 2px solid var(--white);
  border-radius: 0;
  padding: 0.7rem 1.45rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-outline-brand:hover {
  background: var(--white);
  color: var(--black) !important;
}

.btn-outline-red {
  background: transparent;
  color: var(--black) !important;
  font-weight: 600;
  border: 1.5px solid var(--black);
  border-radius: 0;
  padding: 0.55rem 1.2rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-outline-red:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white) !important;
}

.navbar-toggler {
  /* border: 1px solid rgba(255, 255, 255, 0.3); */
  border: 0;
  border-radius: 0;
  padding: 0.4rem 0.55rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ---------- Sections ---------- */
.section {
  padding: 4.5rem 0;
}

.section-muted {
  background: var(--gray-100);
}

.section-title {
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.section-lead {
  color: var(--gray-500);
  margin-bottom: 2.5rem;
}

.section-label {
  display: inline-block;
  color: var(--red);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ---------- Car cards ---------- */
.car-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  height: 100%;
  overflow: hidden;
  box-shadow: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.car-card:hover,
.car-card:focus-within {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.car-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.car-card-link:hover,
.car-card-link:focus {
  color: inherit;
  text-decoration: none;
}

.car-card-link:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.car-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray-100);
}

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

.car-card-img.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
}

.car-card-img.is-placeholder img {
  width: auto;
  height: auto;
  max-width: 55%;
  max-height: 55%;
  object-fit: contain;
}

.car-card:hover .car-card-img:not(.is-placeholder) img,
.car-card:focus-within .car-card-img:not(.is-placeholder) img {
  transform: scale(1.04);
}

.car-card-body {
  padding: 1.25rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.15rem;
}

.car-card-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--black);
  margin-bottom: 0.2rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.car-card-price {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--red);
  margin-bottom: 1.1rem;
  letter-spacing: 0.01em;
}

.car-card .btn-outline-red {
  margin-top: auto;
  align-self: stretch;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-width: 1px;
  padding: 0.65rem 1rem;
  pointer-events: none;
}

.car-card:hover .btn-outline-red,
.car-card:focus-within .btn-outline-red {
  background: var(--red);
  border-color: var(--red);
  color: var(--white) !important;
}

/* ---------- Loan calculator ---------- */
#prestamos .container {
  max-width: 820px;
}

.loan-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}

.loan-input {
  border: 1px solid var(--gray-200);
  border-radius: 0;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  background-color: var(--white);
  box-shadow: none;
}

select.loan-input {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%233a3a3a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 14px 10px;
  padding-right: 2.5rem;
}

.loan-input:focus {
  border-color: var(--red);
  box-shadow: none;
}

.loan-submit {
  padding: 0.8rem 1.5rem;
}

.loan-result {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--gray-200);
}

.loan-result-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 1.25rem 1.35rem;
  height: 100%;
}

.loan-result-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.4rem;
}

.loan-result-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.01em;
}

.loan-result-item:first-child .loan-result-value {
  color: var(--red);
}

.loan-note {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ---------- Contact ---------- */
.contact-block {
  background: var(--black);
  color: var(--white);
  padding: 2.5rem;
}

.contact-block a {
  color: rgba(255, 255, 255, 0.9);
}

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

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

.contact-list i {
  color: var(--red);
  font-size: 1.15rem;
  margin-top: 0.15rem;
}

.map-embed {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  filter: grayscale(20%);
}

/* ---------- Product detail ---------- */
.page-hero-sm {
  background: var(--black);
  color: var(--white);
  padding: 1.5rem 0;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.65);
}

.breadcrumb-item a:hover {
  color: var(--white);
}

.breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
}

.product-gallery {
  background: var(--gray-100);
  overflow: hidden;
}

.product-gallery .gallery-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.product-gallery .carousel-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.product-gallery .carousel-control-prev,
.product-gallery .carousel-control-next {
  width: 48px;
  opacity: 1;
}

.product-gallery .carousel-control-prev-icon,
.product-gallery .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.55);
  border-radius: 0;
  padding: 1.25rem;
  background-size: 50%;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open[hidden] {
  display: flex;
}

.lightbox-figure {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 6rem);
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  transition: background var(--transition);
}

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

.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
}

.lightbox-prev {
  left: 0.75rem;
}

.lightbox-next {
  right: 0.75rem;
}

@media (max-width: 575.98px) {
  .lightbox {
    padding: 3.25rem 0.5rem 1rem;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .lightbox-prev {
    left: 0.35rem;
  }

  .lightbox-next {
    right: 0.35rem;
  }
}

body.lightbox-open {
  overflow: hidden;
}

.product-title {
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--red);
  margin-bottom: 0.5rem;
}

.product-price {
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--black);
  margin-bottom: 1.5rem;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.75rem;
}

.spec-item {
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 0.65rem;
}

.spec-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.15rem;
}

.spec-value {
  font-weight: 600;
  color: var(--black);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn-call {
  background: var(--black);
  color: var(--white) !important;
  font-weight: 600;
  border: none;
  border-radius: 0;
  padding: 0.7rem 1.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background var(--transition);
}

.btn-call:hover {
  background: var(--gray-700);
  color: var(--white) !important;
}

.product-desc {
  color: var(--gray-700);
  line-height: 1.65;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 3.5rem;
}

.site-footer h5 {
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
}

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

.footer-brand {
  margin-bottom: 1rem;
}

.footer-brand .brand-text {
  font-size: 1.05rem;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-contact li {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer-contact i {
  color: var(--red);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Utilities ---------- */
.text-red {
  color: var(--red) !important;
}

.bg-black {
  background-color: var(--black) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .header-top .d-none-mobile-hide {
    display: none !important;
  }

  .navbar-dark .navbar-nav .nav-link::after {
    display: none;
  }

  .navbar-collapse {
    padding: 1rem 0 0.5rem;
  }

  .btn-whatsapp.nav-cta {
    margin-top: 0.75rem;
    width: 100%;
    justify-content: center;
  }

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

  .contact-block {
    padding: 1.75rem;
  }
}

@media (max-width: 575.98px) {
  .section {
    padding: 3rem 0;
  }

  .brand-logo img,
  .brand-logo svg {
    height: 32px;
  }
}
