/* ============================================================
   SANCTUM SHOWROOM — styles.css
   Tipografía: Cormorant Garamond (display) + Raleway (UI)
   ============================================================ */

/* ── Variables ──────────────────────────────────────────── */
:root {
  --red:           #ad2b11;
  --red-hover:     #a8271a;
  --dark:          #111111;
  --dark-mid:      #1a1a1a;
  --dark-card:     #1c1c1c;
  --dark-card-2:   #232323;
  --cream:         #f4f3ef;
  --white:         #ffffff;
  --text-dark:     #1a1a1a;
  --text-mid:      #555555;
  --text-on-dark:  rgba(255,255,255,0.88);
  --text-muted:    rgba(255,255,255,0.42);
  --border-dark:   rgba(255,255,255,0.07);
  --border-light:  rgba(0,0,0,0.09);
  --font-display:  'Cormorant Garamond', 'Georgia', serif;
  --font-ui:       'Raleway', 'Helvetica Neue', Arial, sans-serif;
  --ease:          cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --tr:            0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --tr-fast:       0.28s ease;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  background: var(--dark);
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

/* ══════════════════════════════════════════════════════════
   SCROLL REVEAL — blur + fade + rise al hacer scroll
   ══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(28px);
  transition:
    opacity  0.85s cubic-bezier(0.22, 1, 0.36, 1),
    filter   0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.10s; }
.reveal-d2 { transition-delay: 0.22s; }
.reveal-d3 { transition-delay: 0.34s; }
.reveal-d4 { transition-delay: 0.46s; }
.reveal-d5 { transition-delay: 0.60s; }

.reveal-left {
  opacity: 0;
  filter: blur(14px);
  transform: translateX(-32px);
  transition:
    opacity  0.85s cubic-bezier(0.22, 1, 0.36, 1),
    filter   0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.visible {
  opacity: 1;
  filter: blur(0px);
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left {
    opacity: 1; filter: none; transform: none; transition: none;
  }
}

/* ══════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  transition: background var(--tr-fast), border-color var(--tr-fast);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(17, 17, 17, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border-dark);
}
.navbar-logo {
  position: absolute;
  left: clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
}
.navbar-logo img {
height: 66px;
width: auto;
filter: brightness(0.92);
}
/* Logo de texto en navbar (SanctumV.png) */
.navbar-brand-img {
  height: 22px;
  width: auto;
  filter: brightness(0.95);
}
.navbar-nav {
  position: absolute;
  right: clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.navbar-nav a {
  font-family: var(--font-ui);
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--tr-fast);
}
.navbar-nav a:hover,
.navbar-nav a.active { color: var(--white); }

/* Mobile hamburger */
.menu-toggle {
  display: none;
  position: absolute;
  right: clamp(1.5rem, 5vw, 4rem);
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.menu-toggle span {
  display: block; width: 22px; height: 1px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 640px) {
  .menu-toggle { display: flex; }
  .navbar-nav {
    position: fixed;
    top: 58px; left: 0; right: 0;
    background: rgba(17,17,17,0.99);
    backdrop-filter: blur(16px);
    flex-direction: column;
    gap: 1.75rem;
    padding: 2.5rem 2rem;
    transform: translateY(-110%);
    transition: transform 0.4s var(--ease);
    border-bottom: 1px solid var(--border-dark);
  }
  .navbar-nav.open { transform: translateY(0); }
  .navbar-nav a { font-size: 0.7rem; }
}

/* ══════════════════════════════════════════════════════════
   HERO (compartido: index + auto)
   ══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  /* Mobile-first: cover garantiza relleno en cualquier pantalla */
  background-size: cover;
  background-position: 65% 42%;
  background-repeat: no-repeat;
  transform: scale(1.15);
  transition: transform 18s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
@media (min-width: 641px) {
  .hero-bg { background-size: 155%; background-position: 65% 42%; }
}
.hero-bg.loaded { transform: scale(1); }

/* Hero sin zoom para páginas de detalle (auto.html) */
.hero-bg--static {
  background-size: cover;
  background-position: center center;
  transform: none;
  transition: none;
}
.hero-bg--static.loaded { transform: none; }

@media (max-width: 640px) {
  .hero-bg--static {
    background-position: center 65%;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,10,10,0.90) 0%,
    rgba(10,10,10,0.75) 30%,
    rgba(10,10,10,0.84) 65%,
    rgba(10,10,10,0.90) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
  animation: heroFadeIn 1.2s var(--ease) 0.3s both;
}
.hero-logo {
  width: clamp(300px, 42vw, 520px);
  height: auto;
  filter: drop-shadow(0 6px 48px rgba(0,0,0,0.75));
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════
   BANNER ROJO
   ══════════════════════════════════════════════════════════ */
.red-banner {
  background: var(--red);
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
}
.red-banner-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.red-banner-sub {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  line-height: 2.2;
}

/* ══════════════════════════════════════════════════════════
   CATÁLOGO (fondo crema)
   ══════════════════════════════════════════════════════════ */
.catalog-section {
  background: var(--cream);
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1.5rem, 5vw, 4rem);
}
.catalog-heading {
  text-align: center;
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}
.catalog-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 1.6rem;
}
.catalog-heading-line {
  position: relative;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, #999, rgba(153,153,153,0.3));
  margin: 0 auto;
}
/* Punta de flecha al final de la línea */
.catalog-heading-line::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid rgba(153,153,153,0.6);
}

/* ── Car Cards ──────────────────────────────────────────── */
.cars-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
}

.car-card {
  display: grid;
  grid-template-columns: 42% 58%;
  background: var(--dark-card);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--tr-fast), box-shadow var(--tr-fast);
  cursor: pointer;
}
.car-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.car-card.sold { cursor: pointer; }
.car-card.sold:hover { transform: none; box-shadow: none; }

/* ── Overlay sobre la foto (VENDIDO / RECIÉN LLEGADO) ── */
.cso-photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.cso-panel {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: clamp(1.4rem, 2.4vw, 2.2rem);
}
.cso-panel--sold { background: rgba(173,43,17,0.55); }
.cso-panel--new  { background: rgba(80,80,82,0.42); }
.cso-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  text-align: center;
  color: #fff;
  line-height: 1.05;
}
.cso-panel-bottom {
  display: flex;
  flex-direction: column;
}
.cso-thanks {
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 1.2vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.05;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  padding: 0 0.5rem clamp(0.7rem, 1.2vw, 1rem);
}
.cso-footer {
  background: #fff;
  padding: clamp(0.55rem, 1vw, 0.85rem) 0.5rem;
  text-align: center;
}
.cso-footer-text {
  font-family: var(--font-ui);
  font-size: clamp(0.5rem, 0.9vw, 0.66rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  line-height: 1.6;
}

/* Card — panel izquierdo (info) */
.card-info {
  padding: clamp(2rem, 3.5vw, 3rem) clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
}
.card-brand {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
}
.card-model {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
}
.card-spec {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
}
.card-year {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.35);
  margin-top: 0.6rem;
  margin-bottom: 2rem;
}

/* Card stats */
.card-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.card-stat {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.card-stat-icon {
  width: 17px; height: 17px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.45);
  opacity: 0.45;
}
.card-stat-text { line-height: 1; }
.card-stat-value {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
}
.card-stat-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.44rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
}

/* Card button */
.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.6rem;
  font-family: var(--font-ui);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: background var(--tr-fast), color var(--tr-fast), border-color var(--tr-fast);
  align-self: flex-start;
}
.card-btn-available {
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  background: transparent;
}
.car-card:hover .card-btn-available {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.55);
}
.card-btn-sold {
  border: 2px solid var(--red);
  background: var(--red);
  color: var(--white);
  cursor: default;
  font-size: 0.68rem;
  padding: 0.9rem 2.6rem;
  letter-spacing: 0.45em;
  box-shadow: 0 0 22px rgba(173,43,17,0.45);
}


/* Card — panel derecho (foto) */
.card-photo {
  position: relative;
  overflow: hidden;
  background: var(--dark-mid);
  min-height: 260px;
}
.card-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1s var(--ease);
}
.car-card:not(.sold):hover .card-photo img { transform: scale(1.06); }
.card-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(28,28,28,0.18) 0%, transparent 40%);
  pointer-events: none;
}

/* Empty state */
.cars-empty {
  text-align: center;
  padding: 6rem 2rem;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mid);
}

@media (max-width: 640px) {
  .car-card { grid-template-columns: 1fr; }
  .card-photo { height: 260px; min-height: unset; order: -1; }
  .card-info { min-height: auto; }
  /* Galería mobile: llenar el frame sin bordes negros */
  .gallery-main-img { object-fit: cover; }
}

/* ══════════════════════════════════════════════════════════
   FOOTER (fiel al PDF)
   ══════════════════════════════════════════════════════════ */
.footer {
  background: #080c0d;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: clamp(2rem, 3.5vw, 2.5rem) clamp(3rem, 7vw, 7rem) clamp(2rem, 3.5vw, 2.5rem) clamp(13rem, 22vw, 26rem);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0;
  position: relative;
  overflow: hidden;
}
@media (max-width: 640px) {
  .footer {
    grid-template-columns: 1fr;
    padding: 3rem 2rem 2.5rem;
  }
  .footer-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-logo-wrap { align-items: center; }
  .footer-links { align-items: center; }
  .footer-copy { text-align: center; }
  .footer-legal {
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
  }
  .footer-legal-sep { display: none; }
}

/* Footer izquierda */
.footer-left {
  position: relative;
  z-index: 2;
}
.footer-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0;
}
/* logo-icon.png ya incluye el escudo + texto SANCTUM juntos */
.footer-logo-icon {
  height: clamp(140px, 16vw, 200px);
  width: auto;
  filter: brightness(0.92);
}
/* Span de nombre oculto: el logo-icon ya tiene el texto */
.footer-logo-name { display: none; }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1rem;
}
.footer-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.75);
  transition: color var(--tr-fast);
}
.footer-link:hover { color: rgba(255,255,255,0.75); }
.footer-link svg {
  width: 13px; height: 13px;
  flex-shrink: 0;
}
.footer-copy {
  margin-top: 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.footer-legal-link {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  transition: color var(--tr-fast);
}
.footer-legal-link:hover { color: rgba(255,255,255,0.45); }
.footer-legal-sep {
  font-size: 0.44rem;
  color: rgba(255,255,255,0.12);
}

/* Footer derecha: emblema decorativo — sanctumfoot.png es blanco/transparente */
.footer-emblem {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: clamp(13rem, 22vw, 26rem);
  pointer-events: none;
  user-select: none;
}
.footer-emblem img {
  height: clamp(120px, 14vw, 180px);
  width: auto;
  opacity: 0.25;
}
@media (max-width: 640px) {
  .footer-logo-icon { height: 85px; }
  .footer-logo-wrap { margin-bottom: 1.5rem; }
  .footer-emblem { display: none; }
}

/* ══════════════════════════════════════════════════════════
   AUTO.HTML — Bloque título del auto
   ══════════════════════════════════════════════════════════ */
.car-title-block {
  background: var(--white);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4rem);
}
.car-title-brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dark);
  line-height: 1.05;
}
.car-title-model {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dark);
  line-height: 1.05;
}
.car-title-spec {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dark);
  line-height: 1.05;
}
.car-title-year {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--red);
  margin-top: 0.85rem;
}

/* ══════════════════════════════════════════════════════════
   AUTO.HTML — Galería
   ══════════════════════════════════════════════════════════ */
.gallery-section {
  background: var(--white);
  padding: 0 clamp(1.5rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4rem);
}
.gallery-main-wrap {
  position: relative;
  width: 100%;
  height: clamp(280px, 52vw, 640px);
  overflow: hidden;
  background: #1a1a1a;
  margin-bottom: 8px;
  cursor: zoom-in;
}
.gallery-main-img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #1a1a1a;
  transition: opacity 0.28s ease;
  cursor: zoom-in;
}
.gallery-main-img.fading { opacity: 0; }

/* Arrows */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px; height: 46px;
  background: rgba(17,17,17,0.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background var(--tr-fast), transform var(--tr-fast);
}
.gallery-arrow:hover {
  background: rgba(17,17,17,0.85);
  transform: translateY(-50%) scale(1.05);
}
.gallery-arrow.prev { left: 1rem; }
.gallery-arrow.next { right: 1rem; }
.gallery-arrow svg {
  width: 20px; height: 20px;
  stroke: var(--white);
  stroke-width: 1.5;
  fill: none;
}

/* Counter */
.gallery-counter {
  position: absolute;
  bottom: 1rem; right: 1rem;
  font-family: var(--font-ui);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.65);
  background: rgba(0,0,0,0.42);
  padding: 0.32rem 0.7rem;
  backdrop-filter: blur(4px);
}

/* Thumbnails */
.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb {
  flex: 0 0 calc(12.5% - 8px);
  min-width: 68px;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: #e0dfdb;
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: outline-color var(--tr-fast);
}
.gallery-thumb.active { outline-color: var(--red); }
.gallery-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.48;
  transition: opacity 0.25s ease;
}
.gallery-thumb:hover img,
.gallery-thumb.active img { opacity: 1; }

/* ══════════════════════════════════════════════════════════
   AUTO.HTML — Stats bar roja
   ══════════════════════════════════════════════════════════ */
.stats-bar {
  background: var(--red);
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2.5rem, 7vw, 7rem);
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.stat-icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.75);
  opacity: 0.85;
}
.stat-text { line-height: 1.1; }
.stat-value {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
}
.stat-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.44rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 3px;
}

@media (max-width: 640px) {
  .stats-bar {
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    padding: 2rem clamp(1.5rem, 5vw, 4rem);
  }
}

/* ══════════════════════════════════════════════════════════
   AUTO.HTML — Descripción
   ══════════════════════════════════════════════════════════ */
.description-section {
  background: var(--white);
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem);
}
.description-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.description-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 2.5rem;
}
.description-body p {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 2;
  color: var(--text-mid);
  letter-spacing: 0.01em;
  text-align: left;
}
.description-body p + p { margin-top: 1.5rem; }

/* ══════════════════════════════════════════════════════════
   AUTO.HTML — Tabla DETALLES
   ══════════════════════════════════════════════════════════ */
.details-section {
  background: var(--white);
  padding: 0 clamp(1.5rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem);
}
.details-inner {
  max-width: 640px;
  margin: 0 auto;
}
.details-heading {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
.details-heading-line {
  flex: 1;
  height: 1px;
  background: var(--border-light);
}
.details-heading-text {
  font-family: var(--font-ui);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text-dark);
  white-space: nowrap;
}
.details-box {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
}
.detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border-light);
  padding: 0.85rem 1.5rem;
  align-items: center;
}
.detail-row:last-child { border-bottom: none; }
.detail-row:nth-child(even) { background: rgba(0,0,0,0.018); }
.detail-label {
  font-family: var(--font-ui);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.detail-value {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: 0.02em;
  text-align: right;
}

/* ══════════════════════════════════════════════════════════
   AUTO.HTML — CTA
   ══════════════════════════════════════════════════════════ */
.cta-section {
  background: var(--white);
  padding: 0 clamp(1.5rem, 5vw, 4rem) clamp(4.5rem, 9vw, 7rem);
  text-align: center;
}
.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 3rem;
  font-family: var(--font-ui);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--tr-fast), color var(--tr-fast), border-color var(--tr-fast);
}
.cta-btn--outline {
  border-color: var(--dark);
  color: var(--dark);
  background: transparent;
}
.cta-btn--outline:hover {
  background: var(--dark);
  color: var(--white);
}
.cta-btn--red {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}
.cta-btn--red:hover {
  background: var(--white);
  color: var(--red);
}

/* Formulario expandible agendar */
.cta-form-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1), margin-top 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  margin-top: 0;
}
.cta-form-wrap.open {
  max-height: 500px;
  margin-top: 2.5rem;
}
.cta-agendar-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}
.cta-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.cta-form-field { width: 100%; }
.cta-form-field input {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 0;
  color: var(--text-dark);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  padding: 0.95rem 1.2rem;
  outline: none;
  transition: border-color var(--tr-fast);
  -webkit-appearance: none;
}
.cta-form-field input::placeholder {
  color: rgba(0,0,0,0.35);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.cta-form-field input:focus {
  border-color: var(--red);
}
.cta-agendar-submit {
  align-self: center;
  margin-top: 0.5rem;
}
.cta-agendar-success {
  margin-top: 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mid);
  min-height: 1.4em;
  text-align: center;
}
@media (max-width: 640px) {
  .cta-form-row { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-btn { width: 100%; }
}

/* ══════════════════════════════════════════════════════════
   AUTO.HTML — Sección contacto
   ══════════════════════════════════════════════════════════ */
.contact-section {
  position: relative;
  overflow: hidden;
  padding: clamp(5.5rem, 11vw, 10rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  background: var(--dark);
}
.contact-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
  filter: none;
  transform: none;
}
.contact-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.72);
}
.contact-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3.5rem);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.75rem;
}
.contact-sub {
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  line-height: 2.4;
}
.contact-sub a {
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--tr-fast);
}
.contact-sub a:hover { color: var(--white); }

/* ══════════════════════════════════════════════════════════
   FORMULARIO DE CONTACTO
   ══════════════════════════════════════════════════════════ */
.contact-form {
  margin-top: 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.contact-field { width: 100%; }
.contact-field input,
.contact-field textarea {
  width: 100%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 0;
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  padding: 0.95rem 1.2rem;
  outline: none;
  transition: border-color var(--tr-fast), background var(--tr-fast);
  -webkit-appearance: none;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(255,255,255,0.55);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.contact-field input:focus,
.contact-field textarea:focus {
  border-color: rgba(255,255,255,0.60);
  background: rgba(255,255,255,0.18);
}
.contact-field textarea {
  resize: none;
  display: block;
}
.contact-submit {
  align-self: center;
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.6rem;
  font-family: var(--font-ui);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  cursor: pointer;
  transition: background var(--tr-fast), color var(--tr-fast), border-color var(--tr-fast);
}
.contact-submit:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.55);
}
.contact-success {
  margin-top: 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  min-height: 1.4em;
  text-align: center;
}
@media (max-width: 640px) {
  .contact-form-row { grid-template-columns: 1fr; }
  .contact-form { max-width: 100%; }
}

/* ══════════════════════════════════════════════════════════
   LIGHTBOX (galería ampliada)
   ══════════════════════════════════════════════════════════ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.97);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: lbFadeIn 0.22s ease;
}
.lightbox.open { display: flex; }

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

.lightbox-img {
  max-width: 95vw;
  max-height: 92vh;
  object-fit: contain;
  cursor: default;
  user-select: none;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: var(--font-ui);
  font-size: 1.6rem;
  line-height: 1;
  color: rgba(255,255,255,0.6);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  transition: color var(--tr-fast);
  z-index: 501;
}
.lightbox-close:hover { color: var(--white); }

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 501;
  width: 50px; height: 50px;
  background: rgba(255,255,255,0.08);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--tr-fast);
}
.lightbox-arrow:hover { background: rgba(255,255,255,0.18); }
.lightbox-arrow.prev { left: 1.25rem; }
.lightbox-arrow.next { right: 1.25rem; }
.lightbox-arrow svg {
  width: 22px; height: 22px;
  stroke: var(--white);
  stroke-width: 1.5;
  fill: none;
}

.lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-ui);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.4);
}
