:root {
  --ink: #101820;
  --ink-soft: #34414c;
  --muted: #f3f6f7;
  --line: #dbe3e7;
  --brand: #c1121f;
  --brand-dark: #8f0d16;
  --accent: #f2b705;
  --success: #137a4b;
  --footer: #0d141b;
  --shadow: 0 18px 42px rgb(16 24 32 / 0.12);
  --radius: 8px;
  --container: 1180px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --road-angle: 0deg;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: var(--font);
  line-height: 1.55;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
  padding: 10px 14px;
  transform: translateY(-160%);
  color: var(--ink);
  background: var(--accent);
  border-radius: 6px;
  font-weight: 900;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgb(255 255 255 / 0.96);
  border-bottom: 0.35rem solid var(--brand);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
}

.nav__logo {
  width: 148px;
}

.nav__toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav__button {
  width: 44px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.nav__button span,
.nav__button span::before,
.nav__button span::after {
  width: 20px;
  height: 2px;
  display: block;
  background: var(--ink);
  content: "";
}

.nav__button span::before {
  transform: translateY(-7px);
}

.nav__button span::after {
  transform: translateY(5px);
}

.nav__list {
  position: fixed;
  inset: 92px 0 auto;
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 18px;
  list-style: none;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: 180ms ease;
}

.nav__toggle:checked ~ .nav__list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__list a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--ink-soft);
  font-weight: 850;
  text-decoration: none;
}

.nav__list a:hover {
  color: var(--brand);
  background: var(--muted);
}

.nav__list .nav__cta {
  color: #ffffff;
  background: var(--brand);
}

.button {
  position: relative;
  overflow: hidden;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.125rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}

.button--primary {
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 12px 22px rgb(193 18 31 / 0.2);
}

.button--primary:hover {
  background: var(--brand-dark);
}

.button--light,
.button--outline {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

.button--dark {
  color: #ffffff;
  background: var(--ink);
}

.button--assistant {
  color: var(--ink);
  background: var(--accent);
}

.button--road {
  isolation: isolate;
  padding: 0.95rem 1.45rem 1.1rem;
  border: 0;
  background:
    linear-gradient(#c1121f, #9d0f19) padding-box,
    conic-gradient(from var(--road-angle), #ff7a00, #fff200, #ff9d00, #ff3d00, #ff7a00) border-box;
  border: 0.16rem solid transparent;
  box-shadow:
    0 0 0.85rem rgb(255 122 0 / 0.75),
    0 0 1.8rem rgb(255 157 0 / 0.45),
    0 1rem 1.8rem rgb(16 24 32 / 0.22);
  animation: road-neon-spin 2.4s linear infinite, road-neon-pulse 1.15s ease-in-out infinite;
}

.button--road::before,
.button--road::after {
  position: absolute;
  right: 0.75rem;
  bottom: 0.38rem;
  left: 0.75rem;
  z-index: -1;
  height: 0.18rem;
  border-radius: 999px;
  content: "";
}

.button--road::before {
  background: rgb(16 24 32 / 0.55);
}

.button--road::after {
  right: 0.75rem;
  width: auto;
  background:
    linear-gradient(90deg, transparent, rgb(255 242 0 / 0.95), transparent),
    repeating-linear-gradient(
    90deg,
    #ff7a00 0 0.5rem,
    #fff200 0.5rem 0.72rem,
    transparent 0.72rem 1.05rem
  );
  background-size: 45% 100%, 1.05rem 100%;
  animation: road-indicator-sweep 0.78s linear infinite, road-indicator-blink 0.78s steps(2, jump-none) infinite;
}

.button--road:hover::after,
.button--road:focus-visible::after {
  animation-duration: 0.48s, 0.48s;
}

@property --road-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes road-neon-spin {
  to {
    --road-angle: 360deg;
  }
}

@keyframes road-neon-pulse {
  0%,
  100% {
    filter: saturate(1);
    transform: translateY(0);
  }
  50% {
    filter: saturate(1.25);
    transform: translateY(-0.08rem);
  }
}

@keyframes road-indicator-sweep {
  from {
    background-position: -55% 0, 0 0;
  }
  to {
    background-position: 155% 0, 1.05rem 0;
  }
}

@keyframes road-indicator-blink {
  0%,
  100% {
    opacity: 0.45;
    box-shadow: 0 0 0.35rem rgb(255 122 0 / 0.55);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 0.85rem rgb(255 174 0 / 0.95);
  }
}

@media (prefers-reduced-motion: reduce) {
  .button--road {
    animation: none;
  }
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  max-width: 42rem;
  font-size: clamp(1.45rem, 1.15rem + 0.9vw, 2rem);
  line-height: 1.12;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgb(16 24 32 / 0.9), rgb(16 24 32 / 0.72)),
    url("img/hero-importacion.webp") center / cover;
}

.hero::after {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--success));
  content: "";
}

.hero__grid {
  min-height: min(42rem, calc(100vh - 5.75rem));
  display: grid;
  gap: 2rem;
  align-items: center;
  justify-items: center;
  padding-block: clamp(4rem, 10vh, 6rem);
  text-align: center;
}

.hero__content {
  display: grid;
  justify-items: center;
  gap: 1.15rem;
  max-width: 52rem;
}

.hero__title {
  max-width: 44rem;
  margin: 0;
  font-size: clamp(2rem, 1.55rem + 1.4vw, 2.2rem);
  line-height: 1.08;
}

.hero__text {
  max-width: 42rem;
  margin: 0;
  color: rgb(255 255 255 / 0.86);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
}

.hero__actions,
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__facts {
  justify-content: center;
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}

.hero__facts li {
  min-width: 8rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.08);
}

.hero__facts strong,
.hero__facts span {
  display: block;
}

.hero__facts span {
  color: rgb(255 255 255 / 0.74);
}

.intro-band,
.trust-strip,
.process,
.contact {
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.intro-band__grid,
.guarantees__grid,
.contact__grid,
.faq__grid {
  display: grid;
  gap: 42px;
}

.contact__grid {
  align-items: center;
}

.intro-band h2,
.contact h2 {
  margin: 0;
  font-size: clamp(1.45rem, 1.15rem + 0.9vw, 2rem);
  line-height: 1.12;
}

.intro-band p,
.guarantees p,
.contact p {
  max-width: 760px;
  color: var(--ink-soft);
}

.intro-band__actions,
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.trust-strip {
  padding-block: 1.75rem;
  background: #ffffff;
}

.trust-strip__grid {
  display: grid;
  gap: 12px;
}

.trust-strip article {
  position: relative;
  display: grid;
  gap: 0.15rem;
  min-height: 6.25rem;
  padding: 1.15rem 1.15rem 1.15rem 4rem;
  border: 1px solid var(--line);
  border-left: 0.35rem solid var(--brand);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.trust-strip article::before,
.process__grid li::before,
.guarantees__cards article::before {
  position: absolute;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--ink));
  font-weight: 950;
  line-height: 1;
  content: "✓";
}

.trust-strip article::before {
  top: 1.15rem;
  left: 1.15rem;
}

.trust-strip span {
  color: var(--ink-soft);
}

.vehicles-section,
.guarantees,
.faq {
  padding-block: clamp(3rem, 6vw, 4.75rem);
  background: var(--muted);
}

.info-pair {
  padding-block: clamp(3rem, 6vw, 4.75rem);
  background: var(--muted);
}

.info-pair__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
}

.info-pair .guarantees,
.info-pair .faq {
  padding-block: 0;
  background: transparent;
}

.info-pair .guarantees__grid,
.info-pair .faq__grid {
  display: grid;
  gap: 1.5rem;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.125rem;
  margin-bottom: 1.75rem;
}

.section-header a {
  align-self: end;
  color: var(--brand);
  font-weight: 900;
  text-decoration: none;
}

.stock-filters {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.stock-filters label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 850;
}

.stock-filters input,
.stock-filters select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.vehicles__grid {
  display: grid;
  gap: 1.375rem;
}

.vehicle-card,
.empty-state,
.process__grid li,
.guarantees__cards article,
.faq details,
.contact-form {
  border: 1px solid var(--line);
  border-left: 0.35rem solid var(--brand);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.vehicle-card {
  overflow: hidden;
}

.vehicle-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #e7ecef;
}

.vehicle-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--success);
  font-size: 0.82rem;
  font-weight: 900;
}

.vehicle-card__badge--reservado {
  color: var(--ink);
  background: var(--accent);
}

.vehicle-card__badge--vendido {
  background: var(--brand);
}

.vehicle-card__body {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.vehicle-card__title,
.vehicle-card__price {
  margin: 0;
}

.vehicle-card__title {
  font-size: 1.15rem;
  line-height: 1.2;
}

.vehicle-card__variant,
.vehicle-card__price-note {
  margin: 4px 0 0;
  color: var(--ink-soft);
}

.vehicle-card__price {
  color: var(--brand);
  font-size: 1.3rem;
  font-weight: 950;
}

.vehicle-card__specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vehicle-card__specs li {
  min-width: 0;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--ink-soft);
  background: var(--muted);
  font-weight: 800;
}

.vehicle-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.empty-state {
  padding: 1.75rem;
}

.process {
  background: #ffffff;
}

.process__grid {
  display: grid;
  gap: 1rem;
  margin: 1.875rem 0 0;
  padding: 0;
  list-style: none;
}

.process__grid li,
.guarantees__cards article,
.faq details {
  padding: 1.35rem;
}

.process__grid li,
.guarantees__cards article {
  position: relative;
  padding-left: 4rem;
}

.process__grid li::before,
.guarantees__cards article::before {
  top: 1.35rem;
  left: 1.15rem;
}

.process__grid li:nth-child(2)::before { content: "⌕"; }
.process__grid li:nth-child(3)::before { content: "€"; }
.process__grid li:nth-child(4)::before { content: "✓"; }
.process__grid li:nth-child(5)::before { content: "→"; }
.process__grid li:nth-child(6)::before { content: "ES"; font-size: 0.75rem; }

.guarantees__cards article:nth-child(1)::before { content: "✓"; }
.guarantees__cards article:nth-child(2)::before { content: "€"; }
.guarantees__cards article:nth-child(3)::before { content: "i"; }

.process__grid strong,
.process__grid span {
  display: block;
}

.process__grid span {
  margin-top: 8px;
  color: var(--ink-soft);
}

.guarantees__cards,
.faq__items {
  display: grid;
  gap: 1rem;
}

.guarantees__cards h3,
.guarantees__cards p,
.faq p {
  margin: 0;
}

.guarantees__cards p,
.faq p {
  margin-top: 8px;
  color: var(--ink-soft);
}

.faq summary {
  font-weight: 900;
  cursor: pointer;
}

.contact-online {
  display: grid;
  justify-items: center;
  align-self: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-left: 0.35rem solid var(--brand);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-online h3,
.contact-online p {
  margin: 0;
}

.contact-online h3 {
  font-size: 1.15rem;
  line-height: 1.2;
}

.contact-online ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.contact-online li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ink-soft);
}

.contact-online li::before {
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 950;
  content: "✓";
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 850;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.contact-form__note,
#contactFormMessage {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer {
  padding-block: 2.75rem 1.25rem;
  color: rgb(255 255 255 / 0.78);
  background: var(--footer);
  line-height: 1.35;
}

.footer__grid {
  display: grid;
  gap: 1.5rem;
}

.footer__logo {
  width: min(100%, 14rem);
  margin-bottom: 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  background: #ffffff;
  object-fit: contain;
}

.footer__section,
.footer address,
.footer nav {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  font-style: normal;
}

.footer__section {
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 0.12);
}

.footer__section--brand {
  padding-top: 0;
  border-top: 0;
}

.footer strong {
  color: #ffffff;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.footer a,
.footer button {
  color: rgb(255 255 255 / 0.82);
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  text-decoration: none;
}

.footer a:hover,
.footer button:hover {
  color: #ffffff;
}

.footer__bottom {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 0.12);
}

.sales-agent-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 16px 4px 5px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brand);
  font-weight: 900;
  box-shadow: var(--shadow);
}

.sales-agent-toggle__avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  border: 2px solid #ffffff;
}

.sales-agent {
  position: fixed;
  right: 18px;
  bottom: 82px;
  z-index: 100;
  width: min(calc(100vw - 36px), 390px);
  display: none;
}

.sales-agent.is-open,
.sales-agent.sales-agent--open {
  display: block;
}

.sales-agent-toggle.sales-agent-toggle--hidden {
  display: none;
}

.sales-agent__panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.sales-agent__header,
.sales-agent__form {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.sales-agent__header {
  justify-content: space-between;
}

.sales-agent__identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sales-agent__avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: var(--muted);
  border: 2px solid #ffffff;
  box-shadow: 0 6px 14px rgb(16 24 32 / 0.14);
}

.sales-agent__avatar--small {
  width: 34px;
  height: 34px;
  margin-top: 2px;
}

.sales-agent__header button {
  border: 0;
  background: transparent;
  font-weight: 900;
}

.sales-agent__messages {
  max-height: 330px;
  overflow: auto;
  padding: 14px;
}

.sales-agent__message {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--muted);
}

.sales-agent__message--with-avatar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.sales-agent__message p {
  margin: 0;
}

.sales-agent__form {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.sales-agent__form textarea {
  flex: 1;
  min-height: 42px;
  max-height: 110px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
}

.sales-agent__form button {
  border: 0;
  border-radius: 6px;
  padding: 11px 14px;
  color: #ffffff;
  background: var(--brand);
  font-weight: 900;
}

@media (min-width: 680px) {
  .trust-strip__grid,
  .process__grid,
  .vehicles__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stock-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__section {
    padding-top: 0;
    border-top: 0;
  }
}

@media (min-width: 940px) {
  .nav__button {
    display: none;
  }

  .nav__list {
    position: static;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
  }

  .intro-band__grid,
  .contact__grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .stock-filters {
    grid-template-columns: 1.2fr 0.9fr 0.8fr 0.9fr auto;
    align-items: end;
  }

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

  .footer__bottom {
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .info-pair__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .info-pair .guarantees__grid,
  .info-pair .faq__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .info-pair .section-title {
    max-width: 34rem;
  }
}
