/* =========================================================
   Moralauto — Dealer theme
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&display=swap");

:root {
  --ma-ink: #050b20;
  --ma-ink-soft: #121a2e;
  --ma-paper: #f4f6fa;
  --ma-white: #ffffff;
  --ma-accent: #405ff2;
  --ma-accent-2: #2f4de0;
  --ma-muted: #616670;
  --ma-line: rgba(5, 11, 32, 0.08);
  --title-font: "Outfit", "DM Sans", sans-serif;
  --text-font: "DM Sans", sans-serif;
  --ma-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ma-header-h: 78px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--text-font);
  color: var(--ma-ink);
  background: var(--ma-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.boxcar-title h2,
.hero-title,
.car-grid-title h2,
.ma-section-head h2 {
  font-family: var(--title-font) !important;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ma-accent);
  margin-bottom: 10px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Buttons ---------- */
.ma-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.25s var(--ma-ease), background 0.25s var(--ma-ease);
}

.ma-btn-dark { background: var(--ma-ink); color: #fff; }
.ma-btn-dark:hover { background: var(--ma-accent); transform: translateY(-2px); color: #fff; }

.ma-btn-light { background: #fff; color: var(--ma-ink); }
.ma-btn-light:hover { background: var(--ma-paper); transform: translateY(-2px); color: var(--ma-ink); }

.ma-btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.ma-btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; transform: translateY(-2px); }

/* ---------- HEADER ---------- */
.moralauto-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 78px;
  background: rgba(5, 11, 32, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10002;
  transition: background 0.35s var(--ma-ease), box-shadow 0.35s var(--ma-ease);
}

.moralauto-header.is-scrolled,
.moralauto-header.moralauto-header--solid,
.moralauto-header.is-nav-open {
  background: rgba(5, 11, 32, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.page-with-solid-header { padding-top: var(--ma-header-h); }

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
}

.main-nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 14px;
  border-radius: 999px;
  transition: background 0.2s var(--ma-ease);
}

.main-nav a:hover { background: rgba(255,255,255,0.1); color: #fff; }

.main-nav a.nav-cta {
  background: var(--ma-accent);
  color: #fff;
  margin-left: 6px;
}

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
}

.mobile-toggle span {
  position: absolute;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s var(--ma-ease), opacity 0.2s;
}

.mobile-toggle span:nth-child(1) { transform: translateY(-6px); }
.mobile-toggle span:nth-child(2) { transform: translateY(0); }
.mobile-toggle span:nth-child(3) { transform: translateY(6px); }

.mobile-toggle.is-active span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}
.mobile-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.is-active span:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

/* Menú móvil — panel superior (debajo del navbar, sin moverlo) */
.ma-mobile-nav-backdrop {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 78px;
  z-index: 10000;
  background: rgba(5, 11, 32, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ma-ease), visibility 0.3s;
}

.ma-mobile-nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ma-mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  top: 78px;
  z-index: 10001;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  background: rgba(8, 12, 28, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transition:
    max-height 0.4s var(--ma-ease),
    opacity 0.25s var(--ma-ease),
    visibility 0.25s;
}

.ma-mobile-nav.is-open {
  max-height: min(520px, calc(100dvh - 78px));
  opacity: 1;
  visibility: visible;
}

.ma-mobile-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 16px 20px;
}

.ma-mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ma-mobile-nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ma-mobile-nav li:last-child {
  border-bottom: none;
}

.ma-mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}

.ma-mobile-nav a::after {
  content: "›";
  font-size: 1.2rem;
  opacity: 0.45;
  font-weight: 400;
}

.ma-mobile-nav a.ma-mobile-nav-cta {
  margin-top: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--ma-accent);
  justify-content: center;
  font-size: 1rem;
}

.ma-mobile-nav a.ma-mobile-nav-cta::after {
  display: none;
}

.ma-mobile-nav-tel {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

body.ma-mobile-nav-open {
  overflow: hidden;
}

@media (max-width: 991px) {
  .main-nav { display: none; }
  .mobile-toggle {
    display: inline-flex;
    position: relative;
  }
}

@media (max-width: 768px) {
  :root {
    --ma-header-h: 64px;
  }

  .moralauto-header {
    height: 64px;
  }

  .ma-mobile-nav,
  .ma-mobile-nav-backdrop {
    top: 64px;
  }

  .ma-mobile-nav.is-open {
    max-height: min(480px, calc(100dvh - 64px));
  }
}

/* ---------- HERO ---------- */
.hero-video {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,11,32,0.72) 0%, rgba(5,11,32,0.45) 45%, rgba(5,11,32,0.82) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 32px));
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding: 100px 0 70px;
}

.hero-logo img {
  height: clamp(56px, 10vw, 88px) !important;
  width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 8px 24px rgba(0,0,0,0.4));
  margin-bottom: 20px;
}

.hero-kicker {
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-title {
  color: #fff !important;
  font-size: clamp(1.9rem, 4.5vw, 3rem) !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
  margin: 0 0 12px !important;
  letter-spacing: -0.02em;
}

.hero-slogan {
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 520px;
  margin: 0 auto 24px;
}

/* Hero — barra de búsqueda potente */
.ma-hero-bar {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  min-height: 52px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(5, 11, 32, 0.25);
  overflow: hidden;
}

.ma-hero-bar-input {
  flex: 1 1 180px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 14px;
  cursor: text;
}

.ma-hero-bar-input i {
  flex-shrink: 0;
  color: var(--ma-muted);
  font-size: 14px;
}

.ma-hero-bar-input input {
  width: 100%;
  min-width: 0;
  height: 52px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-family: var(--text-font);
  color: var(--ma-ink);
  padding: 0;
}

.ma-hero-bar-input input:focus {
  outline: none;
}

.ma-hero-bar-input input::placeholder {
  color: #9aa0ab;
}

.ma-hero-bar-sep {
  width: 1px;
  align-self: stretch;
  background: var(--ma-line);
  flex-shrink: 0;
}

.ma-hero-bar-filters {
  display: contents;
}

.ma-hero-bar-select {
  flex: 0 1 auto;
  width: auto;
  max-width: 130px;
  height: 52px;
  padding: 0 28px 0 10px;
  border: none;
  border-left: 1px solid var(--ma-line);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23616670' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") calc(100% - 10px) center no-repeat;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--text-font);
  color: var(--ma-ink);
  appearance: none;
  cursor: pointer;
}

.ma-hero-bar-select:focus {
  outline: none;
  background-color: var(--ma-paper);
}

.ma-hero-bar-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 20px;
  border: none;
  background: var(--ma-accent);
  color: #fff;
  font-family: var(--title-font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.ma-hero-bar-btn:hover {
  background: var(--ma-accent-2);
}

.ma-hero-bar-btn i {
  font-size: 12px;
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 14px;
  }

  .logo img {
    height: 32px;
  }

  .hero-video {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    padding: 0 16px;
  }

  .hero-content {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 80px 0 36px;
    box-sizing: border-box;
  }

  .hero-logo img {
    height: 44px !important;
    margin-bottom: 10px;
  }

  .hero-kicker {
    font-size: 10px;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
  }

  .hero-title {
    font-size: clamp(1.45rem, 6vw, 1.85rem) !important;
    margin-bottom: 8px !important;
  }

  .hero-slogan {
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0 auto 14px;
    padding: 0 4px;
  }

  .ma-hero-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    margin: 0 auto;
    padding: 10px;
    border-radius: 14px;
    overflow: visible;
    box-sizing: border-box;
  }

  .ma-hero-bar-sep {
    display: none;
  }

  .ma-hero-bar-input {
    flex: none;
    width: 100%;
    background: var(--ma-paper);
    border-radius: 10px;
    padding: 0 12px;
  }

  .ma-hero-bar-input input {
    height: 44px;
    font-size: 16px;
  }

  .ma-hero-bar-filters {
    display: flex;
    gap: 6px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .ma-hero-bar-filters::-webkit-scrollbar {
    display: none;
  }

  .ma-hero-bar-select {
    flex: 0 0 auto;
    min-width: 104px;
    max-width: none;
    height: 38px;
    padding: 0 24px 0 8px;
    font-size: 12px;
    border: 1px solid var(--ma-line) !important;
    border-radius: 8px;
    background-color: #fff;
  }

  .ma-hero-bar-btn {
    width: 100%;
    height: 44px;
    border-radius: 10px;
  }

  .ma-hero-bar-btn i {
    display: none;
  }
}

/* ---------- STATS ---------- */
.ma-stats {
  background: var(--ma-ink);
  color: #fff;
  padding: 28px 0;
  margin-top: -1px;
}

.ma-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}

.ma-stat strong {
  display: block;
  font-family: var(--title-font);
  font-size: 1.35rem;
  font-weight: 700;
}

.ma-stat span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
}

@media (max-width: 768px) {
  .ma-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- CAR GRID ---------- */
.car-grid-section {
  padding: 80px 0 90px !important;
  background: var(--ma-paper) !important;
}

.car-grid-title {
  text-align: center;
  margin-bottom: 40px !important;
}

.car-grid-title h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem) !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
}

.car-grid-title p {
  color: var(--ma-muted);
  max-width: 480px;
  margin: 0 auto;
}

.car-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px !important;
}

.car-card,
.ma-home-card {
  background: #fff !important;
  border-radius: 16px !important;
  overflow: hidden;
  border: 1px solid var(--ma-line);
  box-shadow: 0 8px 30px rgba(5,11,32,0.05) !important;
  transition: transform 0.3s var(--ma-ease), box-shadow 0.3s var(--ma-ease) !important;
  display: flex;
  flex-direction: column;
}

.car-card:hover,
.ma-home-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 50px rgba(5,11,32,0.1) !important;
}

.ma-home-card .image-box {
  height: auto !important;
  min-height: 300px;
  aspect-ratio: 4 / 3;
  position: relative;
  background: #e8ebf2;
}

.car-card .image-box {
  height: 220px !important;
  position: relative;
  background: #e8ebf2;
}

.ma-home-card .ma-card-gallery-wrap,
.car-card .ma-card-gallery-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ma-home-card .ma-card-gallery-wrap .slider-thumb,
.ma-home-card .ma-card-gallery-wrap .ma-card-gallery-single,
.car-card .ma-card-gallery-wrap .slider-thumb,
.car-card .ma-card-gallery-wrap .ma-card-gallery-single {
  height: 100%;
  width: 100%;
}

.ma-home-card .ma-card-gallery-wrap .slider-thumb .slick-list,
.ma-home-card .ma-card-gallery-wrap .slider-thumb .slick-track,
.ma-home-card .ma-card-gallery-wrap .slider-thumb .slick-slide,
.car-card .ma-card-gallery-wrap .slider-thumb .slick-list,
.car-card .ma-card-gallery-wrap .slider-thumb .slick-track,
.car-card .ma-card-gallery-wrap .slider-thumb .slick-slide {
  height: 100%;
  min-height: 100%;
}

.ma-home-card .image-box img,
.ma-home-card .slider-thumb img,
.ma-home-card .ma-card-gallery-single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ma-home-card .ma-card-gallery-wrap,
.ma-home-card .slider-thumb,
.ma-home-card .ma-card-gallery-single {
  display: block;
  height: 100%;
  min-height: 300px;
}

.ma-home-card .slider-thumb .image,
.ma-home-card .slider-thumb .image a {
  display: block;
  height: 100%;
  min-height: 300px;
}

.ma-home-card .slider-thumb .slick-list,
.ma-home-card .slider-thumb .slick-track,
.ma-home-card .slider-thumb .slick-slide {
  height: 100%;
  min-height: 300px;
}

.ma-home-card .slider-thumb .slick-dots {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  bottom: 12px;
  z-index: 6;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: 100%;
  padding: 0 12px;
  pointer-events: auto;
}

.ma-home-card .slider-thumb .slick-dots li {
  position: relative;
  width: 8px;
  height: 8px;
  margin: 0 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.ma-home-card .slider-thumb .slick-dots li.slick-active {
  width: 8px;
  background: #fff;
  transform: scale(1.15);
}

.ma-home-card .slider-thumb .slick-dots li button {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
}

.ma-home-card .slider-thumb .slick-dots li button:before {
  display: none !important;
}

/* Badges sobre foto (landing — catalog.css no se carga en home) */
.ma-home-card .image-box {
  overflow: hidden;
}

.ma-home-card .ma-photo-badges {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.ma-home-card .ma-photo-badge {
  position: absolute;
  pointer-events: none;
}

.ma-home-card .ma-photo-badge--status {
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
  box-shadow: 0 2px 10px rgba(5, 11, 32, 0.18);
}

.ma-home-card .ma-photo-badge--eco {
  bottom: 36px;
  left: 10px;
}

.ma-home-card .ma-photo-badge--eco img {
  display: block;
  width: 44px;
  height: auto;
  max-width: 44px;
  filter: drop-shadow(0 4px 10px rgba(5, 11, 32, 0.35));
}

.ma-home-card .ma-photo-badge--brand {
  bottom: 10px;
  right: 10px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(5, 11, 32, 0.62);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(5, 11, 32, 0.2);
}

.ma-home-card .ma-photo-badge--brand img {
  display: block;
  height: 14px;
  width: auto;
  max-height: 14px;
  max-width: 72px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.ma-home-card .image-box .ma-photo-badges img {
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  object-fit: contain !important;
}

.ma-home-card .image-box .ma-photo-badge--eco img {
  width: 44px !important;
  max-width: 44px;
}

.ma-home-card .image-box .ma-photo-badge--brand img {
  height: 13px !important;
  max-height: 13px;
  max-width: 68px;
}

.car-card .image-box img,
.car-card .slider-thumb img,
.car-card .ma-card-gallery-single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-card .ma-card-gallery-wrap,
.car-card .slider-thumb,
.car-card .ma-card-gallery-single {
  display: block;
  height: 100%;
}

.car-card .slider-thumb .image,
.car-card .slider-thumb .image a {
  display: block;
  height: 220px;
}

.car-card .slider-thumb .slick-list,
.car-card .slider-thumb .slick-track,
.car-card .slider-thumb .slick-slide {
  height: 220px;
}

.car-card .slider-thumb .slick-dots {
  bottom: 10px;
  z-index: 3;
}

.car-card .eco-corner {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.car-card .eco-label-img {
  width: 52px !important;
  height: auto;
}

.ma-home-card .car-badge-featured {
  z-index: 6;
}

.car-badge-featured {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: var(--ma-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
}

.car-card .content-box { padding: 18px 20px 20px !important; }

.ma-home-card .content-box {
  padding: 18px 20px 20px !important;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.car-card .title,
.ma-home-card .title {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  margin-bottom: 4px !important;
}

.car-card .title a,
.ma-home-card .title a { color: var(--ma-ink); text-decoration: none; }

.ma-home-card .title a:hover { color: var(--ma-accent); }

.car-card .text,
.ma-home-card .text {
  color: var(--ma-muted) !important;
  font-size: 0.86rem !important;
  margin-bottom: 12px !important;
  line-height: 1.4;
}

.ma-home-card .inspection-sec {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 12px;
}

.ma-home-card .inspection-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 calc(50% - 7px);
  min-width: 0;
}

.ma-home-card .inspection-box .icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--ma-paper);
  border-radius: 8px;
  color: var(--ma-ink);
  font-size: 13px;
}

.ma-home-card .inspection-box .info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.ma-home-card .inspection-box .info span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ma-muted);
  line-height: 1.2;
}

.ma-home-card .inspection-box .info small {
  font-size: 13px;
  font-weight: 700;
  color: var(--ma-ink);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ma-home-card .ma-equip-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.ma-home-card .ma-equip-chips li span {
  display: inline-block;
  padding: 4px 9px;
  background: rgba(64, 95, 242, 0.08);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ma-ink);
  line-height: 1.3;
}

.car-card ul {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px !important;
  padding: 0 !important;
  list-style: none !important;
}

.car-card ul li {
  background: var(--ma-paper);
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 11px !important;
  font-weight: 600;
}

.car-card .price-row,
.ma-home-card .price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--ma-line);
  padding-top: 14px;
  margin-top: auto;
}

.ma-home-card .price-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ma-home-card .price-note {
  font-size: 11px;
  font-weight: 600;
  color: var(--ma-muted);
}

.car-card .price,
.ma-home-card .price {
  font-family: var(--title-font) !important;
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  line-height: 1.1;
}

.car-card .details,
.ma-home-card .details {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  color: var(--ma-accent) !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(64, 95, 242, 0.08);
  transition: background 0.2s ease, color 0.2s ease;
}

.ma-home-card .details:hover {
  background: var(--ma-accent);
  color: #fff !important;
}

.car-grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  background: #fff;
  border-radius: 16px;
  border: 1px dashed var(--ma-line);
}

.car-grid-empty p { color: var(--ma-muted); margin-bottom: 16px; }

.grid-btn-wrapper {
  text-align: center;
  margin-top: 40px;
}

.grid-btn-wrapper a {
  display: inline-flex !important;
  padding: 14px 32px !important;
  background: var(--ma-ink) !important;
  color: #fff !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  text-decoration: none;
}

.grid-btn-wrapper a:hover { background: var(--ma-accent) !important; }

@media (max-width: 992px) {
  .car-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .ma-home-card .image-box,
  .ma-home-card .ma-card-gallery-wrap,
  .ma-home-card .slider-thumb,
  .ma-home-card .ma-card-gallery-single,
  .ma-home-card .slider-thumb .image,
  .ma-home-card .slider-thumb .image a,
  .ma-home-card .slider-thumb .slick-list,
  .ma-home-card .slider-thumb .slick-track,
  .ma-home-card .slider-thumb .slick-slide {
    min-height: 260px;
  }
}
@media (max-width: 576px) {
  .car-grid { grid-template-columns: 1fr !important; }
  .ma-home-card .inspection-box {
    flex: 0 0 calc(50% - 7px);
  }
  .ma-home-card .image-box,
  .ma-home-card .ma-card-gallery-wrap,
  .ma-home-card .slider-thumb,
  .ma-home-card .ma-card-gallery-single,
  .ma-home-card .slider-thumb .image,
  .ma-home-card .slider-thumb .image a,
  .ma-home-card .slider-thumb .slick-list,
  .ma-home-card .slider-thumb .slick-track,
  .ma-home-card .slider-thumb .slick-slide {
    min-height: 240px;
  }
}

/* ---------- ABOUT STRIP ---------- */
.boxcar-pricing-section {
  padding: 0 !important;
}

.boxcar-pricing-section .inner-column {
  padding: 70px 50px !important;
}

.boxcar-pricing-section .inner-column h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem) !important;
  font-weight: 700 !important;
  margin-bottom: 16px !important;
}

.boxcar-pricing-section .read-more {
  display: inline-flex;
  margin-top: 10px;
  padding: 13px 26px;
  background: var(--ma-accent);
  color: #fff !important;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.custom-image-box img {
  min-height: 100%;
  object-fit: cover;
}

/* ---------- WHY US ---------- */
.why-choose-us-section {
  padding: 80px 0;
  background: #fff;
}

.why-choose-us-section .choose-us-block .inner-box {
  height: 100%;
  border: 1px solid var(--ma-line);
  border-radius: 16px;
  padding: 24px 20px;
  background: #fff;
  transition: box-shadow 0.3s var(--ma-ease), transform 0.3s var(--ma-ease);
}

.why-choose-us-section .choose-us-block .inner-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(5,11,32,0.08);
}

/* ---------- TESTIMONIALS ---------- */
.ma-testimonials {
  padding: 80px 0;
  background: var(--ma-paper);
}

.ma-section-head {
  text-align: center;
  margin-bottom: 36px;
}

.ma-section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem) !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
}

.ma-section-head p {
  color: var(--ma-muted);
  max-width: 480px;
  margin: 0 auto;
}

.ma-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ma-testimonial-card {
  background: #fff;
  border: 1px solid var(--ma-line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(5,11,32,0.04);
}

.ma-testimonial-card .stars {
  color: #f59e0b;
  font-size: 14px;
  margin-bottom: 12px;
}

.ma-testimonial-card p {
  color: var(--ma-ink-soft);
  line-height: 1.55;
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.ma-testimonial-card strong {
  font-family: var(--title-font);
  font-size: 0.9rem;
}

@media (max-width: 992px) {
  .ma-testimonial-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA ---------- */
.ma-cta {
  padding: 0 0 80px;
  background: var(--ma-paper);
}

.ma-cta-inner {
  background: linear-gradient(135deg, #0a0f1c, #1a2744 55%, #405ff2);
  border-radius: 20px;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  box-shadow: 0 24px 60px rgba(64,95,242,0.25);
}

.ma-cta-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem) !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
  color: #fff !important;
}

.ma-cta-inner p {
  color: rgba(255,255,255,0.78);
  max-width: 420px;
}

.ma-cta-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .ma-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
  }
  .ma-cta-actions { width: 100%; flex-direction: column; }
  .ma-cta-actions .ma-btn { width: 100%; }
}

/* ---------- FOOTER ---------- */
.ma-footer {
  background: var(--ma-ink);
  color: rgba(255, 255, 255, 0.78);
}

.ma-footer-main {
  padding: 56px 24px 32px;
}

.ma-footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) 1.2fr;
  gap: 32px 24px;
}

.ma-footer-logo {
  display: inline-block;
  margin-bottom: 14px;
}

.ma-footer-logo img {
  max-height: 46px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.ma-footer-brand p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
  max-width: 280px;
}

.ma-footer-contact-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ma-footer-contact-chips a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.2s;
}

.ma-footer-contact-chips a:hover {
  color: #fff;
}

.ma-footer-contact-chips i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ma-accent);
  font-size: 12px;
}

.ma-footer-col h3 {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.ma-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ma-footer-col li {
  margin-bottom: 10px;
}

.ma-footer-col li:last-child {
  margin-bottom: 0;
}

.ma-footer-col a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s;
}

.ma-footer-col a:hover {
  color: #fff;
}

.ma-footer-col address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 10px;
}

.ma-footer-hours {
  margin: 0 0 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.ma-footer-social {
  display: flex;
  gap: 8px;
}

.ma-footer-social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.ma-footer-social a:hover {
  background: var(--ma-accent);
  color: #fff;
  transform: translateY(-2px);
}

.ma-footer-bottom {
  padding: 18px 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ma-footer-bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ma-footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.ma-footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ma-footer-bottom a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}

.ma-footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 991px) {
  .ma-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ma-footer-brand {
    grid-column: 1 / -1;
  }

  .ma-footer-col--wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .ma-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ma-footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Legacy theme footer override */
.boxcar-footer { display: none !important; }

/* ---------- Reveal ---------- */
.ma-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ma-ease), transform 0.6s var(--ma-ease);
}

.ma-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Kill duplicate slider section styles on home if included elsewhere */
.boxcar-brand-section.section-radius-top.bg-1 {
  display: none;
}

/* ---------- Aviso cookies (solo técnicas) ---------- */
.ma-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10003;
  padding: 16px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.35s var(--ma-ease),
    transform 0.35s var(--ma-ease);
}

.ma-cookie-banner.is-visible {
  pointer-events: auto;
  opacity: 1;
  transform: none;
}

.ma-cookie-banner__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  padding: 16px 20px;
  background: rgba(5, 11, 32, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ma-cookie-banner__text {
  flex: 1 1 280px;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.ma-cookie-banner__text strong {
  color: #fff;
  font-weight: 700;
}

.ma-cookie-banner__text a {
  color: #a8b8ff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ma-cookie-banner__text a:hover {
  color: #fff;
}

.ma-cookie-banner__btn {
  flex-shrink: 0;
  padding: 12px 22px;
  border: none;
  border-radius: 10px;
  background: var(--ma-accent);
  color: #fff;
  font-family: var(--title-font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s var(--ma-ease), transform 0.2s var(--ma-ease);
}

.ma-cookie-banner__btn:hover {
  background: var(--ma-accent-2);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .ma-cookie-banner {
    padding: 12px;
  }

  .ma-cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .ma-cookie-banner__btn {
    width: 100%;
  }
}
