/**
 * ObservAuto — Suite de Compra & Versus v5.0.0
 * Diseño aprobado en mockup-v5.html (Opción 4 Fusión + Cabezote Mockup 3 Independientes + Logos Negros sin Fondo)
 */
.oa-cmp-suite-widget,
.oa-cms-multi-wrapper {
  --bg-surface: #FFFFFF;
  --border-light: #E2E8F0;
  --text-main: #0F172A;
  --color-vehiculos: #00224D;
  --brand-blue: #1D4ED8;
  --laser-red: #E43524;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-family: var(--font-sans);
  color: var(--text-main);
  box-sizing: border-box;
  text-align: left;
}

.oa-cmp-suite-widget *,
.oa-cms-multi-wrapper * {
  box-sizing: border-box;
}

.oa-cmp-suite-widget {
  background: var(--bg-surface, #FFFFFF);
  border: 1px solid var(--border-light, #E2E8F0);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.06));
  position: relative;
  width: 100%;
}

/* Cápsula GEO/AEO SSR para motores generativos y lectores */
.oa-geo-ssr-capsule {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 1. Header Cápsula Institucional */
.oa-cmp-suite-widget .oa-block-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.oa-cmp-suite-widget .capsule-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background-color: rgba(0, 34, 77, 0.08);
  color: #00224D;
  border: 1.5px solid #00224D;
  white-space: nowrap;
}

.oa-cmp-suite-widget .capsule-pill .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #00224D;
}

.oa-cmp-suite-widget .header-guide-line {
  flex: 1;
  height: 1.5px;
  background: rgba(0, 34, 77, 0.16);
}

/* 2. Cabezote Azul del Mockup 3 (Widgets Independientes: Solo Guía / Solo Versus) */
.oa-cmp-suite-widget .oa-guia-title-banner {
  background: linear-gradient(135deg, #00224D 0%, #1D4ED8 100%);
  color: #FFFFFF;
  border-radius: 9px;
  padding: 9px 11px;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 34, 77, 0.16);
}

.oa-cmp-suite-widget .oa-guia-title-main {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #FFFFFF;
}

.oa-cmp-suite-widget .oa-guia-title-sub {
  font-size: 0.58rem;
  color: #DBEAFE;
  font-weight: 600;
  margin-top: 2px;
}

.oa-cmp-suite-widget .oa-guia-3steps-badge {
  background: #10B981;
  color: #052E16;
  font-family: var(--font-display);
  font-size: 0.57rem;
  font-weight: 900;
  padding: 3px 7px;
  border-radius: 99px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 3. Cabezote Opción 4 Fusión (Widget Mixto: Mini Hero Arriba + 2 Tabs Curvadas Abajo de 34px fijos) */
.oa-cmp-suite-widget .oa-p4-wrapper {
  margin-bottom: 10px;
}

.oa-cmp-suite-widget .oa-p4-banner {
  background: linear-gradient(135deg, #00224D 0%, #1D4ED8 100%);
  color: #FFFFFF;
  border-radius: 9px 9px 0 0;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 2px solid #10B981;
  box-shadow: 0 4px 12px rgba(0, 34, 77, 0.14);
}

.oa-cmp-suite-widget .oa-p4-bottom-tabs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 5px;
  margin-top: 0;
  align-items: stretch;
}

.oa-cmp-suite-widget .oa-p4-tab-btn {
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  box-sizing: border-box !important;
  background: #E2E8F0;
  color: #475569;
  border: 1px solid #CBD5E1;
  border-top: none;
  border-radius: 0 0 9px 9px;
  padding: 0 8px;
  margin: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}

.oa-cmp-suite-widget .oa-p4-tab-btn svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2.3;
  fill: none;
  flex-shrink: 0;
}

.oa-cmp-suite-widget .oa-p4-tab-btn:hover {
  background: #CBD5E1;
  color: #0F172A;
}

.oa-cmp-suite-widget .oa-p4-tab-btn.active {
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  background: #00224D;
  color: #FFFFFF;
  border-color: #00224D;
  box-shadow: 0 3px 8px rgba(0, 34, 77, 0.18);
}

.oa-cmp-suite-widget .oa-p4-tab-btn.active svg {
  stroke: #10B981;
}

/* 4. Tarjeta Maestra de Duelo (Versus) */
.oa-cmp-suite-widget .oa-master-duel-box {
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
  border-radius: 10px;
  padding: 8px 9px;
  margin-bottom: 10px;
  border: 1px solid #DBEAFE;
  border-left: 4px solid #1D4ED8;
}

.oa-cmp-suite-widget .oa-master-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 7px;
}

.oa-cmp-suite-widget .oa-master-title {
  font-size: 0.6rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.oa-cmp-suite-widget .oa-delta-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.59rem;
  font-weight: 800;
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
  white-space: nowrap;
}

.oa-cmp-suite-widget .oa-master-cards-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
  width: 100%;
  position: relative;
}

.oa-cmp-suite-widget .oa-mini-selector-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 6px 6px;
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.oa-cmp-suite-widget .oa-mini-selector-card.side-a {
  border-top: 3px solid #1D4ED8;
}

.oa-cmp-suite-widget .oa-mini-selector-card.side-b {
  border-top: 3px solid #E43524;
}

.oa-cmp-suite-widget .oa-duel-top {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}

/* Logos 100% sin fondo y en negro puro (#0F172A) */
.oa-cmp-suite-widget .oa-brand-logo,
.oa-cms-multi-wrapper .oa-brand-logo {
  width: 22px;
  height: 22px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 1px;
}

.oa-cmp-suite-widget .oa-brand-logo img,
.oa-cms-multi-wrapper .oa-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0);
}

.oa-cmp-suite-widget .oa-omnisearch-wrap,
.oa-cms-multi-wrapper .oa-omnisearch-wrap,
.oa-historico-card .oa-omnisearch-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.oa-cmp-suite-widget .oa-omnisearch-input,
.oa-cms-multi-wrapper .oa-omnisearch-input,
.oa-historico-card .oa-omnisearch-input {
  width: 100%;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 4px 28px 4px 7px;
  font-size: 0.67rem;
  font-weight: 800;
  color: #0F172A;
  font-family: var(--font-sans);
  outline: none;
  cursor: text;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.15s ease;
}

.oa-cmp-suite-widget .oa-omnisearch-input:focus,
.oa-cms-multi-wrapper .oa-omnisearch-input:focus,
.oa-historico-card .oa-omnisearch-input:focus {
  background: #FFFFFF;
  border-color: #1D4ED8;
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.2);
  cursor: text;
}

.oa-cmp-suite-widget .oa-mini-selector-card.side-b .oa-omnisearch-input:focus {
  border-color: #E43524;
  box-shadow: 0 0 0 2px rgba(228, 53, 36, 0.2);
}

.oa-cmp-suite-widget .oa-mini-selector-card:focus-within,
.oa-cmp-suite-widget .oa-mini-selector-card:has(.open) {
  z-index: 60;
}

.oa-cmp-suite-widget .oa-omnisearch-wrap:focus-within,
.oa-cms-multi-wrapper .oa-omnisearch-wrap:focus-within,
.oa-historico-card .oa-omnisearch-wrap:focus-within {
  z-index: 70;
}

.oa-cmp-suite-widget .oa-omnisearch-clear,
.oa-cms-multi-wrapper .oa-omnisearch-clear,
.oa-historico-card .oa-omnisearch-clear {
  position: absolute;
  right: 17px;
  top: 50%;
  transform: translateY(-50%);
  background: #E2E8F0;
  border: none;
  width: 14px;
  height: 14px;
  line-height: 14px;
  font-size: 9px;
  font-weight: 900;
  color: #475569;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 3;
  transition: all 0.15s ease;
}

.oa-cmp-suite-widget .oa-omnisearch-clear:hover,
.oa-cms-multi-wrapper .oa-omnisearch-clear:hover,
.oa-historico-card .oa-omnisearch-clear:hover {
  background: #DC2626;
  color: #FFFFFF;
}

.oa-cmp-suite-widget .oa-omnisearch-ToggleIcon,
.oa-cms-multi-wrapper .oa-omnisearch-ToggleIcon,
.oa-historico-card .oa-omnisearch-ToggleIcon {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #64748B;
  display: flex;
  align-items: center;
}

.oa-cmp-suite-widget .oa-omnisearch-dropdown,
.oa-cms-multi-wrapper .oa-omnisearch-dropdown,
.oa-historico-card .oa-omnisearch-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: -25px;
  width: 230px;
  max-height: 235px;
  overflow-y: auto;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.24);
  z-index: 9999;
  padding: 4px;
  text-align: left;
}

.oa-cms-multi-wrapper .oa-omnisearch-dropdown,
.oa-historico-card .oa-omnisearch-dropdown {
  left: 0;
  width: 260px;
}

.oa-cms-multi-wrapper .oa-omnisearch-dropdown.align-right,
.oa-historico-card .oa-omnisearch-dropdown.align-right {
  left: auto;
  right: 0;
}

.oa-cmp-suite-widget .oa-mini-selector-card.side-b .oa-omnisearch-dropdown {
  left: auto;
  right: 0;
}

.oa-cmp-suite-widget .oa-omnisearch-dropdown.open,
.oa-cms-multi-wrapper .oa-omnisearch-dropdown.open,
.oa-historico-card .oa-omnisearch-dropdown.open {
  display: block;
}

.oa-cmp-suite-widget .oa-omni-hint,
.oa-cms-multi-wrapper .oa-omni-hint,
.oa-historico-card .oa-omni-hint {
  font-size: 0.57rem;
  font-weight: 700;
  color: #64748B;
  padding: 3px 6px 5px;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  justify-content: space-between;
}

.oa-cmp-suite-widget .oa-omni-option,
.oa-cms-multi-wrapper .oa-omni-option,
.oa-historico-card .oa-omni-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s ease;
}

.oa-cmp-suite-widget .oa-omni-option:hover,
.oa-cmp-suite-widget .oa-omni-option.active,
.oa-cms-multi-wrapper .oa-omni-option:hover,
.oa-cms-multi-wrapper .oa-omni-option.active,
.oa-historico-card .oa-omni-option:hover,
.oa-historico-card .oa-omni-option.active {
  background: #EFF6FF;
}

.oa-cmp-suite-widget .oa-omni-option.sponsored,
.oa-cms-multi-wrapper .oa-omni-option.sponsored {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  margin-bottom: 3px;
}

.oa-cmp-suite-widget .oa-omni-opt-logo,
.oa-cms-multi-wrapper .oa-omni-opt-logo,
.oa-historico-card .oa-omni-opt-logo {
  width: 18px;
  height: 18px;
  border: none;
  background: transparent;
  padding: 1px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.oa-cmp-suite-widget .oa-omni-opt-logo img,
.oa-cms-multi-wrapper .oa-omni-opt-logo img,
.oa-historico-card .oa-omni-opt-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0);
}

.oa-cmp-suite-widget .oa-omni-opt-info,
.oa-cms-multi-wrapper .oa-omni-opt-info,
.oa-historico-card .oa-omni-opt-info {
  flex: 1;
  min-width: 0;
}

.oa-cmp-suite-widget .oa-omni-opt-title,
.oa-cms-multi-wrapper .oa-omni-opt-title,
.oa-historico-card .oa-omni-opt-title {
  font-size: 0.66rem;
  font-weight: 800;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oa-cmp-suite-widget .oa-omni-opt-sub,
.oa-cms-multi-wrapper .oa-omni-opt-sub,
.oa-historico-card .oa-omni-opt-sub {
  font-size: 0.56rem;
  color: #64748B;
  font-weight: 600;
  display: flex;
  gap: 4px;
  align-items: center;
}

.oa-cmp-suite-widget .oa-omni-spon-tag,
.oa-cms-multi-wrapper .oa-omni-spon-tag {
  background: #F59E0B;
  color: #FFF;
  font-size: 0.49rem;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
}

.oa-cmp-suite-widget .oa-duel-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  min-width: 0;
}

.oa-cmp-suite-widget .oa-duel-price {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.oa-cmp-suite-widget .oa-duel-price.blue { color: #1D4ED8; }
.oa-cmp-suite-widget .oa-duel-price.red  { color: #E43524; }

.oa-cmp-suite-widget .oa-duel-tag {
  font-size: 0.5rem;
  font-weight: 800;
  padding: 2px 4px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.oa-cmp-suite-widget .oa-duel-tag.green {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

.oa-cmp-suite-widget .oa-duel-tag.slate {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
}

.oa-cmp-suite-widget .oa-master-verdict-bar {
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px solid rgba(203, 213, 225, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.6rem;
}

.oa-cmp-suite-widget .oa-master-verdict-label {
  color: #64748B;
  font-weight: 700;
  white-space: nowrap;
}

.oa-cmp-suite-widget .oa-master-verdict-val {
  color: #0F172A;
  font-weight: 800;
  text-align: right;
}

/* 5. Barra de 5 Pestañas Internas del Comparador */
.oa-cmp-suite-widget .oa-cifras-tabs-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  margin-bottom: 10px;
  background: #F1F5F9;
  padding: 3px;
  border-radius: 9px;
  border: 1px solid #E2E8F0;
}

.oa-cmp-suite-widget .oa-cifras-tab-btn {
  background: transparent;
  border: none;
  padding: 6px 2px;
  font-size: 0.58rem;
  font-weight: 700;
  color: #475569;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
  line-height: 1.08;
  font-family: var(--font-sans);
}

.oa-cmp-suite-widget .oa-cifras-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
}

.oa-cmp-suite-widget .oa-cifras-tab-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.oa-cmp-suite-widget .oa-cifras-tab-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.oa-cmp-suite-widget .oa-cifras-tab-btn:hover {
  color: #0F172A;
  background: rgba(255, 255, 255, 0.55);
}

.oa-cmp-suite-widget .oa-cifras-tab-btn.active {
  background: #1D4ED8;
  color: #FFFFFF;
  font-weight: 800;
  box-shadow: 0 2px 5px rgba(29, 78, 216, 0.25);
}

/* 6. Filas de Comparación Justificadas Izquierda / Centro / Derecha */
.oa-cmp-suite-widget .oa-cifras-ranking-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.oa-cmp-suite-widget .oa-cifras-rank-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  transition: all 0.15s ease;
}

.oa-cmp-suite-widget .oa-var-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
}

.oa-cmp-suite-widget .oa-var-val {
  font-size: 0.67rem;
  font-weight: 800;
  line-height: 1.2;
}

.oa-cmp-suite-widget .oa-var-val.blue {
  color: #1D4ED8;
  text-align: left;
  justify-self: start;
}

.oa-cmp-suite-widget .oa-var-val.red {
  color: #E43524;
  text-align: right;
  justify-self: end;
}

.oa-cmp-suite-widget .oa-var-title-center {
  font-size: 0.58rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 0 2px;
}

.oa-cmp-suite-widget .oa-dual-bar-track {
  width: 100%;
  height: 4px;
  background: #F1F5F9;
  border-radius: 99px;
  overflow: hidden;
  display: flex;
  gap: 2px;
}

.oa-cmp-suite-widget .oa-dual-bar-a {
  height: 100%;
  background: linear-gradient(90deg, #1D4ED8, #3B82F6);
  border-radius: 99px 0 0 99px;
}

.oa-cmp-suite-widget .oa-dual-bar-b {
  height: 100%;
  background: linear-gradient(90deg, #F87171, #E43524);
  border-radius: 0 99px 99px 0;
}

.oa-cmp-suite-widget .oa-var-sub-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 0.57rem;
  color: #64748B;
  font-weight: 600;
}

.oa-cmp-suite-widget .oa-var-sub-row span:first-child { text-align: left; }
.oa-cmp-suite-widget .oa-var-sub-row span:last-child  { text-align: right; }

.oa-cmp-suite-widget .oa-carsized-stage {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
}

.oa-cmp-suite-widget .oa-carsized-canvas {
  position: relative;
  height: 82px;
  border-bottom: 2px solid #94A3B8;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: 4px;
  background-image:
    linear-gradient(to right, rgba(148,163,184,0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148,163,184,0.14) 1px, transparent 1px);
  background-size: 16px 16px;
}

/* 7. Guía de Compra en 3 Pasos */
.oa-cmp-suite-widget .oa-guia-step-box {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-left: 3.5px solid #1D4ED8;
  border-radius: 8px;
  padding: 7px 9px;
  margin-bottom: 7px;
}

.oa-cmp-suite-widget .oa-guia-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}

.oa-cmp-suite-widget .oa-guia-step-badge {
  background: #1D4ED8;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 0.56rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.oa-cmp-suite-widget .oa-guia-step-question {
  font-size: 0.67rem;
  font-weight: 800;
  color: #0F172A;
  flex: 1;
}

.oa-cmp-suite-widget .oa-guia-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.oa-cmp-suite-widget .oa-guia-pill {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 5px;
  padding: 5px 7px;
  font-size: 0.61rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  text-align: left;
  transition: all 0.14s ease;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.oa-cmp-suite-widget .oa-guia-pill:hover {
  border-color: #94A3B8;
  background: #F1F5F9;
}

.oa-cmp-suite-widget .oa-guia-pill.active {
  background: #EFF6FF;
  border-color: #1D4ED8;
  color: #1D4ED8;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px #1D4ED8;
}

.oa-cmp-suite-widget .oa-recs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 5px;
}

.oa-cmp-suite-widget .oa-recs-title {
  font-size: 0.6rem;
  font-weight: 800;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.oa-cmp-suite-widget .oa-recs-counter {
  font-size: 0.58rem;
  font-weight: 800;
  color: #1D4ED8;
  background: #EFF6FF;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #BFDBFE;
}

.oa-cmp-suite-widget .oa-rec-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 7px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  cursor: pointer;
  transition: all 0.14s ease;
}

.oa-cmp-suite-widget .oa-rec-card:hover {
  border-color: #94A3B8;
}

.oa-cmp-suite-widget .oa-rec-card.checked {
  background: #F8FAFC;
  border-color: #1D4ED8;
}

.oa-cmp-suite-widget .oa-rec-check {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid #94A3B8;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 900;
  color: transparent;
  flex-shrink: 0;
  transition: all 0.14s ease;
}

.oa-cmp-suite-widget .oa-rec-card.checked .oa-rec-check {
  background: #1D4ED8;
  border-color: #1D4ED8;
  color: #FFFFFF;
}

.oa-cmp-suite-widget .oa-compare-action-box {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 7px 8px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.oa-cmp-suite-widget .oa-action-primary-btn {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.16s ease;
}

.oa-cmp-suite-widget .oa-action-primary-btn.widget-mode {
  background: #1D4ED8;
  color: #FFFFFF;
  box-shadow: 0 3px 8px rgba(29, 78, 216, 0.25);
}

.oa-cmp-suite-widget .oa-action-primary-btn.cms-mode {
  background: #E43524;
  color: #FFFFFF;
  box-shadow: 0 3px 8px rgba(228, 53, 36, 0.25);
}

.oa-cmp-suite-widget .oa-action-primary-btn.disabled {
  background: #E2E8F0;
  color: #64748B;
  cursor: not-allowed;
}

.oa-cmp-suite-widget .oa-action-secondary-link {
  background: transparent;
  border: none;
  color: #00224D;
  font-size: 0.6rem;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
  text-align: center;
  padding: 2px;
}

/* 8. Footer y Disclaimer Legal */
.oa-cmp-suite-widget .oa-cifras-footer {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}

.oa-cmp-suite-widget .oa-cifras-full-report-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  background-color: rgba(0, 34, 77, 0.05);
  color: #00224D;
  border: 1px solid rgba(0, 34, 77, 0.16);
  border-radius: 7px;
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.oa-cmp-suite-widget .oa-cifras-full-report-btn:hover {
  background-color: #00224D;
  color: #FFFFFF;
}

.oa-cmp-suite-widget .oa-disclaimer-text {
  margin-top: 6px;
  font-size: 0.55rem;
  line-height: 1.35;
  color: #64748B;
  text-align: center;
  font-weight: 500;
}

/* 9. Tabla Multi-Comparador de Página Completa del CMS (hasta 5 vehículos) */
.oa-cms-multi-wrapper {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 14px;
  padding: 18px;
  margin: 16px 0;
  box-shadow: 0 10px 25px -8px rgba(15, 23, 42, 0.08);
}

.oa-cms-multi-wrapper .cms-multi-table {
  width: 100%;
  min-width: 640px;
  table-layout: fixed;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.72rem;
}

.oa-cms-multi-wrapper .cms-multi-table th,
.oa-cms-multi-wrapper .cms-multi-table td {
  border: 1px solid #E2E8F0;
  padding: 9px 8px;
  text-align: center;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oa-cms-multi-wrapper .cms-multi-table th:first-child,
.oa-cms-multi-wrapper .cms-multi-table td:first-child {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  text-align: left;
  font-weight: 800;
  background: #F8FAFC;
  color: #334155;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  overflow: visible !important;
  position: sticky;
  left: 0;
  z-index: 5;
  box-shadow: 2px 0 5px rgba(15, 23, 42, 0.05);
}

.oa-cms-multi-wrapper .cms-multi-table td:first-child .oa-cuota-tooltip-bubble {
  left: 0;
  transform: none;
}

.oa-cms-multi-wrapper .cms-multi-table td:first-child .oa-cuota-tooltip-bubble::after {
  left: 24px;
}

.oa-cms-multi-wrapper .cms-th-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-height: 86px;
}

.oa-cms-multi-wrapper .cms-th-brand {
  font-size: 0.58rem;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}

.oa-cms-multi-wrapper .cms-th-model {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.74rem;
  color: #0F172A;
  line-height: 1.15;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oa-cms-multi-wrapper .cms-th-price {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 900;
  color: #1D4ED8;
  background: #EFF6FF;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid #BFDBFE;
  white-space: nowrap;
}

.oa-cms-multi-wrapper .cms-td-main {
  font-size: 0.73rem;
  font-weight: 800;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.oa-cms-multi-wrapper .cms-td-sub {
  font-size: 0.6rem;
  font-weight: 600;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* TOOLTIP EXPLICATIVO DE CÁLCULO DE CUOTA MENSUAL */
.oa-cuota-tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: help;
}

.oa-cuota-tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #E2E8F0;
  color: #0F172A;
  font-size: 9px;
  font-weight: 900;
  font-style: normal;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}

.oa-cuota-tooltip-wrap:hover .oa-cuota-tooltip-icon,
.oa-cuota-tooltip-wrap:focus-within .oa-cuota-tooltip-icon {
  background: #00224D;
  color: #FFFFFF;
}

.oa-cuota-tooltip-bubble {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  width: 235px;
  background: #0F172A;
  color: #F8FAFC;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.38;
  text-align: left;
  padding: 8px 10px;
  border-radius: 7px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.28);
  z-index: 9999;
  white-space: normal;
  transition: opacity 0.16s ease, visibility 0.16s ease;
}

.oa-cuota-tooltip-bubble strong {
  color: #38BDF8;
  font-weight: 800;
}

.oa-cuota-tooltip-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #0F172A transparent transparent transparent;
}

.oa-cuota-tooltip-wrap:hover .oa-cuota-tooltip-bubble,
.oa-cuota-tooltip-wrap:focus-within .oa-cuota-tooltip-bubble {
  visibility: visible;
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════
 * HISTÓRICO DE PRECIOS — LOOK & FEEL CIFRASBOT OBSERVAUTO (APEXCHARTS)
 * ═══════════════════════════════════════════════════════════════════════ */
.oa-historico-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(9, 42, 99, 0.05);
  padding: 24px 20px;
  margin: 24px 0;
  box-sizing: border-box;
  overflow: visible;
  font-family: 'Inter', sans-serif;
}

.oa-historico-card::before {
  content: '';
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42%;
  height: 42%;
  background-image: url('https://observauto.com/wp-content/uploads/2023/11/Logo-Observauto-800x100-1.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

.oa-historico-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  z-index: 2;
}

.oa-historico-title-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.oa-historico-logo {
  height: 32px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
}

.oa-historico-title {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.oa-historico-subtitle {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: #64748b;
  font-weight: 500;
}

.oa-historico-selector-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  z-index: 100;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.oa-historico-selector-row:focus-within {
  z-index: 1000;
}

.oa-historico-market-btn {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.oa-historico-market-btn.active {
  background: #1f4087;
  color: #ffffff;
  border-color: #1f4087;
  box-shadow: 0 2px 6px rgba(31, 64, 135, 0.25);
}

/* Toggle Switch Fasecolda (Seguro Indemnización) */
.oa-historico-fc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 5px 12px;
  border-radius: 99px;
  transition: all 0.2s ease;
  margin-left: auto;
}

.oa-historico-fc-toggle:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.oa-historico-fc-toggle input {
  display: none;
}

.oa-historico-fc-toggle-switch {
  position: relative;
  width: 30px;
  height: 16px;
  background: #cbd5e1;
  border-radius: 99px;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.oa-historico-fc-toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.oa-historico-fc-toggle input:checked + .oa-historico-fc-toggle-switch {
  background: #1f4087;
}

.oa-historico-fc-toggle input:checked + .oa-historico-fc-toggle-switch::after {
  transform: translateX(14px);
}

.oa-historico-fc-toggle-text {
  font-size: 11.5px;
  font-weight: 700;
  color: #1e293b;
}

/* Selector de Ventana Temporal (1A, 3A, 5A, Todo) */
.oa-historico-time-horizon {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #f1f5f9;
  padding: 3px 5px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}

.oa-time-btn {
  border: none;
  background: transparent;
  color: #475569;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.oa-time-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.7);
}

.oa-time-btn.active {
  background: #1f4087;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 1px 3px rgba(31, 64, 135, 0.25);
}

.oa-historico-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  position: relative;
  z-index: 110;
}

.oa-historico-card .oa-omnisearch-wrap {
  position: relative;
  z-index: 120;
}

.oa-historico-card .oa-omnisearch-dropdown {
  z-index: 99999 !important;
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.28), 0 4px 12px rgba(15, 23, 42, 0.12);
}

.oa-historico-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 99px;
  padding: 4px 10px 4px 9px;
  font-size: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.oa-historico-pill-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.oa-historico-pill-price {
  font-size: 11px;
  font-weight: 800;
  color: #334155;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 6px;
}

.oa-historico-pill-remove {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 0 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.oa-historico-pill-remove:hover {
  color: #ef4444;
}

.oa-historico-max-badge {
  font-size: 11px;
  font-weight: 800;
  color: #047857;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 5px 12px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.oa-historico-kpis {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
  z-index: 5;
}

.oa-historico-kpi-card {
  position: relative;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 14px 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}

.oa-historico-kpi-card-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.oa-historico-kpi-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.oa-historico-kpi-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 6px;
}

.oa-historico-kpi-gap {
  font-size: 10.5px;
  font-weight: 600;
  color: #64748b;
}

.oa-historico-badge-var {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}

.oa-historico-badge-down {
  background: #DCFCE7;
  color: #15803D;
}

.oa-historico-badge-up {
  background: #FEE2E2;
  color: #B91C1C;
}

.oa-historico-badge-equal {
  background: #F1F5F9;
  color: #475569;
}

.oa-historico-chart-container {
  position: relative;
  min-height: 320px;
  z-index: 2;
  margin-bottom: 15px;
}

.oa-historico-reset-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 20;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 16px;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  opacity: 0.75;
}

.oa-historico-reset-btn:hover {
  opacity: 1;
  background: #f1f5f9;
  color: #1f4087;
  border-color: #1f4087;
}

.oa-historico-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
  background: rgba(248, 250, 252, 0.9);
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  z-index: 2;
}

.oa-historico-footer .logo-mock {
  height: 13px;
  width: auto;
}

/* ═══════════════════════════════════════════════════════════════════════
   10. ADAPTABILIDAD RESPONSIVE INTEGRAL (MOBILE, TABLET Y DESKTOP)
   ═══════════════════════════════════════════════════════════════════════ */

/* Tablet y Pantallas Medianas (<= 768px) */
@media (max-width: 768px) {
  .oa-historico-card {
    padding: 20px 16px;
    margin: 16px 0;
    border-radius: 14px;
  }
  
  .oa-historico-header {
    gap: 12px;
  }
  
  .oa-historico-title {
    font-size: 15px;
  }
  
  .oa-historico-subtitle {
    font-size: 11.5px;
  }

  .oa-historico-kpis {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
  }

  .oa-historico-kpi-card {
    padding: 10px 10px 8px;
  }

  .oa-historico-kpi-val {
    font-size: 14.5px;
  }

  .oa-historico-chart-container {
    min-height: 290px;
  }
}

/* Smartphones y Móviles Estándar (<= 540px) */
@media (max-width: 540px) {
  .oa-historico-card {
    padding: 14px 10px;
    border-radius: 12px;
  }

  .oa-historico-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-right: 36px;
  }

  .oa-historico-reset-btn {
    top: 14px;
    right: 10px;
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .oa-historico-title {
    font-size: 14px;
    line-height: 1.3;
  }

  .oa-historico-subtitle {
    font-size: 11px;
    line-height: 1.35;
  }

  .oa-historico-selector-row {
    padding: 8px 8px;
    gap: 8px;
  }

  .oa-historico-market-btn {
    padding: 5px 9px;
    font-size: 11px;
    flex: 1 1 auto;
    text-align: center;
  }

  .oa-historico-fc-toggle {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
    padding: 6px 10px;
    box-sizing: border-box;
  }

  .oa-historico-pills-row {
    gap: 6px;
  }

  .oa-historico-pill {
    padding: 3px 8px;
    font-size: 11px;
  }

  .oa-historico-card .oa-omnisearch-wrap {
    width: 100% !important;
    max-width: 100%;
  }

  .oa-historico-card .oa-omnisearch-dropdown {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }

  .oa-historico-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .oa-historico-kpis:has(.oa-historico-kpi-card:only-child) {
    grid-template-columns: 1fr;
  }

  .oa-historico-kpi-card {
    padding: 9px 7px 7px;
    border-radius: 9px;
  }

  .oa-historico-kpi-title {
    font-size: 11px;
    gap: 5px;
  }

  .oa-historico-kpi-title img {
    width: 15px !important;
    height: 15px !important;
  }

  .oa-historico-kpi-val {
    font-size: 13.5px;
    margin-bottom: 3px;
  }

  .oa-historico-badge-var {
    font-size: 9.5px;
    padding: 1px 5px;
  }

  .oa-historico-kpi-gap {
    font-size: 9.5px;
  }

  .oa-historico-chart-container {
    min-height: 260px;
  }

  .oa-historico-footer {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    font-size: 10px;
    padding: 8px 8px;
  }

  /* Comparador Dual / Suite en Pantallas Pequeñas */
  .oa-cmp-suite-widget .oa-master-title {
    font-size: 11px;
  }

  .oa-cmp-suite-widget .oa-duel-price {
    font-size: 13px;
  }

  .oa-cmp-suite-widget .oa-omnisearch-wrap {
    width: 100% !important;
  }

  .oa-cmp-suite-widget .oa-cifras-tab-text {
    font-size: 10.5px;
  }
}
