:root {
  --ks-primary: #24b9d7;
  --ks-primary-dark: #1a9cb5;
  --ks-bg-glass: rgba(255, 255, 255, 0.95);
  --ks-border-glass: rgba(255, 255, 255, 0.8);
  --ks-shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
  --ks-shadow-md: 0 12px 30px rgba(36, 185, 215, 0.15), 0 4px 6px rgba(0, 0, 0, 0.05);
  --ks-radius: 20px;
  --ks-card-min-h: 180px;
}

.ks-buscador-container {
  margin-bottom: 40px;
  font-family: inherit; /* KS-PERF 17-oct-2026: era 'Inter' y descargaba 3 fuentes (70 KB) que el tema no usa */
}

/* --- Search & Filters --- */
.ks-search {
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.ks-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0.5rem 0 0.75rem;
  padding: 0.45rem 1rem;
  background: #f1f5f9;
  color: #475569;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.ks-back-btn:hover {
  background: #e2e8f0;
  color: #1a2e4a;
  text-decoration: none;
}
@media (max-width: 768px) {
  .ks-back-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 10px;
    width: 100%;
    justify-content: center;
  }
}

.ks-resume-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.5rem auto;
  padding: 0.5rem 1.2rem;
  background: linear-gradient(135deg, #1a2e4a, #1d5087);
  color: #fff;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: transform 0.15s, box-shadow 0.15s;
}
.ks-resume-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  color: #fff;
  text-decoration: none;
}

.ks-search-input {
  width: min(600px, 100%);
  padding: 1rem 2rem;
  /* Larger padding */
  border: 1px solid rgba(0, 0, 0, 0.05);
  /* Softer border */
  border-radius: 999px;
  font-size: 1.1rem;
  outline: none;
  background: white;
  box-shadow: var(--ks-shadow-sm);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ks-search-input:focus {
  border-color: var(--ks-primary);
  box-shadow: 0 0 0 4px rgba(36, 185, 215, 0.1), var(--ks-shadow-md);
  transform: translateY(-2px);
}

.ks-results-count {
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
  margin: -1rem 0 0.5rem;
}

.ks-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.ks-tag {
  border: 1px solid transparent;
  /* Cleaner loop */
  background: #f3f4f6;
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
  color: #4b5563;
}

.ks-tag:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

/* Selected Tag State - Softer */
.ks-tag[aria-pressed="true"] {
  background: var(--ks-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(36, 185, 215, 0.4);
  /* Softer glow */
  border-color: transparent;
  /* No border */
}

/* === Word Bubbles (Frequent Words) === */
/* === Búsquedas frecuentes (inline, compactas) === */
.ks-freq {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin: 0.6rem 0 1rem 0;
  line-height: 1.4;
}

.ks-freq-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
  text-align: center;
}

.ks-freq-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.3rem;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}
.ks-freq-tags::-webkit-scrollbar { display: none; }

.ks-freq-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  background: rgba(36, 185, 215, 0.06);
  border: 1px solid rgba(36, 185, 215, 0.25);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  color: #2a8fa5;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.ks-freq-tag:hover,
.ks-freq-tag[aria-pressed="true"] {
  background: var(--ks-primary, #24b9d7);
  color: white;
  border-color: var(--ks-primary, #24b9d7);
}

.ks-freq-tag--extra {
  display: none;
}
.ks-freq-tags.ks-expanded .ks-freq-tag--extra {
  display: inline-flex;
}

.ks-freq-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  padding: 0;
  background: none;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.7rem;
  color: #dc2626;
  transition: background 0.15s, color 0.15s;
}
.ks-freq-clear:hover {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

.ks-freq-more {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0.5rem;
  border: 1px dashed rgba(36, 185, 215, 0.4);
  border-radius: 999px;
  background: none;
  color: var(--ks-primary, #24b9d7);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.ks-freq-more:hover {
  background: var(--ks-primary, #24b9d7);
  color: white;
  border-color: var(--ks-primary, #24b9d7);
}
.ks-freq-more-count { opacity: 0.7; font-weight: 400; }

/* === End Búsquedas frecuentes === */

/* ... existing code ... */

.ks-caret-row {
  margin-top: auto;
  padding-top: 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  /* Space between badge and caret */
  opacity: 0.6;
  /* Increased visibility */
  transition: opacity 0.2s;
}

/* ... existing code ... */

/* Badge for Children Count */
.ks-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #6b7280;
  border-radius: 99px;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.2s;
}

.ks-parent-toggle:hover .ks-badge {
  background: var(--ks-primary);
  color: white;
}

.ks-tag-clear {
  margin-left: 0.5rem;
  background: #fff1f2;
  color: #e11d48;
}

.ks-tag-clear:hover {
  background: #ffe4e6;
  color: #be123c;
}

/* --- Barra de herramientas: filtros + selector de vista --- */
.ks-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 0.75rem;
}

/* --- Helper Filters (Accordion Style) --- */
.ks-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  flex: 1;
  margin: 0;
}

.ks-filter {
  border: 0;
  border-radius: 16px;
  background: white;
  box-shadow: var(--ks-shadow-sm);
  min-width: 200px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.ks-filter:hover {
  box-shadow: var(--ks-shadow-md);
}

/* Facet filter panel (product filters) */
.ks-filters__container {
  width: 100%;
}

.ks-filters__toprow {
  text-align: center;
  margin-bottom: 0.75rem;
}

.ks-filters__bottomrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.ks-filter--product {
  min-width: 160px;
  max-width: 260px;
}

.ks-filter__header {
  padding: 0.5rem 0.75rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  border-bottom: 1px solid #eee;
  color: #374151;
}

.ks-filter__help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d1d5db;
  color: #374151;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: help;
  vertical-align: middle;
}

.ks-filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.5rem;
}

.ks-filter-product-btn[aria-pressed="true"] {
  background: var(--ks-primary);
  color: #fff;
  border-color: var(--ks-primary);
}

.ks-filter__clear {
  font-size: 0.8rem;
  opacity: 0.7;
}

.ks-filter__clear:hover {
  opacity: 1;
}

.ks-filter-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.8rem 1.25rem;
  font-weight: 700;
  color: #374151;
  transition: background 0.2s;
}

.ks-filter-toggle:hover {
  background: #f9fafb;
  color: var(--ks-primary);
}

.ks-filter-toggle[aria-expanded="true"] {
  background: #f0f9fb;
  color: var(--ks-primary);
}

.ks-filter-toggle[aria-expanded="true"] .ks-caret {
  transform: rotate(180deg);
}

.ks-filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 1rem;
  background: #fafafa;
  border-top: 1px solid #f3f4f6;
}

/* --- Grid & Items --- */
.ks-buscador-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
/* Tarjetas: 2 móvil → 4 desktop */
.ks-buscador-list {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .ks-buscador-list { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

/* Móvil: toolbar en columna */
@media (max-width: 575px) {
  .ks-toolbar { flex-direction: column; align-items: center; gap: 0.5rem; }
  .ks-filters { justify-content: center; flex: unset; width: 100%; }
  .ks-theme-switcher { justify-content: center; }
}

/* Móvil: tarjetas más compactas */
@media (max-width: 767px) {
  .ks-buscador-list { gap: 0.75rem; }
  .ks-buscador-link {
    padding: 1rem 0.75rem;
    min-height: 100px;
  }
  .ks-parent-toggle {
    padding: 1rem 0.75rem 0.6rem;
    min-height: 100px;
  }
  .ks-intro-paragraph-old { padding: 1.25rem; margin: 1rem 0; }
  .ks-vehicle-specs { justify-content: center; }
  .ks-hermanos { padding: 1rem; }
  .ks-hermanos__list--marcas { grid-template-columns: repeat(4, 1fr); }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.ks-buscador-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  contain: layout style;
  animation: fadeIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Card Base Styles */
.ks-buscador-link,
.ks-parent {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  /* Align top */
  border: 0;
  /* Remove border */
  border-radius: var(--ks-radius);
  background: white;
  box-shadow: var(--ks-shadow-sm);
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
  text-decoration: none !important;
  color: #1f2937;
  overflow: hidden;
}

/* Link-specific */
.ks-buscador-link {
  min-height: var(--ks-card-min-h);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  flex: 1;
  width: 100%;
  gap: 0.5rem;
}

.ks-buscador-link:hover,
.ks-parent:hover {
  transform: translateY(-8px);
  box-shadow: var(--ks-shadow-md);
}

/* Parent Node */
.ks-parent-toggle {
  width: 100%;
  text-align: center;
  background: transparent;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  gap: 0.5rem;
  /* Gap between elements */
  cursor: pointer;
  padding: 2rem 1.5rem 1rem;
  /* Less padding bottom for caret */
  min-height: var(--ks-card-min-h);
  flex: 1;
}

/* Images */
.ks-thumb {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 0.5rem;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Typography */
.ks-label-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333;
  margin-bottom: 0.25rem;
}

.ks-line {
  /* H3 reset */
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.ks-year-row {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.ks-buscador-year {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(36, 185, 215, 0.1);
  color: #13788c; /* KS 18-oct-2026: 4,7:1 sobre su fondo (antes #1a9cb5, 3:1) */
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0;
  backdrop-filter: blur(4px);
}

.ks-caret-row {
  margin-top: auto;
  /* Push to bottom */
  padding-top: 1rem;
  width: 100%;
  display: flex;
  justify-content: center;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.ks-parent:hover .ks-caret-row {
  opacity: 1;
}

.ks-caret {
  transition: transform 0.3s ease;
  fill: var(--ks-primary);
}

/* Child Items (Inside Accordion) */
.ks-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  width: 100%;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.03);
  display: grid;
  grid-template-columns: 1fr;
  /* Stack vertically by default in sublist */
}

.ks-buscador-link.ks-child {
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  min-height: auto;
  padding: 1rem 1.5rem;
  padding-right: 1.5rem;
  /* Reset padding */
  flex-direction: column;
  /* Allow wrapping or column flow for mobile */
  justify-content: start;
  align-items: flex-start;
  /* Align left */
  text-align: left;
  gap: 0.5rem;
}

.ks-buscador-link.ks-child:last-child {
  border-bottom: 0;
}

.ks-buscador-link.ks-child:hover {
  background: white;
  transform: none;
}

.ks-buscador-link.ks-child .ks-label-lines {
  align-items: flex-start;
  font-size: 1rem;
}


/* Skeleton Loading */
.ks-skeleton {
  background: #f0f0f0;
  border-radius: var(--ks-radius);
  min-height: var(--ks-card-min-h);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.6;
  }
}

/* Badge for Children Count */
.ks-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ks-primary);
  color: white;
  border-radius: 99px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.5rem;
}

/* Show More Button */
.ks-show-more-wrap {
  grid-column: 1/-1;
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.ks-show-more-btn {
  background: white;
  border: 1px solid #e5e5e5;
  color: #13788c; /* KS 18-oct-2026: 5,1:1 (antes #24b9d7, 2,3:1); el hover sigue igual */
  font-weight: 600;
  border-radius: 999px;
  padding: 0.6rem 2rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--ks-shadow-sm);
}

.ks-show-more-btn:hover {
  background: var(--ks-primary);
  color: white;
  border-color: var(--ks-primary);
  box-shadow: var(--ks-shadow-md);
}

/* Caret rotation */
.ks-caret {
  transition: transform 0.3s ease;
  fill: #aaa;
}

.ks-parent-toggle:hover .ks-caret {
  fill: var(--ks-primary);
}

.ks-parent-toggle[aria-expanded="true"] .ks-caret {
  transform: rotate(180deg);
  fill: var(--ks-primary);
}

[hidden] {
  display: none !important;
}

/* --- Database Content (Checklist) --- */
.ks-check.card {
  background: white;
  border-radius: var(--ks-radius);
  box-shadow: var(--ks-shadow-sm);
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--ks-primary);
  transition: box-shadow 0.3s ease;
}

.ks-check.card:hover {
  box-shadow: var(--ks-shadow-md);
}

.ks-check__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ks-check__title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  font-weight: 600;
  min-width: 120px;
}

.ks-check__highlight {
  flex: 1;
  font-size: 1.1rem;
  color: #333;
}

.ks-check__highlight strong {
  color: var(--ks-primary-dark);
}

.ks-toggle-extra {
  background: #f9f9f9;
  border: 0;
  padding: 0.5rem 1rem;
  border-radius: 99px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ks-primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.ks-toggle-extra:hover {
  background: var(--ks-primary);
  color: white;
}

.ks-toggle-extra[aria-expanded="true"] {
  background: var(--ks-primary);
  color: white;
}

.ks-toggle-extra[aria-expanded="true"] .ks-toggle-extra__icon {
  transform: rotate(45deg);
}

.ks-toggle-extra__icon {
  font-size: 1.2em;
  line-height: 1;
  transition: transform 0.3s;
}

.ks-check__body {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
  color: #555;
  line-height: 1.6;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

.ks-check.is-open .ks-check__body {
  max-height: 1200px;
}

/* Helpers */
.ks-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,.78);
  margin-bottom: 1.5rem;
}

.ks-muted {
  color: rgba(255,255,255,.78);
  font-size: 0.95rem;
}

/* Warning/Info Box */
.ks-note {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  color: #92400e;
  padding: 1rem 1.5rem;
  border-radius: var(--ks-radius);
  margin: 1.5rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
}

.ks-note strong {
  color: #b45309;
  font-weight: 700;
}

/* --- Mensaje "Sin resultados" --- */
.ks-no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
  background: #f9fafb;
  border: 2px dashed #e5e7eb;
  border-radius: 12px;
  margin: 2rem 0;
  color: #6b7280;
}

.ks-no-results p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.ks-no-results p:first-child {
  font-weight: 500;
  color: #374151;
  font-size: 1.1rem;
}
.ks-no-results__hint {
  font-size: .9rem;
  color: #666;
}

/* ===========================================================
   Bloque "sin resultados" enriquecido (L5)
   ks-empty: variante con icono + título + variantes JIS / genérica
   ─ usado desde _partials/no_results.tpl
   =========================================================== */
.ks-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
  margin: 2rem 0;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.ks-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #eef2ff;
  color: #4f46e5;
  margin-bottom: 1.2rem;
}
.ks-empty__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 .75rem;
  line-height: 1.25;
}
.ks-empty__lead {
  font-size: 1rem;
  color: #4b5563;
  margin: 0 0 .75rem;
  line-height: 1.55;
}
.ks-empty__lead strong { color: #111827; }

/* Bloque JIS — instrucciones paso a paso */
.ks-empty__jis {
  width: 100%;
  margin: 1rem 0 1.4rem;
  padding: 1.1rem 1.2rem 1rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  text-align: left;
}
.ks-empty__jis-head {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .65rem;
}
.ks-empty__jis-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ea580c;
  color: #fff;
  line-height: 1;
}
.ks-empty__jis-label {
  font-weight: 600;
  color: #7c2d12;
  font-size: 1rem;
}
.ks-empty__jis-steps {
  margin: 0 0 .6rem;
  padding-left: 1.2rem;
  color: #4b5563;
  font-size: .95rem;
  line-height: 1.55;
}
.ks-empty__jis-steps li { margin-bottom: .35rem; }
.ks-empty__jis-steps li:last-child { margin-bottom: 0; }
.ks-empty__jis-example {
  display: inline-block;
  padding: 2px 8px;
  margin: 0 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9rem;
  font-weight: 600;
  color: #7c2d12;
  background: #fff;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  line-height: 1.4;
}
.ks-empty__jis-hint {
  font-size: .88rem;
  color: #4b5563;
  margin: .25rem 0 .55rem;
  padding: .55rem .7rem;
  background: #fff;
  border-left: 3px solid #ea580c;
  border-radius: 4px;
  line-height: 1.5;
}
.ks-empty__jis-hint strong { color: #7c2d12; margin-right: .15rem; }
.ks-empty__jis-note {
  font-size: .85rem;
  color: #6b7280;
  margin: 0;
  padding-top: .55rem;
  border-top: 1px dashed #fed7aa;
}

/* Acciones / CTAs */
.ks-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-top: .25rem;
}
.ks-empty__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.ks-empty__cta:hover { transform: translateY(-1px); text-decoration: none; }
.ks-empty__cta--primary {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 2px 6px rgba(37,99,235,.25);
}
.ks-empty__cta--primary:hover {
  background: #1d4ed8;
  color: #fff;
  box-shadow: 0 4px 10px rgba(37,99,235,.32);
}

@media (max-width: 640px) {
  .ks-empty { padding: 2rem 1rem 1.6rem; border-radius: 12px; }
  .ks-empty__icon { width: 60px; height: 60px; }
  .ks-empty__title { font-size: 1.18rem; }
  .ks-empty__jis { padding: 1rem; }
  .ks-empty__cta { width: 100%; justify-content: center; }
}

/* ============================================
   VARIACIONES DE BÚSQUEDA (Párrafos bonitos)
   ============================================ */

.ks-specs-heading {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #9ca3af;
  margin: 1rem 0 0.3rem;
  text-align: center;
  width: 100%;
}
.ks-vehicle-specs {
  list-style: none;
  padding: 0;
  margin: 0 auto 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
  font-size: 0.88rem;
  color: #555;
}
.ks-vehicle-specs li {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}
.ks-spec-label {
  font-weight: 700;
  color: #333;
  white-space: nowrap;
}
.ks-spec-value {
  color: var(--ks-primary, #24b9d7);
  text-decoration: none;
  display: inline-block; min-height: 24px; line-height: 24px; /* KS-A11Y 2026-11-02: área táctil (Lighthouse target-size) */
}
.ks-spec-value:hover {
  text-decoration: underline;
}

/* ============================================
   ENLAZADO INTERNO: HERMANOS
   ============================================ */
.ks-hermanos {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: #f8fafb;
  border: 1px solid #e5e9ec;
  border-radius: 12px;
  font-size: 0.82rem;
  color: #666;
}
.ks-hermanos__title {
  display: block;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin-bottom: 0.85rem;
}

/* ---- Hermanos texto (modelo, motor, año): chips ---- */
.ks-hermanos__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.ks-hermanos__list li { display: flex; }
.ks-hermanos__list li::after { content: ''; }
.ks-hermanos__link {
  color: inherit;
  text-decoration: none;
}
.ks-hermanos__chip {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  border: 1.5px solid #e0e4e8;
  background: white;
  color: #444;
  font-size: 0.8rem;
  font-weight: 500;
  transition: border-color 0.15s, color 0.15s, background 0.15s, transform 0.15s;
  white-space: nowrap;
}
.ks-hermanos__link:hover .ks-hermanos__chip {
  border-color: var(--ks-primary, #24b9d7);
  color: var(--ks-primary, #24b9d7);
  background: #f0fafe;
  transform: translateY(-1px);
}

/* ---- Hermanos nivel 2: tarjetas de marca (solo icono) ---- */
.ks-hermanos--marcas {
  padding: 1rem;
}
/* 2 filas fijas: height tarjeta × 2 + gap × 1 */
.ks-hermanos__list--marcas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;              /* 8px */
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: calc(52px * 2 + 8px);   /* mobile: 112px */
  overflow: hidden;
  align-content: flex-start;
  justify-content: space-evenly;
}
.ks-hermanos__list--marcas li { display: flex; }
.ks-hermanos__list--marcas li::after { content: ''; }
.ks-hermanos__list--marcas .ks-hermanos__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1.5px solid #e8edf0;
  background: white;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
@media (min-width: 768px) {
  .ks-hermanos__list--marcas {
    max-height: calc(60px * 2 + 8px); /* desktop: 128px */
  }
  .ks-hermanos__list--marcas .ks-hermanos__link { width: 60px; height: 60px; }
}
.ks-hermanos__list--marcas .ks-hermanos__link:hover {
  border-color: var(--ks-primary, #24b9d7);
  box-shadow: 0 4px 14px rgba(36, 185, 215, 0.18);
  transform: translateY(-2px);
}
.ks-hermanos__img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: grayscale(0.3) opacity(0.8);
  transition: filter 0.2s;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .ks-hermanos__img { width: 44px; height: 44px; }
}
.ks-hermanos__list--marcas .ks-hermanos__link:hover .ks-hermanos__img {
  filter: grayscale(0) opacity(1);
}
/* Fallback sin imagen: cuadrado con iniciales (match img 48×48) */
.ks-hermanos__img--text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--ks-primary, #24b9d7), var(--ks-primary-dark, #1a8fa3));
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 7px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

/* ============================================
   SELECTOR DE TEMA VISUAL
   ============================================ */
.ks-theme-switcher {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}
.ks-theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.ks-theme-btn:hover {
  border-color: var(--ks-primary);
  color: #13788c; /* KS 18-oct-2026: legible sobre #f0fafe */
  background: #f0fafe;
}
.ks-theme-btn[aria-pressed="true"] {
  border-color: #13788c;
  background: #13788c; /* KS 18-oct-2026: texto blanco 5,1:1 (antes #24b9d7, 2,3:1) */
  color: white;
}
.ks-theme-btn-label {
  display: none; /* solo icono en móvil */
}
@media (min-width: 600px) {
  .ks-theme-btn-label { display: inline; }
}

/* ============================================
   TEMA: ICONOS
   ============================================ */
/* Iconos: 3 móvil → 6 desktop */
.ks-theme-icons .ks-buscador-list {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .ks-theme-icons .ks-buscador-list { grid-template-columns: repeat(6, 1fr); gap: 1rem; }
}
.ks-theme-icons .ks-buscador-link,
.ks-theme-icons .ks-parent-toggle {
  min-height: 90px;
  padding: 0.75rem 0.5rem;
  border-radius: 10px;
  font-size: 0.8rem;
}
@media (min-width: 768px) {
  .ks-theme-icons .ks-buscador-link,
  .ks-theme-icons .ks-parent-toggle {
    min-height: 110px;
    padding: 1rem 0.75rem;
    font-size: inherit;
  }
}
.ks-theme-icons .ks-buscador-link:hover,
.ks-theme-icons .ks-parent-toggle:hover {
  transform: translateY(-5px);
}
.ks-theme-icons .ks-line { font-size: 0.88rem; }
.ks-theme-icons .ks-thumb { width: 56px; height: 56px; }

/* ============================================
   TEMA: LISTA — 1 columna móvil → 2 columnas desktop
   ============================================ */
.ks-theme-list .ks-buscador-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
}
@media (min-width: 768px) {
  .ks-theme-list .ks-buscador-list { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
}
.ks-theme-list .ks-buscador-link,
.ks-theme-list .ks-parent-toggle {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  text-align: left;
  gap: 0.75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  width: 100%;
}
.ks-theme-list .ks-buscador-link:hover,
.ks-theme-list .ks-parent-toggle:hover {
  transform: none;
  background: #f0fafe;
  box-shadow: 0 1px 6px rgba(36,185,215,0.15);
}
.ks-theme-list .ks-thumb { width: 32px; height: 32px; border-radius: 4px; flex-shrink: 0; }
.ks-theme-list .ks-item-icon {
  display: block;
  font-size: 1.15rem;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.ks-theme-list .ks-label-lines { flex: 1; min-width: 0; }
.ks-theme-list .ks-line { font-size: 0.9rem; text-align: left; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ks-theme-list .ks-year-row { margin: 0; margin-left: auto; flex-shrink: 0; }
.ks-theme-list .ks-caret-row { width: auto; padding: 0; margin: 0; margin-left: auto; flex-shrink: 0; }
.ks-theme-list .ks-buscador-item { height: auto; }
.ks-theme-list .ks-freq { margin: 0.4rem 0 0.8rem 0; }

.ks-intro-paragraph-old {
  background: linear-gradient(135deg, #f0f9fb 0%, #e0f7fa 100%);
  border: 1px solid rgba(36, 185, 215, 0.2);
  border-radius: var(--ks-radius);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 4px 15px rgba(36, 185, 215, 0.1);
}

/* ── Intro paragraph (versión actual usada por filtro/part-number/etc.) ──
   Tarjeta limpia con franja decorativa lateral y tipografía cómoda para
   lectura. Responsive: padding y tamaño de fuente escalan con clamp(),
   el ancho se limita para mantener legibilidad en pantallas grandes
   (≈70 caracteres por línea = sweet spot). */
.ks-intro-paragraph {
  position: relative;
  background: linear-gradient(135deg, #f8fcfd 0%, #eef9fc 100%);
  border: 1px solid rgba(36, 185, 215, 0.18);
  border-radius: 12px;
  padding: clamp(1rem, 2.4vw, 1.6rem) clamp(1rem, 2.8vw, 1.85rem);
  margin: 1.25rem 0 1.5rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}
/* Franja decorativa izquierda — desactivada para evitar duplicar el borde
   del `.ks-auto-intro` interior, que ya aporta su propio border-left. */
.ks-intro-paragraph-text {
  margin: 0;
  color: #334155;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.005em;
  /* Ocupar todo el ancho del contenedor — desactivamos cualquier
     max-width heredado de utilidades del tema (72ch / readable). */
  max-width: none;
  width: 100%;
  /* P1.6 UX 11-jul: alineación izquierda — el justificado creaba "ríos"
     de espacios en columnas estrechas y móvil. hyphens sigue desactivado
     para no silabar términos técnicos (AGM, LiFePO4…). */
  text-align: left;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}
.ks-intro-paragraph-text strong {
  color: #0f172a;
  font-weight: 700;
  background: linear-gradient(transparent 65%, rgba(36, 185, 215, 0.18) 65%);
  padding: 0 0.1em;
  border-radius: 2px;
}
.ks-intro-paragraph-text em {
  color: #0f7d92;
  font-style: normal;
  font-weight: 600;
}
.ks-intro-paragraph-text a {
  color: var(--ks-primary-dark, #0f7d92);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.ks-intro-paragraph-text a:hover {
  color: #074a58;
}
/* Listas inline de keywords/specs dentro del párrafo (· · ·). */
.ks-intro-paragraph-text ul,
.ks-intro-paragraph-text ol {
  margin: 0.6rem 0 0;
  padding-left: 1.15rem;
}
.ks-intro-paragraph-text li {
  margin: 0.15rem 0;
}

/* ── Responsive overrides ──────────────────────────────────────── */
@media (max-width: 720px) {
  .ks-intro-paragraph {
    margin: 1rem 0 1.15rem;
    border-radius: 10px;
  }
  .ks-intro-paragraph-text {
    line-height: 1.55;
  }
}
@media (max-width: 460px) {
  .ks-intro-paragraph {
    padding: 0.85rem 0.95rem 0.85rem 1.05rem;
  }
  .ks-intro-paragraph-text strong {
    /* En pantallas muy pequeñas el "highlight" puede romper líneas:
       desactivamos el fondo en favor de solo color/peso. */
    background: none;
    padding: 0;
  }
}
/* 5-oct-2026: ELIMINADO el bloque @media (prefers-color-scheme: dark). La web no tiene
   modo oscuro (fondo siempre blanco); con el sistema del visitante en oscuro, esta caja
   pintaba el texto #cbd5e1 y las negritas #f1f5f9 sobre fondo casi blanco: ilegible. */

/* Respeta usuarios con motion reducida (no hay animación, pero por
   consistencia con el resto del shop dejamos el bloque listo). */
@media (prefers-reduced-motion: reduce) {
  .ks-intro-paragraph-text a { transition: none; }
}

.ks-intro-paragraph-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ks-primary-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ks-intro-paragraph-title::before {
  content: '🔍';
  font-size: 1.1rem;
}

/* Contenedor de keywords/variaciones */
.ks-keywords-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-start;
}

/* Chips de palabras clave */
.ks-keyword-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1.5px solid var(--ks-primary);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ks-primary-dark);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.ks-keyword-chip::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(36, 185, 215, 0.1);
  transition: left 0.3s ease;
  z-index: 0;
}

.ks-keyword-chip:hover {
  background: var(--ks-primary);
  color: white;
  border-color: var(--ks-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(36, 185, 215, 0.3);
}

.ks-keyword-chip:hover::before {
  left: 0;
}

.ks-keyword-chip > * {
  position: relative;
  z-index: 1;
}

/* Separador visual */
.ks-keyword-separator {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--ks-primary);
  border-radius: 50%;
  opacity: 0.3;
  margin: 0 0.25rem;
}

/* Layout alternativo: Grid para muchas palabras */
@media (max-width: 768px) {
  .ks-keywords-container {
    justify-content: center;
  }
}

/* Párrafos dinámicos con mejor formato */
.ks-intro-paragraph-text-old {
  color: #555;
  line-height: 1.8;
  font-size: 0.95rem;
  margin: 0;
}

.ks-intro-paragraph-text-old strong {
  color: var(--ks-primary-dark);
  font-weight: 700;
}

.ks-intro-paragraph-text-old em {
  color: var(--ks-primary);
  font-style: italic;
}

/* Sección de "relacionadas" */
.ks-related-section {
  background: white;
  border-radius: var(--ks-radius);
  padding: 2rem;
  margin: 2rem 0;
  border-left: 4px solid var(--ks-primary);
  box-shadow: var(--ks-shadow-sm);
}

.ks-related-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ks-related-section-title::before {
  content: '🎯';
  font-size: 1.3rem;
}

.ks-related-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.ks-related-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.ks-related-item:last-child {
  border-bottom: none;
}

.ks-related-item:hover {
  color: var(--ks-primary);
  padding-left: 0.5rem;
}

.ks-related-item-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.ks-related-item-desc {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
}

/* Animación de entrada */
@keyframes chipSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ks-keyword-chip {
  animation: chipSlideIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.ks-keyword-chip:nth-child(1) { animation-delay: 0.05s; }
.ks-keyword-chip:nth-child(2) { animation-delay: 0.1s; }
.ks-keyword-chip:nth-child(3) { animation-delay: 0.15s; }
.ks-keyword-chip:nth-child(4) { animation-delay: 0.2s; }
.ks-keyword-chip:nth-child(5) { animation-delay: 0.25s; }
.ks-keyword-chip:nth-child(6) { animation-delay: 0.3s; }
.ks-keyword-chip:nth-child(n+7) { animation-delay: 0.35s; }

/* ============================================================
 * Avisos de polaridad y variantes auxiliares (1.4.54-1.4.55)
 *
 * Estilo unificado pretty: gradient sutil + sombra suave + icono
 * SVG en círculo con border currentColor. Variantes:
 *   .ks-polarity-warn--mixed     → rojo crítico (animación pulse sutil)
 *   .ks-polarity-warn--unknown   → gris conservador
 *   .ks-aux-multi-warn           → teal informativo (≥2 baterías aux)
 *   .ks-polarity-pdp             → compacto inline (PDP individual)
 * ============================================================ */

.ks-polarity-warn,
.ks-aux-multi-warn {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 1rem 0 1.4rem;
    padding: 1.1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid;
    line-height: 1.55;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
}

/* Sutil acento lateral usando ::before (en vez de border-left grueso
   cortado) — permite mantener el border-radius redondo. */
.ks-polarity-warn::before,
.ks-aux-multi-warn::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
    opacity: 0.85;
}

.ks-polarity-warn--mixed {
    background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%);
    border-color: #fecaca;
    color: #b91c1c;
}
.ks-polarity-warn--mixed::before { background: #dc2626; }

.ks-polarity-warn--unknown {
    background: linear-gradient(135deg, #fafbfc 0%, #f5f7fa 100%);
    border-color: #e2e8f0;
    color: #475569;
}
.ks-polarity-warn--unknown::before { background: #64748b; }

.ks-aux-multi-warn {
    background: linear-gradient(135deg, #ecfeff 0%, #f0fdfa 100%);
    border-color: #99f6e4;
    color: #115e59;
}
.ks-aux-multi-warn::before { background: #0d9488; }

/* Icono en círculo con fondo blanco translúcido + borde currentColor. */
.ks-polarity-warn__icon-wrap,
.ks-aux-multi-warn__icon-wrap {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: 1.5px solid currentColor;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.4);
}
.ks-polarity-warn__icon,
.ks-aux-multi-warn__icon { color: currentColor; }

/* Animación pulse SOLO en mixed (atención, sin agresividad). */
@keyframes ks-pulse-soft {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.20); }
    50%      { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}
.ks-polarity-warn--mixed .ks-polarity-warn__icon-wrap {
    animation: ks-pulse-soft 2.4s ease-in-out infinite;
}

/* Texto: título + descripción. */
.ks-polarity-warn__body,
.ks-aux-multi-warn__body { flex: 1; min-width: 0; }
.ks-polarity-warn__title {
    margin: 0 0 0.35rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: inherit;
    line-height: 1.35;
}
.ks-polarity-warn--mixed   .ks-polarity-warn__title { color: #991b1b; }
.ks-polarity-warn--unknown .ks-polarity-warn__title { color: #334155; }

.ks-polarity-warn__desc,
.ks-aux-multi-warn__text {
    margin: 0;
    font-size: 0.94rem;
    color: inherit;
    line-height: 1.55;
}
.ks-polarity-warn__desc strong,
.ks-aux-multi-warn__text strong {
    color: currentColor;
    font-weight: 700;
}
.ks-polarity-warn__note {
    margin: 0.4rem 0 0;
    font-size: 0.85rem;
    color: inherit;
    opacity: 0.78;
}

/* Responsive móvil: stack vertical, icono más pequeño. */
@media (max-width: 520px) {
    .ks-polarity-warn,
    .ks-aux-multi-warn {
        flex-direction: column;
        gap: 0.7rem;
        padding: 0.95rem 1.05rem;
    }
    .ks-polarity-warn__icon-wrap,
    .ks-aux-multi-warn__icon-wrap {
        width: 36px;
        height: 36px;
    }
}

/* Variante compacta para PDP individual — Hook displayProductAdditionalInfo.
   Más sobrio: solo borde sutil, sin animación, gradient muy ligero. */
.ks-polarity-pdp {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0.75rem 0;
    padding: 0.65rem 0.95rem 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid;
    line-height: 1.5;
    font-size: 0.92rem;
    max-width: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}
.ks-polarity-pdp::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: currentColor;
    opacity: 0.85;
}
.ks-polarity-pdp:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.07);
}
.ks-polarity-pdp--uniform {
    background: linear-gradient(135deg, #f5f9ff 0%, #eff6ff 100%);
    border-color: #bfdbfe;
    color: #1e3a8a;
}
.ks-polarity-pdp--unknown {
    background: linear-gradient(135deg, #fafbfc 0%, #f5f7fa 100%);
    border-color: #e2e8f0;
    color: #334155;
}
.ks-polarity-pdp__icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: currentColor;
}
.ks-polarity-pdp__text { display: inline; }
.ks-polarity-pdp__text strong {
    color: currentColor;
    font-weight: 700;
}
.ks-polarity-pdp--uniform .ks-polarity-pdp__text strong { color: #1d4ed8; }
.ks-polarity-pdp--unknown .ks-polarity-pdp__text strong { color: #475569; }

/* ================================================================
   CRÍTICO ESTRUCTURAL (anti-CLS) — reglas de LAYOUT de elementos
   above-the-fold que antes vivían solo en front-deferred.css: hasta
   que llegaba el CSS diferido, el breadcrumb se pintaba como lista
   vertical con bullets y el bloque asesor sin layout, y al aplicarse
   el swap todo el contenido inferior saltaba (CLS medible en L3-L5).
   Lo decorativo (hovers, sombras, colores finos) sigue en deferred.
   ================================================================ */
.ks-breadcrumb { margin: 0 0 .85rem; }
.ks-breadcrumb__list {
  display: flex; flex-wrap: wrap; list-style: none;
  padding: 0; margin: 0; align-items: center;
  font-size: .78rem;
}
.ks-breadcrumb__item { display: flex; align-items: center; }
.ks-breadcrumb__item + .ks-breadcrumb__item::before {
  content: '›'; color: #94a3b8; margin: 0 .3rem; font-size: .9em; line-height: 1;
}
.ks-breadcrumb__link { padding: .15rem .3rem; text-decoration: none; }
.ks-breadcrumb__current { font-weight: 600; padding: .15rem .3rem; }

.ks-card-icon {
  position: absolute;
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 3;
}

/* Reserva de espacio del bloque asesor (su layout completo llega con
   el CSS diferido). */
.ks-expert { display: block; min-height: 200px; }

/* Línea de frescura bajo el TL;DR del asesor (emitida por
   controlador.php — "Precios y disponibilidad actualizados el…"). */
.ks-expert__updated {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  width: fit-content;
  max-width: 100%;
  margin: .6rem auto 0;
  padding: .24rem .7rem;
  font-size: .76rem;
  line-height: 1.3;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 999px;
}
.ks-expert__updated::before {
  content: "";
  width: 13px; height: 13px;
  flex: 0 0 13px;
  background: #94a3b8;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 7v5l3 2'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 7v5l3 2'/></svg>") center/contain no-repeat;
}

/* ── P2.1 UX 11-jul: intro editorial de categoría compacta — 2 columnas en
   desktop + tipografía contenida. El texto SEO sigue 100% visible pero el
   buscador/grid de marcas sube casi una pantalla. break-* evita h3 huérfanos
   al pie de columna. ── */
.ks-intro-paragraph { padding: 14px 20px; margin: .75rem 0 1rem; }
.ks-intro-paragraph-text { font-size: .93rem; line-height: 1.55; }
.ks-auto-intro ol, .ks-auto-intro ul { margin: .35rem 0 0; }
.ks-auto-intro li { break-inside: avoid; }
.ks-auto-intro__h { break-after: avoid; margin-top: .6em; }
@media (min-width: 992px) {
    .ks-auto-intro { column-count: 2; column-gap: 40px; }
    .ks-auto-intro > p:first-child { column-span: all; margin-bottom: .6em; }
}

/* ═══ Landings de especificaciones (KsEspec, 2026-07-11 dev) ═══ */
.ks-esp { margin: 0 auto; }
.ks-esp__intro { max-width: 70ch; color: #3a4756; font-size: .98rem; }
.ks-esp__h2 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; color: #19416e; margin: 26px 0 14px; }
.ks-esp__h2::before { content: ""; width: 5px; height: 20px; border-radius: 3px; background: #f9cc0f; }
.ks-esp__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 18px 0; }
.ks-esp__cell { display: flex; flex-direction: column; gap: 2px; border: 1px solid #dbe4ee; border-radius: 10px; padding: 12px 14px; text-decoration: none; background: #fff; transition: border-color .15s, transform .12s; }
.ks-esp__cell:hover { border-color: #124a7d; transform: translateY(-1px); text-decoration: none; }
.ks-esp__cell strong { color: #124a7d; font-size: 1.02rem; }
.ks-esp__cell span { color: #8a97a5; font-size: .78rem; }
.ks-esp__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.ks-esp-card { display: flex; gap: 12px; border: 1px solid #dbe4ee; border-radius: 12px; background: #fff; padding: 12px; }
.ks-esp-card--nostock { opacity: .72; }
.ks-esp-card--sm { padding: 8px; }
.ks-esp-card__img img { width: 84px; height: 84px; object-fit: contain; }
.ks-esp-card--sm .ks-esp-card__img img { width: 64px; height: 64px; }
.ks-esp-card__body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ks-esp-card__name { font-weight: 700; color: #1e3144; font-size: .9rem; line-height: 1.25; text-decoration: none; }
.ks-esp-card__name:hover { color: #124a7d; }
.ks-esp-card__specs { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; color: #124a7d; background: #eef4fb; border-radius: 5px; padding: 2px 7px; align-self: flex-start; }
.ks-esp-card__rating { color: #00b67a; font-size: .8rem; font-weight: 700; }
.ks-esp-card__rating span { color: #8a97a5; font-weight: 500; }
.ks-esp-card__price { font-weight: 800; color: #124a7d; font-size: 1.05rem; margin-top: auto; }
.ks-esp-card__price small { color: #8a97a5; font-weight: 500; font-size: .68rem; }
.ks-esp-card__stock { color: #00b67a; font-size: .74rem; font-weight: 700; margin-left: 8px; }
.ks-esp__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ks-esp__chip { border: 1px solid #d7e3f2; background: #eef4fb; color: #124a7d; border-radius: 999px; padding: 5px 14px; font-weight: 700; font-size: .84rem; text-decoration: none; }
.ks-esp__chip:hover { background: #dcebfb; text-decoration: none; }
.ks-esp__chip--hub { background: #1e3144; border-color: #1e3144; color: #f9cc0f; }
.ks-esp__cmp, .ks-esp__cross { margin: 14px 0; }
.ks-esp__cmp a, .ks-esp__cross a { color: #124a7d; font-weight: 700; }
.ks-esp__faqs { display: grid; gap: 8px; max-width: 860px; }
.ks-esp__faq { border: 1px solid #dbe4ee; border-radius: 10px; background: #fff; padding: 0 14px; }
.ks-esp__faq summary { cursor: pointer; font-weight: 700; color: #19416e; padding: 11px 0; }
.ks-esp__faq p { color: #3a4756; margin: 0 0 12px; }
/* Filtros: tolerancia ± (slider) + polaridad */
.ks-esp__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; border: 1px solid #dbe4ee; border-radius: 12px; background: #f6f9fd; padding: 12px 16px; margin: 0 0 18px; }
.ks-esp__filters-title { color: #1e3144; font-size: .9rem; }
.ks-esp__filters-tol { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: #3a4756; font-weight: 600; }
.ks-esp__filters-tol input[type=range] { width: 150px; accent-color: #124a7d; }
.ks-esp__filters-tol output { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; color: #124a7d; min-width: 34px; }
.ks-esp__filters-pol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; min-inline-size: 0; max-width: 100%; }
.ks-esp__filters-pol legend { float: left; font-size: .84rem; color: #3a4756; font-weight: 600; padding-right: 10px; }
.ks-esp__filters-pol label { cursor: pointer; }
.ks-esp__filters-pol input { position: absolute; opacity: 0; pointer-events: none; }
.ks-esp__filters-pol span { display: inline-block; border: 1px solid #d7e3f2; background: #fff; color: #124a7d; border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: .8rem; }
.ks-esp__filters-pol input:checked + span { background: #124a7d; border-color: #124a7d; color: #fff; }
.ks-esp__filters-pol input:focus-visible + span { outline: 2px solid #124a7d; outline-offset: 2px; }
.ks-esp__filters-btn { border: 0; border-radius: 999px; background: #f9cc0f; color: #1e3144; font-weight: 800; font-size: .86rem; padding: 7px 18px; cursor: pointer; }
.ks-esp__filters-btn:hover { background: #eabf06; }
.ks-esp__filters-val { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: #3a4756; font-weight: 600; }
.ks-esp__filters-val input[type=number] { width: 76px; border: 1px solid #d7e3f2; border-radius: 8px; padding: 6px 8px; font-weight: 700; color: #1e3144; }
.ks-esp__filters-dims { display: inline-flex; align-items: center; gap: 6px; color: #8a97a5; }
.ks-esp__group { grid-column: 1 / -1; margin: 10px 0 0; padding: 6px 12px; border-left: 4px solid #f9cc0f; background: #eef4fb; border-radius: 6px; color: #1e3144; font-size: .95rem; }
/* Help box: cómo interpretamos medidas / capacidad */
.ks-esp__help { display: flex; align-items: flex-start; gap: 12px; border: 1px solid #cfe3f8; background: linear-gradient(180deg, #f2f8ff, #eaf3fd); border-radius: 12px; padding: 12px 16px; margin: 0 0 18px; }
.ks-esp__help-ico { font-size: 1.5rem; line-height: 1.2; }
.ks-esp__help-txt strong { display: block; color: #124a7d; margin-bottom: 2px; }
.ks-esp__help-txt p { margin: 0; color: #3a4756; font-size: .9rem; line-height: 1.5; }
/* Badge de tecnología en tarjeta (distinción visual por tipo) */
.ks-esp-card__tech { display: inline-block; border-radius: 4px; padding: 0 6px; margin-left: 4px; font-size: .68rem; background: #d7e3f2; color: #1e3144; }
.ks-esp-card__tech--agm { background: #124a7d; color: #fff; }
.ks-esp-card__tech--efb { background: #0e7c6b; color: #fff; }
.ks-esp-card__tech--gel { background: #6d4ea3; color: #fff; }
.ks-esp-card__tech--litio { background: #00b67a; color: #fff; }
.ks-esp__none { border: 1px dashed #d7a12b; background: #fdf6e3; color: #7a5a00; border-radius: 10px; padding: 12px 16px; font-weight: 600; }
.ks-esp-card__pol { display: inline-block; background: #1e3144; color: #fff; border-radius: 4px; padding: 0 6px; margin-left: 4px; font-size: .68rem; }
/* CTA de compra en tarjeta */
.ks-esp-card__btn { display: inline-block; align-self: flex-start; margin-top: 6px; background: #f9cc0f; color: #1e3144; border-radius: 999px; padding: 6px 16px; font-weight: 800; font-size: .84rem; text-decoration: none; }
.ks-esp-card__btn:hover { background: #eabf06; color: #1e3144; text-decoration: none; }
/* Barra de confianza */
.ks-esp__trust { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0 0 14px; color: #3a4756; font-size: .84rem; font-weight: 600; }
.ks-esp__trust li { white-space: nowrap; }
/* Fecha de actualización junto al H2 */
.ks-esp__updated { color: #8a97a5; font-weight: 500; font-size: .78rem; }
/* Enlaces al glosario dentro del help box */
.ks-esp__help-glos { margin-top: 6px !important; font-size: .82rem !important; }
.ks-esp__help-glos a { color: #124a7d; font-weight: 700; }
/* Promo buscador por matrícula */
.ks-esp__mat { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; border: 1px solid #f0dd8a; background: linear-gradient(180deg, #fffbe8, #fdf4c9); border-radius: 12px; padding: 14px 18px; margin: 18px 0; }
.ks-esp__mat-ico { font-size: 1.8rem; }
.ks-esp__mat-txt { flex: 1 1 260px; min-width: 0; }
.ks-esp__mat-txt strong { display: block; color: #1e3144; }
.ks-esp__mat-txt p { margin: 2px 0 0; color: #5a6675; font-size: .88rem; }
.ks-esp__mat-btn { background: #1e3144; color: #f9cc0f; border-radius: 999px; padding: 10px 20px; font-weight: 800; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.ks-esp__mat-btn:hover { background: #12283c; color: #f9cc0f; text-decoration: none; }
@media (max-width: 600px) {
  .ks-esp__cards { grid-template-columns: 1fr; }
  .ks-esp__grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .ks-esp__filters { gap: 10px 16px; }
  .ks-esp__filters-tol input[type=range] { width: 120px; }
}

/* ═══ Hub de MODELO (KsModelo, 2026-07-26 dev) ═══ */
.ks-mod {
  --mod-navy:#1e3144; --mod-blue:#124a7d; --mod-yellow:#f9cc0f;
  --mod-ink:#41505f; --mod-line:#e4ebf4; --mod-soft:#f6faff; --mod-edge:#cfe0f5;
}
.ks-mod__intro { font-size:1.03rem; line-height:1.66; color:var(--mod-ink); }
.ks-mod__intro strong { color:var(--mod-navy); }

/* ── Selector de año: es la acción principal de la página ── */
.ks-mod__year {
  border:1px solid var(--mod-edge); background:linear-gradient(180deg,#f8fbff,#edf4fd);
  border-radius:14px; padding:18px 20px 20px; margin:24px 0 28px;
  box-shadow:0 1px 2px rgba(30,49,68,.05),0 12px 26px -20px rgba(18,74,125,.4);
}
.ks-mod__year .ks-esp__h2 { margin-top:0; margin-bottom:4px; }
.ks-mod__year-help { color:var(--mod-ink); font-size:.92rem; margin:0 0 14px; }
.ks-mod__year-row { display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; }
.ks-mod__year-label { font-weight:700; color:var(--mod-navy); font-size:.92rem; }
.ks-mod__year-sel {
  border:1px solid #c3d7ee; border-radius:9px; padding:10px 14px; font-size:1rem;
  font-weight:700; color:var(--mod-navy); background:#fff; min-width:170px;
  box-shadow:inset 0 1px 2px rgba(30,49,68,.05); cursor:pointer;
  transition:border-color .15s, box-shadow .15s;
}
.ks-mod__year-sel:hover { border-color:var(--mod-blue); }
.ks-mod__year-sel:focus-visible { outline:2px solid var(--mod-blue); outline-offset:2px; }
.ks-mod__year-plate {
  background:var(--mod-navy); color:var(--mod-yellow); border-radius:999px;
  padding:10px 18px; font-weight:800; font-size:.88rem; text-decoration:none;
  transition:background .15s, transform .15s;
}
.ks-mod__year-plate:hover { background:#12283c; color:var(--mod-yellow); text-decoration:none; transform:translateY(-1px); }
.ks-mod__year-plate:focus-visible { outline:2px solid var(--mod-blue); outline-offset:2px; }
.ks-mod__year-result {
  margin:14px 0 0; font-weight:700; color:var(--mod-blue); font-size:.94rem;
  background:#fff; border:1px solid var(--mod-edge); border-radius:9px; padding:9px 13px;
}

/* ── Tabla de generaciones ── */
.ks-mod__gen-help { color:var(--mod-ink); font-size:.94rem; margin:0 0 14px; }
.ks-mod__table-wrap {
  overflow-x:auto; margin-bottom:26px; border:1px solid var(--mod-line);
  border-radius:12px; background:#fff;
}
.ks-mod__table { width:100%; border-collapse:collapse; font-size:.94rem; min-width:520px; }
.ks-mod__table th {
  text-align:left; background:var(--mod-soft); color:var(--mod-navy);
  font-size:.74rem; letter-spacing:.07em; text-transform:uppercase; font-weight:700;
  padding:11px 14px; border-bottom:1px solid #dbe6f3; white-space:nowrap;
}
.ks-mod__table td { padding:12px 14px; border-bottom:1px solid var(--mod-line); vertical-align:middle; }
.ks-mod__table tbody tr:last-child td { border-bottom:0; }
.ks-mod__table tbody tr:hover td { background:var(--mod-soft); }
.ks-mod__gen--match td { background:#fffdf0; box-shadow:inset 3px 0 0 var(--mod-yellow); }
.ks-mod__gen--match:hover td { background:#fffbe4; }
.ks-mod__gen-name { font-weight:700; color:var(--mod-navy); }
.ks-mod__gen-years {
  white-space:nowrap; color:var(--mod-blue); font-size:.88rem;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-variant-numeric:tabular-nums;
}
.ks-mod__gen-years strong { font-weight:700; }
.ks-mod__gen-bat { text-align:center; font-weight:700; color:var(--mod-blue); font-variant-numeric:tabular-nums; }
.ks-mod__gen-btn {
  display:inline-block; background:var(--mod-yellow); color:var(--mod-navy);
  border-radius:999px; padding:6px 15px; font-weight:800; font-size:.81rem;
  text-decoration:none; white-space:nowrap; transition:background .15s, transform .15s;
}
.ks-mod__gen-btn:hover { background:#eabf06; color:var(--mod-navy); text-decoration:none; transform:translateY(-1px); }
.ks-mod__gen-btn:focus-visible { outline:2px solid var(--mod-blue); outline-offset:2px; }

/* Carrocería: pastillas suaves, que no compitan con el CTA amarillo */
.ks-mod__body {
  display:inline-block; border-radius:6px; padding:3px 10px; font-size:.75rem;
  font-weight:700; background:#eaf1f9; color:var(--mod-navy); white-space:nowrap;
}
.ks-mod__body--familiar { background:#e2f4f0; color:#0b6355; }
.ks-mod__body--coupe    { background:#efe9f8; color:#553a86; }
.ks-mod__body--berlina  { background:#e4eefb; color:var(--mod-blue); }

@media (prefers-reduced-motion: reduce) {
  .ks-mod__year-plate, .ks-mod__gen-btn, .ks-mod__year-sel { transition:none; }
  .ks-mod__year-plate:hover, .ks-mod__gen-btn:hover { transform:none; }
}
@media (max-width: 600px) {
  .ks-mod__year { padding:16px 14px 18px; }
  .ks-mod__year-sel { min-width:0; flex:1 1 140px; }
  .ks-mod__year-plate { flex:1 1 100%; text-align:center; }
  .ks-mod__table { font-size:.88rem; min-width:440px; }
  .ks-mod__table th, .ks-mod__table td { padding:10px 10px; }
}

/* ── Rejillas en pantallas grandes (2026-07-26 dev) ──────────────────────
   .ks-buscador-list está fijada en 4 columnas. Al pasar .container a fluido
   (90%), esas 4 columnas se estiraban hasta 765px por celda en un monitor
   de 3440px. A partir de 1600px se reparte por tamaño mínimo, así que el
   ancho extra se convierte en MÁS modelos por fila en lugar de celdas
   gigantes. Por debajo de 1600px no cambia nada. */
@media (min-width: 1600px) {
  .ks-buscador-list { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
  .ks-theme-icons .ks-buscador-list { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
  .ks-hermanos__list--marcas { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* Selector de año: fila más probable, filas ocultas y botón "ver todas" */
.ks-mod__gen--oculta { display: none; }
.ks-mod__gen--probable td { background: #fff8dc; box-shadow: inset 3px 0 0 var(--mod-yellow, #f9cc0f); }
.ks-mod__gen--probable .ks-mod__gen-name::after {
  content: "★"; color: #b98900; margin-left: 6px; font-size: .8em;
}
.ks-mod__more {
  display: block; width: 100%; margin: 0; border: 0; border-top: 1px solid var(--mod-line, #e4ebf4);
  background: var(--mod-soft, #f6faff); color: var(--mod-blue, #124a7d);
  font: inherit; font-weight: 700; font-size: .88rem; padding: 11px 14px; cursor: pointer;
}
.ks-mod__more:hover { background: #eaf1f9; }
.ks-mod__more:focus-visible { outline: 2px solid var(--mod-blue, #124a7d); outline-offset: -2px; }
.ks-mod__pick { font-weight: 800; color: var(--mod-navy, #1e3144); }

/* ── Hub de modelo: pills de datos + año clicable (26-jul dev) ─────────── */
.ks-mod__pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; padding: 0; }
.ks-mod__pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #d7e3f2; background: #eef4fb; color: #124a7d;
  border-radius: 999px; padding: 6px 15px; font-weight: 700; font-size: .86rem;
  font-variant-numeric: tabular-nums;
}
.ks-mod__pill strong { color: #1e3144; background: none; padding: 0; }
.ks-mod__pill--price { background: #1e3144; border-color: #1e3144; color: #f9cc0f; }

.ks-mod__ypill {
  font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer;
  border: 1px solid #c3d7ee; background: #fff; color: #124a7d;
  border-radius: 999px; padding: 6px 13px; font-variant-numeric: tabular-nums;
  transition: background .13s, border-color .13s, color .13s;
}
.ks-mod__ypill:hover { border-color: #124a7d; }
.ks-mod__ypill.is-on { background: #1e3144; border-color: #1e3144; color: #f9cc0f; }
.ks-mod__ypill:focus-visible { outline: 2px solid #124a7d; outline-offset: 2px; }
#ks-mod-year-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.ks-mod__year .ks-mod__year-plate { display: inline-block; margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .ks-mod__ypill { transition: none; } }
@media (max-width: 600px) {
  #ks-mod-year-pills { max-height: 132px; overflow-y: auto; padding-bottom: 2px; }
}

/* Extras del hub bajo el listado estándar (misma sección .page-content) */
.ks-mod--extras { margin-top: 26px; }
.ks-mod__pills { margin-top: 12px; }

/* ── Contraste de los extras del hub (26-jul) ────────────────────────────
   La sección hereda el <p> gris claro del tema (#7a7a7a) sobre el fondo
   gris de la página (#f6f6f6): ratio ~2,9:1, ilegible. Se fija tinta
   oscura y la guía pasa a tarjeta blanca, como las FAQ estándar. */
.ks-mod--extras { color: #3a4756; }
.ks-mod--extras p,
.ks-mod--extras li { color: #3a4756; }
.ks-mod--extras .ks-esp__body {
  background: #fff; border: 1px solid #e4ebf4; border-radius: 12px;
  padding: 18px 22px; margin: 18px 0 22px;
}
.ks-mod--extras .ks-esp__h2 { color: #1e3144; }
.ks-mod--extras .ks-esp__updated { color: #6b7890; }

/* ── Hub de modelo: navegación sin duplicados (26-jul) ───────────────────
   En el hub se apilaban TRES filas de navegación: el breadcrumb del tema
   (que ya incluye el modelo), el breadcrumb propio del módulo (que encima
   se queda en la marca) y el botón "volver". Se oculta el del módulo SOLO
   aquí — en el resto de niveles se mantiene como siempre. */
#module-ks_buscador-modelo .ks-breadcrumb { display: none; }

/* ── Description enriquecida de producto (generador Varta, 2026-08) ─────────
   Bloques producto/gama/marca + tabla de specs. Se renderiza dentro de la
   ficha (ps_product_lang.description). Estilos sobrios que heredan del tema. */
.ks-vd { line-height: 1.6; }
.ks-vd__brand { margin: 0 0 .6em; }
.ks-vd__brand img { height: 42px; width: auto; }
.ks-vd__title {
  font-size: 1.3rem; font-weight: 800; line-height: 1.25; margin: 0 0 .7em;
  color: #0a2c5e;
}
.ks-vd__lead { font-size: 1.05rem; margin: 0 0 1.1em; }
.ks-vd__h {
  font-size: 1.15rem; font-weight: 700; margin: 1.4em 0 .5em;
  padding-bottom: .3em; border-bottom: 2px solid #ffde00; display: inline-block;
}
.ks-vd p { margin: 0 0 1em; }
/* Tira de datos clave (identidad visual, no la tabla de specs del módulo) */
.ks-vd__facts {
  display: flex; flex-wrap: wrap; gap: .6em; margin: 0 0 1.3em;
}
.ks-vd__fact {
  flex: 1 1 auto; min-width: 92px; text-align: center;
  background: linear-gradient(180deg,#f7f9fc,#eef2f8);
  border: 1px solid #e3e8f0; border-radius: 10px; padding: .55em .4em;
}
.ks-vd__fact-n { display: block; font-size: 1.45rem; font-weight: 800; color: #0a2c5e; }
.ks-vd__fact-n i { font-size: .8rem; font-weight: 700; font-style: normal; margin-left: 1px; }
.ks-vd__fact-l { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: #6b7688; margin-top: .1em; }
/* Moto: códigos JIS destacados al principio */
.ks-vd__jis {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4em;
  background: #fff8d6; border: 1px solid #ffde00; border-radius: 10px;
  padding: .6em .8em; margin: 0 auto 1em; width: fit-content; max-width: 100%;
}
.ks-vd__jis-lbl { font-weight: 700; font-size: .85rem; color: #6b5900; margin-right: .3em; }
.ks-vd__jis-code {
  display: inline-block; font-weight: 800; font-size: 1rem; color: #0a2c5e;
  background: #fff; border: 1px solid #e3d98a; border-radius: 6px; padding: .18em .55em;
  letter-spacing: .02em;
}
/* Ventajas escaneables (la description es editorial; specs/FAQ/HowTo los
   renderiza el propio módulo/tema, no se duplican aquí). */
.ks-vd__adv { list-style: none; margin: .2em 0 1.2em; padding: 0; display: grid; gap: .4em; }
.ks-vd__adv li { position: relative; padding-left: 1.6em; }
.ks-vd__adv li::before { content: "✓"; position: absolute; left: 0; color: #1a9c3e; font-weight: 700; }

/* ── Contenido SEO de categorías de gama Varta (rebrand 2025) ─────────────
   .ks-cat--intro va sobre el listado (description); .ks-cat (section) es el
   bloque largo bajo los productos (additional_description, solo página 1). */
.ks-cat { line-height: 1.65; max-width: 980px; margin: 1.5em auto 0; }
.ks-cat--intro { margin: .4em 0 0; font-size: 1.02rem; }
.ks-cat__h, .ks-cat h2 {
  font-size: 1.25rem; font-weight: 700; margin: 1.5em 0 .5em;
  padding-bottom: .3em; border-bottom: 2px solid #ffde00; display: inline-block;
}
.ks-cat h2:first-child { margin-top: .4em; }
.ks-cat h3 { font-size: 1.05rem; font-weight: 700; margin: 1.1em 0 .35em; }
.ks-cat p { margin: 0 0 .9em; }
.ks-cat ul { margin: .3em 0 1em; padding-left: 1.3em; }
.ks-cat li { margin: 0 0 .35em; }
.ks-cat__tbl, .ks-cat table {
  width: 100%; border-collapse: collapse; margin: .6em 0 1.2em; font-size: .95rem;
}
.ks-cat table th, .ks-cat table td { border: 1px solid #e3e8f0; padding: .45em .6em; text-align: left; }
.ks-cat table th { background: #f4f6fa; }
@media (max-width: 640px) { .ks-cat table { display: block; overflow-x: auto; } }
/* Nota "(FA) activada de fábrica" dentro de la caja de códigos JIS */
.ks-vd__jis-fa {
  font-size: .78rem; font-weight: 600; color: #6b5900;
  background: #fffdf0; border: 1px dashed #e3d98a; border-radius: 6px;
  padding: .15em .5em; margin-left: .2em;
}

/* Ficha técnica descargable (2026-08-09) — recuperada de las descripciones
   antiguas; el PDF es distinto por idioma y se valida su existencia. */
.ks-vd__doc{margin-top:18px;padding:14px 16px;border:1px solid #e3e6ea;border-radius:8px;background:#fafbfc}
.ks-vd__doc p{margin:6px 0}
.ks-vd__doc-btn{display:inline-block;margin-top:4px;padding:9px 16px;border-radius:6px;
  background:#ffcc00;color:#1a1a1a;font-weight:600;text-decoration:none;line-height:1.2}
.ks-vd__doc-btn:hover{background:#e6b800;color:#1a1a1a;text-decoration:none}

/* ── Ficha técnica del vehículo (KsVehicleData, 13-sep-2026) ─────────── */
.ks-vehdata{margin:14px 0 18px;padding:14px 16px;background:#fafafa;border:1px solid #e8e8e8;border-radius:10px}
.ks-vehdata__title{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:15px;font-weight:700;color:#222}
.ks-vehdata__title svg{color:#e6a800;flex:0 0 auto}
.ks-vehdata__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:8px 18px;margin:0}
.ks-vehdata__item{background:#fff;border:1px solid #eee;border-radius:8px;padding:8px 10px;min-width:0}
.ks-vehdata__item dt{font-size:11px;text-transform:uppercase;letter-spacing:.4px;color:#6b6b6b;/* KS-PERF3 2026-10-11: contraste 3,45 → 5,2 */margin:0 0 2px}
.ks-vehdata__item dd{font-size:14px;font-weight:600;color:#222;margin:0;overflow-wrap:break-word}
.ks-vehdata__item--interval{border-color:#f0dfa8;background:#fffbef}
.ks-vehdata__item--interval dd{color:#8a6d00}
/* Intervalo real (mes/año) en tarjetas del buscador */
.ks-buscador-year--real{font-variant-numeric:tabular-nums}
@media (max-width:480px){.ks-vehdata__grid{grid-template-columns:repeat(2,1fr);gap:6px 10px}}
.ks-vehdata__img{float:right;margin:0 0 8px 12px}
.ks-vehdata__img img{max-width:140px;height:auto;border-radius:8px;background:#fff;mix-blend-mode:multiply}
@media (max-width:480px){.ks-vehdata__img img{max-width:96px}}
/* KS-TABLE-CONTAIN 2026-10-11: contenedores de tablas anchas; evita que Chrome movil ensanche el viewport (CLS, aviso de cookies fuera de pantalla) */
.ks-cmpt,.ks-oem-table__scroll,.ks-expert__compare-scroll,.ks-cmp-compare__scroll,.ks-mod__table-wrap,.ks-lg .ks-lg-scroll,.table-responsive{overflow-x:auto;contain:paint}

/* Iconos de aplicación nuevos (19-oct-2026, KS_APP_ICONS_V2): la baldosa ya trae su fondo; sombra suave azulada */
.ks-thumb.ks-thumb--ico { filter: drop-shadow(0 3px 6px rgba(18, 74, 125, .12)); border-radius: 24%; }

/* KS 20-oct-2026 · página de marca: datos reales (KsMarcaDatos) */
.ks-md-resp{background:#f8fbfe;border:1px solid #d5e3f2;border-radius:12px;padding:16px 18px;margin:8px 0 18px}
.ks-md-resp__q{font-size:1.05rem;font-weight:800;margin:0 0 6px}
.ks-md-resp__a{margin:0;line-height:1.6}
.ks-md-sec{margin:28px 0}
.ks-md-h2{font-size:1.3rem;font-weight:800;margin:0 0 12px}
.ks-md-tw{overflow-x:auto;border:1px solid #e1e6ee;border-radius:12px;background:#fff;contain:paint}
.ks-md-tbl{width:100%;border-collapse:collapse;font-size:.95rem}
.ks-md-tbl th,.ks-md-tbl td{padding:10px 12px;border-bottom:1px solid #e8ecf2;text-align:left;vertical-align:top}
.ks-md-tbl thead th{font-size:.75rem;letter-spacing:.05em;text-transform:uppercase;color:#5f6b78;font-weight:700}
.ks-md-tbl .r{text-align:right;font-weight:800;white-space:nowrap}
.ks-md-tbl a{color:#13788c;font-weight:600}
.ks-md-nota{font-size:.85rem;color:#5f6b78;margin:8px 0 0}
.ks-md-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.ks-md-grid--r{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.ks-md-card,.ks-md-rev{background:#fff;border:1px solid #e1e6ee;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:6px}
.ks-md-card__n{font-weight:800;color:#14233a;text-decoration:none}
.ks-md-card__m{font-size:.85rem;color:#5f6b78}
.ks-md-card__p{font-size:1.2rem;font-weight:800}
.ks-md-card__b{margin-top:auto;display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:10px;background:#f9cc0f;color:#14233a;font-weight:800;text-decoration:none}
.ks-md-rev__s{color:#00b67a;letter-spacing:2px}
.ks-md-rev__t{margin:0;line-height:1.55}
.ks-md-rev__a{font-size:.82rem;color:#5f6b78}
/* KS-AH-REFUERZO 2026-11-13 INICIO: landings de capacidad reforzadas (KsEspecRefuerzo): comparativa y variantes (el texto de arriba lleva sus estilos en línea, espec_refuerzo.tpl) */
@layer ps-modules {
.ks-espr { margin: 18px 0 8px; }
.ks-espr__tw { overflow-x: auto; contain: paint; border: 1px solid #dbe4ee; border-radius: 12px; background: #fff; }
.ks-espr__tbl { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .9rem; }
.ks-espr__tbl th, .ks-espr__tbl td { padding: 9px 12px; border-bottom: 1px solid #e8ecf2; text-align: left; vertical-align: middle; font-weight: 400; color: #1e3144; }
.ks-espr__tbl thead th { font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: #5f6b78; font-weight: 700; background: #f6f9fd; white-space: nowrap; }
.ks-espr__tbl tbody th[scope="row"] { font-weight: 700; white-space: nowrap; }
.ks-espr__tbl tbody th[scope="row"] a { color: #124a7d; text-decoration: underline; text-underline-offset: 2px; }
.ks-espr__tbl .r { text-align: right; font-weight: 800; white-space: nowrap; }
.ks-espr__tbl .ks-espr__grp th { background: #eef4fb; color: #19416e; font-weight: 800; font-size: .86rem; }
.ks-espr__tbl tbody tr:last-child > * { border-bottom: 0; }
.ks-espr__caja { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: #eef4fb; color: #124a7d; font-size: .74rem; font-weight: 700; }
.ks-espr__ok { color: #1b7f34; font-weight: 700; white-space: nowrap; }
.ks-espr__plazo { color: #124a7d; white-space: nowrap; }
.ks-espr__nota { font-size: .85rem; color: #5f6b78; margin: 8px 0 0; max-width: 90ch; text-align: left; }
.ks-espr__vars { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.ks-espr__var { border: 1px solid #dbe4ee; border-radius: 12px; background: #fff; padding: 14px 16px; scroll-margin-top: 90px; }
.ks-espr__var h3 { font-size: 1.05rem; font-weight: 800; color: #19416e; margin: 0 0 6px; }
.ks-espr__var p { margin: 0 0 6px; color: #3a4756; font-size: .92rem; line-height: 1.5; text-align: left; }
.ks-espr__var-specs { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem !important; color: #124a7d !important; }
.ks-espr__var-mod a { color: #124a7d; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
#ks-espr-tabla { scroll-margin-top: 90px; }
.ks-espr__salto:hover { background: #dcebfb; text-decoration: none; }
.ks-espr__salto--tabla:hover { background: #124a7d; }
}
/* KS-AH-REFUERZO 2026-11-13 FIN */
