/* ============================================================
 * Demo Web V1 · Agente Diagnóstico
 * Brand tokens from emi/brand-bible.md
 * Designed for desktop screen-share (1440px-1920px primary)
 * ============================================================ */

:root {
  /* Brand palette — no gradients invented */
  --emi-blue: #3179FF;
  --emi-blue-dark: #1E5BD9;
  --emi-blue-soft: rgba(49, 121, 255, 0.08);
  --emi-blue-mid: rgba(49, 121, 255, 0.15);
  --emi-red: #FF5947;
  --emi-red-soft: rgba(255, 89, 71, 0.08);
  --emi-coral: #FFB5A8;
  --text-dark: #0F1115;
  --text-mid: #4B5260;
  --gray-mid: #6B6B6B;
  --gray-light: #E5E5E5;
  --gray-lightest: #F7F7F8;
  --white: #FFFFFF;
  --success: #10B981;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Shadows (no gradients — soft elevation only) */
  --shadow-sm: 0 1px 2px rgba(15, 17, 21, 0.04), 0 1px 1px rgba(15, 17, 21, 0.03);
  --shadow-md: 0 8px 24px rgba(15, 17, 21, 0.06), 0 2px 6px rgba(15, 17, 21, 0.04);
  --shadow-lg: 0 24px 60px rgba(15, 17, 21, 0.10), 0 8px 20px rgba(15, 17, 21, 0.06);
  --shadow-blue: 0 24px 60px rgba(49, 121, 255, 0.20), 0 8px 20px rgba(49, 121, 255, 0.12);

  /* Easings */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ====== Reset / base ====== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-feature-settings: 'cv11', 'ss01';
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--emi-blue); text-decoration: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ====== Layout helpers ====== */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-7);
  width: 100%;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  color: var(--emi-blue);
  background: var(--emi-blue-soft);
}
.eyebrow.red { color: var(--emi-red); background: var(--emi-red-soft); }
.eyebrow.white {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

/* ====== Top nav (sticky, shrinks) ====== */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(15, 17, 21, 0.06);
  transition: padding 0.3s var(--ease-out-expo);
}
.topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--space-7);
  max-width: 1240px;
  margin: 0 auto;
}
.topnav-brand {
  display: flex; align-items: center; gap: 14px;
}
.topnav-brand img { height: 24px; }
.topnav-brand .product-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emi-blue);
  background: var(--emi-blue-soft);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}
.topnav-meta {
  display: flex; align-items: center; gap: 18px;
  font-size: 13px;
  color: var(--text-mid);
}
.topnav-meta .for-label {
  font-weight: 600;
  color: var(--text-dark);
}
.topnav-meta .company-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--gray-lightest);
  padding: 6px 14px 6px 8px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  color: var(--text-dark);
  border: 1px solid var(--gray-light);
}
.topnav-meta .company-chip img {
  height: 20px; width: 20px; border-radius: 50%; object-fit: contain;
  background: var(--white);
}

/* ====== Section base ====== */
.section {
  padding: clamp(56px, 5.5vw, 80px) 0;
  position: relative;
}
.section.dark {
  background: var(--emi-blue);
  color: var(--white);
}
.section.tinted {
  background: var(--gray-lightest);
}
.section-headline {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
  margin: var(--space-4) 0 var(--space-5);
  color: var(--text-dark);
}
.section.dark .section-headline { color: var(--white); }
.section-headline .accent { color: var(--emi-blue); }
.section-headline .accent-red { color: var(--emi-red); }
.section-headline .accent-coral { color: var(--emi-coral); }
.section-sub {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--text-mid);
  max-width: 760px;
  margin-bottom: var(--space-6);
}
.section.dark .section-sub { color: rgba(255, 255, 255, 0.88); }

/* ====== Reveal-on-scroll ====== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ====== Section 1 — HERO / CONTEXT ====== */
.hero {
  padding-top: calc(var(--space-9) + 40px);
  padding-bottom: var(--space-9);
}
.hero-frame {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}
.hero-context-row {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--gray-light);
}
.hero-context-row .prospect-logo {
  width: 72px; height: 72px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
  flex-shrink: 0;
}
.hero-context-row .prospect-logo img {
  max-width: 100%; max-height: 100%; object-fit: contain;
}
.hero-context-row .prospect-logo-placeholder {
  font-size: 28px; font-weight: 700; color: var(--emi-blue);
}
.hero-context-row .for-block .for-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gray-mid);
  margin-bottom: 4px;
}
.hero-context-row .for-block .for-name {
  font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text-dark);
}
.hero-context-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}
.hero-context-list.two-col {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: var(--space-5);
}
.hero-context-item {
  display: flex; flex-direction: column; gap: 4px;
}
.hero-context-item .label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gray-mid);
}
.hero-context-item .value {
  font-size: 18px; font-weight: 600; color: var(--text-dark);
}

/* Hypothesis as notepad — full width, larger, multi-line */
.hero-hypothesis-block {
  margin-bottom: var(--space-6);
}
.hypothesis-notepad {
  display: block !important;
  min-height: 84px;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
  padding: 12px 16px !important;
  margin-top: 6px;
  background: rgba(49, 121, 255, 0.03);
  border: 1px dashed rgba(49, 121, 255, 0.28);
  border-radius: var(--radius-sm);
  white-space: pre-wrap;
  word-break: break-word;
  cursor: text;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.hypothesis-notepad:hover {
  background: rgba(49, 121, 255, 0.05);
  border-color: rgba(49, 121, 255, 0.45);
}
.hypothesis-notepad:focus {
  background: rgba(255, 255, 255, 1);
  border-style: solid;
  border-color: var(--emi-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(49, 121, 255, 0.14);
}
.hypothesis-notepad:empty::before {
  content: 'Anotá lo que vas escuchando — hipótesis, frases del prospect, alarmas, próximos pasos…';
  color: var(--gray-mid);
  font-weight: 400;
  font-style: italic;
  opacity: 0.7;
}
.hero-question {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-dark);
  background: var(--gray-lightest);
  border-left: 3px solid var(--emi-blue);
  padding: var(--space-5) var(--space-6);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 0;
}
.hero-question em {
  color: var(--emi-blue);
  font-style: normal;
  font-weight: 700;
}

/* ====== Section 2 — VISION (PLATAFORMA) ====== */
.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
}
.vision-text { display: flex; flex-direction: column; gap: var(--space-5); }
.vision-tagline {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.55;
  max-width: 480px;
}
.agent-board {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  background: var(--gray-lightest);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.agent-cell {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 110px;
}
.agent-cell.featured {
  background: var(--emi-blue);
  color: var(--white);
  border-color: var(--emi-blue);
  box-shadow: var(--shadow-blue);
  transform: scale(1.04);
  grid-row: span 2;
  min-height: 232px;
  position: relative;
}
.agent-cell.featured::after {
  content: '';
  position: absolute;
  top: 12px; right: 12px;
  width: 8px; height: 8px;
  background: #6EE7B7;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(110, 231, 183, 0.25);
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(110, 231, 183, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(110, 231, 183, 0.05); }
}
.agent-cell .status {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gray-mid);
}
.agent-cell.featured .status { color: rgba(255,255,255,0.95); }
.agent-cell .name {
  font-size: 16px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--text-dark);
}
.agent-cell.featured .name { color: var(--white); font-size: 22px; }
.agent-cell .desc {
  font-size: 11.5px; color: var(--text-mid); line-height: 1.4;
}
.agent-cell.featured .desc { color: rgba(255,255,255,0.92); font-size: 13px; line-height: 1.45; }

/* Ghost cells — smaller, less prominent */
.agent-cell.ghost {
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed var(--gray-light);
  min-height: 0;
  padding: var(--space-4);
  gap: 4px;
}
.agent-cell.ghost .name {
  font-size: 14px; font-weight: 600; color: var(--text-mid);
}
.agent-cell.ghost .status {
  font-size: 9px; color: var(--gray-mid); opacity: 0.7;
}

/* Vision agent board uses 3 columns; featured spans 2 rows */
.agent-board { grid-template-columns: 1.4fr 1fr 1fr; grid-auto-rows: 110px; }

/* ====== Vision V2 — stacked layout with full-width featured + 5-ghost row ====== */
.vision-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 820px;
  margin: 0 auto var(--space-7);
  text-align: center;
  align-items: center;
}
.vision-headline {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.1;
  text-wrap: balance;
  color: var(--text-dark);
  margin: 0;
}
.vision-headline .accent { color: var(--emi-blue); }
.vision-tagline {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-mid);
  text-wrap: balance;
  margin: 0;
}

.agent-board-v2 {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 1080px;
  margin: 0 auto;
}

.agent-featured {
  background: var(--emi-blue);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: var(--shadow-blue);
  position: relative;
}
.agent-featured::after {
  content: '';
  position: absolute;
  top: 18px; right: 18px;
  width: 10px; height: 10px;
  background: #6EE7B7;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(110, 231, 183, 0.22);
  animation: livePulseV2 2s ease-in-out infinite;
}
@keyframes livePulseV2 {
  0%, 100% { box-shadow: 0 0 0 5px rgba(110, 231, 183, 0.22); }
  50% { box-shadow: 0 0 0 10px rgba(110, 231, 183, 0.04); }
}
.agent-featured-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
}
.agent-featured-name {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--white);
}
.agent-featured-desc {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  max-width: 620px;
}

.agent-ghost-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
}
.agent-ghost {
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed var(--gray-light);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 84px;
  justify-content: center;
}
.agent-ghost.next {
  background: rgba(49, 121, 255, 0.05);
  border-color: rgba(49, 121, 255, 0.35);
  border-style: solid;
}
.agent-ghost.next .ghost-status {
  color: var(--emi-blue);
  opacity: 1;
}
.agent-ghost.next .ghost-name {
  color: var(--text-dark);
}
.agent-ghost .ghost-status {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-mid);
  opacity: 0.75;
}
.agent-ghost .ghost-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: -0.01em;
}

@media (max-width: 900px) {
  .agent-ghost-row { grid-template-columns: repeat(2, 1fr); }
}

/* ====== Section 3 — POR QUÉ DIAGNÓSTICO ====== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-5);
  box-shadow: var(--shadow-sm);
}
.stat-card .stat-value {
  font-size: 44px;
  font-weight: 700;
  color: var(--emi-red);
  letter-spacing: -0.025em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-3);
}
.stat-card .stat-label {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.4;
}
/* ====== Stat value text variant (multi-line label-as-value) ====== */
.stat-card .stat-value-text {
  font-size: 28px;
  font-weight: 700;
  color: var(--emi-red);
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin-bottom: var(--space-3);
  font-style: italic;
}

/* ====== VS grid (encuesta vs Agente Diagnóstico) ====== */
.vs-grid {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.vs-side {
  padding: var(--space-7);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.vs-side.before {
  background: rgba(255, 89, 71, 0.03);
}
.vs-side.after {
  background: rgba(49, 121, 255, 0.04);
}
.vs-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-mid);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--gray-light);
  margin-bottom: var(--space-2);
}
.vs-side.after .vs-tag { color: var(--emi-blue); }
.vs-body {
  display: flex; flex-direction: column; gap: var(--space-3);
}
.vs-line {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-mid);
}
.vs-line .x {
  color: var(--emi-red);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  flex-shrink: 0;
}
.vs-line .check {
  color: var(--emi-blue);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  flex-shrink: 0;
}
.vs-side.before .vs-line { text-decoration: line-through; text-decoration-color: rgba(255, 89, 71, 0.35); text-decoration-thickness: 1.5px; }
.vs-side.before .vs-line .x { text-decoration: none; display: inline-block; }
.vs-side.after .vs-line { color: var(--text-dark); }
.vs-side.after .vs-line .check { text-decoration: none; }
.vs-divider {
  display: flex; flex-direction: column; align-items: center;
  background: var(--gray-lightest);
  border-left: 1px solid var(--gray-light);
  border-right: 1px solid var(--gray-light);
  position: relative;
}
.vs-divider-line {
  flex: 1; width: 1px; background: var(--gray-light);
}
.vs-divider-label {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-mid);
  background: var(--white);
  padding: var(--space-3) 6px;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-pill);
  margin: var(--space-3) 0;
}

/* ====== Section 4 — TRIGGER WHATSAPP ====== */
.trigger {
  background: var(--emi-blue);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.trigger::before,
.trigger::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.06);
}
.trigger::before {
  top: -200px; right: -100px; width: 500px; height: 500px;
}
.trigger::after {
  bottom: -200px; left: -100px; width: 400px; height: 400px;
}
.trigger .container { position: relative; z-index: 2; }
.trigger .section-headline { color: var(--white); }
.trigger .section-headline .accent { color: var(--emi-coral); }
.trigger .section-sub { color: rgba(255, 255, 255, 0.88); }
.trigger-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  margin-top: var(--space-6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.participants {
  display: flex; flex-direction: column; gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.participant-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: var(--space-4);
  align-items: center;
}
.participant-input {
  width: 100%;
  background: var(--white);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-dark);
  transition: border-color 0.2s var(--ease-out-expo), box-shadow 0.2s var(--ease-out-expo);
}
.participant-input::placeholder { color: var(--gray-mid); }
.participant-input:focus-visible {
  outline: none;
  border-color: var(--emi-coral);
  box-shadow: 0 0 0 4px rgba(255, 181, 168, 0.3);
}
.btn-remove-participant {
  width: 36px; height: 36px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease-out-back);
}
.btn-remove-participant:hover { background: rgba(255, 89, 71, 0.7); border-color: var(--emi-red); }
.btn-remove-participant:focus-visible { outline: 2px solid var(--emi-coral); outline-offset: 2px; }
.btn-add-participant {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s, border-color 0.2s;
}
.btn-add-participant:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.7); }
.btn-add-participant:focus-visible { outline: 2px solid var(--emi-coral); outline-offset: 2px; }
.trigger-controls {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  gap: var(--space-5);
  flex-wrap: wrap;
}
.trigger-hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  display: flex; align-items: center; gap: 8px;
  max-width: 380px;
  line-height: 1.45;
}
.btn-trigger {
  background: var(--white);
  color: var(--emi-blue);
  border: none;
  padding: 18px 32px;
  border-radius: var(--radius-pill);
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s var(--ease-out-back), box-shadow 0.2s var(--ease-out-expo);
}
.btn-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.btn-trigger:focus-visible {
  outline: 3px solid var(--emi-coral);
  outline-offset: 3px;
}
.btn-trigger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn-trigger .arrow { font-size: 20px; }

.trigger-success {
  display: none;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  margin-top: var(--space-5);
  font-size: 15px;
  line-height: 1.5;
  display: none;
}
.trigger-success.show {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  animation: fadeUp 0.5s var(--ease-out-expo);
}
.trigger-success .success-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: #6EE7B7;
  color: #064E3B;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
  flex-shrink: 0;
}
.trigger-success .success-body { flex: 1; }
.trigger-success .success-title {
  font-size: 18px; font-weight: 700; color: var(--white);
  margin-bottom: 4px;
}
.trigger-success .success-detail {
  font-size: 14px; color: rgba(255,255,255,0.92); line-height: 1.5;
}
.trigger-success .success-detail strong { color: #6EE7B7; font-variant-numeric: tabular-nums; }
.trigger-success .success-hint {
  font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 6px;
  font-style: italic;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ====== Trigger timeline (1-2-3 steps before form) ====== */
.trigger-timeline {
  list-style: none;
  margin: var(--space-6) 0 var(--space-5);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  counter-reset: timeline;
}
.trigger-timeline li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: var(--space-4) var(--space-5);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
}
.trigger-timeline .step-num {
  width: 32px; height: 32px;
  background: var(--white);
  color: var(--emi-blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
  flex-shrink: 0;
}
.trigger-timeline .step-text {
  font-size: 14px;
  color: var(--white);
  line-height: 1.4;
}

/* ====== Multi-participant hint ====== */
.trigger-multi-hint {
  background: rgba(255, 181, 168, 0.15);
  border-left: 3px solid var(--emi-coral);
  padding: var(--space-3) var(--space-4);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: var(--space-5);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
}
.trigger-multi-hint strong { color: var(--emi-coral); font-weight: 700; }

/* ====== WhatsApp icon in trigger button ====== */
.btn-trigger .wa-icon {
  width: 22px; height: 22px;
  fill: currentColor;
}

/* ====== POC outcome callback ====== */
.poc-outcome {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}
.poc-outcome strong { color: var(--white); font-weight: 700; }

/* ====== Progress dots (side nav, subtle) ====== */
.progress-dots {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 50;
  padding: 14px 10px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(15, 17, 21, 0.06);
  box-shadow: var(--shadow-sm);
}
.progress-dots .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(15, 17, 21, 0.15);
  transition: background 0.25s var(--ease-out-expo), transform 0.25s var(--ease-out-back);
  cursor: pointer;
  display: block;
}
.progress-dots .dot:hover {
  background: var(--emi-blue);
  transform: scale(1.3);
}
.progress-dots .dot.active {
  background: var(--emi-blue);
  transform: scale(1.4);
}
.progress-dots .dot:focus-visible {
  outline: 2px solid var(--emi-blue);
  outline-offset: 3px;
}
/* hide on small screens */
@media (max-width: 1100px) {
  .progress-dots { display: none; }
}
/* hide in AE mode (coach panel covers right) */
body.ae-mode .progress-dots { display: none; }

/* ====== Section 5 — DASHBOARD ====== */
.dashboard-preview {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-7);
  align-items: center;
}
.dashboard-text { display: flex; flex-direction: column; gap: var(--space-4); }
.dashboard-text h3 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
.dashboard-text p {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.55;
  margin: 0;
}
.dashboard-cta {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--emi-blue);
  color: var(--white);
  padding: 16px 26px;
  border-radius: var(--radius-pill);
  font-size: 16px; font-weight: 700;
  align-self: flex-start;
  margin-top: var(--space-3);
  transition: background 0.2s, transform 0.2s var(--ease-out-back), box-shadow 0.2s;
  box-shadow: var(--shadow-md);
}
.dashboard-cta:hover { background: var(--emi-blue-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.dashboard-cta:focus-visible { outline: 3px solid var(--emi-coral); outline-offset: 3px; }
.dashboard-cta .external-icon { font-size: 14px; opacity: 0.85; }
.dashboard-mock {
  background: var(--gray-lightest);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.dashboard-mock-header {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--gray-light);
}
.dashboard-mock-header .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emi-blue); }
.dashboard-mock-header .title { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.dashboard-mock-header .badge {
  margin-left: auto; font-size: 9px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--emi-blue);
  padding: 4px 10px; border-radius: var(--radius-pill);
  border: 1px solid var(--emi-blue);
}
.kpi-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.kpi {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
}
.kpi .k {
  font-size: 9px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gray-mid);
  margin-bottom: 6px;
}
.kpi .v {
  font-size: 22px; font-weight: 700; color: var(--text-dark);
  letter-spacing: -0.02em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.kpi .v.blue { color: var(--emi-blue); }
.kpi .v.red { color: var(--emi-red); }
.bars { display: flex; flex-direction: column; gap: 5px; margin-top: var(--space-2); }
.bar-label-text {
  font-size: 9px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gray-mid);
  margin-bottom: 4px;
}
.bar {
  display: grid;
  grid-template-columns: 110px 1fr 28px;
  align-items: center; gap: 10px;
}
.bar .l { font-size: 11px; color: var(--text-dark); text-align: right; }
.bar .track { height: 10px; background: var(--gray-light); border-radius: 5px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--emi-red); border-radius: 5px; }
.bar .c { font-size: 10px; font-weight: 700; text-align: right; color: var(--text-dark); }

/* ====== Section 6 — CIERRE ====== */
.close-section {
  background: var(--emi-blue);
  color: var(--white);
  text-align: center;
}
.close-section .section-headline { color: var(--white); }
.close-section .section-headline .accent { color: var(--emi-coral); }
.close-section .section-sub {
  color: rgba(255, 255, 255, 0.88);
  margin-left: auto; margin-right: auto;
  text-align: center;
}
.poc-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  margin: var(--space-6) auto var(--space-6);
  max-width: 760px;
  text-align: left;
}
.poc-card .poc-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--emi-coral);
  margin-bottom: var(--space-3);
}
.poc-card .poc-headline {
  font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.2; margin: 0 0 var(--space-4);
}
.poc-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-5);
}
.poc-feature {
  display: flex; flex-direction: column; gap: 4px;
}
.poc-feature .v {
  font-size: 22px; font-weight: 700; letter-spacing: -0.015em;
  color: var(--white);
}
.poc-feature .l {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}
.close-cta {
  display: flex; flex-direction: column; gap: var(--space-4);
  align-items: center;
  margin-top: var(--space-6);
}
.close-cta .question {
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}
.close-cta-btn {
  background: var(--white);
  color: var(--emi-blue);
  border: none;
  padding: 20px 40px;
  border-radius: var(--radius-pill);
  font-size: 20px; font-weight: 700; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s var(--ease-out-back), box-shadow 0.2s;
}
.close-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28); }
.close-cta-btn:focus-visible { outline: 3px solid var(--emi-coral); outline-offset: 3px; }

/* ====== Footer ====== */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-7) 0;
  font-size: 13px;
  text-align: center;
}
.footer a { color: rgba(255, 255, 255, 0.85); }

/* ============================================================
 * AE COACH MODE (?ae=true) — side panel only visible to AE
 * ============================================================ */
body.ae-mode { padding-right: 380px; }
body.ae-mode .topnav-inner { max-width: none; }
body.ae-mode .container { max-width: 1080px; }

.coach {
  display: none;
  position: fixed;
  right: 0; top: 0; bottom: 0;
  width: 380px;
  background: #0F1115;
  color: rgba(255, 255, 255, 0.85);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  overflow-y: auto;
  z-index: 200;
  padding: var(--space-5);
  font-size: 13px;
  line-height: 1.55;
}
body.ae-mode .coach { display: block; }
.coach-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-4);
}
.coach-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--emi-coral);
}
.coach-time {
  font-size: 11px; color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
}
.coach-step {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  transition: background 0.3s, border-color 0.3s;
}
.coach-step.active {
  background: rgba(49, 121, 255, 0.12);
  border-color: rgba(49, 121, 255, 0.4);
}
.coach-step .step-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-2);
}
.coach-step .step-num {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--emi-coral);
}
.coach-step .step-duration {
  font-size: 10px; color: rgba(255, 255, 255, 0.5);
}
.coach-step .step-title {
  font-size: 15px; font-weight: 700; color: var(--white);
  margin-bottom: var(--space-2);
}
.coach-step .step-script {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-3);
}
.coach-step .step-script em {
  color: var(--emi-coral);
  font-style: italic;
}
.coach-step .pause {
  font-size: 11px;
  font-weight: 700;
  color: var(--emi-coral);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex; align-items: center; gap: 6px;
  margin-top: var(--space-2);
}
.coach-tip {
  background: rgba(255, 181, 168, 0.08);
  border-left: 2px solid var(--emi-coral);
  padding: 8px 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: var(--space-2);
  border-radius: 0 4px 4px 0;
  line-height: 1.5;
}
.coach-tip strong { color: rgba(255, 255, 255, 0.98); font-weight: 700; }
.coach-tip em { color: rgba(255, 255, 255, 0.95); font-style: italic; }

/* ====== Coach prep / pinned / postcall blocks (WGLL framework) ====== */
.coach-prep,
.coach-postcall {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}
.coach-postcall {
  margin-top: var(--space-3);
  margin-bottom: 0;
  border-top: 2px solid rgba(110, 231, 183, 0.3);
}
.prep-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.98);
  margin-bottom: var(--space-2);
}
.prep-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prep-list li {
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  padding-left: 14px;
  position: relative;
}
.prep-list li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--emi-coral);
  font-weight: 700;
}
.prep-list li strong { color: rgba(255, 255, 255, 0.95); font-weight: 600; }
.prep-list li em { color: rgba(255, 255, 255, 0.7); font-style: italic; }
.prep-meta {
  font-size: 11px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.62);
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.5;
}

.coach-pinned {
  background: rgba(110, 231, 183, 0.06);
  border: 1px solid rgba(110, 231, 183, 0.22);
  border-radius: 8px;
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}
.pinned-title {
  font-size: 12px;
  font-weight: 700;
  color: #6EE7B7;
  margin-bottom: var(--space-2);
  letter-spacing: 0.02em;
}
.pinned-script {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}
.pinned-script strong { color: rgba(255, 255, 255, 1); font-weight: 700; }

/* ====== Mobile / responsive (graceful) ====== */
@media (max-width: 900px) {
  .container { padding: 0 var(--space-5); }
  .section { padding: var(--space-8) 0; }
  .hero { padding-top: var(--space-8); }
  .topnav-inner { padding: 14px var(--space-5); }
  .topnav-meta .for-label { display: none; }
  .hero-context-list { grid-template-columns: 1fr; gap: var(--space-3); }
  .hero-context-row { flex-direction: column; align-items: flex-start; }
  .vision-grid { grid-template-columns: 1fr; }
  .agent-board { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-arrow { transform: rotate(90deg); }
  .dashboard-preview { grid-template-columns: 1fr; }
  .participant-row { grid-template-columns: 1fr; }
  .trigger-controls { flex-direction: column; align-items: stretch; }
  .btn-trigger { width: 100%; justify-content: center; }
  .poc-features { grid-template-columns: 1fr; }
  body.ae-mode { padding-right: 0; }
  body.ae-mode .coach { display: none; } /* coach hidden on mobile */
}

/* ====== Calculator Section (sec-calc) ====== */
.calc-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  box-shadow: var(--shadow-md);
  max-width: 920px;
  margin: var(--space-6) auto 0;
}

.calc-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--gray-light);
}
.calc-input-block { display: flex; flex-direction: column; gap: var(--space-2); }
.calc-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-mid);
}
.calc-input-block input[type="number"] {
  font: inherit;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  background: var(--white);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.calc-input-block input[type="number"]:focus {
  outline: none;
  border-color: var(--emi-blue);
  box-shadow: 0 0 0 3px rgba(49, 121, 255, 0.15);
}
.calc-slider-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.calc-slider-row input[type="range"] {
  flex: 1;
  height: 6px;
  background: var(--gray-light);
  border-radius: 3px;
  appearance: none;
  -webkit-appearance: none;
}
.calc-slider-row input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: var(--emi-blue);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 2px 6px rgba(49, 121, 255, 0.35);
  transition: transform 120ms ease;
}
.calc-slider-row input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }
.calc-slider-row input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--emi-blue);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 2px 6px rgba(49, 121, 255, 0.35);
}
.calc-slider-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--emi-blue);
  font-variant-numeric: tabular-nums;
  min-width: 70px;
  text-align: right;
}
.calc-input-hint {
  font-size: 12px;
  color: var(--gray-mid);
  font-style: italic;
}

.calc-flow {
  padding: var(--space-5) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.calc-result-row .r-label {
  color: var(--text-mid);
  font-weight: 500;
}
.calc-result-row .r-value {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--text-dark);
}
.calc-result-row.red .r-value { color: var(--emi-red); font-size: 28px; }
.calc-result-row.sub {
  font-size: 14px;
  margin-top: -4px;
}
.calc-result-row.sub .r-label { color: var(--gray-mid); font-style: italic; }
.calc-result-row.sub .r-value { color: var(--gray-mid); font-size: 16px; font-weight: 600; }
.calc-result-row.emi .r-value { color: var(--emi-blue); font-size: 24px; }
.calc-result-row.emi .r-tier {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-mid);
  letter-spacing: 0;
  font-style: italic;
}
.calc-divider {
  height: 1px;
  background: var(--gray-light);
  margin: var(--space-2) 0;
}

.calc-takeaway {
  margin-top: var(--space-5);
  padding: var(--space-6) var(--space-6) var(--space-5);
  background: linear-gradient(135deg, rgba(49, 121, 255, 0.06) 0%, rgba(49, 121, 255, 0.02) 100%);
  border: 1px solid rgba(49, 121, 255, 0.18);
  border-radius: var(--radius-md);
  text-align: center;
}
.calc-math-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emi-blue);
  margin-bottom: var(--space-4);
}
.calc-math-equation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(49, 121, 255, 0.18);
}
.calc-math-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--space-3) var(--space-4);
  background: var(--white);
  border: 1px solid rgba(49, 121, 255, 0.2);
  border-radius: var(--radius-sm);
  min-width: 160px;
}
.calc-math-step.result {
  background: var(--emi-blue);
  border-color: var(--emi-blue);
}
.calc-math-step.result .calc-math-num,
.calc-math-step.result .calc-math-cap { color: var(--white); }
.calc-math-step.result .calc-math-cap strong { color: var(--white); }
.calc-math-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.calc-math-cap {
  font-size: 11px;
  color: var(--gray-mid);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.3;
}
.calc-math-cap strong { color: var(--text-dark); font-weight: 700; }
.calc-math-op {
  font-size: 28px;
  font-weight: 600;
  color: var(--emi-blue);
  opacity: 0.6;
}
.calc-take-headline {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}
.calc-take-headline strong {
  color: var(--emi-blue);
  font-size: 32px;
  font-weight: 800;
}
.calc-take-headline .accent { color: var(--emi-blue); font-weight: 700; }
.calc-take-sub {
  margin-top: var(--space-2);
  font-size: 14px;
  color: var(--gray-mid);
  line-height: 1.5;
}
.calc-take-sub strong { color: var(--text-dark); font-weight: 700; }
.calc-take-sub em { font-style: normal; }

@media (max-width: 700px) {
  .calc-card { padding: var(--space-5); }
  .calc-inputs { grid-template-columns: 1fr; }
  .calc-result-row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .calc-take-headline { font-size: 18px; }
  .calc-take-headline strong { font-size: 26px; }
}

/* ====== Editable hero context ====== */
.hero-context-item .value.editable {
  cursor: text;
  padding: 2px 6px;
  margin: -2px -6px;
  border-radius: 6px;
  transition: background-color 120ms ease, box-shadow 120ms ease;
  border-bottom: 1px dashed rgba(49, 121, 255, 0.3);
}
.hero-context-item .value.editable:hover {
  background: rgba(49, 121, 255, 0.06);
  border-bottom-color: var(--emi-blue);
}
.hero-context-item .value.editable:focus {
  outline: none;
  background: rgba(49, 121, 255, 0.08);
  border-bottom-color: var(--emi-blue);
  box-shadow: 0 0 0 3px rgba(49, 121, 255, 0.15);
}
.hero-edit-hint {
  margin-top: var(--space-4);
  font-size: 12px;
  color: var(--gray-mid);
  display: flex;
  align-items: center;
  gap: 6px;
  font-style: italic;
}
.hero-edit-hint svg { width: 14px; height: 14px; opacity: 0.6; }

/* ====== Detail section (Agente Diagnóstico en detalle) ====== */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
}
.detail-step {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.detail-step:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.detail-step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--emi-blue);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
  margin-bottom: var(--space-2);
}
.detail-step-title {
  font-size: 24px; font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 8px;
}
.detail-soon {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-mid);
  background: var(--gray-lightest);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--gray-light);
}
.detail-step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-mid);
}
.detail-step-list li {
  padding-left: 18px;
  position: relative;
}
.detail-step-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 5px;
  background: var(--emi-blue);
  border-radius: 50%;
}
.detail-step-list strong { color: var(--text-dark); font-weight: 600; }

.detail-ia-note {
  margin-top: var(--space-6);
  background: rgba(49, 121, 255, 0.05);
  border-left: 3px solid var(--emi-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-4) var(--space-5);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dark);
}
.detail-ia-note strong { color: var(--emi-blue); }
.detail-ia-note em { color: var(--text-mid); font-style: italic; }

@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
}

/* ====== New compact close CTA (replaces poc-card) ====== */
.close-poc-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin: var(--space-7) 0;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.close-poc-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  color: var(--white);
}
.close-poc-chip .v {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.close-poc-chip .l {
  font-size: 12px;
  opacity: 0.85;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.close-cta { text-align: center; }
.close-cta-footnote {
  margin-top: var(--space-3);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  font-style: italic;
}

@media (max-width: 700px) {
  .close-poc-row { grid-template-columns: repeat(2, 1fr); }
}

/* ====== Pricing anexo section ====== */
.pricing-table-wrap {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  max-width: 920px;
  margin: var(--space-6) auto 0;
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
}
.pricing-table th,
.pricing-table td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-size: 15px;
  border-bottom: 1px solid var(--gray-light);
}
.pricing-table thead th {
  background: var(--gray-lightest);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-mid);
}
.pricing-table th.launch { color: var(--emi-blue); }
.pricing-table .lt-sub {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gray-mid);
  font-style: italic;
  font-size: 10px;
}
.pricing-table tbody tr:last-child td { border-bottom: none; }
.pricing-table .tier-name {
  font-weight: 700;
  color: var(--text-dark);
}
.pricing-table .launch-price {
  font-weight: 700;
  color: var(--emi-blue);
  font-variant-numeric: tabular-nums;
}
.pricing-table .list-price {
  color: var(--gray-mid);
  text-decoration: line-through;
  text-decoration-color: rgba(107, 107, 107, 0.5);
  font-variant-numeric: tabular-nums;
}
.pricing-footnote {
  padding: var(--space-4) var(--space-5);
  background: var(--gray-lightest);
  font-size: 12px;
  color: var(--gray-mid);
  font-style: italic;
  text-align: center;
}

@media (max-width: 700px) {
  .pricing-table th, .pricing-table td { padding: var(--space-3); font-size: 13px; }
  .pricing-table .list-price { display: none; }
  .pricing-table thead th.list { display: none; }
}

/* ====== Calc cost-per-baja editable inline ====== */
.calc-cost-editable {
  display: inline-block;
  min-width: 90px;
  padding: 2px 8px;
  margin: 0 4px;
  background: rgba(49, 121, 255, 0.08);
  border: 1px dashed rgba(49, 121, 255, 0.35);
  border-radius: 6px;
  color: var(--emi-blue);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: text;
  text-align: center;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.calc-cost-editable:hover { background: rgba(49, 121, 255, 0.14); }
.calc-cost-editable:focus {
  outline: none;
  background: rgba(49, 121, 255, 0.15);
  border-color: var(--emi-blue);
  border-style: solid;
}

/* ====== POC vs Producto Full anexo table ====== */
.poc-compare-table-wrap {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  max-width: 1080px;
  margin: var(--space-6) auto 0;
}
.poc-compare-table {
  width: 100%;
  border-collapse: collapse;
}
.poc-compare-table th,
.poc-compare-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: 14px;
  line-height: 1.45;
  border-bottom: 1px solid var(--gray-light);
  vertical-align: middle;
}
.poc-compare-table thead th {
  background: var(--gray-lightest);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--text-dark);
  padding: var(--space-4);
}
.poc-compare-table thead th.poc-col { color: var(--success); border-left: 2px solid rgba(16, 185, 129, 0.25); }
.poc-compare-table thead th.prod-col { color: var(--emi-blue); border-left: 2px solid rgba(49, 121, 255, 0.25); }
.poc-compare-table .th-sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: lowercase;
  color: var(--gray-mid);
  font-style: italic;
  margin-top: 2px;
}
.poc-compare-table td.concept {
  font-weight: 600;
  color: var(--text-dark);
  background: var(--gray-lightest);
  width: 32%;
  border-right: 1px solid var(--gray-light);
}
.poc-compare-table tbody tr:last-child td { border-bottom: none; }
.poc-compare-table tbody td:nth-child(2) { width: 30%; }
.poc-compare-table tbody td:nth-child(3) { width: 38%; }
.poc-compare-table .check {
  color: var(--success);
  font-weight: 700;
  font-size: 18px;
}
.poc-compare-table .cross {
  color: var(--emi-red);
  font-weight: 700;
  font-size: 16px;
}
.poc-compare-table .em-soon {
  font-size: 11.5px;
  font-style: italic;
  color: var(--gray-mid);
  margin-left: 4px;
}

@media (max-width: 760px) {
  .poc-compare-table th, .poc-compare-table td { padding: var(--space-2) var(--space-3); font-size: 12.5px; }
  .poc-compare-table td.concept { width: 36%; }
}

/* ====== Form validation states ====== */
.participant-input.input-error,
input.input-error {
  border-color: var(--emi-red) !important;
  box-shadow: 0 0 0 3px rgba(255, 89, 71, 0.18) !important;
  background: rgba(255, 89, 71, 0.04);
}
.trigger-error {
  background: rgba(255, 89, 71, 0.95);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.trigger-error.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
