@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Apple Glass Dark Theme */
  --bg-gradient: radial-gradient(circle at top right, #1a1525, #000000 70%);
  --surface: rgba(30, 30, 35, 0.4);
  --surface-2: rgba(45, 45, 55, 0.5);
  --surface-solid: #1c1c1e;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.7);
  --text-3: rgba(255, 255, 255, 0.5);
  --accent: #ff453a;
  --accent-light: rgba(255, 69, 58, 0.15);
  --green: #30d158;
  --green-light: rgba(48, 209, 88, 0.15);
  --red: #ff453a;
  --red-light: rgba(255, 69, 58, 0.15);
  --blue: #0a84ff;
  --blue-light: rgba(10, 132, 255, 0.15);
  --yellow: #ffd60a;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --blur: blur(20px);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

/* Decoración de fondo para Glassmorphism profundo */
body::before {
  content: "";
  position: fixed;
  top: -10%;
  left: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(255, 69, 58, 0.15), transparent 60%);
  z-index: -1;
  border-radius: 50%;
}

body::after {
  content: "";
  position: fixed;
  bottom: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.1), transparent 60%);
  z-index: -1;
  border-radius: 50%;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

a { color: inherit; text-decoration: none; }

/* ===== TOP BAR ===== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 36px; height: 36px; background: linear-gradient(135deg, var(--accent), #ff7a6b); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 16px; box-shadow: 0 4px 12px rgba(255, 69, 58, 0.4); }
.brand-name { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.brand-name span { color: var(--accent); }
.brand-sub { font-size: 12px; color: var(--text-3); font-weight: 500; }

.sync-pill { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--surface-2); padding: 6px 12px; border-radius: 20px; border: 1px solid var(--border); }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

/* ===== FILTER BAR ===== */
.filterbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 32px;
  background: rgba(25, 25, 25, 0.4);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-3); letter-spacing: 0.05em; }
.filter-select, .filter-date {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text);
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  color-scheme: dark;
}
.filter-select:hover, .filter-date:hover { border-color: var(--border-light); background: rgba(0,0,0,0.5); }
.filter-spacer { flex: 1; }

.btn { padding: 8px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; letter-spacing: -0.01em; }
.btn:active { transform: scale(0.96); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #ff6b5e); color: white; border: none; box-shadow: 0 4px 12px rgba(255, 69, 58, 0.3); }
.btn-primary:hover { box-shadow: 0 6px 16px rgba(255, 69, 58, 0.5); }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--border-light); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); padding: 6px 12px; border-radius: var(--radius-sm); font-size: 12px; }
.btn-ghost:hover { background: var(--surface-2); }

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 8px;
  padding: 16px 32px 0;
  background: transparent;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.tab:hover { color: var(--text-2); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }

/* ===== MAIN & LAYOUT ===== */
main { padding: 32px; max-width: 1400px; margin: 0 auto; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.stack-md { display: flex; flex-direction: column; gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }

/* ===== GLASS CARDS ===== */
.card, .kpi-card, .chart-card {
  background: var(--surface);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { border-color: var(--border-light); box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.card-title { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.card-meta { font-size: 12px; color: var(--accent); font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.card-meta:hover { opacity: 0.8; }

/* ===== KPIs ===== */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.kpi {
  padding: 24px;
  background: var(--surface);
  backdrop-filter: var(--blur);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.kpi::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--accent), transparent); opacity: 0.5;
}
.kpi-label { font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--text-3); letter-spacing: 0.05em; margin-bottom: 8px; }
.kpi-value { font-size: 36px; font-weight: 800; color: var(--text); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 4px; }
.kpi-sub { font-size: 13px; color: var(--text-2); }
.kpi-delta { display: inline-block; padding: 4px 8px; font-size: 12px; font-weight: 700; color: var(--green); background: var(--green-light); border-radius: 6px; margin-top: 12px; align-self: flex-start; }

/* ===== SECTION HEAD ===== */
.section-head { margin-bottom: 8px; }
.eyebrow { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.section-title { font-size: 32px; font-weight: 800; color: var(--text); letter-spacing: -0.03em; }
.section-title em { font-style: normal; color: transparent; background: linear-gradient(135deg, #fff, var(--text-3)); -webkit-background-clip: text; }

/* ===== PREMIUM TOP LIST (BAR CHARTS) ===== */
.top-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; cursor: pointer; padding: 12px; border-radius: var(--radius-sm); transition: background 0.2s; border: 1px solid transparent; }
.top-row:hover { background: var(--surface-2); border-color: var(--border); }
.top-rank { width: 32px; height: 32px; background: rgba(255,255,255,0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--text-2); flex-shrink: 0; border: 1px solid var(--border); }
.top-name { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.top-bar-wrap { display: flex; align-items: center; gap: 12px; }
.top-count { font-size: 14px; font-weight: 800; width: 40px; text-align: right; }
.bar-track { flex: 1; height: 8px; background: rgba(0,0,0,0.4); border-radius: 4px; overflow: hidden; display: flex; }
.bar-seg { height: 100%; transition: width 1s cubic-bezier(0.4, 0, 0.2, 1); }
.bar-pos { background: linear-gradient(90deg, #30d158, #34c759); }
.bar-neg { background: linear-gradient(90deg, #ff453a, #ff3b30); }
.bar-neu { background: var(--border-light); }

/* ===== DRILLDOWN MODAL ===== */
.drilldown-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn 0.3s ease; }
.drilldown-modal { background: var(--surface-solid); border: 1px solid var(--border-light); border-radius: 24px; width: 100%; max-width: 720px; max-height: 90vh; overflow-y: auto; box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5); animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.drilldown-head { display: flex; align-items: center; justify-content: space-between; padding: 24px 32px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.drilldown-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.drilldown-close { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-2); transition: all 0.2s; }
.drilldown-close:hover { background: rgba(255,255,255,0.1); color: white; }
.drilldown-body { padding: 32px; }
.drill-stats { display: flex; gap: 16px; margin-bottom: 32px; }
.drill-stat { flex: 1; text-align: center; padding: 20px; border-radius: var(--radius); cursor: default; background: var(--surface-2); border: 1px solid var(--border); }
.drill-stat-value { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 4px; }
.drill-stat.positive .drill-stat-value { color: var(--green); }
.drill-stat.negative .drill-stat-value { color: var(--red); }
.drill-stat.neutral .drill-stat-value { color: var(--text-2); }
.drill-stat-label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-3); letter-spacing: 0.05em; }

.drilldown-ai-btn { width: 100%; padding: 16px; background: linear-gradient(135deg, var(--accent), #ff6b5e); color: white; font-size: 15px; font-weight: 700; border-radius: var(--radius-sm); margin-top: 8px; border: none; cursor: pointer; box-shadow: 0 4px 12px rgba(255, 69, 58, 0.3); transition: all 0.2s; display: flex; justify-content: center; align-items: center; gap: 8px; }
.drilldown-ai-btn:hover { box-shadow: 0 6px 16px rgba(255, 69, 58, 0.5); transform: translateY(-1px); }
.drilldown-ai-result { margin-top: 24px; padding: 24px; background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: var(--radius); }

/* ===== ALERTS ===== */
.alert { padding: 20px; border-radius: var(--radius-sm); margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; background: rgba(255, 69, 58, 0.1); border: 1px solid rgba(255, 69, 58, 0.2); }
.alert-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.alert-tag { font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 6px; background: var(--red); color: white; text-transform: uppercase; letter-spacing: 0.05em; }
.alert-title { font-size: 15px; font-weight: 700; color: var(--text); }
.alert-detail { font-size: 14px; color: var(--text-2); }

/* ===== WORD CLOUD & CHARTS ===== */
.wordcloud { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; padding: 20px; min-height: 200px; }
.word { font-weight: 800; color: var(--text); transition: all 0.3s ease; cursor: default; }
.word:hover { color: var(--accent); transform: scale(1.1); text-shadow: 0 0 16px var(--accent); }
.word-xl { font-size: 32px; } .word-lg { font-size: 24px; } .word-md { font-size: 18px; } .word-sm { font-size: 14px; } .word-xs { font-size: 12px; color: var(--text-3); }

/* ===== NEWS ===== */
.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-item { display: flex; gap: 24px; padding: 24px; background: var(--surface); backdrop-filter: var(--blur); border: 1px solid var(--border); border-radius: var(--radius); transition: transform 0.2s; }
.news-item:hover { border-color: var(--border-light); transform: translateY(-2px); }
.news-meta-col { width: 140px; flex-shrink: 0; }
.news-src { font-weight: 800; font-size: 13px; color: var(--text); margin-bottom: 4px; }
.news-when, .news-cat { font-size: 12px; color: var(--text-3); font-weight: 500; }
.news-hot-dot { display: inline-block; padding: 4px 8px; background: rgba(255, 69, 58, 0.2); color: var(--red); font-size: 10px; font-weight: 800; border-radius: 6px; margin-top: 8px; border: 1px solid rgba(255, 69, 58, 0.3); }
.news-body { flex: 1; }
.news-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.news-summary { font-size: 14px; color: var(--text-2); margin-bottom: 16px; line-height: 1.6; }
.news-why-hot { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; background: rgba(255, 255, 255, 0.03); padding: 12px 16px; border-radius: var(--radius-sm); color: var(--text); font-weight: 500; border: 1px solid var(--border); }
.news-why-hot .news-hot-dot { margin-top: 0; }

/* ===== TRENDS & COMPETITORS ===== */
.trend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.trend-card { background: var(--surface); backdrop-filter: var(--blur); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.trend-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.4); border-color: var(--border-light); }
.trend-media { height: 180px; background: #000; position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; }
.trend-media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); }
.trend-palette { display: flex; height: 6px; width: 80px; border-radius: 3px; overflow: hidden; margin-bottom: 12px; position: relative; z-index: 2; }
.trend-palette div { flex: 1; }
.trend-fmt-badge, .trend-platform-badge { position: absolute; top: 16px; font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,0.2); backdrop-filter: blur(10px); color: white; letter-spacing: 0.05em; }
.trend-fmt-badge { left: 16px; }
.trend-platform-badge { right: 16px; }
.trend-engagement { display: flex; gap: 16px; font-size: 12px; font-weight: 700; color: white; position: relative; z-index: 2; }
.trend-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.trend-brand-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.trend-brand { font-weight: 800; font-size: 14px; color: var(--text); }
.trend-when { font-size: 12px; color: var(--text-3); }
.trend-caption { font-size: 14px; color: var(--text-2); margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
.trend-why { margin-top: auto; font-size: 13px; background: rgba(10, 132, 255, 0.1); padding: 16px; border-radius: var(--radius-sm); border-left: 3px solid var(--blue); color: var(--text); }
.trend-why-label, .idea-why-label { display: block; font-size: 10px; font-weight: 800; color: var(--blue); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }

/* ===== IDEAS ===== */
.idea-card { background: var(--surface); backdrop-filter: var(--blur); border: 1px solid var(--border); padding: 24px; border-radius: var(--radius); display: grid; gap: 16px; transition: transform 0.2s; }
.idea-card:hover { transform: translateY(-2px); border-color: var(--border-light); }
.idea-weight { display: flex; align-items: center; gap: 16px; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; color: var(--text-3); }
.weight-bar { flex: 1; height: 6px; background: rgba(0,0,0,0.5); border-radius: 3px; overflow: hidden; }
.weight-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #ff7a6b); }
.idea-hook { font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; line-height: 1.3; }
.idea-body { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.idea-why { font-size: 13px; background: rgba(255,255,255,0.03); padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.idea-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--border); }
.tag { font-size: 11px; font-weight: 700; padding: 6px 10px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 6px; color: var(--text-2); }
.idea-fmt { font-size: 12px; font-weight: 800; color: var(--accent); }

/* ===== WEEKLY INSIGHTS ===== */
.weekly { display: flex; gap: 32px; padding: 32px; background: var(--surface); backdrop-filter: var(--blur); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 24px; }
.weekly-num { font-size: 48px; font-weight: 800; color: transparent; background: linear-gradient(135deg, var(--accent), #ff7a6b); -webkit-background-clip: text; line-height: 1; }
.weekly-num-label { font-size: 11px; font-weight: 800; color: var(--text-3); text-transform: uppercase; margin-top: 8px; letter-spacing: 0.05em; }
.weekly-title { font-size: 20px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.02em; }
.weekly-body { font-size: 15px; color: var(--text-2); margin-bottom: 24px; line-height: 1.6; }
.weekly-action { background: rgba(48, 209, 88, 0.1); padding: 16px; border-radius: var(--radius-sm); border: 1px solid rgba(48, 209, 88, 0.2); margin-bottom: 12px; }
.weekly-action-label { font-size: 11px; font-weight: 800; color: var(--green); text-transform: uppercase; margin-bottom: 6px; letter-spacing: 0.05em; }
.weekly-action-text { font-size: 14px; font-weight: 600; color: var(--text); }
.small-caps { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-3); letter-spacing: 0.05em; }

/* ===== CHAT IA (Apple Glass Style) ===== */
.chat-fab { position: fixed; bottom: 32px; right: 32px; width: 64px; height: 64px; border-radius: 32px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.2); color: white; font-size: 28px; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 32px rgba(0,0,0,0.3); z-index: 100; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); cursor: pointer; }
.chat-fab:hover { transform: scale(1.05) translateY(-4px); background: rgba(255, 255, 255, 0.15); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.chat-panel { position: fixed; bottom: 110px; right: 32px; width: 400px; max-height: calc(100vh - 150px); height: 650px; background: rgba(30, 30, 35, 0.6); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); border-radius: 24px; box-shadow: 0 24px 64px rgba(0,0,0,0.5); display: flex; flex-direction: column; z-index: 100; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.chat-head { padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.2); }
.chat-head-title { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.chat-head-title::before { content: "✨"; }
.chat-head-sub { font-size: 12px; color: var(--text-3); font-weight: 500; margin-top: 2px; }
.chat-body { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.chat-msg { display: flex; flex-direction: column; gap: 6px; max-width: 85%; animation: fadeIn 0.3s ease; }
.chat-msg-user { align-self: flex-end; }
.chat-msg-user .chat-msg-role { text-align: right; display: none; }
.chat-msg-user .chat-msg-txt { background: linear-gradient(135deg, var(--accent), #ff6b5e); color: white; border-radius: 18px 18px 4px 18px; box-shadow: 0 4px 12px rgba(255, 69, 58, 0.2); }
.chat-msg-assistant { align-self: flex-start; }
.chat-msg-assistant .chat-msg-txt { background: rgba(255,255,255,0.1); color: var(--text); border-radius: 18px 18px 18px 4px; border: 1px solid rgba(255,255,255,0.05); }
.chat-msg-role { font-size: 11px; font-weight: 700; color: var(--text-3); letter-spacing: 0.05em; text-transform: uppercase; margin-left: 4px; }
.chat-msg-txt { padding: 12px 16px; font-size: 14px; line-height: 1.5; }
.chat-suggestions { padding: 16px; display: flex; gap: 8px; overflow-x: auto; background: transparent; scrollbar-width: none; }
.chat-suggestions::-webkit-scrollbar { display: none; }
.chat-suggestion { white-space: nowrap; font-size: 12px; font-weight: 600; padding: 8px 16px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; cursor: pointer; color: var(--text-2); transition: all 0.2s; }
.chat-suggestion:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.chat-input-wrap { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.05); display: flex; gap: 12px; background: rgba(0,0,0,0.2); align-items: center; }
.chat-input { flex: 1; padding: 12px 16px; border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; font-size: 14px; font-family: inherit; background: rgba(0,0,0,0.3); color: var(--text); outline: none; transition: border-color 0.2s; }
.chat-input:focus { border-color: var(--text-3); background: rgba(0,0,0,0.5); }
.chat-send { width: 40px; height: 40px; border-radius: 20px; background: var(--accent); color: white; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; transition: all 0.2s; border: none; flex-shrink: 0; box-shadow: 0 4px 12px rgba(255, 69, 58, 0.3); }
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.chat-loading { display: flex; gap: 6px; padding: 8px 4px; }
.chat-loading span { width: 6px; height: 6px; background: var(--text-3); border-radius: 50%; animation: chatLoad 1.4s infinite both; }
.chat-loading span:nth-child(1) { animation-delay: -0.32s; }
.chat-loading span:nth-child(2) { animation-delay: -0.16s; }

/* UTILS & ANIMATIONS */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes chatLoad { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%); background-size: 400px 100%; animation: shimmer 1.5s infinite linear; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: -200px 0; } 100% { background-position: 200px 0; } }

/* SCROLLBAR PARA DARK THEME */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

/* Responsive */
@media (max-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr; }
  .chat-panel { width: calc(100vw - 48px); right: 24px; bottom: 100px; }
}
