:root {
  --gold: #c9a962;
  --gold-light: #e8d5a3;
  --gold-dark: #8b7340;
  --bg: #0c0c0c;
  --bg-alt: #111111;
  --surface: #161616;
  --text: #ececec;
  --muted: #888888;
  --border: #2a2a2a;
  --border-strong: #3d3d3d;
  --border-gold: rgba(201, 169, 98, 0.28);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --ease-lux: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --hairline: rgba(255, 255, 255, 0.08);
  --espresso: #070605;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 15px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.container {
  width: min(1100px, 90vw);
  margin: 0 auto;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.hero__content .container {
  border: none;
  padding-inline: 0;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}

.page-vehicle .header,
body:not(.page-home) .header {
  border-bottom-color: var(--border);
}

.header.scrolled {
  background: rgba(12, 12, 12, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.logo__img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.page-home .logo__img {
  height: 72px;
}

.page-home .header:not(.scrolled) .logo__img {
  height: 100px;
}

.nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s var(--ease-out);
}

.nav a:not(.nav__admin) {
  position: relative;
}

.nav a:not(.nav__admin)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.nav__admin {
  color: var(--gold) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 16px;
  position: relative;
}

.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text);
  position: absolute;
  left: 0;
  right: 0;
  transition: var(--transition);
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__video-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(12, 12, 12, 0.08) 0%,
    rgba(12, 12, 12, 0.04) 40%,
    rgba(12, 12, 12, 0.02) 100%
  );
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.55s var(--ease-out);
}

.hero__video.is-fading {
  opacity: 0;
}

.hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: clamp(2rem, 10vw, 9rem);
  padding-left: 1.5rem;
}

.hero__content .container {
  margin: 0;
  max-width: 520px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__logo {
  display: block;
  height: clamp(210px, 36vw, 364px);
  width: auto;
  max-width: 100%;
  margin: 0 auto 0.5rem;
  object-fit: contain;
}

.hero__eyebrow {
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  color: var(--text);
  width: 100%;
}

.hero__subtitle {
  font-size: 1rem;
  color: var(--gold-light);
  max-width: 400px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.hero .btn--solid {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

.hero .btn--solid:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--bg);
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition:
    background 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    transform 0.15s var(--spring);
}

.btn:hover {
  border-color: var(--muted);
  background: var(--surface);
}

.btn:active {
  transform: scale(0.98);
}

.btn--solid {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn--solid:hover {
  background: #fff;
  border-color: #fff;
}

.hero__scroll {
  display: none;
}

/* Sections */
.section {
  padding: 7rem 0;
  position: relative;
}

.section + .section {
  border-top: 1px solid var(--border-strong);
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 90vw);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201, 169, 98, 0.35) 50%,
    transparent 100%
  );
}

.section--novedades {
  background: var(--bg);
}

.section--concesionario,
.section--maison {
  background:
    radial-gradient(ellipse 85% 55% at 12% 8%, rgba(201, 169, 98, 0.14) 0%, transparent 58%),
    radial-gradient(ellipse 70% 50% at 92% 92%, rgba(255, 228, 180, 0.1) 0%, transparent 52%),
    linear-gradient(180deg, #1e1b17 0%, #181512 45%, #141210 100%);
  padding: clamp(5rem, 10vw, 9rem) 0;
  overflow: hidden;
}

.section--concesionario.section-taste {
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.filosofia-intro {
  position: relative;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 1.25rem;
  border: 1px solid rgba(201, 169, 98, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 248, 235, 0.07) 0%, rgba(255, 255, 255, 0.02) 45%, rgba(201, 169, 98, 0.04) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 64px rgba(0, 0, 0, 0.2);
}

.filosofia-intro::after {
  content: "";
  position: absolute;
  left: clamp(2rem, 4vw, 3rem);
  right: clamp(2rem, 4vw, 3rem);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 98, 0.45), transparent);
  transform: scaleX(0);
  transform-origin: left;
  animation: filosofiaLineIn 1.2s var(--ease-lux) 0.4s forwards;
}

@keyframes filosofiaLineIn {
  to { transform: scaleX(1); }
}

.filosofia-intro .eyebrow,
.filosofia-intro__eyebrow {
  margin-bottom: 1.75rem;
  color: var(--gold-light);
}

.section--concesionario::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(232, 213, 163, 0.45) 50%,
    transparent 100%
  );
  opacity: 0.85;
}

.section--contacto {
  background: var(--bg-alt);
  padding: 8rem 0;
}

.section__header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.section__header--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.section__label {
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}

.section__link {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color var(--transition);
}

.section__link:hover {
  color: var(--gold-light);
}

.section__eyebrow {
  display: none;
}

.section__title {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section__divider {
  display: none;
}

/* Stock */
.stock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  border: 1px solid var(--border);
  border-top: 1px solid var(--border-strong);
  padding: 1.25rem;
  background: var(--bg-alt);
}

.car-card {
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  display: block;
  color: inherit;
  transition:
    border-color 0.25s var(--ease-out),
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

a.car-card:hover {
  border-color: rgba(201, 169, 98, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.car-card--enter {
  opacity: 0;
  transform: translateY(14px);
  animation: cardEnter 0.45s var(--ease-out) forwards;
  animation-delay: var(--enter-delay, 0s);
}

@keyframes cardEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.car-card--skeleton {
  pointer-events: none;
}

.car-card--skeleton .car-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.car-card__cta {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity var(--transition);
}

a.car-card:hover .car-card__cta {
  opacity: 1;
}

.car-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.car-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease-out);
}

a.car-card:hover .car-card__image img {
  transform: scale(1.05);
}

.car-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--bg);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border);
}

.car-card__body {
  padding: 1.25rem;
}

.car-card__brand {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.car-card__model {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.car-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.car-card__price {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Concesionario */
.about__intro {
  color: var(--muted);
  max-width: 58ch;
  line-height: 1.7;
  margin-bottom: 3rem;
  font-size: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}

.service-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
}

.service-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card__bg {
  transform: scale(1.04);
}

.service-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(24, 20, 16, 0.82) 0%,
    rgba(24, 20, 16, 0.38) 48%,
    rgba(24, 20, 16, 0.08) 100%
  );
}

.service-card__content {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
}

.service-card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
  border: 1px solid rgba(201, 169, 98, 0.4);
  padding: 0.2rem 0.5rem;
  margin-bottom: 0.75rem;
}

.service-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.service-card__desc {
  font-size: 0.85rem;
  color: var(--gold-light);
  opacity: 0.85;
  line-height: 1.55;
  max-width: 32ch;
}

.showroom-banner {
  position: relative;
  aspect-ratio: 21 / 8;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 1.25rem;
}

.showroom-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showroom-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(28, 24, 20, 0.72) 0%,
    rgba(28, 24, 20, 0.15) 55%,
    rgba(28, 24, 20, 0.05) 100%
  );
}

.showroom-banner__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 2.5rem;
}

.showroom-banner__label {
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.showroom-banner__text {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1.25rem;
}

.contact__info {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.75rem;
}

.contact__info-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.contact__info-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.contact__label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.contact__value {
  font-size: 0.95rem;
}

.contact__value a:hover {
  color: var(--gold);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.75rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--muted);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-hint {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-message {
  padding: 0.75rem;
  font-size: 0.875rem;
  display: none;
}

.form-message.success,
.form-message.error {
  display: block;
}

.form-message.success {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.form-message.error {
  background: var(--surface);
  border: 1px solid #5a3030;
  color: #d4a0a0;
}

.form-message.is-visible {
  animation: fadeInUp 0.3s var(--ease-out);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer__logo {
  line-height: 0;
}

.footer__logo-img {
  height: 47px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer__links {
  margin-bottom: 0.75rem;
}

.footer__links a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer__links a:hover {
  color: var(--text);
}

/* Legal / privacy */
.page-legal {
  background: var(--espresso);
}

.legal-page {
  padding: 0 0 clamp(4rem, 8vw, 6rem);
}

.legal-hero {
  padding: clamp(7rem, 14vw, 10rem) 0 clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(201, 169, 98, 0.04) 0%, transparent 55%);
}

.legal-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: end;
}

.legal-hero__copy {
  max-width: 36rem;
}

.legal-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.8vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 1.15rem;
}

.legal-hero__lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 42ch;
  margin-bottom: 1.5rem;
}

.legal-hero__updated {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(201, 169, 98, 0.75);
}

.legal-hero__card {
  padding: clamp(1.35rem, 3vw, 1.85rem);
  background: rgba(255, 255, 255, 0.03);
}

.legal-hero__card-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.65rem;
}

.legal-hero__card-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.legal-facts {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.legal-facts__row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--hairline);
}

.legal-facts__row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.legal-facts dt {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-facts dd {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}

.legal-facts a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 6.5rem;
}

.legal-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--hairline);
}

.legal-sidebar__link {
  display: block;
  padding: 0.55rem 0;
  font-size: 0.8rem;
  color: var(--muted);
  border-left: 2px solid transparent;
  padding-left: 0.85rem;
  margin-left: -0.85rem;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.legal-sidebar__link:hover,
.legal-sidebar__link.is-active {
  color: var(--gold-light);
  border-left-color: var(--gold);
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
}

.legal-block__inner {
  padding: clamp(1.35rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.02);
}

.legal-block__index {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: rgba(201, 169, 98, 0.65);
  margin-bottom: 0.85rem;
}

.legal-block__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.legal-block p,
.legal-list {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.925rem;
}

.legal-block a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal-block p + p,
.legal-list + p {
  margin-top: 0.85rem;
}

.legal-list {
  padding-left: 1.15rem;
  margin: 0.5rem 0 0;
}

.legal-list li + li {
  margin-top: 0.45rem;
}

.legal-block__note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.85rem;
}

.legal-block__actions {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
}

.legal-code {
  font-size: 0.85em;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--hairline);
  color: var(--gold-light);
}

.legal-table-wrap {
  overflow-x: auto;
  margin-top: 0.5rem;
  border-radius: calc(2rem - 0.75rem);
  border: 1px solid var(--hairline);
}

.legal-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.legal-table th,
.legal-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--hairline);
}

.legal-table tr:last-child td,
.legal-table tr:last-child th {
  border-bottom: none;
}

.legal-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-table td {
  color: var(--muted);
}

.legal-table td:first-child {
  color: var(--text);
  font-weight: 500;
}

.legal-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.legal-metrics__item {
  padding: 1rem;
  border: 1px solid var(--hairline);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.legal-metrics__value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--gold-light);
  margin-bottom: 0.35rem;
}

.legal-metrics__label {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}

.legal-disclaimer {
  margin-top: 0.5rem;
  padding: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
}

.page-legal .header--pill {
  padding-top: 1.25rem;
}

.page-legal .header--pill.scrolled .bezel--nav {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
}

.checkbox-group--legal label a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Admin */
.admin-page {
  min-height: 100vh;
  background: var(--bg);
}

.admin-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.admin-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-login__box {
  width: min(380px, 90vw);
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}

.admin-login__logo {
  display: block;
  height: 56px;
  width: auto;
  margin: 0 auto 1.25rem;
  object-fit: contain;
}

.admin-login__title {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.admin-login__sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-toolbar h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.admin-toolbar p {
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg-alt);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table__thumb {
  width: 56px;
  height: 36px;
  object-fit: cover;
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
}

.btn--sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
}

.btn--danger {
  border-color: #5a3030;
  color: #d4a0a0;
}

.btn--danger:hover {
  background: #5a3030;
  color: var(--text);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.modal__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.modal__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.checkbox-group input {
  accent-color: var(--gold);
}

.status-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-badge--ok {
  color: var(--gold);
}

.status-badge--off {
  color: var(--muted);
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  border: 1px dashed var(--border-strong);
  background: var(--surface);
}

/* Catálogo / buscador */
.catalog-page {
  padding: 6rem 0 4rem;
}

.catalog-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-strong);
}

.catalog-header__title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.catalog-header__count {
  font-size: 0.875rem;
  color: var(--muted);
}

.search-panel {
  margin-bottom: 2rem;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}

.search-panel__main {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.search-input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  outline: none;
  font-size: 0.95rem;
}

.search-input:focus {
  border-color: var(--muted);
}

.search-panel__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 140px;
  flex: 1;
}

.filter-group label {
  font-size: 0.75rem;
  color: var(--muted);
}

.filter-group select,
.filter-group input {
  padding: 0.55rem 0.65rem;
  background: var(--bg);
  border: 1px solid var(--border);
  outline: none;
  font-size: 0.875rem;
}

.filter-group select:focus,
.filter-group input:focus {
  border-color: var(--muted);
}

.search-input:focus-visible,
.filter-group select:focus-visible,
.filter-group input:focus-visible,
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: none;
  border-color: rgba(201, 169, 98, 0.55);
  box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.12);
}

.stock-grid.is-updating {
  opacity: 0.55;
  transition: opacity 0.15s var(--ease-out);
}

.catalog-header__count.is-pulsing {
  animation: countPulse 0.35s var(--ease-out);
}

@keyframes countPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); color: var(--gold-light); }
  100% { transform: scale(1); }
}

.search-panel__filters .btn {
  flex-shrink: 0;
  align-self: flex-end;
}

/* Ficha vehículo — showroom */
.page-vehicle {
  background: var(--bg);
}

.showroom__loading,
.showroom-empty {
  padding: 8rem 0 4rem;
  text-align: center;
  color: var(--muted);
}

.showroom-empty h1 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.showroom-empty p {
  margin-bottom: 1.5rem;
}

.showroom-hero {
  position: relative;
  min-height: min(72vh, 820px);
  overflow: hidden;
  border-bottom: 1px solid var(--border-strong);
}

.showroom-hero__bg {
  position: absolute;
  inset: 0;
}

.showroom-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition:
    opacity 0.3s var(--ease-out),
    transform 0.4s var(--ease-out);
}

.showroom-hero__bg img.is-changing {
  opacity: 0.55;
  transform: scale(1.03);
}

.showroom-hero__vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12, 12, 12, 0.35) 0%,
    transparent 25%,
    transparent 100%
  );
  pointer-events: none;
}

.showroom-back {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border);
  background: rgba(12, 12, 12, 0.72);
  transition: color var(--transition), border-color var(--transition);
}

.showroom-back--hero {
  position: absolute;
  top: 5.5rem;
  left: max(5vw, calc((100vw - min(1100px, 90vw)) / 2 + 1.25rem));
  z-index: 3;
  margin: 0;
}

.showroom-hero__nav-bar {
  position: absolute;
  bottom: 1.25rem;
  right: max(5vw, calc((100vw - min(1100px, 90vw)) / 2 + 1.25rem));
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border-strong);
  background: rgba(12, 12, 12, 0.82);
  backdrop-filter: blur(8px);
}

.showroom-hero__nav {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out),
    transform 0.15s var(--spring);
}

.showroom-hero__nav:hover {
  border-color: var(--border-gold);
  color: var(--gold);
}

.showroom-hero__nav:active {
  transform: scale(0.92);
}

.showroom-hero__counter {
  font-size: 0.78rem;
  color: var(--muted);
  min-width: 3.5rem;
  text-align: center;
}

.showroom-hero__thumbs {
  position: absolute;
  bottom: 1.25rem;
  left: max(5vw, calc((100vw - min(1100px, 90vw)) / 2 + 1.25rem));
  z-index: 3;
  display: flex;
  gap: 0.5rem;
  max-width: min(520px, 55vw);
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scrollbar-width: thin;
}

.showroom-hero__thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 48px;
  padding: 0;
  border: 2px solid transparent;
  background: rgba(12, 12, 12, 0.75);
  cursor: pointer;
  overflow: hidden;
  opacity: 0.6;
  transition: opacity var(--transition), border-color var(--transition);
}

.showroom-hero__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showroom-photo-btn.active,
.showroom-hero__thumb:hover {
  opacity: 1;
}

.showroom-hero__thumb.active {
  border-color: var(--gold);
}

.showroom-back:hover {
  color: var(--gold);
  border-color: var(--border-gold);
}

.showroom-intro {
  padding: 2rem 0 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.showroom-intro__panel {
  padding: 1.75rem 2rem;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}

.showroom-intro__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.showroom-intro__identity {
  flex: 1;
  min-width: 0;
}

.showroom-intro__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gold);
  border: 1px solid rgba(201, 169, 98, 0.4);
  padding: 0.25rem 0.55rem;
  margin-bottom: 0.85rem;
}

.showroom-intro__brand {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.showroom-intro__title {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.showroom-intro__price {
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--gold-light);
  margin: 0;
  white-space: nowrap;
}

.showroom-intro__strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.showroom-intro__chip {
  font-size: 0.75rem;
  color: var(--text);
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}

.showroom-gallery {
  padding: 2rem 0 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border-strong);
}

.showroom-gallery__label {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.showroom-gallery__strip {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  margin-bottom: 1.25rem;
  scrollbar-width: thin;
}

.showroom-gallery__thumb {
  flex: 0 0 auto;
  width: 88px;
  height: 58px;
  padding: 0;
  border: 2px solid transparent;
  background: var(--surface);
  cursor: pointer;
  overflow: hidden;
  opacity: 0.65;
  transition: opacity var(--transition), border-color var(--transition);
}

.showroom-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showroom-gallery__thumb:hover,
.showroom-gallery__thumb.active {
  opacity: 1;
  border-color: var(--gold);
}

.showroom-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  padding-bottom: 2rem;
}

.showroom-gallery__tile {
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--transition), transform 0.25s ease;
}

.showroom-gallery__tile:hover {
  border-color: rgba(201, 169, 98, 0.45);
  transform: scale(1.01);
}

.showroom-gallery__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showroom-body {
  padding: 3rem 0 5rem;
  margin-top: -1px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.showroom-body__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.showroom-panel {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.75rem;
}

.showroom-panel__label,
.showroom-specs__label {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.showroom-panel__heading {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  max-width: 22ch;
}

.showroom-panel__text {
  color: var(--muted);
  line-height: 1.75;
  max-width: 42ch;
  margin-bottom: 2rem;
}

.showroom-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.showroom-specs {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  padding: 1.75rem;
}

.showroom-specs__item {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.showroom-specs__item:last-child,
.showroom-specs__item--price {
  padding-bottom: 0;
  border-bottom: none;
}

.showroom-specs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
}

.showroom-specs__item dt {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.showroom-specs__item dd {
  font-size: 0.95rem;
  font-weight: 500;
}

.showroom-specs__item--price dd {
  color: var(--gold-light);
  font-size: 1.1rem;
}

.showroom-related {
  padding: 4rem 0 5rem;
  border-top: 1px solid var(--border-strong);
  background: var(--bg-alt);
}

.showroom-related .stock-grid {
  border-color: var(--border-strong);
}

.showroom-related .section__header {
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-cards {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 240px;
  }

  .showroom-banner {
    aspect-ratio: 16 / 10;
  }

  .section {
    padding: 5rem 0;
  }

  .section--concesionario,
  .section--contacto {
    padding: clamp(4rem, 8vw, 5.5rem) 0;
  }

  .stack-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .scrub-text {
    max-width: 100%;
    font-size: clamp(1.55rem, 5.5vw, 2.1rem);
    line-height: 1.32;
  }

  .scrub-text__word {
    opacity: 0.85;
    color: rgba(255, 248, 235, 0.9);
  }

  .filosofia-intro {
    margin-bottom: 2.5rem;
    padding: 1.75rem 1.25rem;
  }

  .legal-hero__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .legal-sidebar {
    position: static;
  }

  .legal-sidebar__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    border-top: none;
    padding-top: 0;
  }

  .legal-sidebar__link {
    border-left: none;
    padding: 0.35rem 0.75rem;
    margin-left: 0;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    font-size: 0.75rem;
  }

  .legal-sidebar__link.is-active {
    border-color: rgba(201, 169, 98, 0.45);
    background: rgba(201, 169, 98, 0.08);
  }

  .legal-metrics {
    grid-template-columns: 1fr;
  }

  .legal-facts__row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: relative;
    z-index: 2;
  }

  body.nav-open .menu-toggle {
    position: fixed;
    top: 1.35rem;
    right: 1.25rem;
    z-index: 310;
  }

  body.page-home.nav-open .menu-toggle {
    top: 1.75rem;
    right: max(5vw, 1.25rem);
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 280;
    width: 100%;
    height: 100dvh;
    margin: 0;
    padding: 6rem 2rem 2rem;
    background: rgba(7, 6, 5, 0.96);
    backdrop-filter: blur(24px);
    border: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s var(--ease-lux), visibility 0.45s var(--ease-lux);
  }

  body.nav-open .bezel--nav,
  body.nav-open .header-pill {
    backdrop-filter: none;
  }

  .nav.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .nav.open a {
    font-size: 1.35rem;
    opacity: 1;
    transform: none;
  }

  @media (prefers-reduced-motion: no-preference) {
    .nav.open a {
      opacity: 0;
      transform: translateY(2rem);
      animation: navLinkIn 0.7s var(--ease-lux) forwards;
    }

    .nav.open a:nth-child(1) { animation-delay: 0.08s; }
    .nav.open a:nth-child(2) { animation-delay: 0.14s; }
    .nav.open a:nth-child(3) { animation-delay: 0.2s; }
    .nav.open a:nth-child(4) { animation-delay: 0.26s; }
    .nav.open a:nth-child(5) { animation-delay: 0.32s; }
  }

  @keyframes navLinkIn {
    to { opacity: 1; transform: translateY(0); }
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__content {
    justify-content: center;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  .hero__content .container {
    max-width: 100%;
    align-items: center;
  }

  .hero__logo {
    height: 182px;
    margin-bottom: 0.5rem;
  }

  .page-home .header:not(.scrolled) .logo__img {
    height: 80px;
  }

  .search-panel__filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    min-width: 100%;
  }

  .search-panel__filters .btn {
    width: 100%;
  }

  .showroom-body__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .showroom-hero {
    min-height: 52vh;
  }

  .showroom-back--hero {
    left: 5vw;
    top: 5rem;
  }

  .showroom-hero__thumbs {
    left: 5vw;
    right: 5vw;
    max-width: none;
    bottom: 4.5rem;
  }

  .showroom-hero__nav-bar {
    right: 5vw;
    left: 5vw;
    bottom: 1rem;
    justify-content: center;
  }

  .showroom-intro__panel {
    padding: 1.25rem;
  }

  .showroom-intro__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .showroom-intro__price {
    white-space: normal;
  }

  .showroom-specs__grid {
    grid-template-columns: 1fr;
  }

  .showroom-cta {
    flex-direction: column;
  }

  .showroom-cta .btn {
    width: 100%;
    text-align: center;
  }

  .showroom-gallery__grid {
    grid-template-columns: 1fr 1fr;
  }

  a.car-card:hover .car-card__cta {
    opacity: 1;
  }

  .car-card__cta {
    opacity: 1;
  }

  .stack-cards__item:nth-child(2),
  .stack-cards__item:nth-child(3) {
    margin-top: 0;
  }

  .hero-taste__layout {
    align-items: flex-end;
    padding-bottom: 3rem;
  }

  .headline-inline {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

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

  .bento .car-card:nth-child(1),
  .bento .car-card:nth-child(2),
  .bento .car-card:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
  }

  .header--pill {
    padding-top: 0.75rem;
  }

  .header-pill {
    width: min(96vw, 100%);
    padding: 0.65rem 1rem;
  }
}

/* --- Premium home (Editorial Luxury) --- */
.page-home {
  background: var(--espresso);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.main-flow {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.scroll-top {
  position: fixed;
  bottom: 1.35rem;
  right: 1.35rem;
  z-index: 90;
  width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
  background: rgba(12, 12, 12, 0.88);
  backdrop-filter: blur(10px);
  color: var(--gold-light);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.92);
  transition:
    opacity 0.28s var(--ease-out),
    transform 0.28s var(--spring),
    visibility 0.28s var(--ease-out),
    border-color 0.2s var(--ease-out);
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-top:hover {
  border-color: rgba(201, 169, 98, 0.55);
  color: #fff;
}

.scroll-top:active {
  transform: translateY(0) scale(0.94);
}

.scroll-top__icon {
  display: block;
  font-size: 1.15rem;
  line-height: 1;
}

.btn:focus-visible,
.btn-pill:focus-visible,
.menu-toggle:focus-visible,
.nav a:focus-visible,
.scroll-top:focus-visible,
.showroom-hero__nav:focus-visible,
.showroom-photo-btn:focus-visible,
.showroom-back:focus-visible,
a.car-card:focus-visible,
.search-input:focus-visible,
.filter-group select:focus-visible,
.filter-group input:focus-visible,
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid rgba(201, 169, 98, 0.85);
  outline-offset: 2px;
}

.reveal-up {
  opacity: 0;
  transform: translateY(4rem);
  filter: blur(6px);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border: 1px solid var(--hairline);
}

.bezel {
  padding: 0.375rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hairline);
}

.bezel__core {
  border-radius: calc(2rem - 0.375rem);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.bezel--nav {
  width: min(920px, 92vw);
  margin: 0 auto;
  border-radius: 999px;
  padding: 0.3rem;
}

.bezel--nav .bezel__core {
  border-radius: 999px;
}

.nav-shell {
  width: min(920px, 92vw);
  margin: 0 auto;
  position: relative;
}

@media (min-width: 769px) {
  .header--pill .nav-shell > .nav {
    position: absolute;
    right: 1.65rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }
}

.header--pill {
  background: transparent;
  border: none;
  padding-top: 1.5rem;
  z-index: 100;
}

.header--pill.scrolled .bezel--nav {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
}

.header-pill {
  padding: 0.65rem 1.1rem 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(7, 6, 5, 0.55);
  backdrop-filter: blur(14px);
}

.page-home .header--pill .logo__img {
  height: 48px;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 3, 2, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s var(--ease-lux);
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .header {
  z-index: 300;
}

.menu-toggle.open span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.menu-toggle span {
  transition: transform 0.55s var(--ease-lux), opacity 0.35s var(--ease-lux), top 0.55s var(--ease-lux), bottom 0.55s var(--ease-lux);
}

.hero-taste {
  min-height: 100dvh;
  display: block;
}

.hero-taste__wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 90% 70% at 15% 80%, rgba(201, 169, 98, 0.08) 0%, transparent 55%),
    linear-gradient(to top, rgba(7, 6, 5, 0.95) 0%, rgba(7, 6, 5, 0.25) 45%, rgba(7, 6, 5, 0.55) 100%);
  pointer-events: none;
}

.hero-taste__layout {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding-top: 8rem;
  padding-bottom: clamp(3.5rem, 10vw, 6rem);
  border: none;
}

.hero-taste__copy {
  max-width: 44rem;
}

.hero-taste__title {
  font-family: var(--font-display);
  font-size: clamp(2.85rem, 5.5vw, 5.75rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 0.95;
  max-width: 13ch;
  margin-bottom: 1.35rem;
}

.hero-taste__subtitle {
  font-size: 1.05rem;
  color: rgba(232, 213, 163, 0.85);
  max-width: 38ch;
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

.hero-taste__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0.85rem 0.85rem 1.35rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition:
    transform 0.25s var(--spring),
    background 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out),
    opacity 0.2s var(--ease-out);
}

.btn-pill:hover {
  transform: scale(1.02);
}

.btn-pill:active {
  transform: scale(0.98);
}

.btn-pill.is-loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn-pill.is-loading .btn-pill__icon {
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-pill__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.55s var(--ease-lux), background 0.55s var(--ease-lux);
}

.btn-pill--primary {
  background: var(--gold-light);
  color: var(--espresso);
}

.btn-pill--primary .btn-pill__icon {
  background: rgba(7, 6, 5, 0.08);
}

.btn-pill--primary:hover .btn-pill__icon {
  transform: translate(2px, -1px) scale(1.05);
}

.btn-pill--primary:hover {
  background: #fff;
}

.btn-pill--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--hairline);
}

.btn-pill--ghost .btn-pill__icon {
  background: rgba(255, 255, 255, 0.06);
}

.btn-pill--ghost:hover {
  border-color: rgba(201, 169, 98, 0.35);
  color: var(--gold-light);
}

.btn-pill--ghost:hover .btn-pill__icon {
  transform: translate(2px, -1px) scale(1.05);
}

.btn-pill--wide {
  width: 100%;
  justify-content: space-between;
}

.section-taste {
  padding: clamp(6rem, 12vw, 10rem) 0;
}

.headline-editorial {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.8vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  max-width: 16ch;
  margin-bottom: 3rem;
}

.bezel--bento .bezel__core {
  background: rgba(255, 255, 255, 0.02);
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 0.85rem;
  padding: 0.85rem;
  border: none;
  background: transparent;
}

.bento__empty {
  grid-column: 1 / -1;
}

.bento .car-card {
  border: none;
  border-radius: calc(2rem - 0.75rem);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.7s var(--ease-lux);
}

.bento .car-card:hover {
  transform: translateY(-4px) scale(1.01);
}

.bento .car-card:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.bento .car-card:nth-child(2),
.bento .car-card:nth-child(3) {
  grid-column: span 1;
}

.section-taste__link-row {
  margin-top: 2.5rem;
  display: flex;
  justify-content: flex-end;
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--hairline);
  padding: 1.5rem 0;
  background: rgba(255, 255, 255, 0.02);
}

.marquee__track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  font-style: italic;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.35);
}

.marquee__track span {
  flex-shrink: 0;
}

.scrub-text {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.6vw, 3.15rem);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.02em;
  max-width: min(42rem, 100%);
  margin: 0;
  color: rgba(255, 250, 240, 0.92);
}

.scrub-text__word {
  display: inline;
  margin-right: 0.32em;
  opacity: 1;
  color: rgba(255, 248, 235, 0.92);
}

.scrub-text__word:last-child {
  margin-right: 0;
}

.stack-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  perspective: 1200px;
}

.stack-cards__item {
  min-height: 0;
  transform-style: preserve-3d;
}

.bezel--banner {
  margin-top: 0;
}

.bezel--card .service-card {
  min-height: 300px;
  border: none;
}

.bezel--banner .showroom-banner {
  border: none;
  border-radius: calc(2rem - 0.375rem);
}

.section--action {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, var(--espresso) 100%);
}

.action-block {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--hairline);
}

.action-block__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  max-width: 15ch;
  margin-bottom: 0.85rem;
}

.action-block__text {
  color: var(--muted);
  max-width: 42ch;
  font-size: 1rem;
  line-height: 1.7;
}

.bezel--panel .bezel__core {
  background: rgba(255, 255, 255, 0.03);
}

.page-home .contact__info,
.page-home .contact-form {
  border: none;
  background: transparent;
}

.page-home .contact__info-item {
  border-bottom-color: var(--hairline);
}

.page-home .form-group input,
.page-home .form-group textarea {
  border-color: var(--hairline);
  background: rgba(0, 0, 0, 0.25);
  transition: border-color 0.55s var(--ease-lux);
}

.footer-taste {
  padding: 4rem 0;
  border-top: 1px solid var(--hairline);
}

/* Skeleton loading */
.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    var(--surface) 0%,
    rgba(255, 255, 255, 0.06) 50%,
    var(--surface) 100%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
}

.skeleton-line {
  height: 0.75rem;
  border-radius: 4px;
  background: var(--surface);
  animation: skeletonPulse 1.4s ease-in-out infinite;
}

.skeleton-line--sm { width: 35%; }
.skeleton-line--md { width: 55%; }
.skeleton-line--lg { width: 70%; height: 1.75rem; }
.skeleton-line--full { width: 100%; }
.skeleton-line--price { width: 40%; height: 1.1rem; margin-top: 0.5rem; }

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes skeletonPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.showroom-skeleton__hero {
  min-height: min(72vh, 820px);
  border-bottom: 1px solid var(--border-strong);
}

.showroom-skeleton__panel {
  padding: 3rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-up {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .car-card--enter {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .marquee__track {
    transform: none !important;
  }

  .nav.open a {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
