/**
 * WIYU Voice of Customer — Tema específico de vertical
 * Acento: Ámbar #D97706 (NPS · CSAT · CES · SERNAC)
 */
:root {
  --accent:       #D97706;
  --accent-dark:  #B45309;
  --accent-soft:  #FFFBEB;
  --accent-glow:  rgba(217,119,6,.12);
  --accent-text:  #D97706;
  --border-brand: rgba(217,119,6,.28);
  --bg-sidebar:   #FAFAF8;
}
.view { display: none; min-height: 100vh; }
.view.active { display: flex; }
#viewDashboard { flex-direction: row; }
#viewDetail    { flex-direction: column; background: var(--bg-soft); }

/* Topic clouds (exclusivo VoC) */
.topics-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
@media(max-width:900px) { .topics-row { grid-template-columns: 1fr; } }
.topics-cloud { display: flex; flex-wrap: wrap; gap: 8px; min-height: 60px; }
.topic-tag {
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 20px;
  cursor: default; transition: transform .18s, box-shadow .18s;
  border: 1px solid transparent;
}
.topic-tag:hover { transform: scale(1.06); box-shadow: var(--shadow-sm); }
.topic-tag.neg { background: var(--red-bg);    color: var(--red);    border-color: rgba(220,38,38,.2); }
.topic-tag.pos { background: var(--green-bg);  color: var(--green);  border-color: rgba(22,163,74,.2); }
.topic-tag.neutral { background: var(--bg-soft); color: var(--text-2); border-color: var(--border); }

/* NPS badge en detalle */
.detail-nps-row { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.nps-badge { font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 20px; }
.nps-badge.promoter  { background: var(--green-bg);  color: var(--green);  border: 1px solid rgba(22,163,74,.25); }
.nps-badge.passive   { background: var(--yellow-bg); color: var(--yellow); border: 1px solid rgba(202,138,4,.25); }
.nps-badge.detractor { background: var(--red-bg);    color: var(--red);    border: 1px solid rgba(220,38,38,.25); }
.detail-temas { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

/* Indicators login */
.login-indicators { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 16px 0; }
.indicator-item { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; color: var(--text-3); }
.indicator-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.indicator-dot.telco   { background: #2563EB; }
.indicator-dot.retail  { background: #059669; }
.indicator-dot.banca   { background: #D97706; }
.indicator-dot.seguros { background: #9333EA; }
.indicator-dot.sernac  { background: var(--red); }

/* Industria tag */
.industria-tag { font-size: 10px; font-weight: 700; padding: 2px 9px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(217,119,6,.2); white-space: nowrap; }
.tipo-badge { font-size: 11px; padding: 3px 8px; border-radius: 8px; background: var(--bg-soft); color: var(--text-2); border: 1px solid var(--border); }
.nps-pill { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.nps-pill.P { background: var(--green-bg);  color: var(--green);  border: 1px solid rgba(22,163,74,.25); }
.nps-pill.N { background: var(--yellow-bg); color: var(--yellow); border: 1px solid rgba(202,138,4,.25); }
.nps-pill.D { background: var(--red-bg);    color: var(--red);    border: 1px solid rgba(220,38,38,.25); }

.chart-alerts-row { display: grid; grid-template-columns: 1fr 320px; gap: 16px; margin-bottom: 24px; }
@media(max-width:1100px) { .chart-alerts-row { grid-template-columns: 1fr; } }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 24px 32px 56px; max-width: 1320px; margin: 0 auto; }
@media(max-width:900px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-right { display: flex; flex-direction: column; gap: 18px; }
canvas#trendChart { width: 100% !important; }
