:root {
  --primary: #E53935;
  --primary-dark: #c62828;
  --dark: #111111;
  --dark-soft: #1a1a1a;
  --white: #ffffff;
  --gray: #6c757d;
  --light: #f8f9fa;
}
html {
  scroll-behavior: smooth;
}
[id] {
  scroll-margin-top: 96px;
}
body.demo-app {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  background: var(--demo-body-bg);
  transition: opacity 0.35s ease, background 0.35s ease, color 0.25s ease;
}
#pageLoader.hidden,
.page-loader.hidden {
  display: none;
}
.badge-soft {
  display: inline-flex;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.analytics-kpi-card {
  border-radius: 1.75rem;
  border: 1px solid var(--border);
  background: var(--demo-glass);
  padding: 1.5rem;
  color: var(--text);
  box-shadow: 0 20px 60px var(--shadow);
  transition: transform 0.24s ease;
}
.analytics-kpi-card:hover {
  transform: translateY(-4px);
}
.analytics-kpi-card .kpi-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--text-muted);
  margin: 0;
}
.analytics-kpi-card .kpi-value {
  margin: 1rem 0 0;
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--text);
}
.analytics-kpi-card .kpi-desc {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.analytics-kpi-card .kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
#pageLoader,
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--demo-loader-bg);
  color: var(--text);
}
.page-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.page-loader-spinner {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: 4px solid var(--primary);
  border-top-color: transparent;
  animation: demoSpin 0.8s linear infinite;
}
.page-loader-text {
  margin: 0;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--text-muted);
}
@keyframes demoSpin {
  to { transform: rotate(360deg); }
}
.top-accent-line {
  height: 4px;
  width: 100%;
  background: var(--primary);
}
.text-primary {
  color: var(--primary);
}
.text-muted {
  color: var(--text-muted);
}
* {
  box-sizing: border-box;
}
button, a {
  font-family: inherit;
}
h2, h3, h4, h5, h6, strong, b {
  font-weight: 500 !important;
}
h1 {
  font-weight: 100;
  color: var(--text);
}
h2, h3, h4, h5, h6 {
  color: var(--text);
}
body.demo-app strong,
body.demo-app b {
  color: inherit;
}
body, p, span, li, input, textarea, select {
  font-weight: 300 !important;
}
.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}
.header-panel {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: var(--demo-header-bg);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}
.logo {
  height: 52px;
  width: auto;
}
.header-copy {
  flex: 1;
}
.header-tagline, .eyebrow, .mini-label {
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.header-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.eyebrow {
  color: #f96d7b;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.header-cta {
  min-width: 170px;
}
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(248,113,133,0.14), transparent 24%), radial-gradient(circle at bottom right, rgba(56,189,248,0.1), transparent 22%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 3rem;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}
.hero-copy {
  max-width: 640px;
  position: relative;
  z-index: 1;
}
.pill {
  display: inline-flex;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--text);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-copy h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 100;
  line-height: 1.08;
  margin-top: 1rem;
  margin-bottom: 1.1rem;
}
.hero-description {
  max-width: 34rem;
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.section-header h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}
.section-copy {
  font-size: 0.95rem;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.95rem 1.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.24s ease, background-color 0.24s ease, box-shadow 0.24s ease;
  box-shadow: 0 12px 30px rgba(229, 57, 53, 0.18);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
  box-shadow: 0 16px 36px rgba(229, 57, 53, 0.24);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-muted);
  padding: 0.95rem 1.75rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
  font-size: 0.92rem;
  transition: transform 0.28s ease, background-color 0.28s ease, border-color 0.28s ease;
  text-decoration: none;
}
.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--primary-soft);
  border-color: var(--primary-border);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.35rem;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-outline:hover {
  background: var(--surface-muted);
  transform: translateY(-2px);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.glass-card {
  background: var(--demo-glass);
  border: 1px solid var(--border);
  border-radius: 2rem;
  backdrop-filter: blur(24px);
  box-shadow: 0 30px 90px var(--shadow);
  color: var(--text);
}
.hero-visual {
  position: relative;
}
.hero-panel {
  position: relative;
  padding: 2rem;
}
.hero-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.mini-label {
  color: var(--text-subtle);
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}
.hero-panel h2 {
  font-size: 1.95rem;
  margin: 0;
}
.hero-metrics-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.metric-card {
  padding: 1rem 1.15rem;
  border-radius: 1.5rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
}
.metric-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-bottom: 0.7rem;
}
.metric-card strong {
  display: block;
  font-size: 1.7rem;
  margin-bottom: 0.55rem;
  color: var(--text);
}
.metric-note {
  color: var(--text-subtle);
  font-size: 0.85rem;
}
.hero-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}
.hero-status div {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1rem 1.2rem;
  color: var(--text);
}
.hero-status h3 {
  margin: 0.5rem 0 0;
  font-size: 1.85rem;
  color: var(--text);
}
.floating-metrics {
  position: absolute;
  inset: auto 2rem 2rem auto;
  display: grid;
  gap: 1rem;
  width: min(340px, 100%);
  right: 0;
  bottom: 0;
}
.floating-card {
  background: var(--demo-glass);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1rem 1.2rem;
  color: var(--text);
  backdrop-filter: blur(18px);
}
.floating-card strong {
  display: block;
  margin-top: 0.55rem;
  font-size: 1.2rem;
}
.section-panel {
  position: relative;
  padding: 5rem 0;
}
.section-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-header h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  max-width: 720px;
  line-height: 1.05;
}
.section-copy {
  color: var(--text-muted);
  max-width: 760px;
  line-height: 1.8;
}
.summary-card {
  padding: 2rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.summary-value {
  font-size: 3rem;
  letter-spacing: -0.05em;
  margin: 1rem 0;
  color: var(--text);
}
.summary-text {
  color: var(--text-muted);
  line-height: 1.7;
}
.plans-panel {
  margin-top: 3rem;
}
.plans-header {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.plan-card {
  position: relative;
  padding: 24px;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 6;
  gap: 0;
  height: 100%;
  min-height: 0;
}
.plan-card--recommended {
  border-color: var(--primary-border);
  box-shadow: 0 0 0 1px var(--primary-soft), 0 20px 56px var(--shadow);
  background: var(--demo-glass);
}
.plan-card--recommended::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(160deg, var(--primary-soft), transparent 55%);
  opacity: 0.35;
}
.plan-zone {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.plan-zone--badges {
  padding-bottom: 1.25rem;
}
.plan-zone--intro {
  padding-bottom: 1.25rem;
}
.plan-zone--includes {
  padding-bottom: 0.75rem;
}
.plan-zone--features {
  padding-bottom: 1.25rem;
  min-height: 0;
  position: relative;
  z-index: 1;
}
.plan-zone--result {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-bottom: 1.25rem;
}
.plan-zone--footer {
  align-self: end;
  position: relative;
  z-index: 3;
}
.plan-cta {
  width: 100%;
  position: relative;
  z-index: 1;
}
.plan-card-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.plan-section-label {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
}
.plan-includes-meta {
  min-height: 2.85rem;
}
.plan-includes-spacer {
  display: block;
  min-height: 2.85rem;
}
.plan-instant-value {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
}
.plan-instant-value::before {
  content: "👉 ";
}
.plan-tier-badge {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--surface-muted);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.plan-card--recommended .plan-tier-badge {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-color: var(--primary-border);
}
.plan-recommended-badge {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--primary);
  color: var(--on-primary);
}
.plan-headline {
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.plan-tagline {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.plan-includes-prev {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-subtle);
}
.plan-plus-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}
.plan-feature-list--checks {
  margin: 0;
}
.plan-feature-list--checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.plan-feature--highlight {
  padding: 0.55rem 0.65rem;
  margin: 0.15rem -0.65rem;
  border-radius: 0.65rem;
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
}
.plan-feature--highlight .plan-check {
  color: var(--primary-dark);
}
.plan-feature--highlight span:last-child {
  font-weight: 600;
  color: var(--text);
}
.plan-check {
  color: var(--primary);
  flex-shrink: 0;
  font-weight: 700;
}
.plan-questions-block {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
}
.plan-questions-examples-label {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
}
.plan-questions-examples {
  margin: 0 0 0.65rem;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}
.plan-questions-examples li {
  margin-bottom: 0.2rem;
}
.plan-questions-value {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.plan-questions-value-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  margin-bottom: 0.25rem;
}
.plan-enterprise-value {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 0.85rem;
  background: linear-gradient(160deg, var(--primary-soft), transparent 120%);
  border: 1px solid var(--primary-border);
}
.plan-value-pitch {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}
.plan-ideal-for-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  margin-bottom: 0.45rem;
}
.plan-ideal-for-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}
.plan-ideal-for-list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.plan-ideal-for-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.plan-questions-value--enterprise {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--primary-border);
}
.plan-result {
  margin: 0;
}
.plan-result-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  margin-bottom: 0.35rem;
}
.plan-result-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.btn-outline--primary {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  background: var(--primary-soft) !important;
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto auto 1fr auto auto;
  gap: 24px;
  align-items: stretch;
}
.plans-panel--cards {
  margin-top: 0;
}
.plans-intro {
  margin: 0.65rem 0 0;
  max-width: 560px;
}
.plan-content {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  flex: 1;
}
.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.plan-pill {
  display: inline-flex;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}
.highlight {
  background: linear-gradient(180deg, rgba(248,113,133,0.16), rgba(56,189,248,0.08));
}
.plan-card h3 {
  font-size: 1.6rem;
  margin-top: 1rem;
  color: var(--text);
}
.plan-price {
  margin-top: 0.6rem;
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text);
}
.plan-description {
  color: var(--text-muted);
  margin: 0.85rem 0 0;
}
.plan-options {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}
.plan-section {
  border-top: 1px solid var(--border);
  padding-top: 1.1rem;
}
.plan-section-title {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.plan-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.plan-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-size: 0.92rem;
}
.plan-feature-list li::before {
  content: '•';
  color: var(--primary);
  display: inline-block;
  width: 1rem;
}
.plan-footer {
  margin-top: 2.25rem;
  display: flex;
  justify-content: center;
}
.split-card {
  display: grid;
  gap: 1.5rem;
}
.split-chart-panel h3 {
  font-size: 2.2rem;
  margin: 0.75rem 0;
}
.chart-shell {
  height: 240px;
  position: relative;
}
.split-chart-panel {
  padding: 24px;
}
.split-metrics-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 24px 24px;
}
.metric-block {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 24px;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text);
}
.metric-block strong {
  display: block;
  margin-top: 0.6rem;
  font-size: 1.35rem;
  color: var(--text);
}
.price-detail-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.detail-pill,
.alert-pill {
  display: inline-flex;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}
.price-progress {
  width: 100%;
  height: 0.85rem;
  background: var(--surface-muted);
  border-radius: 999px;
  overflow: hidden;
}
.price-bar {
  height: 100%;
  background: linear-gradient(90deg, rgba(248,113,133,0.9), rgba(56,189,248,0.9));
}
.price-list {
  display: grid;
  gap: 0.9rem;
  color: var(--text-muted);
}
.price-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.map-panel {
  padding: 2rem;
}
.map-caption strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.75rem;
}
.map-graphic {
  width: 100%;
  border-radius: 1.75rem;
  margin-top: 1.5rem;
  border: 1px solid var(--border);
}
.profile-panel {
  padding: 1.75rem;
  display: grid;
  gap: 1rem;
}
.segment-card {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 1.75rem;
  padding: 1.4rem;
  color: var(--text);
}
.segment-card h3 {
  margin: 0.85rem 0 0.45rem;
}
.benchmark-chart-card {
  padding: 2rem;
  min-height: 18rem;
}
.chart-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.benchmark-chart-card:not(.benchmark-chart-card--compact):not(.benchmark-chart-card--segment) {
  min-height: 18rem;
}
canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: 720px;
}
.mini-card {
  padding: 1.5rem;
  border-radius: 1.75rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--text);
}
.mini-card strong {
  display: block;
  margin: 0.8rem 0;
  font-size: 1.35rem;
  color: var(--text);
}
.insight-card,
.persona-card,
.alert-card {
  padding: 1.75rem;
  border-radius: 1.75rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text);
}
.insight-card strong,
.persona-card strong {
  font-size: 1.65rem;
  color: var(--text);
}
.persona-card ul {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
}
.persona-card li {
  margin-bottom: 0.65rem;
}
.section-panel--tight {
  padding: 3rem 0;
}
.chart-shell--compact {
  height: 168px;
}
.chart-shell--segment {
  height: 220px;
}
.benchmark-chart-card--compact {
  min-height: auto;
  padding: 1.5rem;
}
.benchmark-chart-card--segment {
  min-height: auto;
}

/* Ranking visual (zonas y segmentos) */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.zone-ranking-panel,
.segment-panel,
.cmp-table-panel {
  padding: 24px;
}
.zone-ranking-panel--full {
  max-width: 720px;
}
.zone-ranking-header {
  margin-bottom: 1.5rem;
}
.rank-list--zones {
  gap: 1.15rem;
}
.zone-map-title {
  font-size: 1.35rem;
  margin: 0.5rem 0 1rem;
  font-weight: 500;
}
.rank-row-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}
.rank-position {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rank-name {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}
.rank-score {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}
.rank-bar-track {
  height: 0.55rem;
  border-radius: 999px;
  background: var(--surface-muted);
  overflow: hidden;
}
.rank-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), rgba(229, 57, 53, 0.65));
  transition: width 0.8s ease;
}
.rank-bar-fill--segment {
  background: linear-gradient(90deg, #38bdf8, rgba(56, 189, 248, 0.55));
}

/* Tabla comparación campañas */
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.cmp-table th,
.cmp-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.cmp-table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 500;
}
.cmp-table tbody th {
  font-weight: 500;
  color: var(--text);
}
.cmp-table tbody td {
  color: var(--text-muted);
}
.cmp-winner {
  color: var(--text) !important;
  font-weight: 600;
}
.cmp-row-highlight .cmp-winner {
  color: var(--primary) !important;
}
.cmp-table-note {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-subtle);
}

/* Citas participantes */
.quote-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 140px;
}
.quote-stars {
  letter-spacing: 0.12em;
  line-height: 1;
}
.star {
  font-size: 1rem;
}
.star--on {
  color: #ffc107;
}
.star--off {
  color: var(--border-strong);
}
.quote-text {
  margin: 0;
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
}

/* Oportunidades detectadas */
.insight-checklist {
  list-style: none;
  margin: 0;
  padding: 1.75rem 2rem;
  display: grid;
  gap: 1rem;
  max-width: 820px;
}
.insight-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
}
.insight-check {
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Perfil consumidor */
.profile-card {
  padding: 2rem;
  max-width: 640px;
}
.profile-fields {
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.85rem;
}
.profile-field {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.profile-field:last-child {
  border-bottom: none;
}
.profile-field dt {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}
.profile-field dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-align: right;
}

.plans-panel--inline {
  margin-top: 0;
}
.plans-panel--inline .plan-card {
  min-height: auto;
}

.funnel-panel {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  border-radius: 2rem;
  padding: 2rem;
  color: var(--text);
}
.funnel-track--story {
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
}
.funnel-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0 0.15rem;
}
.funnel-step-label {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.funnel-step-value {
  display: block;
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: 0.45rem;
}
.funnel-step-detail {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-subtle);
}
.funnel-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}
.funnel-step {
  background: var(--demo-glass);
  border: 1px solid var(--border);
  border-radius: 1.75rem;
  padding: 1.1rem;
  text-align: center;
  color: var(--text);
}
.funnel-step span {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  font-size: 0.82rem;
}
.funnel-step strong {
  font-size: 1.6rem;
  color: var(--text);
}
.funnel-detail {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.contact-panel {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  padding: 2.75rem 3.5rem 2.75rem 2.75rem;
}
.contact-copy h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 0.85rem 0 1rem;
}
.contact-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-panel {
  text-align: center;
  padding: 2rem 0 3rem;
}
.footer-panel p {
  font-size: 0.75rem;
  color: var(--text-faint);
  font-weight: 300;
}
.footer-panel a {
  color: var(--primary);
  text-decoration: none;
}
.footer-panel a:hover {
  text-decoration: underline;
}
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
  background: #25D366;
  color: #ffffff;
}
.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #ffffff;
}
html[data-theme="light"] .demo-app .whatsapp-float,
html[data-theme="dark"] .demo-app .whatsapp-float {
  background: #25D366;
  color: #ffffff;
}
html[data-theme="light"] .demo-app .whatsapp-float svg,
html[data-theme="dark"] .demo-app .whatsapp-float svg {
  fill: #ffffff;
}
@media (max-width: 1100px) {
  .hero-grid,
  .contact-panel,
  .split-metrics-grid,
  .map-grid,
  .plans-grid,
  .funnel-track--story {
    grid-template-columns: 1fr !important;
  }
  .funnel-arrow {
    transform: rotate(90deg);
    padding: 0.35rem 0;
  }
  .hero-status {
    grid-template-columns: 1fr;
  }
  .profile-field {
    grid-template-columns: 1fr;
  }
  .profile-field dd {
    text-align: left;
  }
}
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-section {
    padding-top: 4rem;
  }
  .hero-grid {
    display: grid;
    gap: 2rem;
  }
  .floating-metrics {
    position: static;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .floating-card {
    min-width: 0;
  }
  .hero-panel {
    padding: 1.6rem;
  }
  .hero-metrics-grid {
    grid-template-columns: 1fr;
  }
  .section-panel {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
  .glass-card,
  .panel-card {
    padding: 1.6rem;
  }
  .price-detail-card,
  .benchmark-chart-card,
  .profile-panel,
  .contact-panel {
    padding: 1.5rem;
  }
  .contact-panel {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 500px) {
  .hero-copy h1 {
    font-size: 2.6rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .metric-card strong {
    font-size: 1.45rem;
  }
  .executive-summary-card {
    padding: 1.5rem;
  }
  .kpi-grid--primary {
    grid-template-columns: 1fr;
  }
  .profile-chips {
    grid-template-columns: 1fr 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PREMIUM — Jerarquía, narrativa, resumen ejecutivo
   ═══════════════════════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

.progress-bar-wrap {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  z-index: 45;
  background: var(--surface-muted);
}
.progress-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transition: width 0.3s ease;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}
.hero-visual .floating-metrics {
  display: none;
}

.executive-summary-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 2rem 2rem 1.75rem;
  border-radius: 1.75rem;
  background: var(--demo-glass);
  border: 1px solid var(--border-strong);
  box-shadow:
    0 0 0 1px var(--primary-soft),
    0 24px 80px var(--shadow),
    0 0 60px var(--primary-soft);
  color: var(--text);
  z-index: 2;
}
.executive-summary-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, var(--primary), transparent 55%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.exec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.exec-badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}
.exec-duration {
  font-size: 0.78rem;
  color: var(--text-subtle);
}
.exec-product {
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--text);
}
.exec-rating {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}
.exec-stars .star--on { color: #ffc107; font-size: 1.1rem; }
.exec-stars .star--off { color: var(--border-strong); font-size: 1.1rem; }
.exec-rating-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}
.exec-metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.exec-metrics li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.exec-metrics li:last-child { border-bottom: none; }
.exec-metric-label { color: var(--text-muted); }
.exec-metrics strong {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.exec-footer {
  margin: 1.25rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
}

/* Capítulos narrativos */
.narrative-chapter {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--border);
}
.narrative-chapter + .narrative-chapter {
  padding-top: 5rem;
  margin-top: 1rem;
}
.narrative-chapter:first-of-type {
  border-top: none;
  padding-top: 2rem;
}
.narrative-chapter--decisions {
  background: var(--surface-muted);
  margin-top: 2rem;
  padding-bottom: 3rem;
}
.chapter-intro {
  margin-bottom: 2.5rem;
  max-width: 720px;
}
.chapter-index {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 0.65rem;
}
.chapter-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 400;
  margin: 0 0 0.65rem;
  color: var(--text);
}
.chapter-lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.section-panel {
  padding: 2.5rem 0;
}
.section-panel--in-chapter {
  padding: 1.75rem 0 4rem;
}
.section-panel--in-chapter + .section-panel--in-chapter {
  padding-top: 0;
}
.section-header--compact h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 400;
  margin: 0;
}

/* KPI tiers */
.kpi-tier-block {
  margin-bottom: 2rem;
}
.kpi-tier-block--secondary { margin-bottom: 1.25rem; }
.kpi-tier-block--support { margin-bottom: 0; opacity: 0.92; }
.kpi-tier-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-subtle);
  margin: 0 0 1rem;
}
.kpi-grid {
  display: grid;
  gap: 1rem;
}
.kpi-grid--primary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.kpi-grid--secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 640px;
}
.kpi-grid--support {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 480px;
  gap: 0.65rem;
}

.kpi-card--primary {
  padding: 1.75rem 1.5rem;
  border-color: var(--primary-border);
  background: var(--demo-glass);
  box-shadow: 0 16px 48px var(--shadow);
}
.kpi-card--primary .kpi-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--text-muted);
}
.kpi-card--primary .kpi-value {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0.65rem 0 0;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}
.kpi-card--primary .kpi-desc {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--text-subtle);
  line-height: 1.5;
}
.kpi-card--primary .kpi-head { display: none; }

.kpi-card--secondary {
  padding: 1.15rem 1.25rem;
}
.kpi-card--secondary .kpi-value {
  font-size: 1.65rem;
  margin: 0.35rem 0 0;
}
.kpi-card--secondary .kpi-label {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.kpi-card--support {
  padding: 0.85rem 1rem;
  background: var(--surface-muted);
  box-shadow: none;
}
.kpi-card--support .kpi-value {
  font-size: 1.1rem;
  margin: 0.2rem 0 0;
  font-weight: 500;
}
.kpi-card--support .kpi-label {
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: none;
}

/* Comentarios humanos */
.quote-card {
  min-height: 180px;
  justify-content: space-between;
}
.quote-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-subtle);
  border-top: 1px solid var(--border);
}

/* Oportunidades — bloque destacado */
.insights-hero {
  padding: 24px;
  border-radius: 1.75rem;
  background: var(--demo-glass);
  border: 1px solid var(--primary-border);
  box-shadow: 0 20px 70px var(--shadow), inset 0 1px 0 var(--border);
  max-width: none;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.insights-hero-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.insights-hero-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.65rem;
}
.insights-hero-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.insights-hero-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.insights-hero .insight-checklist {
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  max-width: none;
  flex: 1;
}
.insights-hero .insight-checklist li {
  font-size: 1.05rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}
.insights-hero .insight-checklist li:last-child {
  border-bottom: none;
}

/* Ficha consumidor */
.profile-ficha {
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.profile-ficha-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.profile-ficha-icon {
  font-size: 1.75rem;
  line-height: 1;
}
.profile-ficha-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0.35rem 0 0;
  color: var(--text);
}
.profile-chips--ficha {
  grid-template-columns: 1fr 1fr;
  flex: 1;
}
.profile-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

/* Decisiones — dos columnas */
.decisions-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 24px;
  align-items: stretch;
}
.decisions-col {
  min-width: 0;
}
.decisions-col > .insights-hero,
.decisions-col > .profile-ficha {
  min-height: 100%;
}
.profile-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
}
.profile-chip-icon {
  font-size: 1.35rem;
  line-height: 1;
}
.profile-chip-text {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
}

/* Mapa zonas — theme-aware */
.zone-map-visual {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 2.5rem);
  gap: 0.5rem;
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  min-height: 200px;
  margin: 1rem 0;
}
.zone-map-zone {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.35rem;
  border-radius: 0.65rem;
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--on-primary);
  text-align: center;
  opacity: calc(var(--zone-size, 75) / 100);
}
.zone-map-zone span {
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  line-height: 1.1;
}
.zone-map-zone--hot {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--primary);
  font-size: 0.72rem;
}
.zone-map-zone--warm {
  grid-column: span 2;
  background: color-mix(in srgb, var(--primary) 75%, var(--surface));
}
.zone-map-zone--mid {
  grid-column: span 2;
  background: color-mix(in srgb, var(--primary) 45%, var(--surface));
  color: var(--text);
}
.zone-map-zone--mid span { text-shadow: none; }
.zone-map-zone--low {
  grid-column: span 2;
  background: color-mix(in srgb, var(--primary) 25%, var(--surface));
  color: var(--text-muted);
}
.zone-map-zone--low span { text-shadow: none; }

.rank-bar-fill--segment {
  background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 55%, transparent));
}

/* Flujo visual */
.funnel-panel--visual {
  background: transparent;
  border: none;
  padding: 0;
}
.funnel-track--visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
}
.funnel-step--visual {
  width: 100%;
  text-align: center;
  padding: 1.35rem 1.5rem;
}
.funnel-step-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.65rem;
  color: var(--primary);
}
.funnel-step-icon svg {
  width: 100%;
  height: 100%;
}
.funnel-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.15rem 0;
  color: var(--primary);
}
.funnel-connector-line {
  width: 2px;
  height: 1.25rem;
  background: var(--border-strong);
}
.funnel-connector-arrow {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
}

@media (min-width: 900px) {
  .funnel-track--visual {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    max-width: 100%;
  }
  .funnel-step--visual {
    flex: 1 1 120px;
    max-width: 150px;
  }
  .funnel-connector {
    flex-direction: row;
    align-self: center;
    padding: 0 0.25rem;
  }
  .funnel-connector-line {
    width: 1.5rem;
    height: 2px;
  }
  .funnel-connector-arrow {
    transform: rotate(-90deg);
  }
}

@media (max-width: 900px) {
  .kpi-grid--primary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .executive-summary-card {
    max-width: 100%;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    justify-content: center;
    margin-top: 1.5rem;
  }
  .decisions-grid {
    grid-template-columns: 1fr;
  }
  .plans-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .plan-card {
    grid-row: auto;
    grid-template-rows: none;
    display: flex;
    flex-direction: column;
    min-height: auto;
  }
  .plan-zone--result {
    margin-top: auto;
  }
  .profile-chips--ficha {
    grid-template-columns: 1fr 1fr;
  }
}
