/* ============================================
   LA BRÚJULA — Radar público y zona privada
   Construido sobre los tokens de variables.css
   ============================================ */

/* ── Cabecera de sección ─────────────────────────────── */

.section-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.section-intro-text h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.section-intro-text h2 svg {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
}

.section-intro-text p {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  max-width: 62ch;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  white-space: nowrap;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--success);
  animation: pulseSuccess 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── Barra de filtros ────────────────────────────────── */

.radar-toolbar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--glass-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
}

.radar-filters {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}

.radar-filters .form-input {
  height: 36px;
  width: auto;
  min-width: 150px;
  font-size: var(--text-sm);
}

.radar-filters .form-select {
  padding-right: var(--space-10);
}

.radar-search {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.radar-search svg {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.radar-search input {
  width: 100%;
  height: 36px;
  /* Mismo relleno a ambos lados para que el texto quede centrado de verdad */
  padding: 0 var(--space-9);
  background: var(--bg-primary);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-sm);
  text-align: center;
  transition: all var(--transition-fast);
}

.radar-search input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-glow);
}

/* ── Chips de empresa ────────────────────────────────── */

.chip-scroller {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scrollbar-width: thin;
  /* Difuminado en el borde derecho: avisa de que hay más para desplazar */
  mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent 100%);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--glass-bg);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.chip:hover {
  background: var(--glass-bg-hover);
  border-color: var(--border-secondary);
  color: var(--text-primary);
}

.chip.active {
  background: rgba(99, 102, 241, 0.14);
  border-color: var(--border-active);
  color: var(--accent-primary-hover);
}

.chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: var(--weight-bold);
  color: var(--text-tertiary);
}

.chip.active .chip-count {
  background: var(--accent-primary);
  color: white;
}

/* ── Timeline de insights ────────────────────────────── */

.timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.timeline-day-head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.timeline-day-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}

.timeline-day-label svg {
  width: 14px;
  height: 14px;
  color: var(--text-tertiary);
}

.timeline-day-label.is-today {
  background: rgba(99, 102, 241, 0.14);
  border-color: var(--border-active);
  color: var(--accent-primary-hover);
}

.timeline-day-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-secondary), transparent);
}

.timeline-day-count {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* ── Tarjeta de insight ──────────────────────────────── */

.insight {
  position: relative;
  display: grid;
  grid-template-columns: 4px 1fr;
  background: var(--glass-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.insight:hover {
  border-color: var(--border-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.insight-accent {
  background: var(--insight-color, var(--neutral));
}

.insight-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}

/* Fila superior: valor + precio */
.insight-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.insight-identity {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.insight-ticker {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.insight-ticker:hover {
  border-color: var(--border-active);
  color: var(--accent-primary-hover);
}

.insight-names {
  min-width: 0;
}

.insight-company {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  cursor: pointer;
  transition: color var(--transition-fast);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-company:hover {
  color: var(--accent-primary-hover);
}

.insight-meta {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.insight-meta .dot-sep::before {
  content: '·';
  margin-right: var(--space-2);
  color: var(--text-muted);
}

/* Precio actual en vivo */
.insight-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.insight-price-value {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px var(--space-3);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  white-space: nowrap;
  border: 1.5px solid;
}

.insight-price-value.up {
  color: var(--success);
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  animation: pulseSuccess 2.5s ease-in-out infinite;
}

.insight-price-value.down {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
  animation: pulseDanger 2.5s ease-in-out infinite;
}

.insight-price-value.flat {
  color: var(--text-secondary);
  background: rgba(100, 116, 139, 0.1);
  border-color: rgba(100, 116, 139, 0.25);
}

.insight-price-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-muted);
}

/* Analista */
.insight-analyst {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.insight-analyst-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.insight-analyst-name:hover {
  color: var(--accent-primary-hover);
}

.insight-analyst-org {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* Texto */
.insight-summary {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

.insight-quote {
  position: relative;
  padding: var(--space-3) var(--space-4);
  padding-left: var(--space-5);
  background: var(--glass-bg);
  border-left: 3px solid var(--insight-color, var(--accent-primary));
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-sm);
  font-style: italic;
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

/* Niveles operativos */
.insight-levels {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.level {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-2) var(--space-4);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  min-width: 96px;
}

.level-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-muted);
  white-space: nowrap;
}

.level-value {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  white-space: nowrap;
}

.level-entry { border-color: rgba(99, 102, 241, 0.3); }
.level-entry .level-value { color: var(--accent-primary-hover); }

.level-stop { border-color: rgba(239, 68, 68, 0.3); }
.level-stop .level-value { color: var(--danger); }

.level-target { border-color: rgba(16, 185, 129, 0.3); }
.level-target .level-value { color: var(--success); }

.level-weight { border-color: rgba(245, 158, 11, 0.3); }
.level-weight .level-value { color: var(--warning); }

.level-note {
  font-size: 10px;
  color: var(--text-tertiary);
  font-style: italic;
}

/* Pie */
.insight-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-primary);
  flex-wrap: wrap;
}

.insight-tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.insight-source {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.insight-source svg {
  width: 14px;
  height: 14px;
}

.insight-source a {
  color: var(--text-tertiary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.insight-source a:hover { color: var(--accent-primary-hover); }

/* Badge de sesgo */
.sentiment {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 3px var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid;
}

.sentiment-arrow {
  font-size: 9px;
  letter-spacing: -1px;
}

/* ── Distintivo de seguimiento ───────────────────────── */

.tracking-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  border: 1px solid;
  white-space: nowrap;
}

.tracking-badge svg { width: 12px; height: 12px; }

.tracking-badge.is-tracked {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.35);
  color: var(--accent-primary-hover);
  cursor: pointer;
}

.tracking-badge.is-tracked:hover {
  background: rgba(99, 102, 241, 0.2);
}

.tracking-badge.is-info {
  background: var(--glass-bg);
  border-color: var(--border-primary);
  color: var(--text-muted);
  cursor: help;
}

/* ── Reparto seguimiento / información ───────────────── */

.coverage-note {
  margin-bottom: var(--space-6);
}

.coverage-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
}

.coverage-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: var(--glass-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: all var(--transition-fast);
}

.coverage-item.is-tracked {
  border-color: rgba(99, 102, 241, 0.3);
  cursor: pointer;
}

.coverage-item.is-tracked:hover {
  border-color: var(--border-active);
  background: rgba(99, 102, 241, 0.08);
}

.coverage-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.coverage-icon svg { width: 16px; height: 16px; }

.is-tracked .coverage-icon {
  background: rgba(99, 102, 241, 0.14);
  color: var(--accent-primary);
}

.is-info .coverage-icon {
  background: var(--neutral-soft);
  color: var(--text-tertiary);
}

.coverage-count {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  line-height: 1;
  color: var(--text-primary);
}

.coverage-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-muted);
  margin-top: 3px;
  white-space: nowrap;
}

/* ── Tira del radar en el panel principal ────────────── */

.radar-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
  padding: var(--space-5) var(--space-6);
}

.radar-strip-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--glass-bg);
  border: 1px solid var(--border-primary);
  border-left: 3px solid var(--insight-color, var(--neutral));
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 0;
}

.radar-strip-item:hover {
  background: var(--glass-bg-hover);
  border-color: var(--border-secondary);
  border-left-color: var(--insight-color, var(--neutral));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.radar-strip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.radar-strip-ticker {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

.radar-strip-company {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radar-strip-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radar-strip-foot {
  margin-top: auto;
  padding-top: var(--space-1);
}

/* ── Ficha de empresa (consenso) ─────────────────────── */

.company-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-8);
  padding: var(--space-6);
  background: var(--glass-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.company-hero-main { min-width: 240px; flex: 1; }

.company-hero-ticker {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--accent-primary-hover);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-1);
}

.company-hero-name {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-2);
}

.company-hero-sub {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
}

.company-hero-stats {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: 2px;
}

.hero-stat-value {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

/* Medidor de consenso */
.consensus {
  min-width: 260px;
  flex-shrink: 0;
}

.consensus-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.consensus-title {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-muted);
}

.consensus-verdict {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
}

.consensus-bar {
  display: flex;
  height: 10px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--bg-tertiary);
  margin-bottom: var(--space-3);
}

.consensus-seg { height: 100%; transition: width var(--transition-slow); }

.consensus-legend {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.consensus-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.consensus-swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.consensus-row-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-weight: var(--weight-semibold);
  color: var(--text-tertiary);
}

/* ── Zona privada: muro de pago ──────────────────────── */

.paywall {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.paywall-pitch h2 {
  font-size: var(--text-4xl);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
}

.paywall-pitch h2 em {
  font-style: normal;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.paywall-lead {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.feature {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg { width: 18px; height: 18px; }

.feature-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: 2px;
}

.feature-text {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  line-height: var(--leading-normal);
}

/* Tarjeta de plan */
.plan-card {
  position: relative;
  background: var(--glass-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  box-shadow: var(--shadow-glow-accent);
  position: sticky;
  top: calc(var(--header-height) + var(--space-6));
}

.plan-badge {
  position: absolute;
  top: calc(var(--space-4) * -1);
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-1) var(--space-4);
  background: var(--accent-gradient);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.plan-amount {
  font-family: var(--font-mono);
  font-size: var(--text-5xl);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
}

.plan-period {
  font-size: var(--text-base);
  color: var(--text-tertiary);
}

.plan-note {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-bottom: var(--space-6);
}

.plan-includes {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-primary);
}

.plan-include {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.plan-include svg {
  width: 16px;
  height: 16px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

.plan-legal {
  margin-top: var(--space-4);
  font-size: 11px;
  line-height: var(--leading-normal);
  color: var(--text-muted);
  text-align: center;
}

/* ── Zona privada: gestor de cartera ─────────────────── */

.holdings {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.holding {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--glass-bg);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.holding:hover {
  border-color: var(--border-secondary);
  background: var(--glass-bg-hover);
}

.holding-ticker {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  min-width: 72px;
}

.holding-company {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.holding-news {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.14);
  color: var(--accent-primary-hover);
  font-size: 10px;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  white-space: nowrap;
}

.ticker-suggest {
  position: relative;
}

.suggest-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-dropdown);
  padding: var(--space-1);
}

.suggest-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
}

.suggest-item:hover {
  background: var(--glass-bg);
  color: var(--text-primary);
}

.suggest-item strong {
  font-family: var(--font-mono);
  color: var(--text-primary);
  min-width: 64px;
}

/* Interruptor con etiqueta a su lado */
.toggle-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

.toggle-row .toggle {
  flex-shrink: 0;
  margin-top: 1px;
}

.toggle-row:hover { color: var(--text-primary); }

/* Aviso de modo demostración */
.demo-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--warning-soft);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

.demo-banner svg {
  width: 18px;
  height: 18px;
  color: var(--warning);
  flex-shrink: 0;
  margin-top: 1px;
}

.demo-banner strong { color: var(--warning); }

/* ── Responsive ──────────────────────────────────────── */

/* Tablet grande / portátil pequeño */
@media (max-width: 1024px) {
  .paywall { grid-template-columns: 1fr; }
  .plan-card { position: static; }
  .section-intro { gap: var(--space-4); }
  .radar-strip { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

/* Tablet */
@media (max-width: 900px) {
  .company-hero { flex-direction: column; gap: var(--space-6); }
  .consensus { min-width: 0; width: 100%; }
  .company-hero-name { font-size: var(--text-2xl); }
  .radar-filters .form-input { min-width: 0; flex: 1 1 140px; }
  .radar-search { flex: 1 1 100%; order: -1; }
}

/* Móvil */
@media (max-width: 768px) {
  .insight-top { flex-direction: column; align-items: stretch; gap: var(--space-3); }
  .insight-price { align-items: flex-start; }
  .insight-body { padding: var(--space-4); gap: var(--space-3); }

  /* Los niveles operativos, en rejilla para que no se desborden */
  .insight-levels { display: grid; grid-template-columns: repeat(2, 1fr); }
  .level { min-width: 0; }

  .insight-analyst { flex-wrap: wrap; }
  .insight-analyst > div:last-child { width: 100%; justify-content: flex-start; margin-left: 0; }

  .insight-foot { flex-direction: column; align-items: flex-start; gap: var(--space-2); }

  .company-hero { padding: var(--space-5); }
  .company-hero-stats { gap: var(--space-4); }

  .radar-toolbar { padding: var(--space-4); gap: var(--space-3); }

  .holding {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      'ticker   actions'
      'company  actions'
      'news     actions';
    row-gap: var(--space-1);
  }
  .holding-ticker { grid-area: ticker; }
  .holding-company { grid-area: company; white-space: normal; }
  .holding-news, .holding > span:nth-child(3) { grid-area: news; justify-self: start; }

  .paywall-pitch h2 { font-size: var(--text-3xl); }
  .paywall { gap: var(--space-6); }
  .plan-card { padding: var(--space-6) var(--space-5); }
  .plan-amount { font-size: var(--text-4xl); }

  .coverage-split { grid-template-columns: 1fr 1fr; }
  .coverage-item { padding: var(--space-3); }
  .coverage-count { font-size: var(--text-lg); }
}

/* Móvil estrecho */
@media (max-width: 480px) {
  .section-intro-text h2 { font-size: var(--text-xl); }
  .live-pill { font-size: 10px; padding: var(--space-2) var(--space-3); }

  /* Los desplegables a ancho completo: partidos en dos, el texto se corta */
  .radar-filters .form-input { flex: 1 1 100%; }

  .insight-identity { flex-wrap: wrap; gap: var(--space-2); }
  .insight-company { white-space: normal; }
  .insight-levels { grid-template-columns: 1fr; }
  .insight-price-value { font-size: var(--text-base); }

  .timeline-day-label { font-size: 10px; padding: var(--space-1) var(--space-3); }
  .timeline-day-count { display: none; }

  .company-hero-name { font-size: var(--text-xl); }
  .company-hero-stats { gap: var(--space-3); }
  .hero-stat-value { font-size: var(--text-base); }

  .radar-strip { grid-template-columns: 1fr; }
  .coverage-split { grid-template-columns: 1fr; }

  .paywall-pitch h2 { font-size: var(--text-2xl); }
  .paywall-lead { font-size: var(--text-base); }
  .feature-icon { width: 30px; height: 30px; }
  .feature-icon svg { width: 15px; height: 15px; }
}
