:root {
  --color-bg: #f3f6fa;
  --color-surface: #ffffff;
  --color-surface-soft: #f8fafc;
  --color-dark: #061a2e;
  --color-dark-2: #092744;
  --color-blue: #0b3158;
  --color-orange: #f59e0b;
  --color-orange-dark: #c76e00;
  --color-green: #128c4a;
  --color-red: #b42318;
  --color-yellow: #854d0e;
  --color-text: #101828;
  --color-muted: #64748b;
  --color-border: #d8e1ec;

  --shadow-sm: 0 0.5rem 1.25rem rgb(6 26 46 / 0.08);
  --shadow-md: 0 1rem 2.5rem rgb(6 26 46 / 0.12);
  --shadow-lg: 0 1.5rem 4rem rgb(6 26 46 / 0.18);

  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 1.75rem;
  --radius-xl: 2.5rem;

  --container: 76rem;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;
  --space-4xl: 7rem;

  --font-main: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* RESET */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

:focus-visible {
  outline: 0.2rem solid var(--color-orange);
  outline-offset: 0.25rem;
}

::selection {
  color: var(--color-dark);
  background: var(--color-orange);
}

/* ACCESSIBILITY */

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: var(--color-dark);
  background: var(--color-orange);
  border-radius: var(--radius-sm);
  font-weight: 900;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* GLOBAL */

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 var(--space-sm);
  color: var(--color-orange);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: var(--color-dark);
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.section-header {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.section-header--compact {
  margin-bottom: var(--space-lg);
}

.section-header__link {
  color: var(--color-blue);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  border: 0.0625rem solid transparent;
  border-radius: 999rem;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-0.12rem);
  box-shadow: var(--shadow-sm);
}

.button--primary {
  color: var(--color-dark);
  background: var(--color-orange);
}

.button--primary:hover {
  background: #ffb326;
}

.button--card {
  color: var(--color-dark);
  background: linear-gradient(180deg, #ffb326, var(--color-orange));
  border-color: rgb(180 83 9 / 0.42);
  box-shadow: 0 0.75rem 1.5rem rgb(245 158 11 / 0.22);
}

.button--card:hover {
  background: linear-gradient(180deg, #ffc14a, #f59e0b);
  border-color: rgb(180 83 9 / 0.62);
  box-shadow: 0 1rem 2rem rgb(245 158 11 / 0.3);
}

.button--secondary {
  color: #ffffff;
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(255 255 255 / 0.22);
}

.button--dark {
  color: #ffffff;
  background: var(--color-dark);
}

.button--secondary-dark {
  color: var(--color-dark);
  background: #ffffff;
  border-color: #d8e1ec;
}

.button--assistant {
  color: #ffffff;
  background: var(--color-blue);
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.9);
  border-bottom: 0.0625rem solid rgb(216 225 236 / 0.9);
  backdrop-filter: blur(1rem);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
}

.nav__logo {
  width: clamp(10rem, 18vw, 14rem);
  height: auto;
  object-fit: contain;
}

.nav__toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav__button {
  display: grid;
  place-items: center;
  width: 2.85rem;
  aspect-ratio: 1;
  background: var(--color-surface);
  border: 0.0625rem solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav__line,
.nav__line::before,
.nav__line::after {
  display: block;
  width: 1.25rem;
  height: 0.125rem;
  background: var(--color-dark);
  border-radius: 999rem;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav__line::before {
  transform: translateY(-0.45rem);
}

.nav__line::after {
  transform: translateY(0.32rem);
}

.nav__toggle:checked + .nav__button .nav__line {
  background: transparent;
}

.nav__toggle:checked + .nav__button .nav__line::before {
  transform: rotate(45deg);
}

.nav__toggle:checked + .nav__button .nav__line::after {
  transform: rotate(-45deg);
}

.nav__list {
  position: absolute;
  inset: 5rem 1rem auto;
  display: grid;
  gap: var(--space-xs);
  padding: var(--space-md);
  margin: 0;
  list-style: none;
  background: var(--color-surface);
  border: 0.0625rem solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.nav__toggle:checked ~ .nav__list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__link {
  display: block;
  padding: 0.85rem 1rem;
  color: var(--color-dark);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 900;
}

.nav__link:hover {
  background: #edf4fb;
}

.nav__link--cta {
  color: #ffffff;
  background: var(--color-dark);
}

/* HERO */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(4.5rem, 10vw, 7rem);
  color: #ffffff;
  background:
    radial-gradient(circle at 85% 20%, rgb(245 158 11 / 0.22), transparent 26rem),
    linear-gradient(135deg, #061a2e 0%, #0a3158 55%, #06121f 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgb(6 26 46 / 0.94), rgb(6 26 46 / 0.72)),
    url("https://images.unsplash.com/photo-1542362567-b07e54358753?auto=format&fit=crop&w=1800&q=80") center / cover;
  opacity: 0.42;
  content: "";
}

.hero::after {
  position: absolute;
  right: -6rem;
  bottom: -8rem;
  z-index: -1;
  width: clamp(16rem, 30vw, 26rem);
  aspect-ratio: 1;
  border: 2rem solid rgb(255 255 255 / 0.08);
  border-radius: 50%;
  content: "";
}

.hero__grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}

.hero__content {
  max-width: 56rem;
}

.hero__title {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.hero__text {
  max-width: 44rem;
  margin: var(--space-lg) 0 0;
  color: rgb(255 255 255 / 0.82);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.hero__stats {
  display: grid;
  gap: var(--space-md);
  padding: 0;
  margin: var(--space-2xl) 0 0;
  list-style: none;
}

.hero__stats li {
  padding: var(--space-md);
  background: rgb(255 255 255 / 0.08);
  border: 0.0625rem solid rgb(255 255 255 / 0.14);
  border-radius: var(--radius-md);
}

.hero__stats strong {
  display: block;
  color: #ffffff;
  font-size: 1.1rem;
}

.hero__stats span {
  color: rgb(255 255 255 / 0.7);
  font-size: 0.9rem;
}

.hero-card {
  padding: var(--space-xl);
  background: rgb(255 255 255 / 0.1);
  border: 0.0625rem solid rgb(255 255 255 / 0.18);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(1rem);
}

.hero-card__top {
  display: grid;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.hero-card__badge {
  justify-self: start;
  padding: 0.35rem 0.75rem;
  color: var(--color-dark);
  background: var(--color-orange);
  border-radius: 999rem;
  font-size: 0.78rem;
  font-weight: 950;
}

.hero-card__top strong {
  font-size: 1.5rem;
  line-height: 1.1;
}

.hero-card__list {
  display: grid;
  gap: var(--space-sm);
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-card__list li {
  position: relative;
  padding-left: 1.5rem;
  color: rgb(255 255 255 / 0.82);
}

.hero-card__list li::before {
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 0.55rem;
  aspect-ratio: 1;
  background: var(--color-orange);
  border-radius: 50%;
  content: "";
}

.hero-card__link {
  display: inline-block;
  margin-top: var(--space-lg);
  color: var(--color-orange);
  font-weight: 950;
}

/* BESPOKE CTA */

.bespoke-cta {
  position: relative;
  z-index: 2;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  background: var(--color-bg);
}

.bespoke-cta__box {
  display: grid;
  gap: clamp(1.35rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 92% 12%, rgb(245 158 11 / 0.11), transparent 18rem),
    var(--color-surface);
  border: 0.0625rem solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.bespoke-cta__content {
  display: grid;
  gap: var(--space-sm);
}

.bespoke-cta__content .section-title {
  max-width: 54rem;
  font-size: clamp(1.25rem, 2.5vw, 1.9rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.bespoke-cta__content p:not(.eyebrow) {
  max-width: 58rem;
  margin: 0;
  color: var(--color-muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.bespoke-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  justify-content: flex-start;
}

.bespoke-cta__actions .button {
  box-shadow: var(--shadow-sm);
}

.bespoke-cta__actions .button--secondary {
  color: var(--color-dark);
  background: #ffffff;
  border-color: rgb(245 158 11 / 0.42);
  box-shadow: 0 0.75rem 1.5rem rgb(15 23 42 / 0.08);
}

.bespoke-cta__actions .button--secondary:hover {
  background: #fff7ed;
  border-color: rgb(245 158 11 / 0.65);
  box-shadow: 0 1rem 2rem rgb(245 158 11 / 0.18);
}

.contact-form__field {
  display: grid;
  gap: var(--space-xs);
  color: var(--color-dark);
  font-size: 0.9rem;
  font-weight: 950;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 3.15rem;
  padding: 0.75rem 1rem;
  color: var(--color-text);
  background: var(--color-surface-soft);
  border: 0.0625rem solid var(--color-border);
  border-radius: var(--radius-sm);
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: #ffffff;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 0.25rem rgb(245 158 11 / 0.16);
  outline: none;
}

/* TRUST */

.trust-strip {
  padding-block: var(--space-xl);
  background: var(--color-surface);
  border-block: 0.0625rem solid var(--color-border);
}

.trust-strip__grid {
  display: grid;
  gap: var(--space-md);
}

.trust-item {
  padding: var(--space-lg);
  background: linear-gradient(180deg, #ffffff, #f4f7fb);
  border: 0.0625rem solid var(--color-border);
  border-radius: var(--radius-lg);
}

.trust-item strong {
  display: block;
  color: var(--color-dark);
  font-size: 1.1rem;
}

.trust-item span {
  color: var(--color-muted);
  font-size: 0.92rem;
}

/* VEHICLES */

.vehicles-section {
  padding-block: var(--space-4xl);
}

.vehicles__grid {
  display: grid;
  gap: 1rem;
}

.vehicle-card {
  overflow: hidden;
  background: var(--color-surface);
  border: 0.0625rem solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.vehicle-card:hover {
  transform: translateY(-0.3rem);
  border-color: rgb(245 158 11 / 0.55);
  box-shadow: var(--shadow-lg);
}

.vehicle-card__media {
  position: relative;
  overflow: hidden;
  background: var(--color-dark);
}

.vehicle-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 240ms ease;
}

.vehicle-card:hover .vehicle-card__image {
  transform: scale(1.035);
}

.vehicle-card__body {
  display: grid;
  gap: 0.72rem;
  padding: 0.9rem;
}

.vehicle-card__heading {
  display: grid;
  gap: var(--space-sm);
}

.vehicle-card__title {
  margin: 0;
  color: var(--color-dark);
  font-size: 1.05rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.vehicle-card__variant {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.vehicle-card__price {
  margin: 0;
  color: var(--color-orange-dark);
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.vehicle-card__specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.38rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.vehicle-card__specs li {
  min-width: 0;
  padding: 0.42rem 0.5rem;
  color: var(--color-dark);
  background: #eef4fa;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.vehicle-card__meta {
  display: grid;
  gap: 0.35rem;
  padding-top: 0.72rem;
  color: var(--color-muted);
  border-top: 0.0625rem solid var(--color-border);
  font-size: 0.78rem;
  font-weight: 750;
}

.vehicle-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.48rem;
  align-items: center;
}

.vehicle-card__status {
  justify-self: start;
  grid-column: 1 / -1;
  min-height: 1.85rem;
  padding: 0.38rem 0.68rem;
  border: 0.0625rem solid transparent;
  border-radius: 999rem;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
}

.vehicle-card__status--disponible {
  color: #14532d;
  background: #dcfce7;
  border-color: #86efac;
}

.vehicle-card__status--reservado {
  color: #78350f;
  background: #fef3c7;
  border-color: #fcd34d;
}

.vehicle-card__status--vendido {
  color: #7f1d1d;
  background: #fee2e2;
  border-color: #fecaca;
}

.vehicle-card__actions .button {
  width: 100%;
  border-width: 0.095rem;
  min-height: 2.35rem;
  padding: 0.55rem 0.48rem;
  font-size: 0.74rem;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.car-detail__content .vehicle-card__actions .button {
  border-color: rgb(245 158 11 / 0.45);
  box-shadow: 0 0.85rem 1.6rem rgb(245 158 11 / 0.18);
}

.car-detail__content .vehicle-card__actions .button--assistant {
  background: linear-gradient(180deg, #ffb326, var(--color-orange));
  color: var(--color-dark);
}

.car-detail__content .vehicle-card__actions .button:hover {
  border-color: rgb(180 83 9 / 0.62);
  box-shadow: 0 1rem 2rem rgb(245 158 11 / 0.28);
}

.empty-state {
  grid-column: 1 / -1;
  padding: var(--space-2xl);
  text-align: center;
  background: var(--color-surface);
  border: 0.0625rem solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.empty-state h3 {
  margin: 0 0 var(--space-sm);
  color: var(--color-dark);
  font-size: 1.5rem;
}

.empty-state p {
  margin: 0;
  color: var(--color-muted);
}

/* PROCESS */

.process {
  padding-block: var(--space-4xl);
  background: var(--color-surface);
}

.process__grid {
  display: grid;
  gap: var(--space-md);
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}

.process-card {
  position: relative;
  min-height: 9rem;
  padding: var(--space-xl);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 0.0625rem solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  counter-increment: step;
}

.process-card::before {
  display: grid;
  place-items: center;
  width: 2.2rem;
  aspect-ratio: 1;
  margin-bottom: var(--space-md);
  color: var(--color-dark);
  background: var(--color-orange);
  border-radius: 50%;
  font-weight: 950;
  content: counter(step);
}

.process-card strong {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--color-dark);
  font-size: 1.15rem;
}

.process-card span {
  color: var(--color-muted);
}

/* GUARANTEES */

.guarantees {
  padding-block: var(--space-4xl);
}

.guarantees__grid {
  display: grid;
  gap: var(--space-2xl);
}

.guarantees__text {
  color: var(--color-muted);
  font-size: 1.08rem;
}

.guarantees__cards {
  display: grid;
  gap: var(--space-md);
}

.guarantee-card {
  padding: var(--space-xl);
  background: var(--color-surface);
  border: 0.0625rem solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.guarantee-card h3 {
  margin: 0 0 var(--space-sm);
  color: var(--color-dark);
}

.guarantee-card p {
  margin: 0;
  color: var(--color-muted);
}

/* CONVERSION */

.conversion-band {
  padding-block: var(--space-3xl);
  color: #ffffff;
  background:
    radial-gradient(circle at right, rgb(245 158 11 / 0.18), transparent 24rem),
    linear-gradient(135deg, var(--color-dark), #06121f);
}

.conversion-band__grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

.conversion-band h2 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.conversion-band p {
  color: rgb(255 255 255 / 0.78);
}

/* FAQ */

.faq {
  padding-block: var(--space-4xl);
  background: var(--color-surface);
}

.faq__grid {
  display: grid;
  gap: var(--space-xl);
}

.faq__items {
  display: grid;
  gap: var(--space-md);
}

.faq-item {
  padding: var(--space-lg);
  background: var(--color-surface-soft);
  border: 0.0625rem solid var(--color-border);
  border-radius: var(--radius-lg);
}

.faq-item summary {
  color: var(--color-dark);
  font-weight: 950;
  cursor: pointer;
}

.faq-item p {
  color: var(--color-muted);
}

/* CONTACT */

.contact {
  padding-block: var(--space-4xl);
}

.contact__grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: start;
}

.contact__content p {
  max-width: 42rem;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.contact-form {
  display: grid;
  gap: var(--space-md);
  padding: var(--space-xl);
  background: var(--color-surface);
  border: 0.0625rem solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.contact-form textarea {
  resize: vertical;
}

.rich-text {
  overflow: hidden;
  border: 0.0625rem solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

.rich-text:focus-within {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 0.25rem rgb(245 158 11 / 0.16);
}

.rich-text__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.45rem;
  background: #eef4fa;
  border-bottom: 0.0625rem solid var(--color-border);
}

.rich-text__button {
  display: grid;
  place-items: center;
  min-width: 2.2rem;
  min-height: 2rem;
  padding: 0.35rem 0.55rem;
  color: var(--color-dark);
  background: #ffffff;
  border: 0.0625rem solid var(--color-border);
  border-radius: 0.45rem;
  font-weight: 950;
  cursor: pointer;
}

.rich-text__button:hover {
  border-color: rgb(245 158 11 / 0.6);
  background: #fff7ed;
}

.rich-text__button--text-size {
  min-width: 2.55rem;
}

.rich-text__editor {
  width: 100%;
  min-height: 9rem;
  padding: 0.85rem 1rem;
  color: var(--color-text);
  background: var(--color-surface-soft);
  line-height: 1.65;
  outline: none;
}

.rich-text__editor:empty::before {
  color: var(--color-muted);
  content: attr(data-placeholder);
}

.rich-text__editor p,
.rich-text__editor ul,
.rich-text__editor ol {
  margin: 0 0 0.8rem;
}

.rich-text__editor :last-child {
  margin-bottom: 0;
}

.rich-text-size--small {
  font-size: 0.88em;
}

.rich-text-size--large {
  font-size: 1.2em;
}

.rich-text__source {
  display: none !important;
}

.rich-text-context-menu {
  position: fixed;
  z-index: 5000;
  display: grid;
  min-width: 12rem;
  padding: 0.35rem;
  background: #ffffff;
  border: 0.0625rem solid rgb(203 213 225);
  border-radius: 0.55rem;
  box-shadow: 0 1.25rem 3rem rgb(15 23 42 / 0.22);
}

.rich-text-context-menu__button {
  width: 100%;
  padding: 0.65rem 0.75rem;
  color: var(--color-dark);
  background: transparent;
  border: 0;
  border-radius: 0.4rem;
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.rich-text-context-menu__button:hover,
.rich-text-context-menu__button:focus-visible {
  background: #fff7ed;
  color: var(--color-orange-dark);
  outline: none;
}

/* FOOTER */

.footer {
  padding-block: 1.25rem 1rem;
  color: rgb(255 255 255 / 0.78);
  background:
    radial-gradient(circle at 12% 0%, rgb(245 158 11 / .14), transparent 18rem),
    linear-gradient(135deg, #06121f, #081827 62%, #04101d);
}

/* LEGAL PAGES */

.legal-page {
  padding-block: clamp(2rem, 6vw, 5rem);
}

.legal-page__content {
  display: grid;
  gap: 1rem;
  max-width: 58rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: var(--color-surface);
  border: 0.0625rem solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.legal-page__content h1,
.legal-page__content h2,
.legal-page__content p {
  margin: 0;
}

.legal-page__content h1 {
  color: var(--color-dark);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
}

.legal-page__content h2 {
  margin-top: 1rem;
  color: var(--color-dark);
  font-size: 1.25rem;
}

.legal-page__content p {
  color: var(--color-text);
}

.legal-page__content a {
  color: var(--color-orange-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.footer__grid {
  display: grid;
  gap: .8rem;
  align-items: stretch;
  padding: .9rem;
  border: 1px solid rgb(255 255 255 / .1);
  border-radius: .75rem;
  background: rgb(255 255 255 / .045);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .06);
}

.footer__logo {
  width: 7.75rem;
  height: auto;
  margin-bottom: .55rem;
}

.footer p {
  margin: 0;
  max-width: 24rem;
  color: rgb(255 255 255 / .72);
  font-size: .88rem;
  line-height: 1.42;
}

.footer__brand,
.footer__address,
.footer__nav,
.footer__cta {
  min-width: 0;
  padding: .75rem;
  border-radius: .55rem;
}

.footer__address,
.footer__nav {
  display: grid;
  align-content: start;
  gap: .35rem;
  font-style: normal;
  font-size: .88rem;
}

.footer strong {
  color: #ffffff;
  margin-bottom: .1rem;
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer a,
.footer span {
  line-height: 1.35;
}

.footer a {
  color: rgb(255 255 255 / .76);
}

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

.footer__cta {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: .55rem;
  background: rgb(255 255 255 / .06);
  border: 1px solid rgb(255 255 255 / .08);
}

.footer__cta span {
  color: rgb(255 255 255 / .66);
  font-size: .78rem;
  font-weight: 850;
}

.footer__cta a,
.footer__cta button {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: .65rem .85rem;
  color: #ffffff;
  background: var(--color-blue);
  border-radius: .45rem;
  font-size: .86rem;
  font-weight: 950;
  cursor: pointer;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .45rem 1rem;
  margin-top: .8rem;
  padding-inline: .25rem;
  color: rgb(255 255 255 / .5);
  font-size: .78rem;
  line-height: 1.35;
}

.footer__bottom p {
  max-width: none;
  color: inherit;
  font-size: inherit;
}

.footer__bottom span {
  color: inherit;
}

/* RESPONSIVE */

@media (min-width: 40rem) {
  .hero__stats,
  .trust-strip__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 48rem) {
  .nav__button {
    display: none;
  }

  .nav__list {
    position: static;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  }

  .bespoke-cta__box {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .trust-strip__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .section-header {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .vehicles__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guarantees__grid,
  .faq__grid,
  .contact__grid {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .conversion-band__grid {
    grid-template-columns: 1fr auto;
  }

  .footer__grid {
    grid-template-columns: minmax(16rem, 1.35fr) minmax(11rem, .8fr) minmax(8rem, .55fr) auto;
  }
}

@media (min-width: 72rem) {
  .vehicles__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .process__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: 0.001ms;
    animation-duration: 0.001ms;
    animation-iteration-count: 1;
  }
}

/* Mejoras profesionales reconstruidas */
body:has(.admin-login), body:has(.admin) { background: #f3f6f9; }
.admin-shell { background: #edf2f7; }
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: clamp(1rem,4vw,3rem); background: linear-gradient(120deg, rgb(6 26 46 / .95), rgb(17 24 39 / .88)), url("/img/logo-nexo-motors-import.png") center right 8% / min(30rem,68vw) auto no-repeat, var(--color-dark); }
.admin-login__card { width: min(100%,28rem); display: grid; gap: 1.3rem; padding: clamp(1.5rem,4vw,2.3rem); border: 1px solid rgb(255 255 255 / .12); border-radius: .5rem; color: #fff; background: rgb(255 255 255 / .08); box-shadow: 0 28px 90px rgb(0 0 0 / .32); backdrop-filter: blur(18px); }
.admin-login__home { justify-self: start; padding: .55rem .75rem; border: 1px solid rgb(255 255 255 / .16); border-radius: .45rem; color: rgb(255 255 255 / .82); background: rgb(255 255 255 / .08); font-size: .86rem; font-weight: 900; }
.admin-login__home:hover { color: #fff; border-color: rgb(245 158 11 / .55); background: rgb(245 158 11 / .14); }
.admin-login__title { margin: 0; font-size: clamp(2rem,7vw,3.5rem); line-height: .95; }
.admin-login__error { margin: 0; padding: .8rem 1rem; border: 1px solid rgb(248 113 113 / .45); border-radius: .5rem; color: #fecaca; background: rgb(127 29 29 / .45); font-weight: 800; }
.admin-login .admin-form { display: grid; gap: 1rem; }
.admin-login .admin-form input { width: 100%; border: 1px solid rgb(255 255 255 / .18); border-radius: .5rem; padding: .9rem 1rem; color: #fff; background: rgb(255 255 255 / .1); }
.admin-login .admin-form .button { justify-self: start; margin-top: .35rem; }
.admin { padding-block: clamp(2rem,5vw,4rem); }
.admin-dashboard-page { width: min(100% - 2rem, 96rem); margin-inline: auto; display: grid; gap: 1.25rem; }
.admin-topbar { position: sticky; top: .75rem; z-index: 20; display: grid; gap: 1rem; align-items: center; padding: .85rem; border: 1px solid #d8e2ef; border-radius: .75rem; background: rgb(255 255 255 / .9); box-shadow: 0 18px 60px rgb(15 23 42 / .08); backdrop-filter: blur(16px); }
.admin-brand { display: flex; align-items: center; gap: .75rem; color: var(--color-dark); font-weight: 950; text-decoration: none; }
.admin-brand img { width: 8.5rem; height: auto; object-fit: contain; }
.admin-brand span { padding: .35rem .55rem; border-radius: 999rem; color: #475569; background: #eef2f7; font-size: .78rem; }
.admin-topbar__nav { display: flex; flex-wrap: wrap; gap: .35rem; }
.admin-topbar__nav a { padding: .65rem .8rem; border-radius: .45rem; color: #334155; background: #f8fafc; font-weight: 850; text-decoration: none; }
.admin-topbar__nav a:hover { color: var(--color-dark); background: #e2e8f0; }
.admin-hero-panel { display: grid; gap: 1.2rem; align-items: end; padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid #d8e2ef; border-radius: .75rem; color: #fff; background: linear-gradient(135deg, #061a2e, #10243a 58%, #1e293b); box-shadow: 0 24px 80px rgb(15 23 42 / .16); overflow: hidden; }
.admin-hero-panel h1 { max-width: 48rem; margin: 0; font-size: clamp(2rem, 5vw, 4rem); line-height: .98; color: #fff; }
.admin-hero-panel p:not(.eyebrow) { max-width: 42rem; margin: .7rem 0 0; color: rgb(255 255 255 / .75); }
.admin-hero-panel__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.admin-kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.admin-kpi { display: grid; gap: .35rem; min-height: 8.5rem; padding: 1.05rem; border: 1px solid #d8e2ef; border-radius: .65rem; background: #fff; box-shadow: 0 16px 44px rgb(15 23 42 / .06); }
.admin-kpi span { color: #64748b; font-size: .82rem; font-weight: 950; text-transform: uppercase; }
.admin-kpi strong { color: var(--color-dark); font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1; }
.admin-kpi small { color: #64748b; font-weight: 750; }
.admin-kpi--primary { background: linear-gradient(145deg, #fff7ed, #fff); border-color: rgb(245 158 11 / .35); }
.admin-kpi--alert { border-color: rgb(245 158 11 / .45); }
.admin-kpi--hot { border-color: rgb(34 197 94 / .35); }
.admin-workspace { display: grid; gap: 1rem; }
.admin-panel { display: grid; gap: 1rem; padding: clamp(1rem, 3vw, 1.25rem); border: 1px solid #d8e2ef; border-radius: .65rem; background: #fff; box-shadow: 0 16px 44px rgb(15 23 42 / .06); }
.admin-panel__header { display: flex; justify-content: space-between; align-items: end; gap: 1rem; padding-bottom: .85rem; border-bottom: 1px solid #e2e8f0; }
.admin-panel__header h2, .admin-panel__header p { margin: 0; }
.admin-panel__header h2 { color: var(--color-dark); font-size: 1.25rem; }
.admin-panel__header a { color: var(--color-orange-dark); font-weight: 900; }
.admin-quick-actions { display: grid; gap: .75rem; }
.admin-quick-actions a { display: grid; gap: .2rem; padding: 1rem; border: 1px solid #e2e8f0; border-radius: .55rem; color: var(--color-dark); background: #f8fafc; text-decoration: none; }
.admin-quick-actions a:hover { border-color: rgb(245 158 11 / .45); background: #fff7ed; }
.admin-quick-actions span { color: #64748b; font-size: .9rem; }
.admin-list { display: grid; gap: .65rem; }
.admin-list-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem; border: 1px solid #e2e8f0; border-radius: .55rem; color: var(--color-dark); background: #fff; text-decoration: none; }
.admin-list-item:hover { background: #f8fafc; }
.admin-list-item span { min-width: 0; display: grid; gap: .15rem; }
.admin-list-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-list-item small { color: #64748b; }
.admin-list-item em { flex: none; padding: .35rem .55rem; border-radius: 999rem; color: #0f172a; background: #eef2f7; font-style: normal; font-weight: 900; font-size: .82rem; }
.admin-empty { margin: 0; color: #64748b; font-weight: 750; }
.admin-header, .admin-form--vehicle { border: 1px solid #dbe3ee; border-radius: .5rem; background: #fff; box-shadow: 0 20px 60px rgb(15 23 42 / .07); }
.admin-form--vehicle { display: grid; gap: 1rem; padding: clamp(1rem,3vw,1.5rem); }
.admin-form--vehicle label { display: grid; gap: .45rem; font-weight: 850; }
.admin-form--vehicle input, .admin-form--vehicle select, .admin-form--vehicle textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: .5rem; padding: .85rem .95rem; color: var(--color-dark); background: #f8fafc; }
.admin-form--vehicle textarea { min-height: 13rem; resize: vertical; line-height: 1.65; }
.admin-form--vehicle textarea.rich-text__source {
  display: none !important;
}
.admin-form--vehicle .rich-text { border-color: #cbd5e1; border-radius: .5rem; }
.admin-form--vehicle .rich-text__editor { min-height: 13rem; color: var(--color-dark); background: #f8fafc; }
.admin-gallery { display: grid; grid-template-columns: repeat(auto-fill,minmax(7rem,1fr)); gap: .75rem; }
.admin-gallery figure { margin: 0; overflow: hidden; border: 1px solid #dbe3ee; border-radius: .5rem; background: #fff; }
.admin-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.admin-gallery figcaption, .admin-file-status { padding: .45rem .6rem; color: var(--color-muted); font-size: .78rem; font-weight: 850; }
.car-detail { padding-block: clamp(2rem,5vw,4rem); background: linear-gradient(180deg,#eef3f8 0,#f8fafc 26rem,#fff 100%); }
.car-detail__grid { display: grid; gap: clamp(1.1rem,3vw,2rem); min-width: 0; }
.car-detail__gallery-card { padding: clamp(.6rem,1.8vw,.9rem); border: 1px solid #dbe3ee; border-radius: .65rem; background: #fff; box-shadow: 0 24px 80px rgb(15 23 42 / .12); }
.car-detail__media { position: relative; margin: 0; overflow: hidden; border-radius: .5rem; background: var(--color-dark); }
.car-detail__main-image { display: block; width: 100%; padding: 0; background: transparent; cursor: zoom-in; }
.car-detail__main-image img { width: 100%; aspect-ratio: 16/10.4; object-fit: cover; transition: transform 180ms ease, filter 180ms ease; }
.car-detail__main-image:hover img { transform: scale(1.02); filter: brightness(.92); }
.car-detail__media figcaption { position: absolute; left: .85rem; bottom: .85rem; max-width: calc(100% - 1.7rem); padding: .45rem .65rem; border-radius: .45rem; color: #fff; background: rgb(6 26 46 / .78); font-size: .82rem; font-weight: 850; }
.car-detail__gallery-toolbar { display: flex; justify-content: space-between; gap: .75rem; margin-top: .85rem; color: var(--color-muted); font-size: .82rem; font-weight: 850; }
.car-detail__thumbs { display: grid; grid-template-columns: repeat(auto-fill,minmax(5.4rem,1fr)); gap: .6rem; margin-top: .75rem; max-height: 18rem; overflow: auto; }
.car-detail__thumb { padding: 0; overflow: hidden; border: 2px solid #dbe3ee; border-radius: .5rem; background: #fff; cursor: pointer; }
.car-detail__thumb.is-active { border-color: var(--color-orange); box-shadow: 0 0 0 .18rem rgb(245 158 11 / .18); }
.car-detail__thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.car-detail__gallery,
.car-detail__content { min-width: 0; }
.car-detail__content { display: grid; gap: 1.15rem; overflow-x: hidden; padding: clamp(1.25rem,3vw,2rem); border: 1px solid #dbe3ee; border-radius: .5rem; background: #fff; box-shadow: 0 20px 60px rgb(15 23 42 / .08); }
.car-detail__title { display: block; max-width: 100%; margin: 0; color: var(--color-dark); font-size: clamp(1.35rem,3vw,2.25rem); line-height: 1.08; overflow-wrap: anywhere; word-break: break-word; hyphens: auto; text-wrap: balance; }
.car-detail__price { margin: 0; color: var(--color-orange-dark); font-size: clamp(2rem,5vw,3rem); font-weight: 950; }
.car-detail__price-note, .vehicle-card__price-note { margin: -.65rem 0 0; color: #64748b; font-size: .9rem; font-weight: 900; }
.car-detail__specs { display: grid; gap: .65rem; padding: 0; margin: 0; list-style: none; }
.car-detail__specs li { display: grid; grid-template-columns: minmax(7rem,.9fr) minmax(0,1.1fr); gap: 1rem; padding: .8rem .95rem; border-radius: .5rem; color: var(--color-dark); background: #f1f5f9; }
.car-detail__specs strong { color: #64748b; font-size: .86rem; text-transform: uppercase; }
.car-detail__description-block { display: grid; gap: 1rem; padding: clamp(1rem,3vw,1.35rem); border: 1px solid #e2e8f0; border-radius: .5rem; background: #f8fafc; }
.car-detail__description { display: grid; gap: .9rem; color: #334155; font-size: 1.02rem; line-height: 1.78; }
.car-detail__description p { margin: 0; padding: .85rem .95rem; border: 1px solid #e2e8f0; border-radius: .45rem; background: #fff; }
.car-detail__description ul, .car-detail__description ol { margin: 0; padding: .85rem .95rem .85rem 2.2rem; border: 1px solid #e2e8f0; border-radius: .45rem; background: #fff; }
.car-detail__description a { color: var(--color-orange-dark); font-weight: 900; text-decoration: underline; text-underline-offset: .18rem; }
.car-detail__description strong { color: var(--color-dark); font-weight: 950; }
.is-lightbox-open { overflow: hidden; }
.car-lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: clamp(1rem, 3vw, 2rem); }
.car-lightbox__backdrop { position: absolute; inset: 0; background: rgb(3 10 18 / .88); backdrop-filter: blur(.35rem); }
.car-lightbox__panel { position: relative; z-index: 1; width: min(100%, 76rem); min-height: min(72vh, 42rem); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem; }
.car-lightbox__figure { grid-column: 2; margin: 0; display: grid; gap: .75rem; justify-items: center; }
.car-lightbox__figure img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: .55rem; box-shadow: 0 30px 90px rgb(0 0 0 / .42); }
.car-lightbox__figure figcaption { color: #fff; font-size: .9rem; font-weight: 850; text-align: center; }
.car-lightbox__close { position: absolute; top: -3rem; right: 0; min-height: 2.4rem; padding: .55rem .85rem; color: #fff; background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .22); border-radius: .45rem; font-weight: 900; cursor: pointer; }
.car-lightbox__nav { width: clamp(2.6rem, 6vw, 3.4rem); aspect-ratio: 1; color: #fff; background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .22); border-radius: 50%; font-size: 2.2rem; line-height: 1; cursor: pointer; }
.car-lightbox__nav:disabled { opacity: .35; cursor: default; }
@media (min-width:64rem){ .car-detail{ min-height: calc(100vh - 5rem); padding-block: 1rem; } .car-detail__grid{ grid-template-columns:minmax(0,1.16fr) minmax(24rem,.84fr); align-items:stretch; height: calc(100vh - 7rem); overflow:hidden; } .car-detail__gallery,.car-detail__content{ min-height:0; overflow-y:auto; overscroll-behavior:contain; padding-right:.35rem; } .car-detail__gallery{ display:block; } .car-detail__thumbs{ max-height:none; } }
body:has(.car-detail) { overflow-x: hidden; }
.car-detail .container { width: min(100% - 1rem, 100rem); }
.car-detail__grid,
.car-detail__gallery,
.car-detail__content,
.car-detail__specs,
.car-detail__description-block,
.car-detail__description {
  max-width: 100%;
  min-width: 0;
}
.car-detail__content {
  overflow-x: clip;
}
.car-detail__title {
  width: 100%;
  max-width: 100%;
  font-size: clamp(1.25rem, 2.4vw, 2rem) !important;
  line-height: 1.12;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (max-width: 63.99rem) {
  .car-detail {
    padding-block: .75rem 1.5rem;
  }

  .car-detail .container {
    width: min(100% - .75rem, 100rem);
  }

  .car-detail__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    overflow: visible;
  }

  .car-detail__content {
    padding: clamp(1rem, 4vw, 1.45rem);
  }

  .car-detail__title {
    font-size: clamp(1.15rem, 5.2vw, 1.75rem) !important;
  }

  .car-detail__price {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}
@media (min-width:64rem) {
  .car-detail__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(18rem, .92fr);
  }
}
@media (min-width: 48rem){ .admin-topbar{ grid-template-columns: auto 1fr auto; } .admin-kpi-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); } .admin-hero-panel{ grid-template-columns: 1fr auto; } }
@media (min-width: 72rem){ .admin-kpi-grid{ grid-template-columns: repeat(6, minmax(0, 1fr)); } .admin-workspace{ grid-template-columns: .9fr 1.1fr; align-items: start; } }
/* Integración producción: reservas, tablas y acciones */
.admin-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.link-button {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.reservation-page {
  min-height: calc(100vh - 5rem);
  padding-block: clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(circle at 12% 10%, rgb(245 158 11 / .16), transparent 22rem),
    linear-gradient(180deg, #eef3f8 0, #f8fafc 42%, #ffffff 100%);
}

.reservation-layout {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.reservation-summary,
.reservation-panel {
  overflow: hidden;
  border: 1px solid #dbe3ee;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 24px 80px rgb(15 23 42 / .1);
}

.reservation-summary {
  position: relative;
}

.reservation-back {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: .55rem .75rem;
  color: #fff;
  background: rgb(6 26 46 / .82);
  border: 1px solid rgb(255 255 255 / .2);
  border-radius: .45rem;
  font-size: .86rem;
  font-weight: 900;
  backdrop-filter: blur(.7rem);
}

.reservation-summary__image {
  width: 100%;
  aspect-ratio: 16 / 10.5;
  object-fit: cover;
  background: var(--color-dark);
}

.reservation-summary__body {
  display: grid;
  gap: .55rem;
  padding: clamp(1.1rem, 3vw, 1.5rem);
}

.reservation-summary h1,
.reservation-panel h2 {
  margin: 0;
  color: var(--color-dark);
  line-height: 1;
  letter-spacing: -0.04em;
}

.reservation-summary h1 {
  font-size: clamp(1.65rem, 4vw, 2.6rem);
}

.reservation-summary__price {
  margin: .2rem 0 0;
  color: var(--color-orange-dark);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  font-weight: 950;
}

.reservation-summary__note,
.reservation-panel__intro {
  margin: 0;
  color: #64748b;
  font-weight: 750;
}

.reservation-panel {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.reservation-panel h2 {
  max-width: 12ch;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.reservation-form {
  display: grid;
  gap: 1rem;
  margin-top: .35rem;
}

.reservation-form__field {
  display: grid;
  gap: .45rem;
  color: var(--color-dark);
  font-size: .92rem;
  font-weight: 900;
}

.reservation-form__field input,
.reservation-form__field textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: .55rem;
  padding: .95rem 1rem;
  color: var(--color-dark);
  background: #f8fafc;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.reservation-form__field textarea {
  min-height: 9rem;
  resize: vertical;
  line-height: 1.6;
}

.reservation-form__field input:focus,
.reservation-form__field textarea:focus {
  border-color: var(--color-orange);
  background: #fff;
  box-shadow: 0 0 0 .25rem rgb(245 158 11 / .16);
  outline: 0;
}

.reservation-form__submit {
  justify-self: start;
  min-width: 12rem;
}

.reservation-form__submit:disabled {
  opacity: .7;
  cursor: default;
  transform: none;
}

.reservation-form__message,
#contactFormMessage {
  margin: 0.25rem 0 0;
  font-weight: 850;
}

.reservation-form__message.is-loading {
  color: #64748b;
}

.reservation-form__message.is-success {
  padding: .9rem 1rem;
  color: #14532d;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: .55rem;
}

.reservation-form__message.is-error {
  padding: .9rem 1rem;
  color: #7f1d1d;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: .55rem;
}

@media (min-width: 56rem) {
  .reservation-layout {
    grid-template-columns: minmax(0, .92fr) minmax(24rem, 1.08fr);
  }

  .reservation-summary {
    position: sticky;
    top: 6rem;
  }

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

  .reservation-form__field--wide,
  .reservation-form__submit,
  .reservation-form__message {
    grid-column: 1 / -1;
  }
}

/* Admin v2 */
.admin-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0, rgb(245 158 11 / .14), transparent 22rem),
    linear-gradient(180deg, #eef3f8 0, #f7fafc 38%, #eef3f8 100%);
}

.admin-layout {
  width: min(100% - 1rem, 98rem);
  margin-inline: auto;
  padding-block: .75rem 2rem;
}

.admin-appbar {
  position: sticky;
  top: .5rem;
  z-index: 30;
  display: grid;
  gap: .65rem;
  padding: .65rem;
  border: 1px solid rgb(203 213 225 / .9);
  border-radius: .75rem;
  background: rgb(255 255 255 / .88);
  box-shadow: 0 18px 70px rgb(15 23 42 / .1);
  backdrop-filter: blur(18px);
}

.admin-appbar__brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  color: var(--color-dark);
  font-weight: 950;
}

.admin-appbar__brand img {
  width: 6.8rem;
  height: auto;
}

.admin-appbar__brand span {
  display: none;
  color: #64748b;
  font-size: .78rem;
}

.admin-appbar__nav {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.admin-appbar__nav a,
.admin-appbar__logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: .65rem .8rem;
  border-radius: .5rem;
  color: #334155;
  background: #f1f5f9;
  font-size: .88rem;
  font-weight: 900;
}

.admin-appbar__logout {
  justify-self: start;
  min-width: 5.5rem;
}

.admin-appbar__nav a:hover,
.admin-appbar__nav a.is-active {
  color: var(--color-dark);
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px rgb(245 158 11 / .34);
}

.admin-appbar__logout {
  color: #fff;
  background: var(--color-dark);
}

.admin-page {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.admin-page__header {
  display: grid;
  gap: 1rem;
  align-items: end;
  padding: clamp(1.1rem, 3vw, 1.65rem);
  border: 1px solid #dbe3ee;
  border-radius: .85rem;
  background:
    linear-gradient(135deg, rgb(255 255 255 / .94), rgb(248 250 252 / .98)),
    radial-gradient(circle at right top, rgb(245 158 11 / .14), transparent 20rem);
  box-shadow: 0 20px 70px rgb(15 23 42 / .08);
}

.admin-page__header h1 {
  margin: 0;
  color: var(--color-dark);
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: .96;
  letter-spacing: -0.055em;
}

.admin-page__header p:not(.eyebrow) {
  max-width: 42rem;
  margin: .55rem 0 0;
  color: #64748b;
  font-weight: 750;
}

.admin-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.admin-card {
  border: 1px solid #dbe3ee;
  border-radius: .85rem;
  background: #fff;
  box-shadow: 0 18px 60px rgb(15 23 42 / .07);
}

.admin-table-wrapper {
  overflow: auto;
  border: 1px solid #dbe3ee;
  border-radius: .85rem;
  background: #fff;
  box-shadow: 0 18px 60px rgb(15 23 42 / .07);
}

.admin-table {
  width: 100%;
  min-width: 58rem;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .9rem;
}

.admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: .85rem .9rem;
  color: #475569;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: .74rem;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
}

.admin-table td {
  padding: .9rem;
  border-bottom: 1px solid #edf2f7;
  color: #334155;
  vertical-align: middle;
}

.admin-table tbody tr:hover td {
  background: #fbfdff;
}

.admin-table img {
  width: 5rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: .55rem;
  background: #e2e8f0;
}

.admin-table strong {
  color: var(--color-dark);
}

.admin-table small {
  color: #64748b;
  font-weight: 750;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: .35rem .55rem;
  border-radius: 999rem;
  background: #eef2f7;
  color: #334155;
  font-size: .78rem;
  font-weight: 950;
}

.admin-badge--success {
  color: #14532d;
  background: #dcfce7;
}

.admin-badge--warning {
  color: #854d0e;
  background: #fef3c7;
}

.admin-badge--danger {
  color: #7f1d1d;
  background: #fee2e2;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.admin-link-button,
.admin-row-actions a,
.admin-row-actions button {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .42rem .6rem;
  border: 1px solid #dbe3ee;
  border-radius: .45rem;
  color: var(--color-dark);
  background: #fff;
  font-size: .82rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.admin-row-actions button {
  color: #991b1b;
}

.admin-form--vehicle {
  grid-template-columns: 1fr;
  padding: clamp(1rem, 3vw, 1.4rem);
  border-radius: .85rem;
}

.admin-form__section {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.25rem);
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  background: #fbfdff;
}

.admin-form__section--wide {
  grid-column: 1 / -1;
}

.admin-form__section-title {
  margin: 0;
  color: var(--color-dark);
  font-size: 1rem;
  letter-spacing: 0;
}

.admin-form__section-head {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid #e2e8f0;
}

.admin-form__section-head p {
  margin: .25rem 0 0;
  color: #64748b;
  font-size: .86rem;
  font-weight: 750;
}

.admin-form__grid {
  display: grid;
  gap: 1rem;
}

.admin-field--wide {
  grid-column: 1 / -1;
}

.admin-field {
  display: grid;
  gap: .45rem;
  color: var(--color-dark);
  font-size: .9rem;
  font-weight: 900;
}

.admin-field small {
  color: #64748b;
  font-size: .8rem;
  font-weight: 750;
}

.admin-check-grid {
  display: grid;
  gap: .75rem;
}

.admin-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  padding: .85rem;
  border: 1px solid #e2e8f0;
  border-radius: .6rem;
  color: var(--color-dark);
  background: #fff;
  font-weight: 900;
}

.admin-check input {
  width: 1.1rem;
  height: 1.1rem;
}

.admin-gallery {
  grid-column: 1 / -1;
  max-height: 32rem;
  overflow: auto;
  padding: .75rem;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  background: #f8fafc;
}

.admin-gallery figure {
  border-radius: .65rem;
  box-shadow: 0 10px 30px rgb(15 23 42 / .06);
}

.admin-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: flex-start;
  padding: .25rem;
}

@media (min-width: 36rem) {
  .admin-appbar {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: .9rem;
    padding: .7rem .8rem;
  }

  .admin-appbar__brand span {
    display: inline;
  }

  .admin-appbar__nav {
    grid-column: 1 / -1;
    justify-content: start;
  }

  .admin-appbar__logout {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
}

@media (min-width: 64rem) {
  .admin-appbar {
    grid-template-columns: auto 1fr auto;
  }

  .admin-appbar__nav {
    grid-column: auto;
    justify-content: center;
  }

  .admin-appbar__logout {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (min-width: 46rem) {
  .admin-page__header {
    grid-template-columns: 1fr auto;
  }

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

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

@media (min-width: 72rem) {
  .admin-form--vehicle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sales-agent-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  border: 0;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  padding: 0.68rem 0.95rem 0.68rem 0.72rem;
  font-weight: 800;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.28);
  cursor: pointer;
}

.sales-agent-toggle__mark {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: #f59e0b;
  color: #111827;
  font-size: 0.76rem;
  letter-spacing: 0;
}

.sales-agent-toggle__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.sales-agent {
  position: fixed;
  right: 22px;
  bottom: 86px;
  z-index: 51;
  width: min(420px, calc(100vw - 24px));
  display: none;
}

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

.sales-agent__panel {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.sales-agent__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  background: #0f172a;
  color: #fff;
}

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

.sales-agent__avatar {
  display: inline-grid;
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: #f59e0b;
  color: #111827;
  font-size: 0.78rem;
  font-weight: 900;
}

.sales-agent__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sales-agent__header strong,
.sales-agent__header span {
  display: block;
}

.sales-agent__header strong {
  font-size: 0.98rem;
}

.sales-agent__header span {
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  line-height: 1.25;
}

.sales-agent__close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.sales-agent__messages {
  display: flex;
  min-height: 330px;
  max-height: min(560px, calc(100vh - 216px));
  flex-direction: column;
  gap: 0.72rem;
  overflow-y: auto;
  padding: 1rem;
  background: #f6f8fb;
}

.sales-agent__message {
  max-width: 88%;
  min-width: 0;
  border-radius: 8px;
  padding: 0.76rem 0.86rem;
  font-size: 0.9rem;
  line-height: 1.48;
  overflow-wrap: anywhere;
  word-break: normal;
}

.sales-agent__message p,
.sales-agent__message ul {
  margin: 0;
}

.sales-agent__message p + p,
.sales-agent__message p + ul,
.sales-agent__message ul + p,
.sales-agent__message ul + ul {
  margin-top: 0.65rem;
}

.sales-agent__message ul {
  padding-left: 1.1rem;
}

.sales-agent__message li + li {
  margin-top: 0.28rem;
}

.sales-agent__message--assistant {
  align-self: flex-start;
  background: #fff;
  color: #172033;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.sales-agent__message--typing {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: #64748b;
}

.sales-agent__typing-text {
  font-size: 0.88rem;
}

.sales-agent__typing-dots {
  display: inline-flex;
  gap: 0.18rem;
  align-items: center;
}

.sales-agent__typing-dots span {
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 999px;
  background: #94a3b8;
  animation: sales-agent-typing 1s infinite ease-in-out;
}

.sales-agent__typing-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.sales-agent__typing-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes sales-agent-typing {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.sales-agent__message--user {
  align-self: flex-end;
  background: #1d4ed8;
  color: #fff;
}

.sales-agent__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.6rem;
  padding: 0.85rem;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
}

.sales-agent__form textarea {
  min-width: 0;
  width: 100%;
  height: 2.85rem;
  min-height: 2.85rem;
  max-height: 7.4rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 8px;
  padding: 0.76rem 0.85rem;
  background: #f8fafc;
  color: #172033;
  resize: none;
  overflow-y: hidden;
  line-height: 1.36;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  outline: none;
}

.sales-agent__form textarea:focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.sales-agent__form button {
  min-height: 2.85rem;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  padding: 0 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

@media (max-width: 640px) {
  .sales-agent,
  .sales-agent-toggle {
    right: 14px;
  }

  .sales-agent {
    bottom: 76px;
  }

  .sales-agent__messages {
    min-height: 300px;
  }
}
