/* ==========================================================================
   Secciones y vistas específicas
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero principal (index)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(94vh, 900px);
  padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transform: scale(1.06);
  animation: hero-drift 22s var(--ease) infinite alternate;
}
@keyframes hero-drift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(6, 7, 10, 0.96) 8%, rgba(6, 7, 10, 0.78) 42%, rgba(6, 7, 10, 0.35) 78%),
    linear-gradient(0deg, var(--ink-900) 2%, transparent 45%),
    radial-gradient(700px 420px at 18% 55%, rgba(11, 138, 224, 0.28), transparent 70%);
}

.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__content { max-width: 44rem; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.45rem 0.5rem 0.45rem 0.5rem;
  margin-bottom: var(--sp-5);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.hero__badge strong {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--r-pill);
  background: var(--grad-orange);
  color: #17110a;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.hero__badge span { padding-right: 0.5rem; }

.hero__title {
  font-size: var(--fs-5xl);
  font-weight: 800;
  line-height: 1.02;
  margin-bottom: var(--sp-5);
  text-wrap: balance;
}
.hero__title em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__text {
  font-size: var(--fs-lg);
  color: var(--ink-100);
  line-height: var(--lh-loose);
  max-width: 54ch;
  margin-bottom: var(--sp-7);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6) var(--sp-8);
}
.hero__proof-item { display: flex; flex-direction: column; gap: 0.15rem; }
.hero__proof-item strong {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--text-strong);
  line-height: 1;
}
.hero__proof-item span {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: var(--sp-6);
  transform: translateX(-50%);
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-subtle);
}
@media (min-width: 1024px) { .hero__scroll { display: flex; } }
.hero__scroll i { font-size: 1.4rem; animation: bob 2s var(--ease) infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* --------------------------------------------------------------------------
   Buscador rápido
   -------------------------------------------------------------------------- */

.quick-search {
  position: relative;
  z-index: 5;
  margin-top: calc(-1 * clamp(2rem, 5vw, 3.5rem));
}

.quick-search__card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: var(--sp-4);
  align-items: end;
  padding: var(--sp-6);
  background: rgba(15, 17, 23, 0.92);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xl);
}
.quick-search__card .btn { height: 46px; }

/* --------------------------------------------------------------------------
   Franja de confianza
   -------------------------------------------------------------------------- */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--sp-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--border);
}
.trust-strip__item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-6);
  background: var(--bg-surface);
  transition: background-color var(--dur) var(--ease);
}
.trust-strip__item:hover { background: var(--bg-elevated); }
.trust-strip__item i {
  font-size: 2rem;
  color: var(--orange-400);
  flex-shrink: 0;
}
.trust-strip__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: var(--text-strong);
}
.trust-strip__item span { font-size: var(--fs-sm); color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Marcas
   -------------------------------------------------------------------------- */

.brands {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: center;
}
.brand-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 138px;
  padding: var(--sp-5) var(--sp-6);
  background: var(--bg-surface);
  background-image: var(--grad-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--dur) var(--ease-out);
}
.brand-pill:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--sh-md);
}
.brand-pill strong {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
}
.brand-pill span { font-size: var(--fs-xs); color: var(--text-subtle); }

/* --------------------------------------------------------------------------
   Bloque a dos columnas (imagen + contenido)
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--reverse .split__media { order: 2; }
}

.split__media { position: relative; }
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}
.split__media--tall img { aspect-ratio: 3 / 4; }

.split__glow {
  position: absolute;
  inset: 12% 0 -8% 8%;
  z-index: -1;
  border-radius: var(--r-xl);
  background: var(--grad-brand);
  filter: blur(52px);
  opacity: 0.28;
}

.split__float {
  position: absolute;
  right: 0;
  bottom: -1rem;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5);
  max-width: 260px;
  background: rgba(15, 17, 23, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
}

/* Solo se desborda del contenedor cuando hay margen lateral suficiente */
@media (min-width: 700px) {
  .split__float { right: -1.25rem; bottom: -1.5rem; }
}
.split__float i { font-size: 2.2rem; color: var(--orange-400); }
.split__float strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  color: var(--text-strong);
  line-height: 1.1;
}
.split__float span { font-size: var(--fs-sm); color: var(--text-muted); }

.check-list { display: flex; flex-direction: column; gap: var(--sp-4); margin-top: var(--sp-6); }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  color: var(--text-muted);
}
.check-list i {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  font-size: 0.85rem;
  color: var(--success);
  background: rgba(34, 192, 125, 0.14);
}
.check-list strong { color: var(--text); display: block; font-family: var(--font-display); }

/* --------------------------------------------------------------------------
   Estadísticas
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: var(--sp-6);
}
.stat {
  position: relative;
  padding: var(--sp-6) var(--sp-5);
  text-align: center;
  background: var(--bg-surface);
  background-image: var(--grad-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.stat::before {
  content: "";
  position: absolute;
  inset: auto 22% 0 22%;
  height: 2px;
  border-radius: var(--r-pill);
  background: var(--grad-brand);
  opacity: 0.75;
}
.stat i { font-size: 1.8rem; color: var(--blue-400); }
.stat strong {
  display: block;
  margin-block: var(--sp-3) var(--sp-1);
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--text-strong);
  line-height: 1;
}
.stat span { font-size: var(--fs-sm); color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Financiamiento / calculadora
   -------------------------------------------------------------------------- */

.calc {
  display: grid;
  gap: var(--sp-6);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--bg-surface);
  background-image: var(--grad-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}

.calc__fields { display: flex; flex-direction: column; gap: var(--sp-5); }

.calc__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-2);
}
.calc__row label {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
}
.calc__row output {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--orange-400);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--ink-600);
  cursor: pointer;
  outline-offset: 6px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange-500);
  border: 3px solid var(--ink-900);
  box-shadow: 0 0 0 1px var(--orange-500), var(--sh-glow-accent);
  cursor: grab;
  transition: transform var(--dur-fast) var(--ease-spring);
}
input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.18); cursor: grabbing; }
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange-500);
  border: 3px solid var(--ink-900);
  box-shadow: 0 0 0 1px var(--orange-500);
  cursor: grab;
}
input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--ink-600);
}

.calc__result {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: var(--sp-6);
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(11, 138, 224, 0.16), rgba(255, 157, 10, 0.14));
  border: 1px solid var(--border-strong);
}
.calc__headline { text-align: center; }
.calc__headline span {
  display: block;
  font-size: var(--fs-sm);
  color: var(--ink-100);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.calc__headline strong {
  display: block;
  margin-top: var(--sp-1);
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 800;
  color: var(--text-strong);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
}
.calc__headline small { font-size: var(--fs-sm); color: var(--ink-100); }

.calc__breakdown {
  display: grid;
  gap: var(--sp-2);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.calc__breakdown div {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  font-size: var(--fs-base);
  color: var(--ink-100);
}
.calc__breakdown strong { color: var(--text-strong); font-family: var(--font-display); }

.calc__disclaimer {
  font-size: var(--fs-xs);
  color: var(--text-subtle);
  line-height: var(--lh-normal);
}

@media (min-width: 860px) {
  .calc--wide { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
}

/* --------------------------------------------------------------------------
   Banner CTA
   -------------------------------------------------------------------------- */

.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-strong);
  isolation: isolate;
}
.cta-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(6, 7, 10, 0.95) 10%, rgba(6, 7, 10, 0.7) 55%, rgba(11, 138, 224, 0.35) 100%);
}
.cta-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-7);
  padding: clamp(2.25rem, 5vw, 4rem);
}
.cta-banner__content { max-width: 50ch; }
.cta-banner h2 { margin-bottom: var(--sp-4); }
.cta-banner p { color: var(--ink-100); font-size: var(--fs-lg); }
.cta-banner__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* --------------------------------------------------------------------------
   Testimonios
   -------------------------------------------------------------------------- */

.testimonial {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  height: 100%;
  padding: var(--sp-7) var(--sp-6);
  background: var(--bg-surface);
  background-image: var(--grad-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.testimonial__quote {
  font-size: 2.6rem;
  line-height: 0.6;
  color: var(--orange-500);
  opacity: 0.55;
}
.testimonial__stars { display: flex; gap: 0.15rem; color: var(--orange-400); font-size: 1rem; }
.testimonial p {
  color: var(--text-muted);
  line-height: var(--lh-loose);
  flex: 1;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
}
.testimonial__author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
}
.testimonial__author strong {
  display: block;
  font-family: var(--font-display);
  color: var(--text-strong);
  font-size: var(--fs-base);
}
.testimonial__author span { font-size: var(--fs-sm); color: var(--text-subtle); }

/* --------------------------------------------------------------------------
   Ubicación / mapa
   -------------------------------------------------------------------------- */

.location {
  display: grid;
  gap: var(--sp-6);
  align-items: stretch;
}
@media (min-width: 900px) {
  .location { grid-template-columns: 0.85fr 1.15fr; }
}

.map-frame {
  position: relative;
  min-height: 340px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--sh-md);
  background: var(--ink-700);
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  filter: grayscale(0.35) contrast(1.05) brightness(0.92);
  transition: filter var(--dur-slow) var(--ease);
}
.map-frame:hover iframe { filter: none; }
.map-frame--tall iframe { min-height: 460px; }

.info-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--bg-surface);
  background-image: var(--grad-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}
.info-row__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  font-size: 1.35rem;
  color: var(--blue-300);
  background: rgba(11, 138, 224, 0.12);
  border: 1px solid var(--border-primary);
}
.info-row--accent .info-row__icon {
  color: var(--orange-300);
  background: rgba(255, 157, 10, 0.12);
  border-color: var(--border-accent);
}
.info-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-base);
  color: var(--text-strong);
  margin-bottom: 0.15rem;
}
.info-row p,
.info-row a { color: var(--text-muted); font-size: var(--fs-base); }
.info-row a:hover { color: var(--orange-300); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 25%, transparent);
}
.status-pill--open { color: #4dd79b; background: rgba(34, 192, 125, 0.13); }
.status-pill--closed { color: var(--text-subtle); background: rgba(255, 255, 255, 0.06); }

.hours-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-xs);
  font-size: var(--fs-base);
  color: var(--text-muted);
}
.hours-list li.is-today {
  background: rgba(255, 157, 10, 0.1);
  border: 1px solid var(--border-accent);
  color: var(--text);
}
.hours-list li span:last-child { font-weight: 500; color: var(--text); white-space: nowrap; }
.hours-list li.is-closed span:last-child { color: var(--text-subtle); font-weight: 400; }

/* --------------------------------------------------------------------------
   Hero de páginas internas
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(6, 7, 10, 0.95) 15%, rgba(6, 7, 10, 0.8) 60%, rgba(6, 7, 10, 0.55) 100%),
    linear-gradient(0deg, var(--ink-900), transparent 60%);
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 { margin-bottom: var(--sp-4); text-wrap: balance; }
.page-hero p { color: var(--ink-100); font-size: var(--fs-lg); max-width: 62ch; }

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--text-subtle);
}
.breadcrumb a:hover { color: var(--orange-300); }
.breadcrumb i { font-size: 0.9rem; opacity: 0.6; }
.breadcrumb [aria-current] { color: var(--text); }

/* --------------------------------------------------------------------------
   Inventario
   -------------------------------------------------------------------------- */

.inventory {
  display: grid;
  gap: var(--sp-7);
  align-items: start;
}
@media (min-width: 1024px) {
  .inventory { grid-template-columns: 292px minmax(0, 1fr); }
}

.filters {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  padding: var(--sp-6);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
@media (min-width: 1024px) {
  .filters { position: sticky; top: calc(var(--header-h) + var(--sp-5)); max-height: calc(100vh - var(--header-h) - 3rem); overflow-y: auto; }
}

.filters__group { display: flex; flex-direction: column; gap: var(--sp-3); }
.filters__title {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text);
}
.filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border);
}
.filters__reset {
  font-size: var(--fs-sm);
  color: var(--text-subtle);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.filters__reset:hover { color: var(--danger); }

.filters__options { display: flex; flex-direction: column; gap: var(--sp-2); max-height: 220px; overflow-y: auto; padding-right: 2px; }

.filter-check {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.45rem 0.55rem;
  border-radius: var(--r-xs);
  font-size: var(--fs-base);
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.filter-check:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.filter-check input {
  appearance: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xs);
  background: var(--ink-850);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.filter-check input:checked { background: var(--blue-500); border-color: var(--blue-500); }
.filter-check input:checked::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}
.filter-check__count { margin-left: auto; font-size: var(--fs-xs); color: var(--text-subtle); }

/* Slider de precio (noUiSlider) */
.price-range { padding: var(--sp-2) 0.6rem var(--sp-1); }
.noUi-target {
  background: var(--ink-600);
  border: none;
  box-shadow: none;
  height: 6px;
  border-radius: var(--r-pill);
}
.noUi-connect { background: var(--grad-brand); }
.noUi-horizontal .noUi-handle {
  width: 20px;
  height: 20px;
  right: -10px;
  top: -7px;
  border-radius: 50%;
  background: var(--orange-500);
  border: 3px solid var(--ink-900);
  box-shadow: 0 0 0 1px var(--orange-500), var(--sh-sm);
  cursor: grab;
}
.noUi-handle::before,
.noUi-handle::after { display: none; }
.noUi-handle:active { cursor: grabbing; }
.noUi-touch-area { cursor: inherit; }

.price-range__values {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--orange-400);
}

.inventory__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-5);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.inventory__count { font-size: var(--fs-base); color: var(--text-muted); }
.inventory__count strong { color: var(--text-strong); font-family: var(--font-display); }
.inventory__tools { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.inventory__tools .select { width: auto; min-width: 190px; padding-block: 0.55rem; }

.view-toggle {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--ink-850);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.view-toggle button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 32px;
  border-radius: var(--r-xs);
  color: var(--text-subtle);
  font-size: 1.15rem;
  transition: all var(--dur) var(--ease);
}
.view-toggle button:hover { color: var(--text); }
.view-toggle button[aria-pressed="true"] { background: var(--blue-500); color: #fff; }
@media (max-width: 639px) { .view-toggle { display: none; } }

.active-filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-5); }

.filters-open {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
@media (min-width: 1024px) { .filters-open { display: none; } }

.inventory__results { display: grid; gap: var(--sp-6); }
.inventory__results[data-view="grid"] { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.inventory__results[data-view="list"] { grid-template-columns: 1fr; }

/* Panel de filtros como drawer en móvil */
@media (max-width: 1023px) {
  .inventory__sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: var(--z-drawer);
    width: min(340px, 90vw);
    padding: var(--sp-5);
    background: var(--ink-850);
    border-right: 1px solid var(--border);
    box-shadow: var(--sh-xl);
    transform: translateX(-100%);
    transition: transform var(--dur-slow) var(--ease-out);
    overflow-y: auto;
  }
  .inventory__sidebar.is-open { transform: translateX(0); }
  .filters { border: none; background: none; padding: 0; }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-drawer) - 1);
    background: rgba(4, 5, 8, 0.7);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), visibility var(--dur);
  }
  .sidebar-backdrop.is-visible { opacity: 1; visibility: visible; }
}
@media (min-width: 1024px) {
  .sidebar-backdrop { display: none; }
  .filters__close { display: none; }
}

/* --------------------------------------------------------------------------
   Detalle del vehículo
   -------------------------------------------------------------------------- */

.detail {
  display: grid;
  gap: var(--sp-8);
  align-items: start;
}
@media (min-width: 1024px) {
  .detail { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
}

.gallery { display: flex; flex-direction: column; gap: var(--sp-3); }
.gallery__main {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--ink-850);
}
.gallery__main .swiper-slide {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--ink-800), var(--ink-700));
}
.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.gallery__zoom {
  position: absolute;
  right: var(--sp-4);
  bottom: var(--sp-4);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.5rem 0.9rem;
  border-radius: var(--r-pill);
  background: rgba(6, 7, 10, 0.75);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
  font-size: var(--fs-sm);
  color: var(--text);
}
.gallery__thumbs { overflow: hidden; }
.gallery__thumbs .swiper-slide {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.gallery__thumbs .swiper-slide:hover { opacity: 0.85; }
.gallery__thumbs .swiper-slide-thumb-active {
  opacity: 1;
  border-color: var(--orange-500);
}
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail__header { margin-bottom: var(--sp-6); }
.detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-7);
  margin-bottom: var(--sp-4);
}
.detail__title { font-size: var(--fs-3xl); margin-bottom: var(--sp-3); text-wrap: balance; }
.detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-6);
  color: var(--text-muted);
  font-size: var(--fs-base);
}
.detail__meta span { display: inline-flex; align-items: center; gap: var(--sp-2); }
.detail__meta i { color: var(--blue-400); font-size: 1.1rem; }

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr));
  gap: var(--sp-3);
}
.spec {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease);
}
.spec:hover { border-color: var(--border-strong); }
.spec i { font-size: 1.5rem; color: var(--blue-400); flex-shrink: 0; }
.spec span { display: block; font-size: var(--fs-xs); color: var(--text-subtle); text-transform: uppercase; letter-spacing: var(--tracking-wide); }
.spec strong { display: block; font-family: var(--font-display); font-size: var(--fs-base); color: var(--text-strong); }

.equip-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: var(--sp-3) var(--sp-6);
}
.equip-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-base);
  color: var(--text-muted);
}
.equip-list i { color: var(--orange-400); font-size: 1.15rem; flex-shrink: 0; }

.detail__block { margin-top: var(--sp-8); }
.detail__block h2 {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.detail__block h2 i { color: var(--orange-400); }

.buy-box {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
  background: var(--bg-surface);
  background-image: var(--grad-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
}
@media (min-width: 1024px) {
  .buy-box { position: sticky; top: calc(var(--header-h) + var(--sp-5)); }
}
.buy-box__price {
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border);
}
.buy-box__price span {
  display: block;
  font-size: var(--fs-sm);
  color: var(--text-subtle);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
/* Escala contenida: el precio debe caber en la columna sin desbordarla */
.buy-box__price strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.2vw + 0.9rem, 2.15rem);
  font-weight: 800;
  color: var(--orange-400);
  line-height: 1.15;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
}
.buy-box__price small { color: var(--text-muted); font-size: var(--fs-sm); }

.buy-box__actions { display: flex; flex-direction: column; gap: var(--sp-3); }

.mini-calc {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--ink-850);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.mini-calc__head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text);
}
.mini-calc__head i { color: var(--orange-400); font-size: 1.2rem; }
.mini-calc__out {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}
.mini-calc__out span { font-size: var(--fs-sm); color: var(--text-muted); }
.mini-calc__out strong {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--text-strong);
}

.dealer-mini {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
}
.dealer-mini__plate {
  display: grid;
  place-items: center;
  padding: 0.35rem 0.55rem;
  background: linear-gradient(180deg, #ffffff, #eef2f7);
  border-radius: var(--r-xs);
  flex-shrink: 0;
}
/* Placa del dealer en la ficha: 26/34 del alto configurado */
.dealer-mini__plate img { height: calc(var(--logo-h, 34px) * 0.76); width: auto; }
.dealer-mini strong { display: block; font-family: var(--font-display); font-size: var(--fs-base); color: var(--text-strong); }
.dealer-mini span { font-size: var(--fs-sm); color: var(--text-subtle); }

/* --------------------------------------------------------------------------
   Pasos / proceso
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: var(--sp-6);
  counter-reset: step;
}
.step {
  position: relative;
  padding: var(--sp-7) var(--sp-6) var(--sp-6);
  background: var(--bg-surface);
  background-image: var(--grad-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease);
}
.step:hover { transform: translateY(-4px); border-color: var(--border-accent); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-5);
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink-500);
}
.step__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--sp-4);
  border-radius: var(--r-md);
  font-size: 1.5rem;
  color: #17110a;
  background: var(--grad-orange);
}
.step h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.step p { color: var(--text-muted); font-size: var(--fs-base); }

/* --------------------------------------------------------------------------
   Galería de instalaciones
   -------------------------------------------------------------------------- */

.mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--sp-4);
}
.mosaic figure {
  position: relative;
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
}
.mosaic figure:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
@media (max-width: 639px) { .mosaic figure:first-child { grid-column: span 1; aspect-ratio: 4 / 3; } }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 600;
  color: #fff;
  background: linear-gradient(0deg, rgba(6, 7, 10, 0.9), transparent);
}

/* --------------------------------------------------------------------------
   Tabla comparativa / resumen
   -------------------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-surface);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-base);
  min-width: 480px;
}
.data-table th,
.data-table td {
  padding: var(--sp-4) var(--sp-5);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-subtle);
  background: var(--ink-850);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.data-table td:last-child { text-align: right; font-family: var(--font-display); font-weight: 600; color: var(--text-strong); }
.data-table tr.is-highlight td { color: var(--orange-400); }

/* --------------------------------------------------------------------------
   Bancos aliados
   -------------------------------------------------------------------------- */

.partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: var(--sp-4);
}
.partner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-5);
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--dur) var(--ease);
}
.partner:hover { border-color: var(--border-primary); background: var(--bg-elevated); }
.partner i { font-size: 1.75rem; color: var(--blue-400); }
.partner strong { font-family: var(--font-display); font-size: var(--fs-base); color: var(--text-strong); }
.partner span { font-size: var(--fs-xs); color: var(--text-subtle); }

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

.contact-grid {
  display: grid;
  gap: var(--sp-7);
  align-items: start;
}
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--bg-surface);
  background-image: var(--grad-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--dur) var(--ease-out);
}
.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  box-shadow: var(--sh-md);
}
.contact-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  font-size: 1.4rem;
}
.contact-card--whatsapp .contact-card__icon { color: var(--whatsapp); background: rgba(37, 211, 102, 0.12); }
.contact-card--mail .contact-card__icon { color: var(--blue-300); background: rgba(11, 138, 224, 0.12); }
.contact-card--ig .contact-card__icon { color: #e1568f; background: rgba(225, 86, 143, 0.12); }
.contact-card strong { display: block; font-family: var(--font-display); color: var(--text-strong); }
.contact-card span { font-size: var(--fs-sm); color: var(--text-muted); word-break: break-word; }

.form-panel {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--bg-surface);
  background-image: var(--grad-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

/* --------------------------------------------------------------------------
   Bloques que llegan desde la base de datos
   --------------------------------------------------------------------------
   La maquetación estática no los tenía: páginas legales, paginación del
   inventario y testimonios sin foto. Usan los tokens del propio proyecto.
   -------------------------------------------------------------------------- */

.prose p { color: var(--text-muted); line-height: 1.8; }
.prose p + p { margin-top: var(--sp-5); }
.prose h2, .prose h3 { margin-top: var(--sp-7); margin-bottom: var(--sp-3); }
.prose ul { margin: var(--sp-4) 0 0 var(--sp-5); color: var(--text-muted); }

.testimonial__author .testimonial__initials {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--bg-elevated);
  font-family: var(--font-display);
  font-size: var(--fs-base);
  color: var(--orange-400);
}

.price-range__inputs { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }
.price-range__inputs .input { min-width: 0; }

.pagination { flex-wrap: wrap; }

/* Equivalencia en la moneda base cuando la unidad se publica en otra moneda */
.price__hint {
  margin-top: 2px;
  font-size: var(--fs-xs);
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
}
