/* =========================================================
   SeptemCars — sistema de diseño
   Dorado del logo sobre fondo carbón. Mobile-first.
   ========================================================= */

:root {
  --bg:         #0a0a0c;
  --bg-2:       #15151a;
  --bg-3:       #1c1c22;
  --card:       #1a1a20;
  --card-2:     #22222a;
  --border:     rgba(212, 175, 55, 0.18);
  --border-2:   rgba(255, 255, 255, 0.06);

  --gold:       #d4af37;
  --gold-2:     #f4d77e;
  --gold-soft:  #b89331;
  --gold-dark:  #8a6e23;

  --text:       #f5f0e1;
  --text-muted: #b8b3a7;
  --text-dim:   #7a766d;

  --ok:         #6dd185;
  --warn:       #f4c95d;
  --bad:        #e87474;

  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw:   1240px;
  --radius: 14px;
  --radius-sm: 8px;

  --shadow-gold: 0 10px 40px -10px rgba(212, 175, 55, 0.35);
  --shadow-card: 0 8px 30px -10px rgba(0, 0, 0, 0.6);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  top: -20%;
  right: -20%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -30%;
  left: -20%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 7vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3.4vw, 1.7rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-muted); }

/* ----------------------------- Layout ---------------------------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

section { padding: 4rem 0; position: relative; z-index: 1; }
@media (min-width: 768px) { section { padding: 6rem 0; } }

.section-eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.9rem;
  display: inline-block;
}

.section-title { margin-bottom: 0.75rem; }
.section-sub { color: var(--text-muted); max-width: 680px; margin-bottom: 3rem; font-size: 1.02rem; }

.gold { color: var(--gold); }
.serif { font-family: var(--font-display); }

.divider-gold {
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border: 0;
  margin: 1.5rem 0;
}

/* ----------------------------- Header ---------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-2);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(10, 10, 12, 0.92);
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  z-index: 102;
}
.brand img { height: 38px; width: auto; }
.brand-text { display: none; font-weight: 600; }
@media (min-width: 480px) { .brand-text { display: inline; } }

.nav-links {
  list-style: none;
  display: none;
  gap: 0.4rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.92rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  color: var(--text-muted);
  transition: color 0.25s, background 0.25s;
  font-weight: 500;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--gold-2); background: rgba(212, 175, 55, 0.07); }
.nav-links a.active { color: var(--gold); }

@media (min-width: 1180px) { .nav-links { display: flex; } }

.nav .nav-cta { display: none; }
@media (min-width: 1180px) { .nav .nav-cta { display: inline-flex; } }

.burger {
  background: transparent;
  border: 1px solid var(--border);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gold);
  z-index: 102;
}
.burger svg { width: 22px; height: 22px; }
@media (min-width: 1180px) { .burger { display: none; } }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 10, 0.97);
  backdrop-filter: blur(20px);
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  z-index: 101;
  display: flex;
  flex-direction: column;
  padding: 6rem 1.5rem 2rem;
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu a {
  display: block;
  padding: 1.1rem 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--text);
  border-bottom: 1px solid var(--border-2);
  transition: color 0.2s, padding-left 0.25s var(--ease);
}
.mobile-menu a:hover, .mobile-menu a.active {
  color: var(--gold);
  padding-left: 0.4rem;
}
.mobile-menu .cta-row { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.7rem; }

/* ----------------------------- Buttons --------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.65rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border: 1px solid transparent;
  font-family: var(--font-body);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #1a1407;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 50px -10px rgba(212, 175, 55, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold-soft);
}
.btn-ghost:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--gold);
  color: var(--gold-2);
}

.btn-wa {
  background: #25d366;
  color: #07210d;
}
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(37, 211, 102, 0.55); }

.btn-ig {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold-soft);
  position: relative;
  overflow: hidden;
}
.btn-ig::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,175,55,.12), rgba(212,175,55,0) 60%);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.btn-ig:hover {
  border-color: var(--gold);
  color: var(--gold-2);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -10px rgba(212, 175, 55, 0.4);
}
.btn-ig:hover::before { opacity: 1; }
.btn-ig > * { position: relative; z-index: 1; }

.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ----------------------------- Hero ------------------------------ */

.hero {
  padding: 3rem 0 4rem;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: center;
  text-align: center;
}
@media (min-width: 880px) {
  .hero-inner { grid-template-columns: 1.05fr 1fr; text-align: left; gap: 4rem; }
}

.hero-logo {
  max-width: 220px;
  margin: 0 auto 1.2rem;
  filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.25));
  animation: floatLogo 6s ease-in-out infinite;
}
@media (min-width: 880px) {
  .hero-logo { margin: 0 0 1.5rem; max-width: 280px; }
}

.hero-title { margin-bottom: 1.2rem; }
.hero-title .accent {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-2) 50%, var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 5s linear infinite;
}

.hero-sub {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 880px) { .hero-sub { margin-left: 0; margin-right: 0; } }

.hero-ctas {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}
@media (min-width: 880px) { .hero-ctas { justify-content: flex-start; } }

.hero-meta {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
@media (min-width: 880px) { .hero-meta { justify-content: flex-start; } }

.hero-meta-item .num {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1;
}
.hero-meta-item .lbl {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-top: 0.4rem;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.12), transparent 60%),
    linear-gradient(180deg, #1f1f26 0%, #0d0d11 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 60px, rgba(212, 175, 55, 0.04) 60px 61px);
}
.hero-visual-icon {
  font-size: clamp(5rem, 14vw, 9rem);
  filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.3));
  position: relative;
  z-index: 2;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes shimmer {
  to { background-position: 200% center; }
}

/* ------------------------- Carrusel ------------------------------ */

.carousel {
  position: relative;
  overflow: hidden;
  /* Fondo base oscuro (visible solo si el blur fallara al cargar) */
  background:
    radial-gradient(ellipse at 50% 50%, #1a1a20 0%, #0a0a0c 100%);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
  user-select: none;
  pointer-events: none;
}
.slide.is-active { opacity: 1; }

/* Capa de fondo: misma foto, en cover, fuertemente desenfocada y oscurecida.
   Sirve como "fondo continuo" para que las franjas alrededor de fotos verticales
   u horizontales no parezcan vacías sino parte intencional del diseño. */
.slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(28px) brightness(0.45) saturate(0.85);
  transform: scale(1.18);  /* evita bordes claros del blur */
  z-index: 0;
}

/* Capa principal: la foto en contain, siempre completa, centrada */
.slide-fg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  z-index: 1;
}

/* Vignette/marco dorado sutil sobre todo el carrusel
   (le da unidad y enmarca la foto sin tapar nada importante) */
.carousel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.35) 100%);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.14);
}

/* ------------------------- Value props --------------------------- */

.values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
@media (min-width: 700px) { .values { grid-template-columns: repeat(3, 1fr); } }

.value-card {
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.value-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
}
.value-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.04));
  border: 1px solid var(--border);
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.value-card h3 { margin-bottom: 0.5rem; color: var(--text); }
.value-card p { font-size: 0.95rem; }

/* ------------------------- Car cards ----------------------------- */

.car-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .car-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .car-grid { grid-template-columns: repeat(3, 1fr); } }

.car-card {
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.3s;
  position: relative;
}
.car-card:hover {
  transform: translateY(-6px);
  border-color: var(--border);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7), 0 8px 30px -10px rgba(212, 175, 55, 0.18);
}

.car-card-media {
  aspect-ratio: 16 / 10;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a20 0%, #0f0f13 100%);
}
.car-card-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.12), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(212, 175, 55, 0.06), transparent 50%);
}
.car-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, transparent 0%, transparent calc(50% - 1px), rgba(212, 175, 55, 0.08) 50%, transparent calc(50% + 1px), transparent 100%),
    linear-gradient(0deg, transparent 0%, transparent calc(50% - 1px), rgba(212, 175, 55, 0.04) 50%, transparent calc(50% + 1px), transparent 100%);
}
.car-card-media .initials {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-shadow: 0 4px 30px rgba(212, 175, 55, 0.4);
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1rem;
}
.car-card-media .silhouette {
  position: absolute;
  inset: auto 0 -6% 0;
  width: 100%;
  height: 50%;
  opacity: 0.16;
  z-index: 1;
  background: radial-gradient(ellipse at center bottom, rgba(212, 175, 55, 0.6), transparent 60%);
}

/* Imagen real dentro de la tarjeta */
.car-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.6s var(--ease);
}
.car-card:hover .car-card-media img { transform: scale(1.04); }
.car-card-media.is-sold img { filter: grayscale(0.4) brightness(0.7); }

/* Overlay VENDIDO sobre la foto */
.sold-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0,0,0,0.45), rgba(0,0,0,0.25));
  pointer-events: none;
}
.sold-stamp {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #fff;
  padding: 0.4rem 1.4rem;
  border: 3px solid #fff;
  border-radius: 6px;
  transform: rotate(-8deg);
  background: rgba(232, 116, 116, 0.85);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.7);
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.car-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--gold);
  color: #1a1407;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 3;
}

.car-card-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; gap: 0.7rem; }
.car-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.7rem; }
.car-card-title { font-size: 1.25rem; font-weight: 500; color: var(--text); }
.car-card-make { font-size: 0.78rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 0.3rem; }

.car-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.car-card-specs span { display: inline-flex; align-items: center; gap: 0.35rem; }
.car-card-specs .dot { color: var(--gold-soft); }

.car-card-foot {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}
.car-card-price .label { font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.14em; }
.car-card-price .value { font-family: var(--font-display); font-size: 1.45rem; color: var(--gold); font-weight: 600; line-height: 1.1; margin-top: 0.15rem; }

.car-card-link {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.25s var(--ease);
}
.car-card:hover .car-card-link { gap: 0.6rem; }

/* ------------------------- Video hero (ficha) -------------------- */

.video-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 88vh;
  min-height: 360px;
  overflow: hidden;
  /* Fondo base: gradiente sutil de la paleta, visible solo si el blur falla */
  background:
    radial-gradient(ellipse at 50% 30%, #1a1a20 0%, #0a0a0c 100%);
}
/* Capa de fondo: póster del propio vídeo, en cover, blureado y oscurecido.
   Rellena de forma elegante las franjas alrededor del vídeo. */
.video-hero-blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(34px) brightness(0.4) saturate(0.85);
  transform: scale(1.18);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
/* Vídeo principal: por defecto fill horizontal (caso vídeo 16:9 en hero 16:9) */
.video-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  z-index: 1;
}

/* ===== Variante VERTICAL ===== */
/* DESKTOP: el vídeo cubre TODA la cabecera (cover), de lado a lado y de
   arriba a abajo. Como el vídeo es vertical y el hero es ancho, esto
   recorta partes del vídeo arriba y abajo — es lo deseado, prima el
   protagonismo a la integridad de la imagen. La capa de blur queda
   tapada por completo en este modo. */
@media (min-width: 721px) {
  .video-hero.is-vertical .video-hero-bg {
    inset: 0;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }
  /* El blur deja de hacer falta visualmente (cover lo tapa) — lo ocultamos
     para ahorrar pintado. */
  .video-hero.is-vertical .video-hero-blur {
    display: none;
  }
}
/* MÓVIL: el vídeo vertical llena la cabecera. El hero adopta proporción
   9:16 para que un vídeo vertical encaje completamente, sin franjas. */
@media (max-width: 720px) {
  .video-hero.is-vertical {
    aspect-ratio: 9 / 16;
    max-height: 88vh;
    min-height: 500px;
  }
  .video-hero.is-vertical .video-hero-bg {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
}

/* ===== Variante HORIZONTAL ===== */
/* Hero 16:9 ya por defecto; el vídeo 16:9 llena con contain perfectamente.
   En móvil mantenemos 16:9 (cinematográfico) sin que sea excesivamente alto. */
.video-hero.is-horizontal .video-hero-bg {
  object-fit: contain;
}
@media (max-width: 720px) {
  .video-hero.is-horizontal {
    aspect-ratio: 16 / 9;
    min-height: 220px;
  }
}
.video-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,10,12,0.42) 0%, rgba(10,10,12,0.05) 35%, rgba(10,10,12,0.55) 75%, rgba(10,10,12,0.92) 100%),
    radial-gradient(ellipse at 30% 110%, rgba(10,10,12,0.85) 0%, transparent 60%);
}

.video-hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 1.4rem;
  padding-bottom: 2rem;
}

.video-hero-back {
  color: var(--text-muted);
  align-self: flex-start;
  background: rgba(10,10,12,0.55);
  backdrop-filter: blur(8px);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  margin-bottom: 0;
}
.video-hero-back:hover { color: var(--gold); }

.video-hero-text {
  max-width: 760px;
}
.video-hero-text .make {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.85rem;
  font-weight: 500;
}
.video-hero-text h1 {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  margin: 0.35rem 0 0.6rem;
  color: var(--text);
  text-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.video-hero-text .tag {
  color: var(--text);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  opacity: 0.92;
  max-width: 600px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.6);
}

.video-hero-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
}
.video-hero-specs span {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
}
.video-hero-specs strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}
.video-hero-specs em {
  font-style: normal;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}
.video-hero-specs .highlight strong {
  color: var(--gold);
  font-size: 1.4rem;
}

.video-hero-stamp {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  z-index: 4;
  pointer-events: none;
}
.video-hero-stamp .sold-stamp {
  font-size: clamp(0.85rem, 2vw, 1.2rem);
  letter-spacing: 0.3em;
}

.video-hero-mute {
  position: absolute;
  bottom: 1.2rem;
  right: 1.2rem;
  z-index: 4;
  background: rgba(10,10,12,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--gold);
  padding: 0.55rem 1rem 0.55rem 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.3s var(--ease);
}
.video-hero-mute:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold);
  color: var(--gold-2);
  transform: translateY(-2px);
}
.video-hero-mute-label {
  letter-spacing: 0.08em;
}

@media (max-width: 720px) {
  /* Ajustes móviles comunes (las aspect-ratio van por orientación arriba) */
  .video-hero-content { padding-bottom: 1.5rem; padding-top: 1rem; }
  .video-hero-back { font-size: 0.82rem; }
  .video-hero-specs { gap: 0.5rem 1.2rem; }
  .video-hero-specs strong { font-size: 1rem; }
  .video-hero-specs .highlight strong { font-size: 1.2rem; }
  .video-hero-mute { bottom: 0.9rem; right: 0.9rem; padding: 0.5rem 0.8rem 0.5rem 0.65rem; font-size: 0.78rem; }
  .video-hero-mute-label { display: none; }
  .video-hero-stamp { top: 1rem; right: 1rem; }
}

/* Cuando hay video hero, los datos van apilados debajo en lugar de hero clásico */
.detail-hero-stacked {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 0;
  padding-top: 1rem;
}
@media (min-width: 900px) {
  .detail-hero-stacked { grid-template-columns: 1fr 1.1fr; }
}

/* ------------------------- Coche detail -------------------------- */

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  transition: color 0.25s, gap 0.25s var(--ease);
}
.detail-back:hover { color: var(--gold); gap: 0.7rem; }

.detail-hero {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
}
@media (min-width: 900px) { .detail-hero { grid-template-columns: 1.3fr 1fr; align-items: start; } }

.gallery-main {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1f1f26, #0d0d11);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  text-align: center;
  padding: 2rem;
}
.gallery-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(212, 175, 55, 0.12), transparent 60%);
}
.gallery-main span { position: relative; z-index: 1; }

/* Versión con imagen real (foto principal) */
.gallery-main.has-image {
  padding: 0;
  background: #000;
}
.gallery-main.has-image::before { display: none; }
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-top: 0.8rem;
}
/* Cuando las miniaturas son fotos reales, más por fila */
.gallery-thumbs.photo {
  grid-template-columns: repeat(5, 1fr);
}
@media (min-width: 640px) {
  .gallery-thumbs.photo { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 900px) {
  .gallery-thumbs.photo { grid-template-columns: repeat(7, 1fr); }
}

.thumb {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  border: 1px solid var(--border-2);
  background: linear-gradient(135deg, #1a1a20, #0f0f13);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.72rem;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, transform 0.2s var(--ease);
  text-align: center;
  padding: 0.3rem;
  overflow: hidden;
  font-family: inherit;
}
.thumb.active, .thumb:hover { border-color: var(--gold); color: var(--gold); }
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}
.thumb:has(img) { padding: 0; }
.thumb:hover img { transform: scale(1.05); }

/* Miniatura de vídeo: icono de play encima del poster */
.thumb.is-video { position: relative; }
.thumb-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0,0,0,0.35), rgba(0,0,0,0.1));
  border-radius: 5px;
  pointer-events: none;
  transition: background 0.25s var(--ease);
}
.thumb.is-video:hover .thumb-video-play { background: linear-gradient(135deg, rgba(0,0,0,0.15), rgba(0,0,0,0)); }
.thumb-video-play svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
  margin-left: 2px;
}

/* Vídeo en el visor principal de la galería: se ve completo, con fondo oscuro */
.gallery-main video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

.detail-info { display: flex; flex-direction: column; gap: 1rem; }
.detail-info .make { color: var(--gold); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.85rem; }
.detail-info h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: 0.3rem; }
.detail-info .tag { color: var(--text-muted); font-size: 1.05rem; }

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
  margin-top: 1rem;
}
@media (min-width: 480px) { .specs-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .specs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .specs-grid { grid-template-columns: repeat(3, 1fr); } }

.spec { border-top: 1px solid var(--border-2); padding-top: 0.6rem; }

.equip-block {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-2);
}
.lbl-eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 0.7rem;
  font-weight: 600;
}
.equip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.equip-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.9rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 500;
}
.spec .lbl {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}
.spec .val { font-size: 1rem; color: var(--text); margin-top: 0.2rem; font-weight: 500; }

.price-breakdown {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.price-breakdown h3 { font-size: 1.2rem; margin-bottom: 1rem; color: var(--gold); }
.price-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--border-2);
}
.price-row:last-of-type { border-bottom: none; }
.price-row .lbl { color: var(--text-muted); }
.price-row .val { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.price-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 1rem;
  margin-top: 0.6rem;
  border-top: 1px solid var(--gold-soft);
}
.price-total .lbl { color: var(--gold); text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.85rem; font-weight: 600; }
.price-total .val { font-family: var(--font-display); font-size: 2.1rem; color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
@media (min-width: 640px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }

.video-card {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #1f1f26, #0d0d11);
  border: 1px solid var(--border-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease);
  cursor: pointer;
}
.video-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.video-card .play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.video-card .play svg { width: 22px; height: 22px; margin-left: 3px; }
.video-card .lbl { font-size: 0.85rem; }

/* ------------------------- Diagnóstico OBD ----------------------- */

.diag-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 720px) { .diag-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .diag-grid { grid-template-columns: repeat(3, 1fr); } }

.diag-card {
  background: var(--card);
  border: 1px solid var(--border-2);
  border-left: 3px solid var(--text-dim);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  transition: transform 0.3s var(--ease);
}
.diag-card:hover { transform: translateY(-3px); }
.diag-card.ok { border-left-color: var(--ok); }
.diag-card.aviso { border-left-color: var(--warn); }
.diag-card.fallo { border-left-color: var(--bad); }

.diag-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}
.diag-head h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}
.diag-status {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.diag-status.ok    { background: rgba(109, 209, 133, 0.14); color: var(--ok); }
.diag-status.aviso { background: rgba(244, 201, 93, 0.14);  color: var(--warn); }
.diag-status.fallo { background: rgba(232, 116, 116, 0.14); color: var(--bad); }

.diag-card p { font-size: 0.9rem; color: var(--text-muted); }

.review-header {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), transparent 60%), var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-bottom: 2.5rem;
}
.review-header .label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.review-header h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); margin-bottom: 0.4rem; }
.review-header .meta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem 2rem;
  margin-top: 1.2rem;
}
@media (min-width: 520px) { .review-header .meta-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .review-header .meta-row { grid-template-columns: repeat(4, 1fr); } }
.review-header .meta-item .lbl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-dim); }
.review-header .meta-item .val { font-weight: 500; margin-top: 0.2rem; color: var(--text); }

.state-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(109, 209, 133, 0.12);
  color: var(--ok);
  border: 1px solid rgba(109, 209, 133, 0.3);
}
.state-pill.aviso { background: rgba(244, 201, 93, 0.12); color: var(--warn); border-color: rgba(244, 201, 93, 0.3); }
.state-pill.fallo { background: rgba(232, 116, 116, 0.12); color: var(--bad); border-color: rgba(232, 116, 116, 0.3); }
.state-pill::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

/* ------------------------- Contacto · 4 opciones ----------------- */

/* Grid responsive: 1 col móvil · 2 col tablet · 4 col desktop */
.contact-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  max-width: 1180px;
  margin: 0 auto;
}
@media (min-width: 620px) {
  .contact-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .contact-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Las 4 tarjetas comparten layout y altura */
.contact-grid-4 .contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.8rem 1.3rem 1.5rem;
  gap: 0.9rem;
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, transform 0.3s var(--ease);
  height: 100%;            /* iguala alturas en cada fila del grid */
}
.contact-grid-4 .contact-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
}

.contact-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card-icon.wa {
  background: #25d366;
  color: #07210d;
  box-shadow: 0 10px 28px -10px rgba(37, 211, 102, 0.5);
}
.contact-card-icon.ig,
.contact-card-icon.gold {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.04));
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  box-shadow: 0 10px 28px -10px rgba(212, 175, 55, 0.32);
}

.contact-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex: 1;                 /* empuja el botón al fondo cuando los textos varían */
}
.contact-card-eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  font-weight: 500;
}
.contact-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.1rem;
}
.contact-card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 240px;
  margin-top: 0.2rem;
}
.contact-card-info {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  word-break: break-word;
}

/* Botón a pie de cada tarjeta — siempre alineado en la base */
.contact-card-cta {
  margin-top: 0.4rem;
  width: 100%;
  max-width: 280px;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
  white-space: normal;     /* permite que "Concertar videollamada" rompa línea si hace falta */
}

@media (max-width: 619px) {
  .contact-grid-4 .contact-card { padding: 1.6rem 1.2rem 1.4rem; }
  .contact-card-icon { width: 56px; height: 56px; }
  .contact-card-icon svg { width: 22px; height: 22px; }
}

/* ------------------------- Contacto ------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 3rem; } }

.contact-card {
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-2);
}
.contact-item:last-of-type { border-bottom: none; }
.contact-item .ic {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border);
  color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item .ic svg { width: 20px; height: 20px; }
.contact-item .lbl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-dim); }
.contact-item .val { color: var(--text); font-weight: 500; margin-top: 0.15rem; }
.contact-item a:hover .val { color: var(--gold); }

.form { display: flex; flex-direction: column; gap: 1.1rem; }
.field label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.25s, background 0.25s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--bg-3);
}
.field textarea { min-height: 130px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-feedback {
  padding: 1rem;
  background: rgba(109, 209, 133, 0.1);
  border: 1px solid rgba(109, 209, 133, 0.3);
  border-radius: 10px;
  color: var(--ok);
  font-size: 0.95rem;
  display: none;
}
.form-feedback.is-visible { display: block; }

/* ------------------------- Sobre nosotros ------------------------ */

.about-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) { .about-hero { grid-template-columns: 1.1fr 1fr; gap: 3rem; } }

.about-visual {
  aspect-ratio: 4/5;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.18), transparent 70%),
    linear-gradient(180deg, #1f1f26 0%, #0d0d11 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-visual img { max-width: 70%; filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.25)); }

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.timeline-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.timeline-item .dot {
  flex-shrink: 0;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold);
  margin-top: 0.6rem;
  box-shadow: 0 0 12px var(--gold);
}
.timeline-item h4 { margin-bottom: 0.2rem; font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; }
.timeline-item p { font-size: 0.93rem; }

/* ------------------------- Timeline vertical --------------------- */

.timeline-v {
  position: relative;
  max-width: 780px;
  margin: 3rem auto 0;
  padding-left: 84px;
}
.timeline-v::before {
  content: '';
  position: absolute;
  left: 31px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--gold-soft) 4%,
    var(--gold-soft) 96%,
    transparent 100%);
}

.step {
  position: relative;
  margin-bottom: 2.6rem;
}
.step:last-child { margin-bottom: 0; }

.step-marker {
  position: absolute;
  left: -84px;
  top: -2px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  box-shadow:
    0 0 0 6px var(--bg),
    0 10px 30px -10px rgba(212, 175, 55, 0.55);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.step.is-visible .step-marker {
  box-shadow:
    0 0 0 6px var(--bg),
    0 0 0 10px rgba(212, 175, 55, 0.12),
    0 10px 30px -10px rgba(212, 175, 55, 0.55);
}
.step-marker svg { width: 26px; height: 26px; }

.step-number {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--gold);
  color: #1a1407;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  border: 1.5px solid var(--bg);
}

.step-content {
  padding: 0.15rem 0 0.4rem;
}
.step-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.4vw, 1.55rem);
  color: var(--text);
  margin-bottom: 0.45rem;
  font-weight: 600;
}
.step-content p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Fade-in deslizado para cada paso */
.step.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.step.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .timeline-v { padding-left: 64px; }
  .timeline-v::before { left: 23px; top: 24px; bottom: 24px; }
  .step-marker {
    left: -64px;
    width: 48px;
    height: 48px;
  }
  .step-marker svg { width: 20px; height: 20px; }
  .step-number {
    font-size: 0.62rem;
    padding: 1px 5px;
    top: -6px;
    right: -8px;
  }
  .step { margin-bottom: 2.2rem; }
}

/* ------------------------- Placeholders DEMO ---------------------- */

/* Marco vacío genérico: para bajos, descripciones y cualquier sección
   sin grilla específica (se usa solo en la DEMO). */
.rev-empty-frame {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  max-width: 760px;
  padding: 1.3rem 1.4rem;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
}
.rev-empty-frame svg { color: var(--gold-soft); flex-shrink: 0; margin-top: 0.15rem; }
.rev-empty-frame p { font-size: 0.92rem; line-height: 1.55; color: var(--text-muted); font-style: italic; }

/* Miniatura de foto en estado "ghost" (DEMO sin fotos cargadas) */
.rev-photo-ghost {
  border: 1px dashed var(--border) !important;
  background: linear-gradient(135deg, rgba(212,175,55,0.04), rgba(212,175,55,0.01)) !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--gold-soft);
}
.rev-photo-ghost svg { opacity: 0.55; }

/* Tarjeta de vídeo en estado "ghost" */
.video-card-ghost {
  border: 1px dashed var(--border);
  background: linear-gradient(135deg, rgba(212,175,55,0.04), rgba(212,175,55,0.01));
}
.video-card-ghost:hover { transform: none; border-color: var(--border); }

/* Etiqueta DGT en estado "sin marcar": círculo dorado a rayas, símbolo · centrado */
.dgt-label.dgt-empty {
  background: linear-gradient(135deg, rgba(212,175,55,0.18), rgba(212,175,55,0.04));
  border: 2px dashed var(--gold-soft);
  color: var(--gold);
  box-shadow: none;
}
.dgt-label.dgt-empty .dgt-letra {
  font-size: 2.4rem;
  opacity: 0.6;
}

/* ------------------------- Demo banner (revisión) ----------------- */

.demo-banner {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.4rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.03));
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.demo-banner svg { color: var(--gold); flex-shrink: 0; margin-top: 0.15rem; }
.demo-banner strong { color: var(--gold); letter-spacing: 0.04em; }

/* ------------------------- Proceso 4 fases ----------------------- */

.proceso-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-top: 1rem;
}
@media (min-width: 640px)  { .proceso-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .proceso-grid { grid-template-columns: repeat(4, 1fr); } }

.proceso-card {
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.proceso-card:hover { border-color: var(--border); transform: translateY(-3px); }
.proceso-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at top right, rgba(212,175,55,0.06), transparent 60%);
}
.proceso-card > * { position: relative; z-index: 1; }

.proceso-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.proceso-card-n {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
}
.proceso-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.04));
  border: 1px solid var(--border);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.proceso-card-icon svg { width: 22px; height: 22px; }

.proceso-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}
.proceso-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ------------------------- Etiqueta DGT --------------------------- */

.dgt-block {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 1.6rem;
  margin-top: 1rem;
  max-width: 880px;
}
.dgt-label {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-shadow:
    0 10px 28px -8px rgba(0, 0, 0, 0.55),
    inset 0 0 0 4px rgba(255, 255, 255, 0.1);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 900;
}
.dgt-label .dgt-letra {
  font-size: 3.2rem;
  line-height: 1;
}
.dgt-label.dgt-eco .dgt-letra { font-size: 1.9rem; letter-spacing: 0.04em; }

.dgt-label.dgt-b    { background: #FFD400; color: #111; }
.dgt-label.dgt-c    { background: #009A3D; color: #fff; }
.dgt-label.dgt-cero { background: #0083CA; color: #fff; }
.dgt-label.dgt-eco  {
  background: linear-gradient(180deg, #009A3D 0%, #009A3D 50%, #0083CA 50%, #0083CA 100%);
  color: #fff;
}

.dgt-explain {
  flex: 1;
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .dgt-block { flex-direction: column; text-align: center; padding: 1.4rem 1.2rem; }
  .dgt-label { width: 100px; height: 100px; }
  .dgt-label .dgt-letra { font-size: 2.6rem; }
  .dgt-label.dgt-eco .dgt-letra { font-size: 1.55rem; }
}

/* ------------------------- Esquema de pintura --------------------- */

.paint-schema {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 1rem auto 0;
}
.paint-schema .ps-label {
  font-size: 12px;
  fill: var(--text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 500;
}
.paint-schema .ps-label-sm {
  font-size: 9px;
  fill: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 500;
}
.paint-schema .ps-value-big {
  font-size: 22px;
  fill: var(--gold);
  font-weight: 600;
  font-family: var(--font-display);
}
.paint-schema .ps-value {
  font-size: 16px;
  fill: var(--gold);
  font-weight: 600;
  font-family: var(--font-display);
}

/* ------------------------- Fotos de revisión ---------------------- */

.rev-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}
.rev-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-2);
  background: linear-gradient(135deg, #1a1a20, #0f0f13);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.rev-photo:hover { border-color: var(--border); transform: translateY(-2px); }
.rev-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rev-photo span {
  position: relative;
  z-index: 1;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  width: 100%;
  padding: 0.7rem 0.6rem 0.5rem;
  font-size: 0.78rem;
  color: var(--text);
  text-align: center;
}
.rev-photo-placeholder {
  align-items: center;
}
.rev-photo-placeholder span {
  background: none;
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

/* ------------------------- Diag-status: tres estados -------------- */
/* `.ok` (verde) y `.fallo` (rojo) ya están definidos arriba en diag-card / diag-status. */

.diag-card.incidencia { border-left-color: var(--warn); }
.diag-status.incidencia {
  background: rgba(244, 201, 93, 0.14);
  color: var(--warn);
}

/* Leyenda visible bajo el subtítulo del diagnóstico */
.diag-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  padding: 0.85rem 1.1rem;
  margin: 0 0 1.5rem;
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  color: var(--text-muted);
  max-width: max-content;
}
.diag-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.diag-legend-item strong {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.diag-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 10px currentColor;
}
.diag-legend-dot.ok          { background: var(--ok);   color: var(--ok); }
.diag-legend-dot.incidencia  { background: var(--warn); color: var(--warn); }
.diag-legend-dot.fallo       { background: var(--bad);  color: var(--bad); }

/* ------------------------- Empty state --------------------------- */

.empty-state {
  max-width: 640px;
  margin: 1rem auto 0;
  padding: 3rem 1.8rem;
  text-align: center;
  background: linear-gradient(180deg, var(--card) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.empty-state::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(212, 175, 55, 0.12), transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(212, 175, 55, 0.06), transparent 60%);
  pointer-events: none;
}
.empty-state > * { position: relative; z-index: 1; }

.empty-state-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212,175,55,.18), rgba(212,175,55,.04));
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  box-shadow:
    0 0 0 8px rgba(212, 175, 55, 0.05),
    0 10px 36px -12px rgba(212, 175, 55, 0.45);
}
.empty-state-icon svg { width: 42px; height: 42px; }

/* ------------------------- Login revisión ------------------------ */

.access-card {
  max-width: 460px;
  margin: 2rem auto 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  text-align: center;
}
.access-card h2 { margin-bottom: 0.8rem; }
.access-card p { margin-bottom: 1.5rem; }
.access-card input {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
}
.access-error {
  margin-top: 0.8rem;
  color: var(--bad);
  font-size: 0.9rem;
  display: none;
}
.access-error.is-visible { display: block; }
.access-hint { margin-top: 1.2rem; font-size: 0.82rem; color: var(--text-dim); }
.access-hint code {
  background: var(--bg-3);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  color: var(--gold);
  font-size: 0.85rem;
}

/* ------------------------- Footer -------------------------------- */

.site-footer {
  border-top: 1px solid var(--border-2);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  background: var(--bg-2);
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.92rem; max-width: 360px; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; transition: color 0.25s; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ------------------------- Floating WhatsApp ---------------------- */

.fab-wa {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.5), 0 4px 14px rgba(0, 0, 0, 0.4);
  z-index: 90;
  transition: transform 0.3s var(--ease);
}
.fab-wa:hover { transform: scale(1.08); }
.fab-wa svg { width: 28px; height: 28px; }

/* ------------------------- Animations ---------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }
.reveal.delay-5 { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-logo, .hero-title .accent { animation: none; transition: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------- Utility ------------------------------- */

.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.gap-1 { gap: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.no-mt { margin-top: 0; }

.bg-2 { background: var(--bg-2); }
.bg-3 { background: var(--bg-3); }
