:root {
  --white: #ffffff;
  --bg-soft: #f5f8fb;
  --bg-soft-2: #eef2f7;
  --navy-950: #070d1a;
  --navy-900: #0b1526;
  --navy-800: #16213a;
  --navy-700: #1e293b;
  --text-muted: #5b6472;
  --text-faint: #8a93a3;
  --border: #e4e9f1;
  --accent: #0098b8;
  --accent-dark: #026f8a;
  --accent-light: #e3f7fa;
  --accent-bright: #00d2ff;
  --accent-pale: #8fd8de;
  --alert: #e0574c;
  --alert-light: #fbeae8;
  --warn: #ea9f2e;
  --warn-light: #fdf3e2;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 21, 38, 0.06), 0 1px 3px rgba(11, 21, 38, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 21, 38, 0.08);
  --shadow-lg: 0 20px 48px rgba(11, 21, 38, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy-800);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-light);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

h1, h2, h3, h4 { color: var(--navy-950); margin: 0; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 19px; }
p { color: var(--text-muted); margin: 0; }

.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { margin-top: 14px; font-size: 17px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--navy-950); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--navy-900); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--navy-900); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; font-weight: 800; font-size: 19px; color: var(--navy-950); }
.logo-mark {
  height: 42px; width: 95px;
  flex-shrink: 0;
  display: block;
}
.logo-mark.logo-lg { height: 40px; }
.logo-mark.logo-invert { filter: brightness(0) invert(1); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; font-weight: 600; color: var(--navy-700); }
.nav-links a:hover { color: var(--accent-dark); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; font-size: 13px; font-weight: 700;
}
.lang-toggle button { padding: 7px 13px; background: var(--white); color: var(--text-muted); border: none; }
.lang-toggle button.active { background: var(--navy-950); color: var(--white); }
.nav-toggle { display: none; }

/* Hero */
.hero { padding: 88px 0 60px; background: linear-gradient(180deg, var(--bg-soft) 0%, var(--white) 100%); }
.hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.hero p.lead { font-size: 19px; margin-top: 20px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--text-faint); }

.disclaimer-strip {
  margin: 40px auto 0;
  max-width: 720px;
  background: var(--accent-light);
  border: 1px solid #cdeae6;
  border-radius: var(--radius-md);
  padding: 16px 22px;
  font-size: 13.5px;
  color: var(--accent-dark);
  text-align: center;
  font-weight: 600;
}

/* Stats */
.stats-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 40px 0; }
.stat { text-align: center; }
.stat .num { font-size: 30px; font-weight: 800; color: var(--navy-950); }
.stat .label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* Radar preview leaderboard */
.radar-preview { padding: 70px 0; }
.radar-note {
  max-width: 620px; margin: 0 auto 30px; text-align: center;
  font-size: 13px; color: var(--text-faint); background: var(--bg-soft);
  border: 1px dashed var(--border); border-radius: var(--radius-md); padding: 12px 18px;
}
.radar-grid { display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin: 0 auto; }
.radar-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px 18px 14px 22px;
  position: relative; overflow: hidden;
  will-change: transform;
}
.radar-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: var(--party-color, var(--border));
}
.radar-party { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--party-color, var(--text-faint)); }
.radar-live-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700;
  color: var(--alert); background: var(--alert-light); padding: 5px 12px; border-radius: 999px; margin-left: 10px;
}
.radar-live-badge .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--alert); animation: pulse-dot 1.4s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }
.radar-legend { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin: 18px 0 28px; font-size: 12px; color: var(--text-muted); }
.radar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.radar-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.radar-sim-caption { text-align: center; font-size: 11.5px; color: var(--text-faint); margin-top: 14px; font-style: italic; }
.radar-total {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  max-width: 640px; margin: 0 auto 16px; padding: 10px 18px;
  background: var(--navy-950); border-radius: 999px; color: var(--white);
  font-size: 13px; font-weight: 700;
}
.radar-total .val { font-size: 15px; color: var(--accent-bright); }
.radar-rank { font-size: 13px; font-weight: 800; color: var(--text-faint); width: 18px; flex-shrink: 0; }
.radar-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 800; font-size: 13px;
}
.radar-info { flex: 1; min-width: 0; }
.radar-info .n { font-size: 14px; font-weight: 700; color: var(--navy-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radar-info .p { font-size: 11.5px; color: var(--text-faint); }
.radar-pct { text-align: right; flex-shrink: 0; }
.radar-pct .v { font-size: 17px; font-weight: 800; color: var(--navy-950); }

/* Posibles señales -- figuras detectadas por menciones que todavía no
   acumularon suficiente señal real para tener un puntaje/porcentaje propio.
   A propósito sin número: mostrar un % o ICD ahí daría una falsa sensación
   de precisión sobre un dato que todavía no existe. */
.posibles-senales { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border); }
.posibles-senales-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); margin-bottom: 10px; }
.posible-senal-row { display: flex; align-items: center; gap: 12px; padding: 8px 4px; }
.posible-senal-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); border: 1px dashed var(--text-faint);
  color: var(--text-faint); font-weight: 800; font-size: 11px;
}
.posible-senal-info { flex: 1; min-width: 0; }
.posible-senal-info .n { font-size: 13px; font-weight: 700; color: var(--navy-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.posible-senal-info .p { font-size: 10.5px; color: var(--text-faint); }
.posible-senal-tag { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; }
.posible-senal-tag .lbl { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-faint); white-space: nowrap; }
.posible-senal-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); animation: pulse-dot 1.4s ease-in-out infinite; }
.radar-bar { width: 60px; height: 5px; border-radius: 999px; background: var(--bg-soft-2); margin-top: 4px; overflow: hidden; }
.radar-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-bright), var(--accent)); border-radius: 999px; }
.radar-cta { text-align: center; margin-top: 36px; }
.radar-cta h3 { font-size: 20px; margin-bottom: 8px; }
.radar-cta p { max-width: 460px; margin: 0 auto 20px; }

/* ---- ICD: Índice de Competitividad Digital ---- */
.icd-columns { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; margin-top: 14px; }
@media (max-width: 900px) { .icd-columns { grid-template-columns: 1fr; } }

.icd-col-title { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); margin-bottom: 10px; }
.icd-col-title .sub { font-weight: 600; text-transform: none; letter-spacing: 0; display: block; margin-top: 2px; font-size: 11px; }

.icd-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 9px 14px; margin-bottom: 8px; border-left: 4px solid var(--party-color, var(--border));
}
.icd-rank { font-size: 12.5px; font-weight: 800; color: var(--text-faint); width: 16px; flex-shrink: 0; }
.icd-avatar { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; }
.icd-info { flex: 1; min-width: 0; }
.icd-info .n { font-size: 13px; font-weight: 700; color: var(--navy-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 5px; }
.icd-info .p { font-size: 10.5px; color: var(--text-faint); }
.icd-trend { font-size: 11px; font-weight: 800; }
.icd-trend.up { color: var(--accent-dark); }
.icd-trend.down { color: var(--alert); }
.icd-trend.flat { color: var(--text-faint); }
.icd-score { text-align: right; flex-shrink: 0; width: 40px; }
.icd-score .v { font-size: 15px; font-weight: 800; color: var(--navy-950); }
.icd-score .lbl { font-size: 8.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.03em; }
.icd-sentiment-btn {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-soft); cursor: pointer; font-size: 14px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background 0.15s;
}
.icd-sentiment-btn:hover { background: var(--bg-soft-2); }
.sent-block { margin-bottom: 16px; }
.sent-block h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--accent-dark); margin-bottom: 6px; }
.sent-block p, .sent-block li { font-size: 13.5px; line-height: 1.55; color: var(--navy-900); }
.sent-block ul { padding-left: 18px; }
.sent-block ul li { margin-bottom: 4px; }
.glosario-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.glosario-chip { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.glosario-chip.pos { background: #0098B8; color: #fff; }
.glosario-chip.neg { background: #E0574C; color: #fff; }

.icd-top4-row { margin-bottom: 16px; }
.icd-top4-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; gap: 8px; }
.icd-top4-head .n { font-size: 13px; font-weight: 700; color: var(--navy-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icd-top4-head .pct { font-size: 16px; font-weight: 800; color: var(--accent-dark); flex-shrink: 0; }
.icd-loading-track { height: 10px; border-radius: 999px; background: var(--bg-soft-2); overflow: hidden; }
.icd-loading-fill {
  height: 100%; border-radius: 999px; width: 0%;
  background: linear-gradient(90deg, var(--accent-bright), var(--accent));
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.icd-source-tag { font-size: 10px; color: var(--text-faint); margin-top: 3px; }
.icd-empty { text-align: center; padding: 26px 16px; color: var(--text-muted); font-size: 13px; }
.icd-empty .ic { font-size: 24px; margin-bottom: 8px; }

/* Pillars grid */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.pillar-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pillar-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-light); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.pillar-card h3 { margin-bottom: 8px; }
.pillar-card p { font-size: 14.5px; }
.pillar-card .tag {
  display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 700;
  color: var(--accent-dark);
}

/* How it works */
.flow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.flow-step {
  flex: 1; min-width: 180px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 22px; text-align: center;
}
.flow-step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--navy-950); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; margin: 0 auto 14px; }
.flow-step h4 { font-size: 15px; }
.flow-step p { font-size: 13px; margin-top: 6px; }
.flow-arrow { color: var(--text-faint); font-size: 20px; }

/* Differentiator */
.diff-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.diff-list li { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--border); }
.diff-list li:first-child { border-top: none; }
.diff-check { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--white); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; margin-top: 2px; }
.diff-list h4 { font-size: 15.5px; margin-bottom: 4px; }
.diff-list p { font-size: 13.5px; }

.mock-panel {
  background: var(--navy-950);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  color: var(--white);
}
.mock-panel .row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mock-panel .pill { font-size: 11px; background: rgba(255,255,255,0.1); padding: 4px 10px; border-radius: 999px; }
.mock-term {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; font-size: 13px;
}
.mock-term .word { color: var(--accent-pale); font-weight: 700; }
.mock-term .tag-neg { color: #f28b82; font-size: 11px; font-weight: 700; }
.mock-term .tag-pos { color: var(--accent-pale); font-size: 11px; font-weight: 700; }

/* Use cases */
.usecase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.usecase-card { border-radius: var(--radius-md); padding: 24px; border: 1px solid var(--border); }
.usecase-card h4 { font-size: 15.5px; margin-bottom: 8px; }
.usecase-card p { font-size: 13px; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.price-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 26px; position: relative;
}
.price-card.featured { border-color: var(--navy-950); box-shadow: var(--shadow-lg); transform: scale(1.03); }
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--navy-950); color: var(--white); font-size: 11px; font-weight: 700;
  padding: 5px 14px; border-radius: 999px;
}
.price-card h3 { font-size: 17px; }
.price-card .price { font-size: 34px; font-weight: 800; color: var(--navy-950); margin: 14px 0 4px; }
.price-card .price span { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.price-card .desc { font-size: 13.5px; margin-bottom: 20px; min-height: 40px; }
.price-features li { display: flex; gap: 10px; font-size: 13.5px; padding: 8px 0; color: var(--navy-700); }
.price-features li::before { content: "✓"; color: var(--accent-dark); font-weight: 800; }
.price-card .btn { margin-top: 22px; }
.pricing-note { text-align: center; margin-top: 28px; font-size: 13px; color: var(--text-faint); }

/* Addons */
.addon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.addon-card { border: 1px dashed var(--border); border-radius: var(--radius-md); padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.addon-card h5 { font-size: 14px; margin-bottom: 3px; }
.addon-card p { font-size: 12px; }
.addon-price { font-weight: 800; color: var(--navy-950); font-size: 14px; white-space: nowrap; }

/* Trust / honesty section */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trust-card { text-align: center; padding: 10px; }
.trust-card .big-icon { font-size: 30px; margin-bottom: 14px; }
.trust-card h4 { font-size: 16px; margin-bottom: 8px; }
.trust-card p { font-size: 13.5px; }

/* Final CTA */
.cta-band {
  background: var(--navy-950);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  text-align: center;
  color: var(--white);
  margin: 0 28px;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #b9c2d0; margin-top: 12px; }
.cta-form { display: flex; gap: 10px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.cta-form input {
  padding: 13px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06); color: var(--white); min-width: 260px; font-size: 14px;
}
.cta-form input::placeholder { color: #8b96a8; }

/* Footer */
.footer { background: var(--navy-950); color: #b9c2d0; padding: 64px 0 28px; margin-top: 84px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer .logo { color: var(--white); margin-bottom: 14px; }
.footer-col h5 { color: var(--white); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col li { padding: 6px 0; font-size: 13.5px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; font-size: 12.5px; color: #798398; flex-wrap: wrap; gap: 10px; }
.footer p { color: #8b96a8; font-size: 13.5px; }

/* ===== Dashboard ===== */
.dash-shell { display: flex; min-height: 100vh; background: var(--bg-soft); }
.dash-sidebar {
  width: 240px; background: var(--navy-950); color: var(--white); flex-shrink: 0;
  padding: 22px 16px; display: flex; flex-direction: column; gap: 4px;
}
.dash-sidebar .logo { color: var(--white); padding: 6px 8px 24px; }
.dash-nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: #b9c2d0;
}
.dash-nav a.active, .dash-nav a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.dash-nav .ic { width: 18px; text-align: center; }
.dash-sidebar-foot { margin-top: auto; font-size: 12px; color: #798398; padding: 12px 8px; }

.dash-main { flex: 1; min-width: 0; }
.dash-topbar {
  height: 72px; background: var(--white); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 28px; gap: 20px;
}
.dash-search { flex: 1; max-width: 560px; position: relative; }
.dash-search input {
  width: 100%; padding: 11px 16px 11px 40px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg-soft); font-size: 14px;
}
.dash-search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-faint); }
.dash-user { display: flex; align-items: center; gap: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }

.dash-body { padding: 28px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.dash-head h1 { font-size: 24px; }
.dash-head p { font-size: 13.5px; margin-top: 4px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 20px; }
.kpi-card .label { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
.kpi-card .value { font-size: 26px; font-weight: 800; color: var(--navy-950); margin-top: 6px; }
.kpi-card .delta { font-size: 12px; font-weight: 700; margin-top: 4px; }
.delta.up { color: var(--accent-dark); }
.delta.down { color: var(--alert); }

.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; margin-bottom: 18px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.card-head h3 { font-size: 15.5px; }
.card-head .badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--accent-light); color: var(--accent-dark); }

.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 140px; padding-top: 10px; }
.bar-chart .bar { flex: 1; background: linear-gradient(180deg, var(--accent), var(--accent-dark)); border-radius: 6px 6px 0 0; position: relative; }
.bar-chart .bar.alert { background: linear-gradient(180deg, #f0958c, var(--alert)); }
.bar-chart-labels { display: flex; gap: 8px; margin-top: 8px; }
.bar-chart-labels span { flex: 1; text-align: center; font-size: 10.5px; color: var(--text-faint); }

.donut-wrap { display: flex; align-items: center; gap: 20px; }
.donut { width: 110px; height: 110px; border-radius: 50%; flex-shrink: 0; }
.donut-legend li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 5px 0; color: var(--navy-700); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

.watch-list li { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.watch-list li:first-child { border-top: none; }
.watch-name { font-size: 13.5px; font-weight: 700; color: var(--navy-900); }
.watch-sub { font-size: 11.5px; color: var(--text-faint); }
.sentiment-tag { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.sentiment-tag.neg { background: var(--alert-light); color: var(--alert); }
.sentiment-tag.pos { background: var(--accent-light); color: var(--accent-dark); }
.sentiment-tag.mix { background: var(--warn-light); color: var(--warn); }

.crisis-item { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.crisis-item:first-child { border-top: none; }
.crisis-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--alert); margin-top: 6px; flex-shrink: 0; }
.crisis-item h5 { font-size: 13px; color: var(--navy-900); margin-bottom: 2px; }
.crisis-item p { font-size: 12px; }

.query-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 26px; text-align: center; }
.query-box input {
  width: 100%; max-width: 520px; padding: 14px 20px; border-radius: 999px; border: 1px solid var(--border);
  font-size: 14px; margin: 16px auto 0; display: block;
}
.query-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); margin-top: 14px; }
.spinner { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* New Report Request modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(11,21,38,0.55); z-index: 100;
  display: none; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white); border-radius: var(--radius-lg); width: 100%; max-width: 620px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 22px 26px 18px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 18px; }
.modal-head p { font-size: 12.5px; margin-top: 4px; }
.modal-close { background: none; border: none; font-size: 18px; color: var(--text-faint); }
.modal-body { padding: 22px 26px; max-height: 66vh; overflow-y: auto; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 12.5px; font-weight: 700; color: var(--navy-800); margin-bottom: 6px; }
.form-row .hint { font-size: 11px; color: var(--text-faint); font-weight: 400; margin-top: 4px; }
.form-row input[type="text"], .form-row input[type="email"], .form-row input[type="date"], .form-row select, .form-row textarea {
  width: 100%; padding: 10px 13px; border-radius: 8px; border: 1px solid var(--border); font-size: 13.5px; font-family: inherit;
}
.form-row textarea { resize: vertical; min-height: 70px; }
.form-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox-group { display: flex; gap: 16px; flex-wrap: wrap; }
.checkbox-group label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--navy-700); }
.checkbox-group input { width: auto; }
.modal-foot { padding: 18px 26px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.form-success { display: none; text-align: center; padding: 30px 20px; }
.form-success .ic { font-size: 40px; margin-bottom: 12px; }
.form-success h4 { font-size: 16px; margin-bottom: 8px; }
.form-success p { font-size: 13px; }

/* Responsive */
@media (max-width: 980px) {
  .stats-grid, .pillars-grid, .usecase-grid, .pricing-grid, .footer-grid, .dash-grid, .diff-wrap, .kpi-grid, .addon-grid { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .stats-grid, .pillars-grid, .usecase-grid, .pricing-grid, .footer-grid, .kpi-grid, .addon-grid, .diff-wrap { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
}

[data-lang="es"] .lang-en, [data-lang="en"] .lang-es { display: none; }

/* Chat widget — Julia C. */
.chat-launcher {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-dark));
  color: var(--white); border: none; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.chat-launcher .dot { position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--alert); border: 2px solid var(--white); }

.chat-panel {
  position: fixed; right: 24px; bottom: 96px; z-index: 91;
  width: 340px; max-width: calc(100vw - 48px);
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  display: none; flex-direction: column; overflow: hidden;
}
.chat-panel.open { display: flex; }
.chat-head {
  background: var(--navy-950); color: var(--white); padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
}
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-pale));
  color: var(--navy-950); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; flex-shrink: 0;
}
.chat-head .name { font-size: 14px; font-weight: 700; }
.chat-head .status { font-size: 11.5px; color: #7ee7d8; display: flex; align-items: center; gap: 5px; }
.chat-head .status .dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc97; }
.chat-close { margin-left: auto; background: none; border: none; color: #b9c2d0; font-size: 18px; }

.chat-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; background: var(--bg-soft); }
.chat-msg { max-width: 84%; padding: 10px 13px; border-radius: 14px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.chat-msg.bot { background: var(--white); border: 1px solid var(--border); border-bottom-left-radius: 4px; align-self: flex-start; color: var(--navy-800); }
.chat-msg.user { background: var(--navy-950); color: var(--white); border-bottom-right-radius: 4px; align-self: flex-end; }

.chat-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: var(--white); }
.chat-input-row input { flex: 1; border: 1px solid var(--border); border-radius: 999px; padding: 10px 14px; font-size: 13px; }
.chat-input-row button { background: var(--accent); color: var(--white); border: none; border-radius: 50%; width: 38px; height: 38px; flex-shrink: 0; font-size: 15px; }

/* ---- Panel chat (Valentina R. / Grace T.) ---- */
.chat-card { display: flex; flex-direction: column; min-height: 560px; padding: 0; overflow: hidden; }
.chat-card .card-head { padding: 18px 20px 0; }
.chat-ai-note { font-size: 11px; color: var(--text-faint); padding: 0 20px 12px; }

.chat-assistant-picker { display: flex; gap: 8px; padding: 0 20px 14px; }
.chat-assistant-btn {
  flex: 1; display: flex; align-items: center; gap: 9px; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--white);
  cursor: pointer; text-align: left; transition: border-color 0.15s ease, background 0.15s ease;
}
.chat-assistant-btn:hover { border-color: var(--accent); }
.chat-assistant-btn.active { border-color: var(--accent); background: var(--accent-light); }
.chat-assistant-btn .av {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-dark));
}
.chat-assistant-btn .nm { font-size: 12.5px; font-weight: 700; color: var(--navy-900); line-height: 1.3; }
.chat-assistant-btn .lg { font-size: 10.5px; color: var(--text-faint); font-weight: 600; }

.chat-thread {
  flex: 1; padding: 14px 20px; display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto; background: var(--bg-soft); min-height: 260px;
}
.chat-thread .chat-msg { max-width: 88%; }
.chat-thread .chat-empty { margin: auto; text-align: center; color: var(--text-faint); font-size: 12.5px; padding: 20px; }

.chat-typing { display: flex; gap: 4px; align-self: flex-start; padding: 12px 15px; background: var(--white); border: 1px solid var(--border); border-radius: 14px; border-bottom-left-radius: 4px; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint); animation: chat-typing-bounce 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-typing-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

.chat-plan-badge { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--accent-light); color: var(--accent-dark); text-transform: uppercase; letter-spacing: 0.03em; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.blog-card-img { height: 150px; background: linear-gradient(135deg, var(--navy-950), var(--accent-dark)); display: flex; align-items: center; justify-content: center; color: var(--accent-pale); font-size: 34px; }
.blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-tag { font-size: 11px; font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: 0.05em; }
.blog-card h3 { font-size: 16.5px; margin: 8px 0 8px; }
.blog-card p { font-size: 13.5px; flex: 1; }
.blog-meta { font-size: 12px; color: var(--text-faint); margin-top: 14px; }

.article-head { max-width: 720px; margin: 0 auto; text-align: center; padding: 60px 28px 20px; }
.article-head .blog-tag { display: inline-block; margin-bottom: 12px; }
.article-meta { font-size: 13px; color: var(--text-faint); margin-top: 14px; }
.article-body { max-width: 680px; margin: 0 auto; padding: 20px 28px 80px; font-size: 16px; color: var(--navy-700); }
.article-body h2 { font-size: 22px; margin: 34px 0 12px; }
.article-body p { margin-bottom: 16px; font-size: 16px; line-height: 1.7; }
.article-body .lede { font-size: 18px; color: var(--navy-800); }
.article-disclaimer { background: var(--accent-light); border: 1px solid #cdeae6; border-radius: var(--radius-md); padding: 14px 18px; font-size: 13px; color: var(--accent-dark); font-weight: 600; margin: 24px 0; }
.back-link { display: inline-flex; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--accent-dark); margin: 0 auto; }
