/* =========================================
   Grecco Motors — Estilos globales
   ========================================= */

:root {
  --color-black: #0a0a0a;
  --color-white: #ffffff;
  --color-gray-light: #f5f5f5;
  --color-gray: #8a8a8a;
  --color-gray-dark: #2a2a2a;
  --header-height: 92px;
  --header-height-mobile: 72px;
  --container-max: 1280px;
  --font-main: 'Poppins', Arial, Helvetica, sans-serif;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-white);
  color: var(--color-black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Espaciador para que el contenido no quede debajo del header fijo */
main {
  padding-top: var(--header-height);
}

/* =========================================
   Header
   ========================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--color-black);
  z-index: 1000;
}

.header-inner {
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 34px;
  width: auto;
}

/* ---- Navegación ---- */

.site-nav {
  display: flex;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-white);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.2px;
  padding: 8px 0;
  transition: color var(--transition), opacity var(--transition);
  opacity: 0.85;
}

.nav-link:hover,
.nav-link:focus-visible {
  opacity: 1;
}

.nav-link.active {
  font-weight: 700;
  opacity: 1;
}

.chevron {
  transition: transform var(--transition);
}

.nav-item--dropdown.is-open .chevron {
  transform: rotate(180deg);
}

/* ---- Dropdown Vehículos ---- */

/* .dropdown-menu es un contenedor "puente": incluye el espacio vacío entre
   el botón y la tarjeta blanca dentro de su propia caja (padding-top), para
   que el mouse nunca salga del elemento mientras baja hacia el submenu.
   Sin esto, el hover se cerraba antes de poder llegar a las opciones. */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 14px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), visibility var(--transition);
}

.nav-item--dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dropdown-menu-inner {
  background-color: var(--color-white);
  min-width: 220px;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  padding: 10px 0;
  transform: translateY(-8px);
  transition: transform var(--transition);
}

.nav-item--dropdown.is-open .dropdown-menu-inner {
  transform: translateY(0);
}

.dropdown-list li a {
  display: block;
  padding: 12px 24px;
  text-align: center;
  color: var(--color-black);
  font-size: 15px;
  font-weight: 500;
  transition: background-color var(--transition), color var(--transition);
}

.dropdown-list li a:hover,
.dropdown-list li a:focus-visible {
  background-color: var(--color-gray-light);
  color: var(--color-black);
}

/* ---- Botón hamburguesa (mobile) ---- */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  z-index: 1100;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
   Responsive — Tablet / Mobile
   ========================================= */

@media (max-width: 900px) {
  :root {
    --header-height: var(--header-height-mobile);
  }

  .header-inner {
    padding: 0 20px;
  }

  .logo-img {
    height: 28px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height-mobile);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height-mobile));
    background-color: var(--color-black);
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .nav-list {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 32px;
  }

  .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 18px 24px;
    font-size: 17px;
    opacity: 1;
  }

  .nav-link--dropdown {
    width: 100%;
  }

  /* En mobile el submenu se despliega como acordeón, no flotante */
  .dropdown-menu,
  .nav-item--dropdown.is-open .dropdown-menu {
    position: static;
    left: auto;
    transform: none;
    width: 100%;
    min-width: 0;
    padding-top: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    overflow: hidden;
  }

  .dropdown-menu {
    max-height: 0;
    transition: max-height var(--transition);
  }

  .nav-item--dropdown.is-open .dropdown-menu {
    max-height: 400px;
  }

  .dropdown-menu-inner,
  .nav-item--dropdown.is-open .dropdown-menu-inner {
    background-color: var(--color-gray-dark);
    min-width: 0;
    box-shadow: none;
    border-radius: 0;
    transform: none;
    padding: 6px 0;
  }

  .dropdown-list li a {
    text-align: left;
    padding: 14px 40px;
    color: var(--color-white);
    font-weight: 400;
  }

  .dropdown-list li a:hover,
  .dropdown-list li a:focus-visible {
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--color-white);
  }
}

@media (max-width: 400px) {
  .header-inner {
    padding: 0 16px;
  }
}

/* =========================================
   Home — Hero
   ========================================= */

.hero {
  width: 100%;
  line-height: 0;
}

.hero-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

/* ---- Slider (home) ---- */

.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-slider-track {
  position: relative;
  width: 100%;
  height: clamp(240px, 38vw, 600px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.hero-slider-arrow:hover,
.hero-slider-arrow:focus-visible {
  background: rgba(0, 0, 0, 0.55);
}

.hero-slider-arrow--prev {
  left: 16px;
}

.hero-slider-arrow--next {
  right: 16px;
}

.hero-slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 10px;
}

.hero-slider-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.hero-slider-dot.is-active {
  background: #fff;
  transform: scale(1.25);
}

@media (max-width: 600px) {
  .hero-slider-arrow {
    width: 34px;
    height: 34px;
  }

  .hero-slider-arrow--prev {
    left: 8px;
  }

  .hero-slider-arrow--next {
    right: 8px;
  }

  .hero-slider-dots {
    bottom: 12px;
  }
}

/* =========================================
   Home — Intro + Tabs
   ========================================= */

.intro {
  padding: 48px 24px 40px;
  text-align: center;
}

.intro-text {
  max-width: 920px;
  margin: 0 auto 32px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-black);
}

.intro-text strong {
  font-weight: 700;
}

.category-tabs {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-btn {
  padding: 14px 28px;
  border: 2px solid var(--color-black);
  border-radius: 999px;
  background-color: var(--color-white);
  color: var(--color-black);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color var(--transition), color var(--transition);
}

.tab-btn.is-active {
  background-color: var(--color-black);
  color: var(--color-white);
}

.tab-btn:not(.is-active):hover {
  background-color: rgba(10, 10, 10, 0.06);
}

/* =========================================
   Home — Franja de marcas
   ========================================= */

.brand-strip {
  background-color: var(--color-gray-light);
  padding: 8px 0;
}

.brand-strip-list {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.brand-strip-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  border-left: 1px solid rgba(10, 10, 10, 0.12);
}

.brand-strip-list li:first-child {
  border-left: none;
  padding-left: 0;
}

.brand-strip-list li a {
  display: block;
}

.brand-strip-list img {
  height: 111px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.5);
  transition: filter var(--transition);
}

/* Logos de la categoría activa: a color */
.brand-strip[data-active-category="automoviles"] li[data-category="automoviles"] img,
.brand-strip[data-active-category="camiones"] li[data-category="camiones"] img {
  filter: grayscale(0) opacity(1);
}

/* Hover: siempre a color, sin importar la categoría activa */
.brand-strip-list li a:hover img,
.brand-strip-list li a:focus-visible img {
  filter: grayscale(0) opacity(1);
}

/* =========================================
   Home — Sección "Ponerse en marcha"
   ========================================= */

.about {
  padding: 56px 24px 72px;
  text-align: center;
}

.about-title {
  font-size: 32px;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 20px;
}

.about-text {
  max-width: 780px;
  margin: 0 auto;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-black);
}

.about-text strong {
  font-weight: 700;
}

/* =========================================
   Home — Responsive
   ========================================= */

@media (max-width: 900px) {
  .hero-banner {
    height: clamp(220px, 62vw, 420px);
    object-position: left center;
  }

  .intro {
    padding: 40px 20px 32px;
  }

  .intro-text {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .category-tabs {
    width: 100%;
    justify-content: center;
  }

  .tab-btn {
    flex: 1 1 auto;
    padding: 13px 18px;
    font-size: 12px;
  }

  .brand-strip-list {
    padding: 20px 16px;
    gap: 12px 0;
  }

  .brand-strip-list li {
    flex: 0 0 33.333%;
    padding: 10px 12px;
    border-left: none;
  }

  .brand-strip-list img {
    height: 141px;
    max-width: 370px;
  }

  .about {
    padding: 44px 20px 56px;
  }

  .about-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .brand-strip-list li {
    flex: 0 0 50%;
  }
}

/* =========================================
   Footer
   ========================================= */

.site-footer {
  scroll-margin-top: var(--header-height);
  background-color: var(--color-black);
  background-image: linear-gradient(90deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.15) 55%, rgba(10, 10, 10, 0) 100%), url('../img/footer-bg.jpg');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  color: var(--color-white);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 64px 24px 48px;
}

.footer-brand {
  flex-shrink: 0;
  max-width: 280px;
}

.footer-logo {
  height: 52px;
  width: auto;
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 15px;
  font-weight: 300;
  color: var(--color-white);
  letter-spacing: 0.2px;
}

.footer-tagline strong {
  font-weight: 700;
}

.footer-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 56px;
  flex-grow: 1;
  max-width: 720px;
}

.location-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 200px;
}

.location-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pin-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-white);
  margin-top: 2px;
}

.location-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.location-text p {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

/* ---- Marcas ---- */

.footer-brands {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-logos-list {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.brand-logos-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.brand-logos-list li:first-child {
  border-left: none;
  padding-left: 0;
}

.brand-logos-list li a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 10px;
  background-color: var(--color-white);
  transition: opacity var(--transition), transform var(--transition);
}

.brand-logos-list li a:hover,
.brand-logos-list li a:focus-visible {
  opacity: 0.85;
  transform: translateY(-2px);
}

.brand-logos-list img {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

/* ---- Bottom bar ---- */

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 24px;
}

.footer-bottom p {
  max-width: var(--container-max);
  margin: 0 auto;
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* =========================================
   Footer — Responsive
   ========================================= */

@media (max-width: 900px) {
  .site-footer {
    background-image: linear-gradient(180deg, rgba(10, 10, 10, 0.35) 0%, rgba(10, 10, 10, 0.75) 100%), url('../img/footer-bg.jpg');
    background-position: center;
  }

  .footer-top {
    flex-direction: column;
    padding: 48px 20px 36px;
    gap: 32px;
  }

  .footer-locations {
    gap: 28px 40px;
    max-width: 100%;
  }

  .brand-logos-list {
    justify-content: center;
    gap: 16px 0;
    padding: 24px 16px;
  }

  .brand-logos-list li {
    padding: 0 16px;
    flex: 0 0 25%;
    border-left: none;
  }

  .brand-logos-list img {
    height: 48px;
    width: 48px;
  }
}

@media (max-width: 480px) {
  .location-col {
    min-width: 100%;
  }

  .brand-logos-list li {
    flex: 0 0 33.333%;
  }
}

/* =========================================
   Utilidades
   ========================================= */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================
   Página de cotizador — Hero de marca
   ========================================= */

.brand-hero {
  width: 100%;
  line-height: 0;
}

.brand-hero-banner {
  width: 100%;
  height: clamp(220px, 30vw, 460px);
  object-fit: cover;
  object-position: center;
}

/* =========================================
   Página de cotizador — Intro
   ========================================= */

.quote-intro {
  padding: 48px 24px 8px;
  text-align: center;
}

.quote-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 14px;
}

.quote-subtitle {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-black);
}

.quote-subtitle strong {
  font-weight: 700;
}

/* =========================================
   Página de cotizador — Formulario + panel del vehículo
   ========================================= */

.quote-panel {
  scroll-margin-top: var(--header-height);
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  padding: 40px 24px 72px;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 15px 24px;
  border: 1.5px solid #cfcfcf;
  border-radius: 999px;
  background-color: var(--color-white);
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--color-black);
  transition: border-color var(--transition);
  appearance: none;
}

.form-field input::placeholder {
  color: #9a9a9a;
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--color-black);
}

.form-field--select {
  position: relative;
}

.form-field--select::after {
  content: '';
  position: absolute;
  right: 24px;
  top: 50%;
  width: 10px;
  height: 6px;
  transform: translateY(-50%);
  background: 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='%230a0a0a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  pointer-events: none;
}

.form-field select {
  color: #6a6a6a;
  cursor: pointer;
  padding-right: 44px;
}

.form-field select:valid {
  color: var(--color-black);
}

.btn-submit {
  margin-top: 8px;
  padding: 16px 24px;
  background-color: var(--color-black);
  color: var(--color-white);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: opacity var(--transition);
}

.btn-submit:hover {
  opacity: 0.85;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-success {
  margin-top: 4px;
  padding: 14px 20px;
  border-radius: 12px;
  background-color: #eaf7ec;
  color: #1e6b28;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.form-error {
  margin-top: 4px;
  padding: 14px 20px;
  border-radius: 12px;
  background-color: #fbeaea;
  color: #a12626;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

/* ---- Panel del vehículo ---- */

.vehicle-panel {
  text-align: center;
}

.vehicle-image {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  border-radius: 16px;
}

.vehicle-name {
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
}

.vehicle-specs {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
}

.vehicle-specs strong {
  font-weight: 700;
}

/* Variante en 2 columnas (Honda): Versión/Potencia/Transmisión a la
   izquierda, Combustible/Cilindraje a la derecha */
.vehicle-specs--grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  text-align: left;
}

.vehicle-specs-col p {
  white-space: nowrap;
}

.vehicle-features {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 18px;
}

.vehicle-features li {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 96px;
}

.feature-icon {
  width: 34px;
  height: 34px;
  color: #6a6a6a;
}

.feature-label {
  margin-top: 8px;
  font-size: 9.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  color: #6a6a6a;
  line-height: 1.3;
  min-height: 26px;
}

.feature-status {
  margin-top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #6a6a6a;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.feature-status::before {
  content: '';
  width: 10px;
  height: 10px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.feature-status[data-status="true"] {
  border-color: #2e7d32;
  color: #2e7d32;
}

.feature-status[data-status="true"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7d32' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.feature-status[data-status="false"] {
  border-color: #c62828;
  color: #c62828;
}

.feature-status[data-status="false"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c62828' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
}

/* Dato aún no confirmado: se muestra un guión neutro en vez de inventar
   si el vehículo trae o no ese equipamiento. */
.feature-status[data-status="pending"] {
  border-color: #b0b0b0;
  border-style: dashed;
  color: #9a9a9a;
}

.feature-status[data-status="pending"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9a9a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='6' y1='12' x2='18' y2='12'/%3E%3C/svg%3E");
}

/* =========================================
   Página de cotizador — Showcase de modelos
   ========================================= */

.models-showcase {
  position: relative;
  background-color: var(--color-gray-light);
  padding: 56px 24px 64px;
  overflow: hidden;
}

.models-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1400px, 150%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
}

.models-list {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 48px;
}

/* Variante en grid para catálogos más grandes (8 modelos, ej. Honda) */
.models-list--grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 40px 24px;
}

.models-list--grid .model-card img {
  width: 100%;
  max-width: 170px;
}

/* Variante en grid de 5 columnas para catálogos aún más grandes (18 modelos, ej. Kia) */
.models-list--grid-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: 40px 24px;
}

.models-list--grid-5 .model-card img {
  width: 100%;
  max-width: 170px;
}

.model-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  transition: transform var(--transition);
}

.model-card:hover,
.model-card:focus-visible {
  transform: translateY(-6px);
}

.model-card img {
  width: 220px;
  max-width: 40vw;
}

.model-card span {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  min-height: 2.6em;
  text-align: center;
  color: var(--color-black) !important;
  text-decoration: none !important;
  -webkit-text-fill-color: var(--color-black);
}

.model-card.is-selected span {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =========================================
   Página de cotizador — Responsive
   ========================================= */

@media (max-width: 960px) {
  .quote-panel {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .vehicle-panel {
    order: -1;
  }

  .models-list--grid,
  .models-list--grid-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .quote-title {
    font-size: 24px;
  }

  .quote-intro {
    padding: 40px 20px 4px;
  }

  .quote-panel {
    padding: 32px 20px 56px;
  }

  .vehicle-features {
    gap: 16px 10px;
  }

  .vehicle-features li {
    width: 78px;
  }

  .feature-label {
    font-size: 8.5px;
  }

  .models-list {
    gap: 12px;
  }

  .model-card {
    padding: 10px;
  }

  .model-card img {
    width: 120px;
  }

  .models-list--grid,
  .models-list--grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
  }

  .models-list--grid .model-card img,
  .models-list--grid-5 .model-card img {
    max-width: 120px;
  }

  .vehicle-specs--grid {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .vehicle-specs-col p {
    white-space: normal;
  }
}

/* Popup de stands (home) */
.stands-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: rgba(0, 0, 0, 0.75);
  animation: standsPopupFadeIn 0.25s ease;
}

.stands-popup-overlay[hidden] {
  display: none;
}

body.stands-popup-open {
  overflow: hidden;
}

.stands-popup {
  position: relative;
  max-width: 360px;
  width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: standsPopupScaleIn 0.3s ease;
}

.stands-popup-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  background-color: #000;
}

.stands-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.55);
  color: var(--color-white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition);
}

.stands-popup-close:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

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

@keyframes standsPopupScaleIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 480px) {
  .stands-popup {
    max-width: 300px;
  }
}
