/* ============================================
   NOVATECS · PROPUESTA CEMEX
   Tema claro premium · inspirado en Linear / Vercel
   ============================================ */

/* ---------- 1. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* ---------- 2. TOKENS ---------- */
:root {
  /* Paleta — fondo claro, acentos azul-violeta */
  --bg-0: #f0f1f5;
  --bg-1: #f8f9fc;
  --bg-2: #ffffff;
  --bg-3: #f3f4f6;
  --bg-4: #e5e7eb;

  --line:        #e5e7eb;
  --line-strong:  #d1d5db;

  --text-0: #1a1a2e;
  --text-1: #374151;
  --text-2: #6b7280;
  --text-3: #9ca3af;

  /* Acentos — azul-violeta */
  --accent:        #4f46e5;
  --accent-2:      #7c3aed;
  --accent-3:      #4f46e5;
  --accent-glow:   rgba(79, 70, 229, 0.15);
  --accent-glow-2: rgba(124, 58, 237, 0.12);

  /* Estados */
  --success: #059669;
  --warning: #d97706;
  --danger:  #dc2626;

  /* Gradientes */
  --grad-brand: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --grad-text:  linear-gradient(180deg, #1a1a2e 0%, #374151 100%);
  --grad-card:  linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);

  /* Tipografia */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Tamanos fluid */
  --fs-xs:   clamp(0.75rem,  0.72rem + 0.15vw, 0.82rem);
  --fs-sm:   clamp(0.875rem, 0.84rem + 0.18vw, 0.95rem);
  --fs-base: clamp(1rem,     0.96rem + 0.20vw, 1.08rem);
  --fs-md:   clamp(1.125rem, 1.07rem + 0.28vw, 1.25rem);
  --fs-lg:   clamp(1.375rem, 1.27rem + 0.50vw, 1.65rem);
  --fs-xl:   clamp(1.75rem,  1.56rem + 0.95vw, 2.4rem);
  --fs-2xl:  clamp(2.25rem,  1.85rem + 2.00vw, 3.5rem);
  --fs-3xl:  clamp(2.4rem,   1.85rem + 2.60vw, 4rem);

  /* Espaciado */
  --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;

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad-y: clamp(4rem, 8vw, 7.5rem);

  /* Radios */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Sombras */
  --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md:  0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg:  0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 40px rgba(79, 70, 229, 0.10);

  /* Animacion */
  --ease:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-2: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:  180ms;
  --dur:       320ms;
  --dur-slow:  720ms;
}

/* ---------- 3. BASE ---------- */
body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-1);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* ---------- ANIMATED BACKGROUND ---------- */
/* Dot grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle, #d1d5db 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
  animation: dotPulse 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 0.65; }
}

/* Gradient blobs */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 600px 600px at 15% 20%, rgba(79, 70, 229, 0.04), transparent 70%),
    radial-gradient(ellipse 500px 500px at 85% 60%, rgba(124, 58, 237, 0.035), transparent 70%),
    radial-gradient(ellipse 400px 400px at 50% 80%, rgba(99, 102, 241, 0.03), transparent 70%);
  animation: blobDrift 35s ease-in-out infinite;
  pointer-events: none;
}

@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(30px, -20px) scale(1.03); }
  50%      { transform: translate(-20px, 15px) scale(0.97); }
  75%      { transform: translate(15px, 25px) scale(1.02); }
}

/* Ensure all content is above the background */
body > * {
  position: relative;
  z-index: 1;
}

::selection {
  background: rgba(79, 70, 229, 0.15);
  color: var(--text-0);
}

/* Scrollbar claro discreto */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 10px; border: 2px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: #c4c8d0; }

/* ---------- 4. UTILIDADES ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  position: relative;
  padding-block: var(--section-pad-y);
  scroll-margin-top: 80px;
}

/* Section number close to decorative dot */
.section:not(.section--hero) .section__header::before {
  margin-top: 0;
  margin-bottom: 4px;
}

/* Consistent minimal top padding across content sections */
.section--demo,
.section--dashboard,
.section--diferenciadores,
.section--precios,
.section--propuesta {
  padding-top: 12px !important;
  padding-bottom: clamp(2rem, 4vw, 3rem) !important;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section__header {
  max-width: 760px;
  margin: 0 auto var(--space-5);
  text-align: center;
}

.section__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(79, 70, 229, 0.06);
  margin-bottom: var(--space-5);
}

.section__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-0);
  margin-bottom: var(--space-5);
}

.section__lead {
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--text-2);
  max-width: 640px;
  margin-inline: auto;
}

/* ---------- 5. NAV ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: var(--space-4);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: padding var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}

.nav.is-scrolled {
  padding-block: 6px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.nav.is-scrolled .logo-circle--sm {
  width: 28px; height: 28px;
  transition: width var(--dur) var(--ease), height var(--dur) var(--ease);
}

.nav.is-scrolled .nav__logo-text {
  font-size: var(--fs-sm);
}

.nav.is-scrolled .nav__links a {
  font-size: 12px;
  padding-block: 4px;
}

.nav.is-scrolled .nav__cta {
  padding: 6px 14px;
  font-size: 12px;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: var(--fs-md);
  color: var(--text-0);
  letter-spacing: -0.01em;
  transition: gap var(--dur) var(--ease);
}

.nav.is-scrolled .nav__brand { gap: 8px; }

/* ---------- Logo circular (Novatecs) ---------- */
.logo-circle {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 0 20px rgba(79, 70, 229, 0.10);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  animation: logoFloat 4.5s ease-in-out infinite;
  will-change: transform;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

.logo-circle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent 45%);
  pointer-events: none;
}

.logo-circle img {
  width: 84%;
  height: 84%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}

.logo-circle--sm { width: 38px; height: 38px; }
.logo-circle--md { width: 56px; height: 56px; }
.logo-circle--lg {
  width: 96px;
  height: 96px;
  animation-duration: 5.5s;
}

@media (prefers-reduced-motion: reduce) {
  .logo-circle { animation: none; }
}

.nav__logo-text { white-space: nowrap; }
.nav__logo-accent {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav__links {
  display: flex;
  gap: var(--space-6);
  font-size: var(--fs-sm);
  color: var(--text-2);
}

.nav__links a {
  transition: color var(--dur-fast) var(--ease);
  position: relative;
}

.nav__links a:hover { color: var(--text-0); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-0);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  transition: all var(--dur-fast) var(--ease);
}

.nav__cta:hover {
  background: var(--bg-3);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  transform: translateY(-1px);
}

@media (max-width: 820px) {
  .nav__links { display: none; }
}

/* ---------- 6. HERO ---------- */
.section--hero .hero__inner {
  transition: opacity 0.1s linear, transform 0.1s linear;
  will-change: opacity, transform;
}

.section--hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(5.5rem, 11vh, 8rem) clamp(2rem, 5vh, 4.5rem);
  border-top: none;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 80%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  animation: floatGlow 14s ease-in-out infinite;
}

.hero__glow--1 {
  width: 520px; height: 520px;
  background: var(--accent);
  top: 10%; left: 10%;
}

.hero__glow--2 {
  width: 460px; height: 460px;
  background: var(--accent-2);
  bottom: 10%; right: 10%;
  animation-delay: -7s;
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -30px) scale(1.08); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-1);
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: clamp(1rem, 2.4vh, 1.75rem);
}

.hero__eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.18);
  animation: pulseDot 2.4s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(5, 150, 105, 0.05); }
}

.hero__title {
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--text-0);
  max-width: 18ch;
  margin: 0 auto clamp(0.75rem, 1.8vh, 1.5rem);
}

.hero__title-accent {
  display: inline-block;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.hero__subtitle {
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 820px;
  margin: 0 auto clamp(1.25rem, 3vh, 2.25rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: clamp(1rem, 2.2vh, 1.75rem);
}

.btn__arrow {
  display: inline-block;
  font-size: 1.05em;
  transition: transform var(--dur-fast) var(--ease);
}

.btn:hover .btn__arrow { transform: translateY(2px); }

.hero__partner {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 9px 18px 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.6);
  margin-bottom: clamp(1.5rem, 3.5vh, 2.75rem);
}

.hero__partner-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-3);
}

.hero__partner-logo {
  height: 22px;
  width: auto;
  opacity: 0.85;
  /* No invert for light theme */
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  width: 100%;
  max-width: 920px;
  padding: clamp(0.75rem, 1.8vh, 1.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.hero__metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(0.5rem, 1.1vh, 1rem) var(--space-3);
  position: relative;
}

.hero__metric + .hero__metric::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--line);
}

.hero__metric-value {
  font-size: clamp(1.65rem, 1.2rem + 1.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}

.hero__metric-unit {
  font-size: 0.7em;
  margin-left: 2px;
}

.hero__metric-label {
  font-size: var(--fs-xs);
  color: var(--text-2);
  line-height: 1.4;
  max-width: 18ch;
}

.hero__metric-label small {
  display: block;
  font-size: 0.85em;
  opacity: 0.7;
  margin-top: 2px;
}

.hero__credibility {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.hero__credibility-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}

.hero__credibility-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  font-size: var(--fs-sm);
  color: var(--text-2);
}

.hero__credibility-item {
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero__credibility-dot {
  color: var(--text-3);
  opacity: 0.6;
}

@media (max-width: 640px) {
  .hero__credibility-dot { display: none; }
  .hero__credibility-logos { gap: 6px 12px; font-size: 12px; }
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border: 1.5px solid var(--text-3);
  border-radius: 14px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
  opacity: 0.5;
  transition: opacity var(--dur) var(--ease);
}

.hero__scroll:hover { opacity: 0.8; }

.hero__scroll-line {
  width: 2px;
  height: 8px;
  background: var(--text-2);
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
  0%   { transform: translateY(0);  opacity: 1; }
  60%  { transform: translateY(10px); opacity: 0; }
  61%  { transform: translateY(0);  opacity: 0; }
  100% { transform: translateY(0);  opacity: 1; }
}

/* Pantallas cortas */
@media (max-height: 820px) {
  .section--hero { padding-block: 5rem 2rem; }
  .hero__partner { margin-bottom: 1.25rem; }
  .hero__scroll  { display: none; }
}

@media (max-height: 720px) {
  .hero__title    { font-size: clamp(2rem, 1.4rem + 1.8vw, 2.8rem); }
  .hero__subtitle { font-size: var(--fs-base); margin-bottom: 1rem; }
  .hero__eyebrow  { margin-bottom: 0.75rem; }
  .hero__metric-value { font-size: clamp(1.4rem, 1rem + 1.3vw, 2.2rem); }
  .hero__metric-label { font-size: 11px; }
}

@media (max-width: 720px) {
  .hero__metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
  .hero__metric + .hero__metric::before { display: none; }
  .hero__metric:nth-child(odd) + .hero__metric::before {
    content: "";
    display: block;
    position: absolute;
    left: 0; top: 20%; bottom: 20%;
    width: 1px;
    background: var(--line);
  }
  .hero__scroll { display: none; }
}

@media (max-width: 480px) {
  .hero__partner { padding: 8px 16px; }
  .hero__partner-label { display: none; }
}

/* ---------- 7. CARD GENERICA ---------- */
.card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ---------- 8. BOTONES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 26px;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: var(--radius-pill);
  transition: all var(--dur-fast) var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35), inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn--ghost {
  background: rgba(255,255,255,0.7);
  color: var(--text-0);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  background: var(--bg-2);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.nav__actions {
  display: flex;
  gap: 0;
}

.nav__actions .nav__cta {
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
}

.nav__actions .nav__cta--portal {
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  border-left: none;
}

.nav__cta--portal {
  background: transparent;
  border-color: var(--line);
  color: var(--text-2);
  gap: 6px;
}

.nav__cta--portal:hover {
  border-color: var(--accent);
  color: var(--text-0);
  background: var(--bg-3);
}

.nav__cta--portal svg { opacity: 0.5; }
.nav__cta--portal:hover svg { opacity: 1; }

/* ---------- 9. SECCIONES ---------- */
.section--problema {
  background: linear-gradient(180deg, transparent, rgba(79,70,229,0.015) 50%, transparent);
  position: relative;
  padding-top: 12px;
  padding-bottom: 16px;
}

/* Compact Contexto to fit viewport */
.section--problema .section__header { margin-bottom: 10px; }
.section--problema .section__title { font-size: var(--fs-lg); margin-bottom: 6px; }
.section--problema .section__lead { font-size: var(--fs-sm); max-width: 540px; }
.section--problema .section__eyebrow { margin-bottom: 6px; }

.section--problema .ctx-tabs {
  padding: 3px;
  margin-bottom: 10px;
  max-width: 460px;
}
.section--problema .ctx-tab {
  padding: 7px 12px;
  font-size: 12px;
}
.section--problema .ctx-panel__title {
  font-size: 13px;
  margin-bottom: 8px;
}

/* Horizontal bars compact */
.section--problema .ctx-hbars { padding: 10px 14px; margin-bottom: 10px; }
.section--problema .ctx-hbar { margin-bottom: 4px; }
.section--problema .ctx-hbar__track { height: 6px; }
.section--problema .ctx-hbars__label { margin-bottom: 8px; }

/* World bottom compact */
.section--problema .ctx-world-bottom { gap: 10px; margin-bottom: 10px; }
.section--problema .ctx-stat-single { padding: 10px 14px; margin-bottom: 0; }
.section--problema .ctx-stat-single .ctx-card__num { font-size: 1.5rem; }
.section--problema .ctx-pioneers { padding: 8px 14px; }
.section--problema .ctx-pioneers__title { margin-bottom: 4px; }
.section--problema .ctx-pioneers__list { margin-bottom: 4px; }
.section--problema .ctx-pioneers__list li { line-height: 1.45; }
.section--problema .ctx-pioneers__gap { padding-top: 4px; }

/* Quote compact */
.section--problema .ctx-panel__quote {
  padding: 6px 12px;
  font-size: 11px;
}

/* Mexico tab compact */
.section--problema .mx-cards { gap: 8px; margin-bottom: 8px; }
.section--problema .mx-card { padding: 12px 12px 10px; }
.section--problema .mx-card__num { font-size: 1.8rem; margin-bottom: 4px; }
.section--problema .mx-card__text { font-size: 11px; }
.section--problema .mx-maturity { padding: 10px 16px 8px; margin-bottom: 8px; }
.section--problema .mx-highlight { padding: 10px 16px; margin-bottom: 8px; }

/* Team tab compact */
.section--problema .ctx-bars { padding: 10px 14px 6px; margin-bottom: 10px; }
.section--problema .ctx-bar { margin-bottom: 8px; }
.section--problema .ctx-bar__track { height: 14px; }
.section--problema .ctx-bar__result { padding: 8px 12px; margin-top: 8px; }
.section--problema .team-cards { gap: 8px; margin-bottom: 8px; }
.section--problema .team-card { padding: 12px 12px 8px; }
.section--problema .team-card__num { font-size: 1.8rem; }

.section--problema > .container { position: relative; z-index: 1; }

.section--problema .section__header {
  margin-bottom: var(--space-3);
}

.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ CONTEXT TABS (mundo / mx / equipo) ============ */
.ctx-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: var(--space-4);
  padding: 4px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  max-width: 520px;
  margin-inline: auto;
  box-shadow: var(--shadow-sm);
}

.ctx-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  position: relative;
}

.ctx-tab:hover { color: var(--text-0); background: var(--bg-3); }

.ctx-tab.is-active {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.ctx-tab__icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
}

.ctx-tab.is-active .ctx-tab__icon { color: #fff; }

.ctx-tab__ping {
  position: absolute;
  top: 8px; right: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: tabPing 2.5s ease-in-out infinite;
}

.ctx-tab:not(.is-active) .ctx-tab__ping { opacity: 1; }
.ctx-tab.is-active .ctx-tab__ping { opacity: 0; animation: none; }

@keyframes tabPing {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50%      { transform: scale(1.6); opacity: 0.3; }
}

/* ---- Paneles ---- */
.ctx-panel {
  display: none;
  animation: panelIn 0.4s ease-out;
}

.ctx-panel.is-active { display: block; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ctx-panel__title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-0);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

/* ---- Panel layout ---- */
.ctx-panel__body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-4);
  align-items: start;
  margin-bottom: var(--space-3);
}

.ctx-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  padding: var(--space-3);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.ctx-visual svg { width: 100%; height: auto; }

/* ---- Grid de stat cards ---- */
.ctx-grid {
  display: grid;
  gap: var(--space-3);
}

.ctx-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ctx-grid--4 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .ctx-panel__body { grid-template-columns: 1fr; }
  .ctx-visual { max-width: 220px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .ctx-grid--3, .ctx-grid--4 { grid-template-columns: 1fr; }
  .ctx-tabs { flex-direction: column; border-radius: var(--radius-lg); }
  .ctx-tab { justify-content: flex-start; }
}

.ctx-card {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-2);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.ctx-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ctx-card--warn { border-color: rgba(217,119,6,0.3); }
.ctx-card--warn .ctx-card__num { color: #d97706; }

.ctx-card--accent {
  background: linear-gradient(135deg, rgba(79,70,229,0.04), rgba(79,70,229,0.01)), var(--bg-2);
  border-color: rgba(79,70,229,0.25);
}

.ctx-card__num {
  display: block;
  font-size: clamp(1.4rem, 1rem + 0.8vw, 1.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin-bottom: 4px;
  font-feature-settings: "tnum" 1;
}

.ctx-card__unit {
  font-size: 0.55em;
  font-weight: 700;
  margin-left: 1px;
  vertical-align: 0.15em;
}

.ctx-card__text {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-1);
  margin-bottom: 4px;
}

.ctx-card__src {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

a.ctx-card__src:hover, .ctx-card__src a:hover { color: var(--accent); }

.ctx-card__src a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

/* ---- Quote / explicacion ---- */
.ctx-panel__quote {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-2);
  padding: 8px 14px;
  border-left: 2px solid var(--accent);
  background: rgba(79, 70, 229, 0.03);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  max-width: 780px;
}

.ctx-panel__quote strong { color: var(--text-0); font-weight: 600; }
.ctx-panel__quote em { color: var(--accent); font-style: italic; font-weight: 500; }

/* ---- Horizontal bars (mundo) ---- */
.ctx-hbars {
  margin-bottom: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  box-shadow: var(--shadow-sm);
}

.ctx-hbars__label {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--space-3);
}

.ctx-hbar {
  display: grid;
  grid-template-columns: 130px 1fr 50px;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.ctx-hbar__name {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
  text-align: right;
}

.ctx-hbar__track {
  height: 8px;
  background: var(--bg-3);
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1px solid var(--line);
}

.ctx-hbar__fill {
  height: 100%;
  width: 0;
  border-radius: var(--radius-pill);
  transition: width 1.2s cubic-bezier(0.22,1,0.36,1) 0.1s;
}

.ctx-hbar__fill--blue {
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  opacity: 0.85;
}

.ctx-hbar__fill--red {
  background: linear-gradient(90deg, #dc2626, #f97316);
  box-shadow: 0 0 8px rgba(239,68,68,0.3);
}

.ctx-panel.is-active .ctx-hbar__fill { width: var(--fill); }

.ctx-hbar__val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-1);
}

.ctx-hbar--alert .ctx-hbar__name { color: #dc2626; font-weight: 700; }
.ctx-hbar--alert .ctx-hbar__val { color: #dc2626; }

.ctx-hbar__badge {
  display: inline-block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: rgba(220,38,38,0.1);
  color: #dc2626;
  border: 1px solid rgba(220,38,38,0.2);
  margin-left: 4px;
  vertical-align: middle;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ---- World bottom ---- */
.ctx-world-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.ctx-pioneers {
  padding: 10px 14px;
  border: 1px solid rgba(79,70,229,0.2);
  border-radius: var(--radius-md);
  background: rgba(79,70,229,0.03);
}

.ctx-pioneers__title {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}

.ctx-pioneers__list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}

.ctx-pioneers__list li {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.6;
}

.ctx-pioneers__list li strong {
  color: var(--accent);
  font-weight: 600;
}

.ctx-pioneers__gap {
  font-size: 12px;
  color: var(--text-1);
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}

.ctx-pioneers__gap strong {
  color: #d97706;
  font-weight: 700;
}

@media (max-width: 640px) {
  .ctx-world-bottom { grid-template-columns: 1fr; }
}

/* ---- Stat individual destacado ---- */
.ctx-stat-single {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-2);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.ctx-stat-single .ctx-card__num {
  flex-shrink: 0;
  margin-bottom: 0;
}

.ctx-stat-single .ctx-card__text {
  margin-bottom: 0;
  flex: 1;
}

/* ---- Gauge donut (Mexico) ---- */
.ctx-gauge {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-bottom: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  box-shadow: var(--shadow-sm);
}

.ctx-gauge__visual { width: 140px; flex-shrink: 0; }
.ctx-gauge__visual svg { width: 100%; height: auto; }

.ctx-gauge__sources {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ---- Mexico: Fila 1 — Tres tarjetas ---- */
.mx-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.mx-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 16px 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.mx-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.mx-card--green { border-color: rgba(5,150,105,0.25); }
.mx-card--green::before { background: linear-gradient(90deg, #059669, #34d399); }
.mx-card--green .mx-card__num { background: linear-gradient(135deg, #059669, #10b981); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.mx-card--red { border-color: rgba(220,38,38,0.25); }
.mx-card--red::before { background: linear-gradient(90deg, #dc2626, #ef4444); }
.mx-card--red .mx-card__num { color: #dc2626; }

.mx-card--blue { border-color: rgba(79,70,229,0.25); }
.mx-card--blue::before { background: linear-gradient(90deg, #4f46e5, #7c3aed); }
.mx-card--blue .mx-card__num { background: linear-gradient(135deg, #4f46e5, #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.mx-card__num {
  font-size: clamp(1.9rem, 1.6rem + 1.6vw, 2.8rem);
  font-weight: 900;
  line-height: 1;
  display: block;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.mx-card__text {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-1);
  margin-bottom: 6px;
}

/* ---- Mexico: Fila 2 — Barra de madurez ---- */
.mx-maturity {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px 20px 10px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.mx-maturity__header {
  margin-bottom: 8px;
}

.mx-maturity__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-0);
  letter-spacing: 0.01em;
}

.mx-maturity__track {
  position: relative;
  height: 26px;
  background: var(--bg-3);
  border-radius: 7px;
  overflow: visible;
  margin-bottom: 8px;
}

.mx-maturity__fill {
  height: 100%;
  width: 0;
  border-radius: 7px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.mx-maturity__fill::after {
  content: '41.7%';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.mx-maturity__goal {
  position: absolute;
  top: -6px;
  bottom: -6px;
  width: 2px;
  border-left: 2px dashed var(--text-3);
}

.mx-maturity__goal-label {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.mx-maturity__caption {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
}

.mx-maturity__caption strong {
  color: var(--text-0);
}

/* ---- Mexico: Fila 3 — Dato destacado ---- */
.mx-highlight {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(5,150,105,0.05), rgba(79,70,229,0.04));
  border: 1px solid rgba(5,150,105,0.2);
  margin-bottom: 12px;
}

.mx-highlight__badge {
  font-size: 1.6rem;
  font-weight: 900;
  color: #059669;
  line-height: 1;
  flex-shrink: 0;
  padding-top: 1px;
}

.mx-highlight__text {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-1);
  margin-bottom: 4px;
}

.mx-highlight__text strong {
  color: var(--text-0);
}

.mx-highlight__sub {
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-2);
  margin-bottom: 6px;
}

.mx-highlight__srcs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 520px) {
  .mx-cards { grid-template-columns: 1fr; }
  .mx-highlight { flex-direction: column; gap: 10px; }
  .ctx-hbar { grid-template-columns: 90px 1fr 40px; }
}

/* ---- Bar chart (equipo) ---- */
.ctx-bars {
  margin-bottom: 12px;
  padding: 14px 18px 10px;
  border: 1px dashed rgba(234,88,12,0.3);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  box-shadow: var(--shadow-sm);
}

.ctx-bar { margin-bottom: 10px; }

.ctx-bar__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.ctx-bar__label { font-size: var(--fs-sm); color: var(--text-1); font-weight: 500; }
.ctx-bar__val { font-family: var(--font-mono); font-size: var(--fs-base); font-weight: 700; }
.ctx-bar__val--hot { color: #ea580c; }
.ctx-bar__val--cold { color: #64748b; }

.ctx-bar__track {
  width: 100%; height: 18px;
  background: var(--bg-3);
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1px solid var(--line);
}

.ctx-bar__fill {
  height: 100%;
  width: 0;
  border-radius: var(--radius-pill);
  transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.ctx-bar__fill--hot { background: linear-gradient(90deg, #ea580c, #f97316, #fb923c); box-shadow: 0 0 12px rgba(249,115,22,0.3); }
.ctx-bar__fill--cold { background: linear-gradient(90deg, #475569, #64748b, #94a3b8); }

.ctx-panel.is-active .ctx-bar__fill { width: var(--fill); }

.ctx-bar__result {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px; padding: 10px 14px;
  background: linear-gradient(135deg, rgba(234,88,12,0.08), rgba(220,38,38,0.04));
  border: 1px solid rgba(234,88,12,0.25);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm); color: var(--text-0); line-height: 1.4;
}

.ctx-bar__result strong { color: #ea580c; font-weight: 800; font-size: 1.2em; }
.ctx-bar__eq { font-size: 1.5rem; font-weight: 800; color: #ea580c; }

/* ---- Tu equipo: Fila de 3 metricas ---- */
.team-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.team-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 14px 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.team-card--fire { border-color: rgba(234,88,12,0.25); }
.team-card--fire::before { background: linear-gradient(90deg, #dc2626, #f97316); }
.team-card--fire .team-card__num { background: linear-gradient(135deg, #dc2626, #f97316); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.team-card--orange { border-color: rgba(234,88,12,0.25); }
.team-card--orange::before { background: linear-gradient(90deg, #f97316, #fbbf24); }
.team-card--orange .team-card__num { color: #ea580c; }

.team-card--green { border-color: rgba(5,150,105,0.25); }
.team-card--green::before { background: linear-gradient(90deg, #059669, #10b981); }
.team-card--green .team-card__num { background: linear-gradient(135deg, #059669, #10b981); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.team-card__num {
  font-size: clamp(1.8rem, 1.5rem + 1.4vw, 2.4rem);
  font-weight: 900;
  line-height: 1;
  display: block;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.team-card__text {
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-1);
  margin-bottom: 4px;
}

.team-card__sub {
  font-size: 10px;
  line-height: 1.35;
  color: var(--text-2);
}

.team-card__sub--alert {
  color: #059669;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (max-width: 520px) {
  .team-cards { grid-template-columns: 1fr; }
}

/* ---- Cierre destacado ---- */
.ctx-close {
  max-width: 780px;
  margin: var(--space-4) auto 0;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 12px var(--space-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(79,70,229,0.04), rgba(124,58,237,0.03)), var(--bg-2);
  box-shadow: var(--shadow-md);
}

.ctx-close__num {
  font-size: clamp(2rem, 1.5rem + 1.2vw, 2.8rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  flex-shrink: 0;
}

.ctx-close__text {
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--text-1);
}

.ctx-close__text strong {
  display: block;
  margin-top: 6px;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

@media (max-width: 640px) {
  .ctx-close { flex-direction: column; text-align: center; gap: var(--space-4); }
}

/* LEGACY — zoom-block */
.zoom-block {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(1.75rem, 3vw, 3rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: var(--bg-2);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.zoom-block::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 0% 0%, var(--block-glow, transparent), transparent 55%),
    radial-gradient(circle at 100% 100%, var(--block-glow, transparent), transparent 55%);
  opacity: 0.8;
}

.zoom-block::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--block-accent, var(--accent)), transparent);
  opacity: 0.9;
}

.zoom-block--world {
  --block-accent: #4f46e5;
  --block-glow: rgba(79, 70, 229, 0.06);
}

.zoom-block--mx {
  --block-accent: #7c3aed;
  --block-glow: rgba(124, 58, 237, 0.06);
}

.zoom-block--team {
  --block-accent: #ea580c;
  --block-glow: rgba(234, 88, 12, 0.06);
  border-color: rgba(234, 88, 12, 0.25);
}

.zoom-block__head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

.zoom-block__icon {
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--block-accent, var(--accent));
  background: var(--bg-3);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.zoom-block__icon svg {
  width: 32px;
  height: 32px;
}

.zoom-block__head-text { flex: 1; min-width: 0; }

.zoom-block__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--block-accent, var(--accent));
  padding: 4px 12px;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  opacity: 0.95;
}

.zoom-block__title {
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text-0);
  max-width: 52ch;
}

/* ---- Stats grid ---- */
.zoom-block__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

.zoom-block__stats--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 820px) {
  .zoom-block__stats,
  .zoom-block__stats--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .zoom-block__stats,
  .zoom-block__stats--4 { grid-template-columns: 1fr; }
}

.stat {
  display: flex;
  flex-direction: column;
  padding: var(--space-5) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-3);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.stat:hover {
  border-color: var(--block-accent, var(--line-strong));
  transform: translateY(-2px);
}

.stat__num {
  font-size: clamp(2.4rem, 1.8rem + 1.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--block-accent, var(--accent));
  margin-bottom: var(--space-4);
  font-feature-settings: "tnum" 1;
}

.stat__unit {
  font-size: 0.55em;
  font-weight: 700;
  margin-left: 2px;
  vertical-align: 0.18em;
}

.stat__dash {
  font-size: 0.7em;
  opacity: 0.6;
  margin: 0 2px;
}

.stat__text {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--text-1);
  flex: 1;
  margin-bottom: var(--space-3);
}

.stat__source {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.stat--warning .stat__num {
  color: #d97706;
}

.stat--highlight {
  background: linear-gradient(135deg, rgba(79,70,229,0.05), rgba(79,70,229,0.02)), var(--bg-2);
  border-color: rgba(79,70,229,0.2);
}

.stat--highlight .stat__num {
  font-size: clamp(2.8rem, 2.2rem + 1.8vw, 3.8rem);
}

/* ---- Explicacion ---- */
.zoom-block__explain {
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--text-1);
  padding: var(--space-5) var(--space-6);
  border-left: 3px solid var(--block-accent, var(--accent));
  background: rgba(79, 70, 229, 0.02);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  position: relative;
  z-index: 1;
}

.zoom-block__explain strong {
  color: var(--text-0);
  font-weight: 600;
}

.zoom-block__explain em {
  font-style: italic;
  color: var(--block-accent, var(--accent));
  font-weight: 500;
}

/* ============ FLECHA TRANSICION ============ */
.zoom-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  margin: var(--space-6) auto;
  color: var(--text-3);
}

.zoom-arrow__line {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent, var(--line-strong), var(--accent));
}

.zoom-arrow__label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg-2);
}

.zoom-arrow svg {
  color: var(--accent);
  animation: nextBtnBounce 2s ease-in-out infinite;
}

/* ============ BAR CHART — BRECHA 9% ============ */
.gap-chart {
  margin-bottom: var(--space-6);
  padding: var(--space-6);
  border: 1px dashed rgba(234, 88, 12, 0.3);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-sm);
}

.gap-bar { margin-bottom: var(--space-5); }

.gap-bar__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.gap-bar__label {
  font-size: var(--fs-sm);
  color: var(--text-1);
  font-weight: 500;
}

.gap-bar__value {
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.gap-bar--work  .gap-bar__value { color: #ea580c; }
.gap-bar--budget .gap-bar__value { color: #64748b; }

.gap-bar__track {
  width: 100%;
  height: 12px;
  background: var(--bg-3);
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1px solid var(--line);
}

.gap-bar__fill {
  height: 100%;
  width: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #f97316, #fb923c);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.3);
  transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.gap-bar__fill--small {
  background: linear-gradient(90deg, #64748b, #94a3b8);
  box-shadow: none;
}

.reveal.is-visible .gap-bar__fill { width: var(--fill); }
.gap-chart.reveal.is-visible .gap-bar__fill { width: var(--fill); }
.zoom-block.reveal.is-visible .gap-bar__fill { width: var(--fill); }

.gap-result {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-5);
  padding: var(--space-5);
  background: linear-gradient(135deg, rgba(234,88,12,0.08), rgba(220,38,38,0.04));
  border: 1px solid rgba(234,88,12,0.25);
  border-radius: var(--radius-md);
}

.gap-result__equals {
  font-size: 2rem;
  font-weight: 800;
  color: #ea580c;
  line-height: 1;
}

.gap-result__text {
  font-size: var(--fs-md);
  color: var(--text-0);
  line-height: 1.4;
}

.gap-result__text strong {
  font-size: 1.3em;
  color: #ea580c;
  font-weight: 800;
}

.gap-chart__source {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-align: right;
  margin-top: var(--space-3);
}

/* ============ CIERRE DESTACADO (6%) ============ */
.closing-stat {
  max-width: 860px;
  margin: var(--space-9) auto 0;
  padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1.75rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--space-7);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(79,70,229,0.04), rgba(124,58,237,0.03)), var(--bg-2);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.closing-stat::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.3;
  pointer-events: none;
}

.closing-stat__num {
  font-size: clamp(4rem, 3rem + 3vw, 6rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-feature-settings: "tnum" 1;
}

.closing-stat__num .stat__unit {
  font-size: 0.5em;
  margin-left: 4px;
}

.closing-stat__body p {
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--text-1);
  margin-bottom: var(--space-3);
}

.closing-stat__body strong {
  font-weight: 600;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 640px) {
  .closing-stat {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-4);
  }
  .zoom-block__head { flex-direction: column; }
  .zoom-block__icon { width: 54px; height: 54px; }
}

/* ================================================
   3. LA SOLUCION — 7 equipos en GRID (slide)
   ================================================ */
.section--solucion {
  min-height: auto;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.section--solucion > .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 18px;
  padding-bottom: 16px;
}

.section__header--compact { margin-bottom: var(--space-4) !important; flex-shrink: 0; max-width: 100%; }
.section__header--compact .section__title { margin-bottom: 4px; font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); }
.section__header--compact .section__lead { margin-bottom: 0; font-size: 17px; line-height: 1.5; }
.section__lead-indent { padding-left: 2em; color: var(--text-2); }
.section__header--compact .section__eyebrow { margin-bottom: 4px; }

/* -- Headline entre subtítulo y grid -- */
.sol-headline {
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-5);
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.01em;
}

/* -- Roadmap footnote -- */
.sol-roadmap {
  position: relative;
  z-index: 1;
  font-size: var(--fs-sm);
  font-style: italic;
  line-height: 1.5;
  color: var(--text-2);
  text-align: center;
  max-width: 640px;
  margin: var(--space-5) auto 0;
  padding: 10px 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .sol-roadmap {
  background: rgba(255,255,255,0.03);
  box-shadow: none;
}

/* -- Grid layout: 4 top + 3 bottom -- */
.sol-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  margin-top: var(--space-4);
}

.sol-grid__row {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  width: 100%;
  position: relative;
  z-index: 10;
}

.sol-grid__row--4 { max-width: 1200px; }
.sol-grid__row--3 { max-width: 900px; }

/* -- Horizontal arrows between cards -- */
.sol-grid__harrow {
  display: flex;
  align-items: center;
  color: var(--text-3);
  font-size: 20px;
  flex-shrink: 0;
  opacity: 0.5;
}

/* -- Curved arrows from row 1 to row 2 -- */
.sol-grid__curve {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px;
  color: var(--text-3);
  opacity: 0.4;
  margin: -2px 0;
}

.sol-grid__curve svg {
  width: 28px;
  height: 24px;
}

/* -- Individual card -- */
.sol-card {
  position: relative;
  flex: 1 1 210px;
  max-width: 250px;
  min-width: 190px;
  padding: 22px 18px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  cursor: default;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  text-align: center;
}

.sol-card:hover {
  border-color: rgba(79,70,229,0.35);
  box-shadow: 0 4px 20px rgba(79,70,229,0.10);
  transform: translateY(-4px);
  z-index: 10;
}

.sol-card--live {
  border-color: rgba(5,150,105,0.35);
  box-shadow: 0 2px 12px rgba(5,150,105,0.08);
}

.sol-card--live:hover {
  border-color: rgba(5,150,105,0.5);
  box-shadow: 0 4px 24px rgba(5,150,105,0.15);
  transform: translateY(-4px);
}

.sol-card__title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.sol-card__icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; }

.sol-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-0);
  line-height: 1.2;
}

.sol-card__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.sol-card__badge--live {
  background: #059669;
  color: #fff;
}

.sol-card__badge--dev {
  background: #4f46e5;
  color: #fff;
}

.sol-card__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.sol-card__crew {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.01em;
}

.sol-card__desc { display: none; }

/* -- Tooltip -- */
.sol-card__tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) scale(0.92);
  width: 300px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 16px 18px 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
  z-index: 100;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.04);
}

.sol-card__tooltip--green { border-color: rgba(5,150,105,0.4); box-shadow: 0 12px 40px rgba(0,0,0,0.15), 0 0 12px rgba(5,150,105,0.1); }
.sol-card__tooltip--blue  { border-color: rgba(79,70,229,0.3); box-shadow: 0 12px 40px rgba(0,0,0,0.15), 0 0 10px rgba(79,70,229,0.08); }

.sol-card__tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #ffffff;
}

.sol-card:hover .sol-card__tooltip,
.sol-card.is-touch .sol-card__tooltip {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
}

/* Level 1 — Subtitulo */
.sol-card__tip-sub {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-2);
  margin-bottom: 10px;
}

/* Level 2 — Flujo */
.sol-card__tip-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 10px;
  padding: 8px 10px;
  background: var(--bg-3);
  border-radius: 8px;
  border: 1px solid var(--line);
}

.sol-card__tip-flow span {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-0);
  white-space: nowrap;
}

.sol-card__tip-flow span + span::before {
  content: '\2192';
  margin: 0 5px;
  color: var(--text-3);
  font-weight: 400;
}

/* Level 3 — Agentes como pills */
.sol-card__tip-agents {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.sol-card__tip-agents li {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-1);
  padding: 3px 9px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}

/* -- Bottom line -- */
.sol-bottom {
  font-size: 12px;
  color: var(--text-2);
  text-align: center;
  line-height: 1.5;
  margin: 0;
  padding: 8px 0 0;
  flex-shrink: 0;
  border-top: 1px solid var(--line);
}

.sol-bottom strong { color: var(--text-0); font-weight: 700; }

@media (max-width: 700px) {
  .sol-grid__row { flex-wrap: wrap; gap: 8px; }
  .sol-grid__harrow { display: none; }
  .sol-grid__curve { display: none; }
  .sol-card { max-width: 100%; flex-basis: calc(50% - 4px); }
  .sol-card__tooltip { left: 0; transform: translateX(0) scale(0.95); }
  .sol-card:hover .sol-card__tooltip,
  .sol-card.is-touch .sol-card__tooltip { transform: translateX(0) scale(1); }
  .sol-card__tooltip::after { left: 24px; }
}

/* -- OLD sidebar layout (hidden, kept for JS compat) -- */
.sol-split { display: none; }
.sol-list { display: none; }
.sol-detail { display: none; }
.sol-panel { display: none; }
.sol-item { display: none; }

.section--demo           { background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(79,70,229,0.03), transparent 70%); }
/* Dashboard section — minimal header, dashboard fills viewport */
.section--dashboard {
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

.section--dashboard .section__header {
  margin-bottom: var(--space-3);
}

.section--dashboard .section__title {
  font-size: var(--fs-lg);
  margin-bottom: 4px;
}

.section--dashboard .section__eyebrow {
  margin-bottom: 6px;
}

.section--dashboard .section:not(.section--hero)::before,
.section--dashboard .section:not(.section--hero)::after {
  display: none;
}
.section--diferenciadores{}
.section--precios        { background: linear-gradient(180deg, transparent, rgba(124,58,237,0.02), transparent); }
.section--propuesta      {}

.solucion__teams {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ============ PRICING ============ */
.section--precios {
  padding-top: 12px !important;
  padding-bottom: clamp(1.5rem, 3vw, 2rem) !important;
  background: linear-gradient(180deg, transparent, rgba(124,58,237,0.03), transparent);
}

.section--precios .section__header { margin-bottom: 14px; }

.pricing {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 14px;
  max-width: 1150px;
  margin: 0 auto 14px;
  align-items: stretch;
}

.pricing__card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .pricing__card {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
}

/* Featured (Starter) */
.pricing__card--featured {
  background: linear-gradient(135deg, rgba(79,70,229,0.05), rgba(124,58,237,0.03)), var(--bg-2);
  box-shadow: 0 12px 40px rgba(79,70,229,0.15), var(--shadow-md);
  transform: translateY(-4px);
  transition: transform 0.3s, box-shadow 0.3s;
}

.pricing__card--featured::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.pricing__card--featured:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 56px rgba(79,70,229,0.25), var(--shadow-lg);
}

[data-theme="dark"] .pricing__card--featured {
  background: linear-gradient(135deg, rgba(91,140,255,0.1), rgba(124,92,255,0.06));
}

/* Soon / Later plans — grayed out */
.pricing__card--soon { opacity: 0.6; }
.pricing__card--later { opacity: 0.5; }

/* Badge */
.pricing__badge {
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.pricing__badge--live {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}

.pricing__badge--soon {
  background: var(--bg-3);
  color: var(--text-2);
  border: 1px solid var(--line);
}

/* Plan name */
.pricing__plan {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-0);
  letter-spacing: -0.01em;
  margin: 6px 0 4px;
  text-transform: uppercase;
}

/* Price */
.pricing__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.pricing__card--featured .pricing__amount {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.pricing__card--soon .pricing__amount,
.pricing__card--later .pricing__amount {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-2);
  line-height: 1;
}

.pricing__period {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-2);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Description */
.pricing__desc {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 10px;
  min-height: 32px;
}

/* Features list */
.pricing__feats {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.pricing__feats li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text-1);
}

.pricing__feats strong {
  color: var(--text-0);
  font-weight: 700;
}

.pricing__check {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  margin-top: 2px;
  background: rgba(79,70,229,0.15);
  color: var(--accent);
}

.pricing__card--featured .pricing__check {
  background: var(--grad-brand);
  color: #fff;
}

/* Overage info */
.pricing__extra {
  padding: 8px 10px;
  background: rgba(79,70,229,0.04);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

[data-theme="dark"] .pricing__extra {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.06);
}

.pricing__extra p {
  font-size: 10.5px;
  color: var(--text-1);
  margin: 0;
}

.pricing__extra strong { color: var(--text-0); font-weight: 700; }

.pricing__extra small {
  display: block;
  font-size: 9.5px;
  color: var(--text-3);
  margin-top: 3px;
}

/* Button */
.pricing__btn {
  display: block;
  padding: 12px 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  text-decoration: none;
}

.pricing__btn--primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 4px 16px rgba(79,70,229,0.3);
}

.pricing__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79,70,229,0.4);
}

.pricing__btn--disabled {
  background: var(--bg-3);
  color: var(--text-3);
  cursor: not-allowed;
  border: 1px solid var(--line);
}

[data-theme="dark"] .pricing__btn--disabled {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.06);
}

/* Footer */
.pricing__footer {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.pricing__footer p {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  margin: 0 0 4px;
}

.pricing__footer-sub {
  font-size: 11px !important;
  font-weight: 500 !important;
  color: var(--text-2) !important;
}

.pricing__footer-sub strong {
  color: var(--text-0);
  font-weight: 700;
}

.pricing__roi {
  margin-top: 28px;
  padding: 18px 22px;
  background: rgba(123, 136, 255, 0.06);
  border: 1px solid rgba(123, 136, 255, 0.18);
  border-radius: 14px;
  text-align: left;
}

.pricing__roi-label {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2, #9aa5ff);
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing__roi p {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--text-1);
  line-height: 1.55;
  margin: 0;
}

.pricing__roi p strong {
  color: var(--text-0);
  font-weight: 700;
}

/* Portrait — Starter full, Growth/Enterprise as compact strips */
html.presentation-portrait .section--precios .section__title { font-size: 1.1rem; }
html.presentation-portrait .section--precios .section__lead { font-size: 10px; }
html.presentation-portrait .section--precios .section__header { margin-bottom: 6px; }

html.presentation-portrait .pricing {
  grid-template-columns: 1fr;
  gap: 6px;
  margin-bottom: 6px;
}

/* Starter: full card but compact */
html.presentation-portrait .pricing__card--featured {
  padding: 14px 16px;
  transform: none !important;
}
html.presentation-portrait .pricing__card--featured:hover { transform: none !important; }

html.presentation-portrait .pricing__badge { font-size: 8px; padding: 2px 8px; top: -8px; }
html.presentation-portrait .pricing__plan { font-size: 11px; margin: 2px 0 2px; }
html.presentation-portrait .pricing__card--featured .pricing__amount { font-size: 28px; }
html.presentation-portrait .pricing__desc { font-size: 10px; margin-bottom: 6px; min-height: 0; }
html.presentation-portrait .pricing__feats { gap: 3px; margin-bottom: 6px; }
html.presentation-portrait .pricing__feats li { font-size: 10px; line-height: 1.3; }
html.presentation-portrait .pricing__check { width: 12px; height: 12px; font-size: 8px; }
html.presentation-portrait .pricing__extra { padding: 5px 8px; margin-bottom: 6px; }
html.presentation-portrait .pricing__extra p { font-size: 9.5px; }
html.presentation-portrait .pricing__extra small { font-size: 8.5px; }
html.presentation-portrait .pricing__btn { padding: 8px 14px; font-size: 11px; }

/* Growth + Enterprise: COMPACT STRIP — name + price + badge only */
html.presentation-portrait .pricing__card--soon,
html.presentation-portrait .pricing__card--later {
  flex-direction: row;
  align-items: center;
  padding: 10px 14px;
  gap: 10px;
  flex-wrap: wrap;
}

html.presentation-portrait .pricing__card--soon .pricing__badge,
html.presentation-portrait .pricing__card--later .pricing__badge {
  position: static;
  order: 3;
  margin-left: auto;
}

html.presentation-portrait .pricing__card--soon .pricing__plan,
html.presentation-portrait .pricing__card--later .pricing__plan {
  font-size: 11px;
  margin: 0;
  order: 1;
}

html.presentation-portrait .pricing__card--soon .pricing__price,
html.presentation-portrait .pricing__card--later .pricing__price {
  order: 2;
  margin: 0;
  align-items: baseline;
}

html.presentation-portrait .pricing__card--soon .pricing__amount,
html.presentation-portrait .pricing__card--later .pricing__amount { font-size: 18px; }

html.presentation-portrait .pricing__card--soon .pricing__period,
html.presentation-portrait .pricing__card--later .pricing__period { font-size: 8px; }

/* Hide everything else on Growth/Enterprise in portrait */
html.presentation-portrait .pricing__card--soon .pricing__desc,
html.presentation-portrait .pricing__card--soon .pricing__feats,
html.presentation-portrait .pricing__card--soon .pricing__extra,
html.presentation-portrait .pricing__card--soon .pricing__btn,
html.presentation-portrait .pricing__card--later .pricing__desc,
html.presentation-portrait .pricing__card--later .pricing__feats,
html.presentation-portrait .pricing__card--later .pricing__extra,
html.presentation-portrait .pricing__card--later .pricing__btn {
  display: none;
}

html.presentation-portrait .pricing__footer p { font-size: 10px; margin-bottom: 2px; }
html.presentation-portrait .pricing__footer-sub { font-size: 9px !important; }

/* ============ DIFERENCIADORES ============ */
.section--diferenciadores {
  padding-top: 12px !important;
  padding-bottom: clamp(1.5rem, 3vw, 2rem) !important;
}

.section--diferenciadores .section__header { margin-bottom: 10px; }

/* BLOCK 1 — Quote */
.dif__quote {
  max-width: 1000px;
  margin: 0 auto 16px;
  padding: 14px 20px;
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, rgba(79,70,229,0.08), rgba(124,58,237,0.04) 60%, transparent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.dif__quote p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-1);
  margin: 0;
}

.dif__quote strong {
  color: var(--text-0);
  font-weight: 700;
}

.dif__quote strong.text-gradient {
  font-weight: 700;
}

/* BLOCK 2 — Compare columns */
.dif__compare {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto 16px;
}

.dif__col {
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dif__col-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 4px;
}

/* LEFT: Alternatives — sober, gray */
.dif__col--alt {
  background: rgba(100, 116, 139, 0.05);
  border: 1px solid var(--line);
}

[data-theme="dark"] .dif__col--alt {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.06);
}

.dif__col--alt .dif__col-title {
  color: var(--text-2);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.dif__alt {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

[data-theme="dark"] .dif__alt { border-color: rgba(255,255,255,0.05); }

.dif__alt:last-child { border-bottom: none; padding-bottom: 0; }
.dif__alt:first-of-type { padding-top: 0; }

.dif__alt strong {
  display: block;
  font-size: 12.5px;
  color: var(--text-1);
  margin-bottom: 3px;
  font-weight: 600;
}

.dif__alt p {
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-2);
  margin: 0;
}

/* RIGHT: Novatecs — prominent with gradient border */
.dif__col--nov {
  background: linear-gradient(135deg, rgba(79,70,229,0.04), rgba(124,58,237,0.03)), var(--bg-2);
  position: relative;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s;
}

.dif__col--nov::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.8;
  pointer-events: none;
}

.dif__col--nov:hover {
  box-shadow: 0 12px 40px rgba(79,70,229,0.2), var(--shadow-md);
}

[data-theme="dark"] .dif__col--nov {
  background: linear-gradient(135deg, rgba(91,140,255,0.08), rgba(124,92,255,0.06));
}

.dif__col-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.dif__col-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  color: #fff;
}

.dif__col--nov .dif__col-title {
  color: var(--text-0);
  font-size: 16px;
}

.dif__checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.dif__checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-1);
}

.dif__checks strong {
  color: var(--text-0);
  font-weight: 700;
}

.dif__check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}

/* BLOCK 3 — Three pillars */
.dif__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto 14px;
}

.dif__pillar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s;
}

.dif__pillar:hover {
  transform: translateY(-2px);
  border-color: rgba(79,70,229,0.3);
}

[data-theme="dark"] .dif__pillar {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
}

.dif__pillar-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.dif__pillar strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 2px;
}

.dif__pillar p {
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--text-2);
  margin: 0;
}

/* BLOCK 4 — Closing */
.dif__closing {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(14px, 1rem + 0.4vw, 17px);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  color: var(--text-0);
  padding: 10px 16px;
}

/* Portrait adjustments — fit everything in one viewport */
html.presentation-portrait .section--diferenciadores .section__header { margin-bottom: 6px; }
html.presentation-portrait .section--diferenciadores .section__title { font-size: 1.1rem; margin-bottom: 2px; }
html.presentation-portrait .section--diferenciadores .section__lead { font-size: 10px; }

html.presentation-portrait .dif__quote {
  padding: 8px 12px;
  margin-bottom: 8px;
  border-left-width: 2px;
}
html.presentation-portrait .dif__quote p { font-size: 9.5px; line-height: 1.4; }

html.presentation-portrait .dif__compare { grid-template-columns: 1fr; gap: 6px; margin-bottom: 8px; }
html.presentation-portrait .dif__col { padding: 8px 10px; gap: 4px; border-radius: 8px; }
html.presentation-portrait .dif__col-title { font-size: 11px; margin-bottom: 2px; }
html.presentation-portrait .dif__col--nov .dif__col-title { font-size: 12px; }
html.presentation-portrait .dif__col--alt .dif__col-title { font-size: 9px; }

html.presentation-portrait .dif__alt { padding: 4px 0; }
html.presentation-portrait .dif__alt strong { font-size: 10px; margin-bottom: 1px; }
html.presentation-portrait .dif__alt p { font-size: 9px; line-height: 1.3; }

html.presentation-portrait .dif__col-header { margin-bottom: 2px; gap: 6px; }
html.presentation-portrait .dif__col-badge { font-size: 8px; padding: 2px 7px; }

html.presentation-portrait .dif__checks { gap: 3px; }
html.presentation-portrait .dif__checks li { font-size: 10px; line-height: 1.3; gap: 6px; }
html.presentation-portrait .dif__check { width: 14px; height: 14px; font-size: 9px; }

html.presentation-portrait .dif__pillars { grid-template-columns: 1fr; gap: 4px; margin-bottom: 6px; }
html.presentation-portrait .dif__pillar { padding: 6px 10px; gap: 8px; }
html.presentation-portrait .dif__pillar-icon { font-size: 16px; }
html.presentation-portrait .dif__pillar strong { font-size: 10px; margin-bottom: 0; }
html.presentation-portrait .dif__pillar p { font-size: 9px; line-height: 1.25; }

html.presentation-portrait .dif__closing { font-size: 11px; padding: 4px 10px; line-height: 1.3; }

/* ---------- 10. DEMO (chat) ---------- */
.section--demo {
  min-height: auto;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.section--demo > .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 18px;
  padding-bottom: 12px;
}

.section--demo .section__header {
  margin-bottom: var(--space-2);
}

.section--demo .section__eyebrow { margin-bottom: 2px; }
.section--demo .section__title { margin-bottom: 2px; font-size: var(--fs-lg); }
.section--demo .section__lead { font-size: var(--fs-sm); }

.demo__wrapper {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-4);
  align-items: start;
  max-width: 1060px;
  margin-inline: auto;
  flex: 1;
  width: 100%;
}

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

/* -- Chat frame -- */
.demo__chat {
  width: 100%;
}

.demo__chat-frame {
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 220px);
  max-height: 460px;
  min-height: 380px;
}

/* -- Header verde WhatsApp -- */
.demo__chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #075e54, #128c7e);
  color: #fff;
  flex-shrink: 0;
}

.demo__chat-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.demo__chat-avatar svg {
  width: 20px; height: 20px;
}

.demo__chat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.demo__chat-name {
  font-weight: 600;
  font-size: 13px;
  color: #fff;
}

.demo__chat-status {
  font-size: 10px;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 5px;
}

.demo__chat-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 0 2px rgba(37,211,102,0.3);
  animation: pulseDot 2.4s ease-in-out infinite;
}

/* -- Messages area -- */
.demo__messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #e5ddd5;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9c2b8' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

[data-theme="dark"] .demo__messages {
  background: #0b141a;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.msg {
  max-width: 82%;
  padding: 6px 10px 4px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  word-wrap: break-word;
  animation: msgIn 320ms var(--ease) both;
  position: relative;
  box-shadow: 0 1px 1px rgba(0,0,0,0.08);
}

.msg--bot {
  align-self: flex-start;
  background: #ffffff;
  color: #303030;
  border-bottom-left-radius: 2px;
}

[data-theme="dark"] .msg--bot {
  background: #1f2c34;
  color: #e9edef;
}

.msg--user {
  align-self: flex-end;
  background: #d9fdd3;
  color: #303030;
  border-bottom-right-radius: 2px;
}

[data-theme="dark"] .msg--user {
  background: #005c4b;
  color: #e9edef;
}

.msg__time {
  display: block;
  text-align: right;
  font-size: 10px;
  color: rgba(0,0,0,0.35);
  margin-top: 3px;
}

[data-theme="dark"] .msg__time {
  color: rgba(255,255,255,0.4);
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -- Input bar -- */
.demo__input {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: #f0f2f5;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}

[data-theme="dark"] .demo__input {
  background: #1f2c34;
  border-top-color: rgba(255,255,255,0.06);
}

.demo__input input {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  outline: none;
  font-size: 12.5px;
  color: #303030;
  transition: border-color var(--dur-fast) var(--ease);
}

[data-theme="dark"] .demo__input input {
  background: #2a3942;
  border-color: transparent;
  color: #e9edef;
}

.demo__input input::placeholder {
  color: #999;
}

[data-theme="dark"] .demo__input input::placeholder {
  color: #8696a0;
}

.demo__input input:focus {
  border-color: #128c7e;
  box-shadow: 0 0 0 2px rgba(18,140,126,0.15);
}

.demo__input button {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast);
}

.demo__input button:hover { transform: scale(1.05); background: #22c55e; }
.demo__input button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.demo__input button svg {
  width: 18px; height: 18px;
}

/* typing dots */
.typing {
  display: inline-flex;
  gap: 4px;
  padding: 10px 14px;
  background: #ffffff;
  border-radius: 8px;
  border-bottom-left-radius: 2px;
  align-self: flex-start;
  box-shadow: 0 1px 1px rgba(0,0,0,0.08);
}

[data-theme="dark"] .typing {
  background: #1f2c34;
}

.typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #999;
  animation: typing 1.2s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.30s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

/* -- Side panel -- */
.demo__side-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .demo__side-card {
  background: rgba(255,255,255,0.03);
  box-shadow: none;
}

.demo__side-title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: var(--space-3);
}

.demo__side-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo__side-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-2);
}

.demo__side-list li strong {
  color: var(--text-0);
  font-weight: 600;
}

.demo__side-icon {
  font-size: 14px;
  flex-shrink: 0;
  line-height: 1.3;
}

.demo__side-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(37,211,102,0.08);
  border: 1px solid rgba(37,211,102,0.2);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-1);
}

[data-theme="dark"] .demo__side-hint {
  background: rgba(37,211,102,0.06);
  border-color: rgba(37,211,102,0.15);
}

.demo__side-hint strong {
  color: #059669;
  font-weight: 700;
}

.demo__side-hint-icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* -- Side card stacking -- */
.demo__side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo__side-card--data {
  border-color: rgba(5,150,105,0.2);
}

.demo__side-subtitle {
  font-size: 10px;
  color: var(--text-3);
  margin-bottom: var(--space-3);
  line-height: 1.4;
}

/* -- Data panel -- */
.demo__data-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.demo__data-progress {
  height: 6px;
  background: var(--bg-3);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 4px;
}

.demo__data-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #059669, #34d399);
  border-radius: var(--radius-pill);
  transition: width 0.6s var(--ease);
  min-width: 0;
}

.demo__data-progress-label {
  display: block;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-3);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.demo__data-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
  gap: 8px;
}

.demo__data-row:last-child { border-bottom: none; }

.demo__data-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  white-space: nowrap;
}

.demo__data-value {
  font-size: 12px;
  color: var(--text-3);
  text-align: right;
  font-style: italic;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo__data-row.is-filled .demo__data-value {
  color: var(--text-0);
  font-style: normal;
  font-weight: 500;
}

.demo__data-row.is-filled .demo__data-label {
  color: #059669;
}

.demo__data-doc {
  display: inline-block;
  font-size: 10px;
  padding: 2px 7px;
  background: rgba(5,150,105,0.08);
  border: 1px solid rgba(5,150,105,0.2);
  border-radius: var(--radius-pill);
  color: #059669;
  font-weight: 600;
  margin: 1px;
  font-style: normal;
}

[data-theme="dark"] .demo__data-panel .demo__data-row.is-filled .demo__data-label {
  color: #34d399;
}

[data-theme="dark"] .demo__side-card--data {
  border-color: rgba(52,211,153,0.15);
}

/* ============ 11. DASHBOARD INTERACTIVE MOCK ============ */
.section--dashboard > .container { max-width: 1080px; }

.dash {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #F4F6FB;
  position: relative;
  height: 520px;
  display: flex;
  flex-direction: column;
  max-width: 1000px;
  margin-inline: auto;
}

/* Dashboard stays white in all themes — matches real dashboard */
.dash { background: #F4F6FB !important; color: #0A1628; }
.dash .dash__view-title { color: #0A1628; }
.dash .dash__side { background: #fff !important; border-color: #E5E7EB !important; }
.dash .dash__side-item { color: #64748B; }
.dash .dash__side-item:hover { background: #F0F4FF; color: #003DA5; }
.dash .dash__side-item.is-active { background: #003DA5; color: #fff; }
.dash .dash__side-label { color: #9CA3AF; }
.dash .dash__side-group--admin {
  padding-top: 10px;
  margin-top: 6px;
  border-top: 1px solid #F1F5F9;
}
.dash .dash__card { background: #fff !important; border-color: #E5E7EB !important; }
.dash .dash__panel-box { background: #fff !important; border-color: #E5E7EB !important; }
.dash .dash__panel-title { color: #0A1628; border-color: #E5E7EB; }
.dash .dash__prio-info strong { color: #0A1628; }
.dash .dash__pipe strong { color: #0A1628; }
.dash .dash__table-wrap { background: #fff !important; border-color: #E5E7EB !important; }
.dash .dash__table thead { background: #F8FAFC !important; }
.dash .dash__table th { color: #64748B; border-color: #E5E7EB; }
.dash .dash__table td { color: #0A1628; border-color: #F3F4F6; }
.dash .dash__badge--blue { background: #E0E9FF !important; color: #003DA5 !important; }
.dash .dash__badge--green { background: #D1FAE5 !important; color: #059669 !important; }
.dash .dash__badge--purple { background: #EDE9FE !important; color: #7C3AED !important; }
.dash .dash__badge--gray { background: #F3F4F6 !important; color: #64748B !important; }
.dash .dash__search { background: #fff !important; border-color: #E5E7EB !important; color: #0A1628 !important; }
.dash .dash__filter { background: #fff !important; border-color: #E5E7EB !important; color: #64748B !important; }
.dash .dash__drawer-panel { background: #fff !important; border-color: #E5E7EB !important; }
.dash .dash__drawer-head { border-color: #E5E7EB !important; }
.dash .dash__drawer-title { color: #0A1628; }
.dash .dash__drawer-close { background: #F3F4F6 !important; color: #64748B; }
.dash .dash__drawer-field span { color: #0A1628; }
.dash .dash__doc--ok { background: #D1FAE5 !important; color: #059669 !important; }
.dash .dash__doc--pending { background: #FEF3C7 !important; color: #B45309 !important; }
.dash .dash__timeline { border-color: #E5E7EB; }
.dash .dash__tl-item strong { color: #0A1628; }
.dash .dash__seg-card { background: #fff !important; border-color: #E5E7EB !important; }
.dash .dash__seg-card strong { color: #0A1628; }
.dash .dash__seg-card p { color: #374151; }
.dash .dash__chats-layout { background: #fff !important; border-color: #E5E7EB !important; }
.dash .dash__chat-list { border-color: #E5E7EB !important; }
.dash .dash__chat-item { border-color: #F3F4F6 !important; }
.dash .dash__chat-item:hover { background: #F0F4FF !important; }
.dash .dash__chat-item--active { background: #E0E9FF !important; }
.dash .dash__chat-preview strong { color: #0A1628; }
.dash .dash__chat-detail-head { background: #F8FAFC !important; border-color: #E5E7EB !important; }
.dash .dash__chat-detail-head strong { color: #0A1628; }
.dash .dash__chat-msgs { background: #e5ddd5 !important; }
.dash .dash__chat-msg--them { background: #fff !important; color: #303030 !important; }
.dash .dash__chat-msg--bot { background: #d9fdd3 !important; color: #303030 !important; }
.dash .dash__btn-docs { color: #003DA5 !important; border-color: #003DA5 !important; }
.dash .dash__btn-docs:hover { background: #003DA5 !important; color: #fff !important; }

/* -- Topbar -- */
.dash__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 48px;
  background: linear-gradient(-45deg, #001028, #003DA5, #001a40, #002855);
  background-size: 300% 300%;
  animation: dashTopbar 12s ease infinite;
  flex-shrink: 0;
}

@keyframes dashTopbar {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.dash__topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.dash__topbar-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.dash__topbar-logo img { width: 80%; height: 80%; object-fit: contain; }
.dash__topbar-name strong { color: #7CB9FF; }

.dash__topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 11px;
}

.dash__topbar-env {
  padding: 3px 10px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-pill);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.dash__topbar-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #003DA5, #0066FF);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* -- Body (sidebar + content) -- */
.dash__body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* -- Sidebar -- */
.dash__side {
  width: 180px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #E5E7EB;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

[data-theme="dark"] .dash__side { background: #0F1A2E; border-color: rgba(255,255,255,0.06); }

.dash__side-group { display: flex; flex-direction: column; gap: 2px; }

.dash__side-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9CA3AF;
  padding: 0 8px;
  margin-bottom: 4px;
}

.dash__side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}

.dash__side-item:hover { background: #F0F4FF; color: #003DA5; }
.dash__side-item.is-active { background: #003DA5; color: #fff; }

[data-theme="dark"] .dash__side-item:hover { background: rgba(0,61,165,0.15); }
[data-theme="dark"] .dash__side-item.is-active { background: #003DA5; }
[data-theme="dark"] .dash__side-item { color: #8a92a8; }

.dash__side-item svg { flex-shrink: 0; opacity: 0.7; }
.dash__side-item.is-active svg { opacity: 1; stroke: #fff; }

/* Locked items — grayed out with lock hint */
.dash__side-item--locked {
  opacity: 0.45;
  cursor: default;
}
.dash__side-item--locked:hover {
  background: transparent;
  color: #64748B;
  opacity: 0.55;
}

/* Demo toast */
.dash__toast {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}

.dash__toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.dash__toast-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: #1a1a2e;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  white-space: nowrap;
  max-width: 90vw;
}

[data-theme="dark"] .dash__toast-inner {
  background: #fff;
  color: #1a1a2e;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.dash__toast-icon { font-size: 20px; flex-shrink: 0; }
.dash__toast-text strong { display: block; font-size: 13px; margin-bottom: 2px; }
.dash__toast-text span { font-size: 11px; opacity: 0.7; }
.dash__toast-text a { color: #7CB9FF; text-decoration: underline; }
[data-theme="dark"] .dash__toast-text a { color: #003DA5; }

/* -- Content area -- */
.dash__content {
  flex: 1;
  padding: 20px 24px;
  overflow-y: auto;
  position: relative;
}

.dash__view { display: none; animation: panelIn 0.3s ease-out; }
.dash__view.is-active { display: block; }

.dash__view-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-0);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

/* -- Stat cards -- */
.dash__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.dash__card {
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #E5E7EB;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.dash__card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,61,165,0.08); }

[data-theme="dark"] .dash__card { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06); }

.dash__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
}

.dash__card--blue::before { background: #003DA5; }
.dash__card--green::before { background: #059669; }
.dash__card--purple::before { background: #7C3AED; }
.dash__card--orange::before { background: #F59E0B; }

.dash__card-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.dash__card--blue .dash__card-num { color: #003DA5; }
.dash__card--green .dash__card-num { color: #059669; }
.dash__card--purple .dash__card-num { color: #7C3AED; }
.dash__card--orange .dash__card-num { color: #F59E0B; }

.dash__card-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.dash__card-delta {
  font-size: 10px;
  color: #9CA3AF;
}

/* -- Panel grid (priority + pipeline) -- */
.dash__panel-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}

.dash__panel-box {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 16px;
}

[data-theme="dark"] .dash__panel-box { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06); }

.dash__panel-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #E5E7EB;
}

[data-theme="dark"] .dash__panel-title { border-color: rgba(255,255,255,0.06); }

/* Priority list */
.dash__prio-list { display: flex; flex-direction: column; gap: 8px; }

.dash__prio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.15s;
}

.dash__prio:hover { background: #F0F4FF; }
[data-theme="dark"] .dash__prio:hover { background: rgba(0,61,165,0.1); }

.dash__prio-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.dash__prio-info { flex: 1; min-width: 0; }
.dash__prio-info strong { display: block; font-size: 12px; color: var(--text-0); }
.dash__prio-info span { font-size: 10px; color: #9CA3AF; }

.dash__prio-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.dash__prio-tag--amber { background: #FEF3C7; color: #B45309; }
.dash__prio-tag--red { background: #FEE2E2; color: #DC2626; }

[data-theme="dark"] .dash__prio-tag--amber { background: rgba(245,158,11,0.15); color: #FBBF24; }
[data-theme="dark"] .dash__prio-tag--red { background: rgba(220,38,38,0.15); color: #F87171; }

/* Pipeline bars */
.dash__pipeline { display: flex; flex-direction: column; gap: 10px; }

.dash__pipe {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.dash__pipe-bar {
  height: 18px;
  border-radius: 4px;
  width: var(--w);
  min-width: 20px;
  grid-column: 1 / -1;
  grid-row: 1;
}

.dash__pipe-label {
  font-size: 10px;
  color: #64748B;
  grid-column: 1;
}

.dash__pipe strong {
  font-size: 14px;
  color: var(--text-0);
  text-align: right;
}

/* -- Proveedores table -- */
.dash__toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.dash__search {
  flex: 1;
  padding: 8px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 12px;
  background: #fff;
  color: var(--text-0);
  outline: none;
}

.dash__search:focus { border-color: #003DA5; box-shadow: 0 0 0 3px rgba(0,61,165,0.1); }

[data-theme="dark"] .dash__search { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }

.dash__filter {
  padding: 8px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 11px;
  background: #fff;
  color: var(--text-1);
  cursor: pointer;
}

[data-theme="dark"] .dash__filter { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); color: var(--text-1); }

.dash__table-wrap {
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

[data-theme="dark"] .dash__table-wrap { background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.06); }

.dash__table { width: 100%; border-collapse: collapse; font-size: 12px; }

.dash__table thead { background: #F8FAFC; }
[data-theme="dark"] .dash__table thead { background: rgba(255,255,255,0.03); }

.dash__table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid #E5E7EB;
}

[data-theme="dark"] .dash__table th { border-color: rgba(255,255,255,0.06); }

.dash__table td {
  padding: 10px 14px;
  color: var(--text-1);
  border-bottom: 1px solid #F3F4F6;
}

[data-theme="dark"] .dash__table td { border-color: rgba(255,255,255,0.04); }

.dash__row { cursor: pointer; transition: background 0.15s; }
.dash__row:hover { background: linear-gradient(90deg, rgba(0,61,165,0.04), transparent); }
[data-theme="dark"] .dash__row:hover { background: rgba(0,61,165,0.08); }

.dash__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.dash__badge--blue { background: #E0E9FF; color: #003DA5; }
.dash__badge--green { background: #D1FAE5; color: #059669; }
.dash__badge--purple { background: #EDE9FE; color: #7C3AED; }
.dash__badge--gray { background: #F3F4F6; color: #64748B; }

[data-theme="dark"] .dash__badge--blue { background: rgba(0,61,165,0.2); color: #7CB9FF; }
[data-theme="dark"] .dash__badge--green { background: rgba(5,150,105,0.15); color: #34D399; }
[data-theme="dark"] .dash__badge--purple { background: rgba(124,58,237,0.15); color: #A78BFA; }
[data-theme="dark"] .dash__badge--gray { background: rgba(255,255,255,0.06); color: #8a92a8; }

/* -- Empty state -- */
.dash__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  color: #9CA3AF;
}

.dash__empty svg { margin-bottom: 16px; opacity: 0.4; }
.dash__empty p { font-size: 14px; font-weight: 600; color: var(--text-1); margin-bottom: 4px; }
.dash__empty span { font-size: 12px; }

/* -- Drawer -- */
.dash__drawer {
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}

.dash__drawer.is-open {
  pointer-events: auto;
  opacity: 1;
}

.dash__drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(2px);
}

.dash__drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 380px;
  height: 100%;
  background: #fff;
  border-left: 1px solid #E5E7EB;
  box-shadow: -8px 0 30px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

[data-theme="dark"] .dash__drawer-panel { background: #0F1A2E; border-color: rgba(255,255,255,0.08); }

.dash__drawer.is-open .dash__drawer-panel { transform: translateX(0); }

.dash__drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px;
  border-bottom: 1px solid #E5E7EB;
  flex-shrink: 0;
}

[data-theme="dark"] .dash__drawer-head { border-color: rgba(255,255,255,0.06); }

.dash__drawer-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-0);
  margin-bottom: 6px;
}

.dash__drawer-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #F3F4F6;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: #64748B;
  cursor: pointer;
  transition: background 0.15s;
}

.dash__drawer-close:hover { background: #E5E7EB; }
[data-theme="dark"] .dash__drawer-close { background: rgba(255,255,255,0.06); }

.dash__drawer-body { padding: 20px; }

.dash__drawer-section { margin-bottom: 20px; }
.dash__drawer-section h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9CA3AF;
  margin-bottom: 10px;
}

.dash__drawer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dash__drawer-field label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9CA3AF;
  margin-bottom: 2px;
}

.dash__drawer-field span {
  font-size: 12px;
  color: var(--text-0);
  font-weight: 500;
}

/* Doc pills */
.dash__drawer-docs { display: flex; flex-wrap: wrap; gap: 6px; }

.dash__doc {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 6px;
  font-weight: 500;
}

.dash__doc span { margin-right: 4px; }
.dash__doc--ok { background: #D1FAE5; color: #059669; }
.dash__doc--pending { background: #FEF3C7; color: #B45309; }

[data-theme="dark"] .dash__doc--ok { background: rgba(5,150,105,0.15); color: #34D399; }
[data-theme="dark"] .dash__doc--pending { background: rgba(245,158,11,0.12); color: #FBBF24; }

/* Timeline */
.dash__timeline { display: flex; flex-direction: column; gap: 12px; padding-left: 12px; border-left: 2px solid #E5E7EB; }
[data-theme="dark"] .dash__timeline { border-color: rgba(255,255,255,0.08); }

.dash__tl-item { display: flex; align-items: flex-start; gap: 10px; position: relative; }

.dash__tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  margin-left: -17px;
}

.dash__tl-dot--green { background: #059669; }
.dash__tl-dot--blue { background: #003DA5; }
.dash__tl-dot--gray { background: #D1D5DB; }

.dash__tl-item strong { font-size: 11px; color: var(--text-0); }
.dash__tl-item small { font-size: 10px; color: #9CA3AF; }
.dash__tl-item div { font-size: 11px; color: var(--text-2); line-height: 1.5; }

/* Smaller subtitle for dashboard */
.section__lead--sm { font-size: var(--fs-sm); max-width: 520px; }

/* Ver docs button */
.dash__btn-docs {
  font-size: 10px;
  font-weight: 600;
  color: #003DA5;
  padding: 4px 10px;
  border: 1px solid #003DA5;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.dash__btn-docs:hover { background: #003DA5; color: #fff; }
[data-theme="dark"] .dash__btn-docs { color: #7CB9FF; border-color: #7CB9FF; }
[data-theme="dark"] .dash__btn-docs:hover { background: #7CB9FF; color: #0A1628; }

/* -- Seguimientos view -- */
.dash__seg-grid { display: flex; flex-direction: column; gap: 10px; }

.dash__seg-card {
  padding: 14px 16px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  background: #fff;
  border-left: 3px solid #003DA5;
}

[data-theme="dark"] .dash__seg-card { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06); border-left-color: #7CB9FF; }

.dash__seg-card--urgent { border-left-color: #DC2626; }
.dash__seg-card--done { border-left-color: #059669; opacity: 0.6; }

.dash__seg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.dash__seg-head strong { font-size: 13px; color: var(--text-0); }
.dash__seg-card p { font-size: 12px; color: var(--text-1); margin-bottom: 4px; }
.dash__seg-card small { font-size: 10px; color: #9CA3AF; }

/* -- Chats view -- */
.dash__chats-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
  height: 400px;
  background: #fff;
}

[data-theme="dark"] .dash__chats-layout { background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.06); }

.dash__chat-list {
  border-right: 1px solid #E5E7EB;
  overflow-y: auto;
}

[data-theme="dark"] .dash__chat-list { border-color: rgba(255,255,255,0.06); }

.dash__chat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid #F3F4F6;
  transition: background 0.15s;
  position: relative;
}

.dash__chat-item:hover { background: #F0F4FF; }
.dash__chat-item--active { background: #E0E9FF; }
[data-theme="dark"] .dash__chat-item { border-color: rgba(255,255,255,0.04); }
[data-theme="dark"] .dash__chat-item:hover { background: rgba(0,61,165,0.1); }
[data-theme="dark"] .dash__chat-item--active { background: rgba(0,61,165,0.15); }

.dash__chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.dash__chat-preview { flex: 1; min-width: 0; }
.dash__chat-preview strong { display: block; font-size: 12px; color: var(--text-0); margin-bottom: 2px; }
.dash__chat-preview p { font-size: 10px; color: #9CA3AF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dash__chat-time { font-size: 9px; color: #9CA3AF; flex-shrink: 0; align-self: flex-start; margin-top: 2px; }

.dash__chat-unread {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* Chat detail */
.dash__chat-detail { display: flex; flex-direction: column; }

.dash__chat-detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid #E5E7EB;
  background: #F8FAFC;
}

[data-theme="dark"] .dash__chat-detail-head { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06); }

.dash__chat-detail-head strong { font-size: 13px; color: var(--text-0); display: block; }
.dash__chat-detail-head small { font-size: 10px; color: #9CA3AF; }
.dash__chat-detail-head .dash__chat-avatar { width: 32px; height: 32px; font-size: 11px; }

.dash__chat-msgs {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  background: #e5ddd5;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23c9c2b8' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

[data-theme="dark"] .dash__chat-msgs { background: #0b141a; }

.dash__chat-msg {
  max-width: 75%;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.4;
  box-shadow: 0 1px 1px rgba(0,0,0,0.08);
}

.dash__chat-msg p { margin: 0 0 2px; }
.dash__chat-msg small { display: block; text-align: right; font-size: 9px; opacity: 0.5; }

.dash__chat-msg--them { align-self: flex-start; background: #fff; color: #303030; }
.dash__chat-msg--bot { align-self: flex-end; background: #d9fdd3; color: #303030; }

[data-theme="dark"] .dash__chat-msg--them { background: #1f2c34; color: #e9edef; }
[data-theme="dark"] .dash__chat-msg--bot { background: #005c4b; color: #e9edef; }

/* ============ ECOSISTEMA ORQUESTADOR — Enterprise Premium ============ */
.section--herramientas {
  padding-top: 12px !important;
  padding-bottom: clamp(1.5rem, 3vw, 2rem) !important;
  border-top: none !important;
  background:
    radial-gradient(ellipse 1000px 500px at 50% 50%, rgba(79,70,229,0.04), transparent 70%),
    var(--bg-1);
}

[data-theme="dark"] .section--herramientas {
  background:
    radial-gradient(ellipse 1200px 600px at 50% 50%, rgba(79,70,229,0.08), transparent 70%),
    #070b17;
}

.section--herramientas .section__header { margin-bottom: 10px; }
.section--herramientas .section__title {
  font-size: clamp(1.4rem, 1rem + 1.2vw, 1.9rem);
  color: var(--text-0);
}
[data-theme="dark"] .section--herramientas .section__title { color: #f4f6fb; }
.section--herramientas .section__eyebrow {
  color: #7c3aed;
  background: rgba(124,58,237,0.1);
  border-color: rgba(124,58,237,0.25);
}
[data-theme="dark"] .section--herramientas .section__eyebrow {
  color: #a78bfa;
  background: rgba(167,139,250,0.1);
  border-color: rgba(167,139,250,0.25);
}

/* ---------- ORQUESTADOR (new premium design) ---------- */
.orq {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  aspect-ratio: 1200 / 640;
  max-height: 640px;
  font-family: var(--font-sans);
}

.orq__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Center orchestrator — core pinned to exact center, labels below */
.orq__center {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

.orq__center > * { pointer-events: auto; }

.orq__halo {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,70,229,0.5), rgba(124,58,237,0.2) 50%, transparent 80%);
  animation: orqHalo 3s ease-in-out infinite;
  z-index: -1;
}

@keyframes orqHalo {
  0%,100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.orq__core {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  display: grid;
  place-items: center;
  padding: 14px;
  box-shadow:
    0 0 60px rgba(79,70,229,0.55),
    0 12px 40px rgba(0,0,0,0.45),
    inset 0 2px 0 rgba(255,255,255,0.25);
}

.orq__core::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px dashed rgba(167,139,250,0.35);
  animation: orqRingSpin 24s linear infinite;
}

.orq__core::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px solid rgba(167,139,250,0.15);
  animation: orqRingSpin 40s linear infinite reverse;
}

@keyframes orqRingSpin { to { transform: rotate(360deg); } }

.orq__core img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 8px;
}

.orq__title {
  position: absolute;
  top: calc(40% + 58px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-align: center;
}

.orq__title strong {
  background: linear-gradient(135deg, #a78bfa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.orq__tag {
  position: absolute;
  top: calc(40% + 92px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
  white-space: nowrap;
  text-align: center;
}

/* Category blocks */
.orq__block {
  position: absolute;
  z-index: 3;
  width: 230px;
  padding: 14px 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--c) 16%, transparent), color-mix(in srgb, var(--c) 4%, transparent)),
    rgba(10,15,30,0.75);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.45),
    0 0 24px color-mix(in srgb, var(--c) 14%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.orq__block:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--c) 70%, transparent);
  box-shadow:
    0 14px 44px rgba(0,0,0,0.5),
    0 0 36px color-mix(in srgb, var(--c) 28%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Block positions (percentages relative to container 1200x640) */
.orq__block--1 { top: 0;     left: 3%; }      /* Comunicación — top-left */
.orq__block--2 { top: 0;     left: 50%; transform: translateX(-50%); }  /* ERP — top-center */
.orq__block--2:hover { transform: translateX(-50%) translateY(-3px); }
.orq__block--3 { top: 0;     right: 3%; }     /* Gobierno — top-right */
.orq__block--4 { top: 44%;   left: 0; transform: translateY(-50%); }    /* Datos — mid-left */
.orq__block--4:hover { transform: translateY(-50%) translateY(-3px); }
.orq__block--5 { top: 44%;   right: 0; transform: translateY(-50%); }   /* Infra — mid-right */
.orq__block--5:hover { transform: translateY(-50%) translateY(-3px); }
.orq__block--5 { width: 260px; }               /* Infra wider — fits in 2 lines */
.orq__block--6 { bottom: 20%; left: 18%; }     /* Documentos — lifted more */
.orq__block--7 { bottom: 20%; right: 18%; width: 260px; }  /* Finanzas — wider + lifted */

.orq__block-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--c) 25%, transparent);
}

.orq__block-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 12px var(--c);
  flex-shrink: 0;
}

.orq__block-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.orq__block-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.orq__block-tools span {
  font-size: 10.5px;
  font-weight: 600;
  color: color-mix(in srgb, var(--c) 85%, #fff);
  padding: 4px 10px;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  border-radius: 999px;
  transition: all 0.2s;
}

.orq__block-tools span:hover {
  background: color-mix(in srgb, var(--c) 28%, transparent);
  border-color: var(--c);
  color: #fff;
  box-shadow: 0 0 12px color-mix(in srgb, var(--c) 40%, transparent);
}

.eco__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: var(--text-2);
}

.eco__bots text {
  font-size: 20px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

/* Central hub */
.eco__hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.eco__hub-pulse {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,70,229,0.35), transparent 70%);
  animation: ecoHubPulse 2.8s ease-in-out infinite;
  z-index: -1;
}

@keyframes ecoHubPulse {
  0%,100% { transform: translateX(-50%) scale(1); opacity: 0.8; }
  50% { transform: translateX(-50%) scale(1.4); opacity: 0.3; }
}

.eco__hub-core {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  display: grid;
  place-items: center;
  box-shadow:
    0 0 40px rgba(79,70,229,0.5),
    0 8px 32px rgba(0,0,0,0.25),
    inset 0 2px 0 rgba(255,255,255,0.25);
  padding: 10px;
  position: relative;
}

.eco__hub-core::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(79,70,229,0.35);
  animation: ecoRingSpin 20s linear infinite;
}

@keyframes ecoRingSpin { to { transform: rotate(360deg); } }

.eco__hub-core img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 6px;
}

.eco__hub-bot {
  position: absolute;
  bottom: -6px;
  right: -10px;
  font-size: 28px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  animation: ecoBotFloat 2.4s ease-in-out infinite;
  z-index: 2;
}

@keyframes ecoBotFloat {
  0%,100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-4px) rotate(5deg); }
}

.eco__hub-label {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-0);
  letter-spacing: -0.02em;
  margin-top: 4px;
}
.eco__hub-label strong {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eco__hub-sub {
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--text-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

/* Tool — circle dot on top, name below */
.eco__t {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-0);
  white-space: nowrap;
  transition: transform 0.2s;
  cursor: default;
}

[data-theme="dark"] .eco__t { color: var(--text-1); }

.eco__t:hover {
  transform: translate(-50%, -50%) scale(1.08);
  z-index: 4;
}

.eco__t:hover .eco__dot {
  box-shadow: 0 0 0 4px rgba(79,70,229,0.15), 0 4px 12px rgba(0,0,0,0.15);
}

.eco__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c, var(--accent));
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  flex-shrink: 0;
  transition: box-shadow 0.2s;
}

[data-theme="dark"] .eco__dot {
  box-shadow: 0 0 10px var(--c, var(--accent)), 0 2px 6px rgba(0,0,0,0.4);
}

/* Category colors via data-c */
.eco__t[data-c="green"]  .eco__dot { --c: #10B981; }
.eco__t[data-c="blue"]   .eco__dot { --c: #3B82F6; }
.eco__t[data-c="red"]    .eco__dot { --c: #EF4444; }
.eco__t[data-c="yellow"] .eco__dot { --c: #F59E0B; }
.eco__t[data-c="purple"] .eco__dot { --c: #A855F7; }
.eco__t[data-c="orange"] .eco__dot { --c: #F97316; }
.eco__t[data-c="cyan"]   .eco__dot { --c: #06B6D4; }
.eco__t[data-c="pink"]   .eco__dot { --c: #EC4899; }

/* Legend */
.eco__legend {
  max-width: 900px;
  margin: 16px auto 0;
  padding: 10px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}

.eco__legend-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
}

.eco__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-2);
  font-weight: 500;
}

.eco__legend-item .eco__dot {
  width: 10px;
  height: 10px;
}

/* Footer message */
.eco__footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-2);
  max-width: 640px;
  margin: 10px auto 0;
}
.eco__footer strong {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

/* -- New provider highlight (from demo chat) -- */
.dash__row--new {
  animation: dashNewRow 2s ease;
}

@keyframes dashNewRow {
  0% { background: rgba(5,150,105,0.2); }
  100% { background: transparent; }
}

.dash__card--pulse {
  animation: dashCardPulse 1.5s ease;
}

@keyframes dashCardPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(5,150,105,0); }
  50% { box-shadow: 0 0 0 6px rgba(5,150,105,0.2); }
}

/* ============ PROPUESTA CEMEX — Closing section ============ */
.section--propuesta {
  padding-top: 12px !important;
  padding-bottom: clamp(1.5rem, 3vw, 2rem) !important;
}

.section--propuesta .section__header { margin-bottom: 10px; }

/* BLOCK 1 — Two columns */
.prop__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto 14px;
}

.prop__col {
  padding: 14px 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .prop__col {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
}

.prop__col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-0);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

[data-theme="dark"] .prop__col-title { border-color: rgba(255,255,255,0.06); }

.prop__col-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 10px var(--c);
  flex-shrink: 0;
}

.prop__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prop__list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text-1);
}

.prop__list strong { color: var(--text-0); font-weight: 700; }

.prop__check {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  margin-top: 2px;
}

.prop__m-icon {
  font-size: 14px;
  flex-shrink: 0;
  line-height: 1.3;
}

/* BLOCK 2 — Timeline */
.prop__timeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto 14px;
}

.prop__step {
  padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

.prop__step:hover { transform: translateY(-2px); border-color: rgba(79,70,229,0.3); }

[data-theme="dark"] .prop__step { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06); }

.prop__step-icon {
  display: block;
  font-size: 22px;
  margin-bottom: 2px;
}

.prop__step strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.prop__step p {
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-2);
  margin: 0;
}

.prop__step-arrow {
  display: flex;
  align-items: center;
  color: var(--text-3);
  font-size: 22px;
  opacity: 0.5;
}

/* BLOCK 3 — Investment card */
.prop__success {
  max-width: 820px;
  margin: 18px auto 20px;
  padding: 22px 26px;
  background: rgba(34, 197, 94, 0.04);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 18px;
}

.prop__success-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.prop__success-icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: rgba(34, 197, 94, 0.18);
  color: #22c55e;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
}

.prop__success-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-0);
  margin: 0;
  letter-spacing: 0.01em;
}

.prop__success-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.prop__success-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.04);
}

.prop__success-num {
  font-size: 22px;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: -0.02em;
}

.prop__success-desc {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--text-2);
}

.prop__guarantee {
  padding: 12px 16px;
  background: rgba(34, 197, 94, 0.08);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-1);
  line-height: 1.5;
}

.prop__guarantee strong {
  color: #4ade80;
  font-weight: 700;
}

@media (max-width: 720px) {
  .prop__success-grid { grid-template-columns: repeat(2, 1fr); }
  .prop__success { padding: 16px 18px; }
}

.prop__invest {
  position: relative;
  max-width: 620px;
  margin: 0 auto 14px;
  padding: 18px 24px;
  background: linear-gradient(135deg, rgba(79,70,229,0.05), rgba(124,58,237,0.03)), var(--bg-2);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(79,70,229,0.15), var(--shadow-md);
  text-align: center;
}

.prop__invest::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

[data-theme="dark"] .prop__invest {
  background: linear-gradient(135deg, rgba(91,140,255,0.1), rgba(124,92,255,0.06));
}

.prop__invest-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(79,70,229,0.45), 0 0 0 3px rgba(79,70,229,0.15);
  white-space: nowrap;
  max-width: 95%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prop__invest-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 4px 0 6px;
}

.prop__invest-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 4px;
}

.prop__invest-amount {
  font-size: clamp(24px, 2rem + 1vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.prop__invest-mult {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
}

.prop__invest-tag {
  font-size: 12px;
  color: var(--text-2);
  margin: 0 0 10px;
  font-style: italic;
}

.prop__invest-notes {
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.prop__invest-notes p {
  font-size: 11px;
  color: var(--text-2);
  margin: 0 0 2px;
  line-height: 1.4;
}

.prop__invest-notes strong { color: var(--text-0); font-weight: 700; }

/* BLOCK 4 — CTAs */
.prop__ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.prop__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: all 0.25s;
  text-decoration: none;
}

.prop__cta--primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(79,70,229,0.35);
}

.prop__cta--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(79,70,229,0.5);
}

.prop__cta--wa {
  background: transparent;
  color: #25D366;
  border: 2px solid #25D366;
}

.prop__cta--wa:hover {
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
  transform: translateY(-2px);
}

/* Compact propuesta — fit all in viewport */
.section--propuesta .section__header { margin-bottom: 10px; }

/* -- Unified plan: 3 phase cards -- */
.prop__plan {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto 10px;
  position: relative;
}

.prop__plan::before {
  content: "";
  position: absolute;
  top: 44px;
  left: 16%;
  right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  opacity: 0.4;
  z-index: 0;
}

.prop__phase {
  position: relative;
  padding: 14px 18px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.prop__phase:hover {
  transform: translateY(-3px);
  border-color: rgba(79,70,229,0.35);
  box-shadow: 0 8px 24px rgba(79,70,229,0.12);
}

[data-theme="dark"] .prop__phase {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
}

.prop__phase-mark {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.prop__phase-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: linear-gradient(135deg, rgba(79,70,229,0.12), rgba(124,58,237,0.08));
  border: 1px solid rgba(79,70,229,0.25);
}

.prop__phase-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  opacity: 0.7;
}

.prop__phase strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.prop__phase h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-0);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.prop__phase ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prop__phase li {
  position: relative;
  padding-left: 14px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text-2);
}

.prop__phase li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

/* -- Metrics strip -- */
.prop__metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 1100px;
  margin: 0 auto 12px;
  padding: 10px 16px;
  background: rgba(79,70,229,0.04);
  border: 1px dashed var(--line);
  border-radius: var(--radius-pill);
}

[data-theme="dark"] .prop__metrics { background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.06); }

.prop__metrics-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-right: 4px;
}

.prop__metric {
  font-size: 11.5px;
  color: var(--text-1);
  font-weight: 500;
  padding: 2px 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}

[data-theme="dark"] .prop__metric {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.06);
}

.prop__invest { padding: 14px 20px; margin-bottom: 10px; }
.prop__invest-title { font-size: 11px; margin: 2px 0 4px; }
.prop__invest-amount { font-size: clamp(22px, 1.6rem + 0.8vw, 30px); }
.prop__invest-mult { font-size: 13px; }
.prop__invest-tag { font-size: 11px; margin-bottom: 8px; }
.prop__invest-notes { padding-top: 8px; }
.prop__invest-notes p { font-size: 10.5px; }

.prop__cta { padding: 11px 22px; font-size: 13px; }

/* ============ CALENDAR MODAL ============ */
.cal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cal.is-open { display: flex; animation: calFade 0.25s ease; }

@keyframes calFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 13, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cal__panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 40px rgba(79,70,229,0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: calSlide 0.3s var(--ease);
}

[data-theme="dark"] .cal__panel {
  background: #11151f;
  border-color: rgba(255,255,255,0.1);
}

@keyframes calSlide {
  from { transform: translateY(20px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.cal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

[data-theme="dark"] .cal__head { border-color: rgba(255,255,255,0.06); }

.cal__head h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-0);
  margin: 0;
  letter-spacing: -0.01em;
}

.cal__x {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-3);
  color: var(--text-2);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
}

.cal__x:hover { background: var(--bg-4); color: var(--text-0); }

.cal__body {
  padding: 16px 20px 20px;
  overflow-y: auto;
}

.cal__step { display: none; }
.cal__step.is-active { display: block; animation: calFade 0.2s ease; }

/* Labels */
.cal__sub {
  margin: 10px 0 8px;
}

.cal__sub-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Days grid */
.cal__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 12px;
}

.cal__day {
  padding: 8px 4px;
  background: var(--bg-3);
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  font-family: var(--font-sans);
}

.cal__day-dow {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cal__day-num {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-0);
  line-height: 1;
  margin-top: 2px;
}

.cal__day-mon {
  display: block;
  font-size: 8.5px;
  color: var(--text-3);
  text-transform: uppercase;
  margin-top: 2px;
}

.cal__day:hover {
  background: rgba(79,70,229,0.08);
  border-color: var(--accent);
}

.cal__day.is-selected {
  background: var(--grad-brand);
  border-color: transparent;
}

.cal__day.is-selected .cal__day-dow,
.cal__day.is-selected .cal__day-num,
.cal__day.is-selected .cal__day-mon { color: #fff; }

.cal__day:disabled,
.cal__day.is-weekend {
  opacity: 0.35;
  cursor: not-allowed;
  background: transparent;
}
.cal__day:disabled:hover,
.cal__day.is-weekend:hover { background: transparent; border-color: transparent; }

/* Times grid */
.cal__times {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.cal__time {
  padding: 8px 6px;
  background: var(--bg-3);
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  transition: all 0.15s;
  font-family: var(--font-sans);
}

.cal__time:hover {
  background: rgba(79,70,229,0.08);
  border-color: var(--accent);
  color: var(--text-0);
}

.cal__time.is-selected {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
}

/* Next/back/submit buttons */
.cal__next,
.cal__submit,
.cal__close-btn {
  width: 100%;
  padding: 12px;
  background: var(--grad-brand);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.cal__next:hover:not(:disabled),
.cal__submit:hover,
.cal__close-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(79,70,229,0.3);
}

.cal__next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cal__back {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-1);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
}

.cal__back:hover {
  background: var(--bg-3);
}

.cal__actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.cal__actions .cal__submit { flex: 1; }

/* Summary banner */
.cal__summary {
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(124,58,237,0.05));
  border: 1px solid rgba(79,70,229,0.25);
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-0);
  text-align: center;
}

.cal__summary strong { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }

/* Form */
.cal__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cal__form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cal__form label span {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cal__form input,
.cal__form textarea {
  padding: 9px 12px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-0);
  outline: none;
  font-family: var(--font-sans);
  transition: border-color 0.15s, box-shadow 0.15s;
  resize: vertical;
}

[data-theme="dark"] .cal__form input,
[data-theme="dark"] .cal__form textarea {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.cal__form input:focus,
.cal__form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}

/* Success */
.cal__success {
  padding: 30px 20px;
  text-align: center;
}

.cal__success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 14px;
  box-shadow: 0 8px 24px rgba(79,70,229,0.35);
  animation: calSuccess 0.6s var(--ease);
}

@keyframes calSuccess {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

.cal__success h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-0);
  margin: 0 0 6px;
}

.cal__success p {
  font-size: 12px;
  color: var(--text-2);
  margin: 0 0 16px;
  line-height: 1.5;
}

.cal__close-btn { max-width: 200px; margin: 0 auto; display: block; }

/* Portrait — compact */
html.presentation-portrait .section--propuesta .section__title { font-size: 1.1rem; }
html.presentation-portrait .section--propuesta .section__lead { font-size: 10px; }
html.presentation-portrait .section--propuesta .section__header { margin-bottom: 6px; }
/* Portrait — ultra compact phases in 2-line layout */
html.presentation-portrait .section--propuesta .section__header { margin-bottom: 4px; }
html.presentation-portrait .section--propuesta .section__title { font-size: 1rem; margin-bottom: 2px; }
html.presentation-portrait .section--propuesta .section__lead { font-size: 9px; }

html.presentation-portrait .prop__plan {
  grid-template-columns: 1fr;
  gap: 4px;
  margin-bottom: 4px;
}
html.presentation-portrait .prop__plan::before { display: none; }

/* Phases compact: icon+num | title+bullets | time-label */
html.presentation-portrait .prop__phase {
  padding: 6px 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 4px 10px;
  align-items: center;
}

html.presentation-portrait .prop__phase-mark {
  grid-row: 1 / 3;
  grid-column: 1;
  flex-direction: column;
  gap: 0;
  margin: 0;
}
html.presentation-portrait .prop__phase-icon { width: 28px; height: 28px; font-size: 14px; border-radius: 8px; }
html.presentation-portrait .prop__phase-num { font-size: 14px; line-height: 1; margin-top: 2px; }

html.presentation-portrait .prop__phase h4 {
  grid-column: 2; grid-row: 1;
  font-size: 11.5px;
  font-weight: 700;
  margin: 0;
  align-self: end;
}

/* Time label on the right */
html.presentation-portrait .prop__phase strong {
  grid-column: 3; grid-row: 1 / 3;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--accent);
  white-space: nowrap;
  padding: 3px 8px;
  border: 1px solid rgba(79,70,229,0.35);
  border-radius: 999px;
  background: rgba(79,70,229,0.08);
  align-self: center;
}

html.presentation-portrait .prop__phase ul {
  grid-column: 2; grid-row: 2;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0 10px;
  margin: 0;
  align-self: start;
}
html.presentation-portrait .prop__phase li {
  font-size: 9.5px;
  padding-left: 9px;
  line-height: 1.3;
}
html.presentation-portrait .prop__phase li::before {
  top: 6px;
  width: 3px;
  height: 3px;
}

html.presentation-portrait .prop__metrics {
  gap: 4px;
  padding: 5px 10px;
  margin-bottom: 5px;
}
html.presentation-portrait .prop__metrics-label { font-size: 8px; margin-right: 2px; }
html.presentation-portrait .prop__metric { font-size: 9px; padding: 1px 6px; }
html.presentation-portrait .prop__invest { padding: 14px 18px; margin-bottom: 8px; }
html.presentation-portrait .prop__invest-badge { font-size: 8px; padding: 3px 10px; top: -8px; }
html.presentation-portrait .prop__invest-title { font-size: 10px; }
html.presentation-portrait .prop__invest-amount { font-size: 22px; }
html.presentation-portrait .prop__invest-mult { font-size: 12px; }
html.presentation-portrait .prop__invest-tag { font-size: 10px; margin-bottom: 8px; }
html.presentation-portrait .prop__invest-notes p { font-size: 9.5px; }
html.presentation-portrait .prop__ctas { gap: 8px; flex-direction: column; align-items: stretch; }
html.presentation-portrait .prop__cta { padding: 10px 20px; font-size: 12px; }

/* ---------- 13. FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: var(--space-6) var(--space-4);
  background: var(--bg-0);
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  opacity: 0.5;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-5);
}

.footer__about .footer__brand { margin-bottom: 12px; }

.footer__tagline {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 320px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-0);
  font-weight: 700;
}

.footer__col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-0);
  margin: 0 0 12px;
}

.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__col li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s;
}

.footer__col li a:hover { color: var(--accent); }

.footer__col li a svg { opacity: 0.6; flex-shrink: 0; }

.footer__cta-text {
  font-size: 12px;
  color: var(--text-2);
  margin: 0 0 12px;
  line-height: 1.5;
}

.footer__cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--grad-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}

.footer__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79,70,229,0.4);
}

/* Bottom */
.footer__bottom {
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.footer__bottom p {
  font-size: 11px;
  color: var(--text-3);
  margin: 0;
}

.footer__legal-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__legal-links a {
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.15s;
}

.footer__legal-links a:hover { color: var(--accent); }
.footer__legal-links span { opacity: 0.4; }

/* Responsive */
@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
}

@media (max-width: 520px) {
  .footer__top { grid-template-columns: 1fr; gap: var(--space-4); }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* Portrait-specific compact footer */
html.presentation-portrait .footer { padding-block: 20px 12px; }
html.presentation-portrait .footer__top { grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
html.presentation-portrait .footer__about { grid-column: 1 / -1; }
html.presentation-portrait .footer__tagline { font-size: 11px; }
html.presentation-portrait .footer__col-title { font-size: 10px; margin-bottom: 8px; }
html.presentation-portrait .footer__col li a { font-size: 11px; }
html.presentation-portrait .footer__cta-text { font-size: 11px; }
html.presentation-portrait .footer__cta { font-size: 11px; padding: 7px 14px; }
html.presentation-portrait .footer__bottom p { font-size: 10px; }

/* Next-btn as "back to top" variation */
.next-btn.is-back-to-top .next-btn__arrow svg {
  transform: rotate(180deg);
}

/* ---------- 14. ANIMACIONES SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 80ms; }
.reveal--delay-2 { transition-delay: 160ms; }
.reveal--delay-3 { transition-delay: 240ms; }
.reveal--delay-4 { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 15. BOTON FLOTANTE NEXT SECTION ---------- */
.next-btn {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px 14px 22px;
  color: #fff;
  background: var(--grad-brand);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  box-shadow:
    0 8px 24px rgba(79, 70, 229, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  pointer-events: none;
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.next-btn.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.next-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 14px 36px rgba(79, 70, 229, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.12);
}

.next-btn__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  gap: 3px;
}

.next-btn__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.next-btn__name {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.next-btn__arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.30);
  display: grid;
  place-items: center;
  animation: nextBtnBounce 2.2s ease-in-out infinite;
}

@keyframes nextBtnBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .next-btn__arrow { animation: none; }
}

/* ---------- 16. NUMERADOR + DIVISORES ---------- */
main { counter-reset: section; }

.section:not(.section--hero) {
  counter-increment: section;
  position: relative;
}

.section:not(.section--hero) .section__header::before {
  content: counter(section, decimal-leading-zero) " / 08";  /* hero + 8 content sections */
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--space-2);
}

/* Conector vertical */
.section:not(.section--hero)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1px;
  height: 20px;
  background: linear-gradient(180deg, transparent, var(--accent) 45%, var(--accent-2) 55%, transparent);
  opacity: 0.3;
  pointer-events: none;
}

.section:not(.section--hero)::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 0 4px rgba(79, 70, 229, 0.08),
    0 0 12px var(--accent-glow);
  pointer-events: none;
}

.section + .section { border-top: none; }

/* ---------- 17. RESPONSIVE ---------- */
@media (max-width: 640px) {
  :root {
    --section-pad-y: 4rem;
  }
  .nav__cta { padding: 8px 14px; }
  .section__header { margin-bottom: var(--space-6); }

  .next-btn {
    right: 16px;
    bottom: 16px;
    padding: 12px 14px 12px 18px;
    gap: 10px;
  }
  .next-btn__left { display: none; }
  .next-btn__arrow { width: 34px; height: 34px; }
}

@media (max-width: 380px) {
  .nav__logo-text { display: none; }
}

/* ================================================
   DARK THEME
   Activado via data-theme="dark" en <html>
   ================================================ */

/* ---------- Theme toggle button ---------- */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-3);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  margin-left: 8px;
  flex-shrink: 0;
  color: var(--text-2);
}

.theme-toggle:hover {
  background: var(--bg-4);
  border-color: var(--accent);
  color: var(--text-0);
  transform: scale(1.08);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}

.theme-toggle:hover svg {
  transform: rotate(20deg);
}

.theme-toggle__icon--sun  { display: none; }
.theme-toggle__icon--moon { display: block; }

[data-theme="dark"] .theme-toggle__icon--sun  { display: block; }
[data-theme="dark"] .theme-toggle__icon--moon { display: none; }

.nav.is-scrolled .theme-toggle {
  width: 30px;
  height: 30px;
}

.nav.is-scrolled .theme-toggle svg {
  width: 15px;
  height: 15px;
}

/* ---------- Dark tokens ---------- */
[data-theme="dark"] {
  --bg-0: #05070d;
  --bg-1: #0a0d16;
  --bg-2: #11151f;
  --bg-3: #181d2a;
  --bg-4: #232a3b;

  --line:        rgba(255, 255, 255, 0.06);
  --line-strong:  rgba(255, 255, 255, 0.12);

  --text-0: #f4f6fb;
  --text-1: #c8cee0;
  --text-2: #8a92a8;
  --text-3: #5a6378;

  --accent:        #5b8cff;
  --accent-2:      #7c5cff;
  --accent-3:      #22d3ee;
  --accent-glow:   rgba(91, 140, 255, 0.35);
  --accent-glow-2: rgba(124, 92, 255, 0.30);

  --success: #34d399;
  --warning: #fbbf24;
  --danger:  #f87171;

  --grad-brand: linear-gradient(135deg, #5b8cff 0%, #7c5cff 50%, #22d3ee 100%);
  --grad-text:  linear-gradient(180deg, #ffffff 0%, #b8c0d8 100%);
  --grad-card:  linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);

  --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md:  0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg:  0 24px 64px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 60px rgba(91, 140, 255, 0.25);
}

/* ---------- Dark body & animated background ---------- */
[data-theme="dark"] body {
  background: var(--bg-1);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(91, 140, 255, 0.10), transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(124, 92, 255, 0.07), transparent 70%);
  background-attachment: fixed;
}

[data-theme="dark"] body::before {
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  opacity: 0.4;
}

[data-theme="dark"] body::after {
  background:
    radial-gradient(ellipse 600px 600px at 15% 20%, rgba(91, 140, 255, 0.06), transparent 70%),
    radial-gradient(ellipse 500px 500px at 85% 60%, rgba(124, 92, 255, 0.05), transparent 70%),
    radial-gradient(ellipse 400px 400px at 50% 80%, rgba(91, 140, 255, 0.04), transparent 70%);
}

/* ---------- Dark selection & scrollbar ---------- */
[data-theme="dark"] ::selection {
  background: var(--accent-glow);
  color: var(--text-0);
}

[data-theme="dark"] ::-webkit-scrollbar-track { background: var(--bg-0); }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: var(--bg-3); border-color: var(--bg-0); }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: var(--bg-4); }

/* ---------- Dark nav ---------- */
[data-theme="dark"] .nav {
  background: rgba(10, 13, 22, 0.55);
}

[data-theme="dark"] .nav.is-scrolled {
  background: rgba(7, 10, 18, 0.92);
  box-shadow: none;
}

/* ---------- Dark logo ---------- */
[data-theme="dark"] .logo-circle {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(91, 140, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ---------- Dark nav CTA ---------- */
[data-theme="dark"] .nav__cta {
  background: var(--bg-3);
  border-color: var(--line-strong);
}

[data-theme="dark"] .nav__cta:hover {
  background: var(--bg-4);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

/* ---------- Dark hero ---------- */
[data-theme="dark"] .hero__grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
}

[data-theme="dark"] .hero__glow {
  opacity: 0.45;
}

[data-theme="dark"] .hero__eyebrow {
  background: rgba(255, 255, 255, 0.025);
}

[data-theme="dark"] .hero__title {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="dark"] .section__title {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="dark"] .hero__partner {
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .hero__partner-logo {
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .hero__metrics {
  background: rgba(255, 255, 255, 0.015);
  box-shadow: none;
}

/* ---------- Dark buttons ---------- */
[data-theme="dark"] .btn--primary {
  box-shadow: 0 8px 24px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}

[data-theme="dark"] .btn--primary:hover {
  box-shadow: 0 14px 36px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.25);
}

[data-theme="dark"] .btn--ghost {
  background: rgba(255,255,255,0.04);
  border-color: var(--line-strong);
}

[data-theme="dark"] .btn--ghost:hover {
  background: rgba(255,255,255,0.08);
}

/* ---------- Dark cards genérica ---------- */
[data-theme="dark"] .card {
  background: var(--grad-card);
  box-shadow: none;
}

/* ---------- Dark section backgrounds ---------- */
[data-theme="dark"] .section--problema {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.012) 50%, transparent);
}

[data-theme="dark"] .section--demo {
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(91,140,255,0.05), transparent 70%);
}

[data-theme="dark"] .section--precios {
  background: linear-gradient(180deg, transparent, rgba(124,92,255,0.04), transparent);
}

/* ---------- Dark context tabs ---------- */
[data-theme="dark"] .ctx-tabs {
  background: rgba(255,255,255,0.03);
  box-shadow: none;
}

[data-theme="dark"] .ctx-tab:hover {
  background: rgba(255,255,255,0.04);
}

[data-theme="dark"] .ctx-tab.is-active {
  background: linear-gradient(135deg, rgba(91,140,255,0.25), rgba(124,92,255,0.18));
  border-color: rgba(91,140,255,0.4);
  box-shadow: 0 4px 20px rgba(91,140,255,0.2);
}

/* ---------- Dark context cards & panels ---------- */
[data-theme="dark"] .ctx-card {
  background: rgba(0,0,0,0.2);
  box-shadow: none;
}

[data-theme="dark"] .ctx-card--accent {
  background: linear-gradient(135deg, rgba(34,211,238,0.08), rgba(34,211,238,0.02)), rgba(0,0,0,0.25);
  border-color: rgba(34,211,238,0.35);
}

[data-theme="dark"] .ctx-card--warn { border-color: rgba(245,158,11,0.3); }
[data-theme="dark"] .ctx-card--warn .ctx-card__num { color: #f59e0b; }

[data-theme="dark"] .ctx-panel__quote {
  background: rgba(255,255,255,0.02);
}

/* ---------- Dark horizontal bars ---------- */
[data-theme="dark"] .ctx-hbars {
  background: rgba(0,0,0,0.2);
  box-shadow: none;
}

[data-theme="dark"] .ctx-hbar__track {
  background: rgba(255,255,255,0.04);
}

[data-theme="dark"] .ctx-hbar__fill--blue {
  background: linear-gradient(90deg, #5b8cff, #7c5cff);
  opacity: 0.7;
}

[data-theme="dark"] .ctx-hbar--alert .ctx-hbar__name { color: #ef4444; }
[data-theme="dark"] .ctx-hbar--alert .ctx-hbar__val { color: #ef4444; }

[data-theme="dark"] .ctx-hbar__badge {
  background: rgba(239,68,68,0.15);
  color: #ef4444;
  border-color: rgba(239,68,68,0.3);
}

/* ---------- Dark pioneers ---------- */
[data-theme="dark"] .ctx-pioneers {
  border-color: rgba(91,140,255,0.25);
  background: rgba(91,140,255,0.04);
}

[data-theme="dark"] .ctx-pioneers__gap strong { color: #f59e0b; }

/* ---------- Dark stat single ---------- */
[data-theme="dark"] .ctx-stat-single {
  background: rgba(0,0,0,0.15);
  box-shadow: none;
}

/* ---------- Dark gauge ---------- */
[data-theme="dark"] .ctx-gauge {
  background: rgba(0,0,0,0.2);
  box-shadow: none;
}

/* ---------- Dark Mexico cards ---------- */
[data-theme="dark"] .mx-card {
  background: rgba(0,0,0,0.25);
  box-shadow: none;
}

[data-theme="dark"] .mx-card--green { border-color: rgba(52,211,153,0.3); }
[data-theme="dark"] .mx-card--green .mx-card__num { background: linear-gradient(135deg, #059669, #34d399); -webkit-background-clip: text; background-clip: text; }

[data-theme="dark"] .mx-card--red { border-color: rgba(239,68,68,0.3); }
[data-theme="dark"] .mx-card--red .mx-card__num { color: #f87171; }

[data-theme="dark"] .mx-card--blue { border-color: rgba(91,140,255,0.3); }
[data-theme="dark"] .mx-card--blue .mx-card__num { background: linear-gradient(135deg, #3b82f6, #818cf8); -webkit-background-clip: text; background-clip: text; }

/* ---------- Dark maturity bar ---------- */
[data-theme="dark"] .mx-maturity {
  background: rgba(0,0,0,0.2);
  box-shadow: none;
}

[data-theme="dark"] .mx-maturity__track {
  background: rgba(255,255,255,0.06);
}

[data-theme="dark"] .mx-maturity__goal {
  border-left-color: rgba(255,255,255,0.35);
}

/* ---------- Dark highlight ---------- */
[data-theme="dark"] .mx-highlight {
  background: linear-gradient(135deg, rgba(52,211,153,0.08), rgba(59,130,246,0.06));
  border-color: rgba(52,211,153,0.2);
}

[data-theme="dark"] .mx-highlight__badge { color: #34d399; }

/* ---------- Dark bar chart ---------- */
[data-theme="dark"] .ctx-bars {
  border-color: rgba(249,115,22,0.35);
  background: rgba(0,0,0,0.2);
  box-shadow: none;
}

[data-theme="dark"] .ctx-bar__track {
  background: rgba(255,255,255,0.04);
}

[data-theme="dark"] .ctx-bar__fill--hot {
  box-shadow: 0 0 20px rgba(249,115,22,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
}

[data-theme="dark"] .ctx-bar__result {
  background: linear-gradient(135deg, rgba(249,115,22,0.12), rgba(248,113,113,0.06));
  border-color: rgba(249,115,22,0.35);
}

[data-theme="dark"] .ctx-bar__result strong { color: #f97316; }
[data-theme="dark"] .ctx-bar__eq { color: #f97316; }

/* ---------- Dark team cards ---------- */
[data-theme="dark"] .team-card {
  background: rgba(0,0,0,0.25);
  box-shadow: none;
}

[data-theme="dark"] .team-card--fire { border-color: rgba(249,115,22,0.3); }
[data-theme="dark"] .team-card--fire .team-card__num { background: linear-gradient(135deg, #dc2626, #f97316); -webkit-background-clip: text; background-clip: text; }

[data-theme="dark"] .team-card--orange { border-color: rgba(249,115,22,0.3); }
[data-theme="dark"] .team-card--orange .team-card__num { color: #f97316; }

[data-theme="dark"] .team-card--green { border-color: rgba(52,211,153,0.3); }
[data-theme="dark"] .team-card--green .team-card__num { background: linear-gradient(135deg, #059669, #34d399); -webkit-background-clip: text; background-clip: text; }

[data-theme="dark"] .team-card__sub--alert { color: #34d399; }

/* ---------- Dark close ---------- */
[data-theme="dark"] .ctx-close {
  background: linear-gradient(135deg, rgba(91,140,255,0.08), rgba(124,92,255,0.05)), var(--bg-2);
}

/* ---------- Dark zoom-block ---------- */
[data-theme="dark"] .zoom-block {
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
}

[data-theme="dark"] .zoom-block--team {
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.06), rgba(248, 113, 113, 0.02)), var(--bg-2);
  border-color: rgba(249, 115, 22, 0.30);
}

[data-theme="dark"] .zoom-block__icon {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent), rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 30px var(--block-glow), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ---------- Dark stats ---------- */
[data-theme="dark"] .stat {
  background: rgba(0, 0, 0, 0.20);
}

[data-theme="dark"] .stat--highlight {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.10), rgba(34, 211, 238, 0.02)), rgba(0, 0, 0, 0.3);
  border-color: rgba(34, 211, 238, 0.35);
}

[data-theme="dark"] .stat--warning .stat__num {
  text-shadow: 0 0 30px rgba(245, 158, 11, 0.25);
}

/* ---------- Dark explain ---------- */
[data-theme="dark"] .zoom-block__explain {
  background: rgba(255, 255, 255, 0.02);
}

/* ---------- Dark gap chart ---------- */
[data-theme="dark"] .gap-chart {
  background: rgba(0, 0, 0, 0.25);
  box-shadow: none;
}

[data-theme="dark"] .gap-bar__track {
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .gap-bar__fill {
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.5);
}

[data-theme="dark"] .gap-result {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(248, 113, 113, 0.08));
  border-color: rgba(249, 115, 22, 0.4);
}

/* ---------- Dark closing stat ---------- */
[data-theme="dark"] .closing-stat {
  background: linear-gradient(135deg, rgba(91,140,255,0.10), rgba(124,92,255,0.06)), var(--bg-2);
  box-shadow: 0 24px 60px rgba(91, 140, 255, 0.15);
}

[data-theme="dark"] .closing-stat::before {
  opacity: 0.5;
}

/* ---------- Dark solution grid cards ---------- */
[data-theme="dark"] .sol-card {
  background: var(--grad-card);
  border-color: rgba(255,255,255,0.08);
  box-shadow: none;
}

[data-theme="dark"] .sol-card:hover {
  border-color: rgba(91,140,255,0.5);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 20px rgba(91,140,255,0.12);
}

[data-theme="dark"] .sol-card--live {
  border-color: rgba(52,211,153,0.45);
  background: rgba(52,211,153,0.04);
  box-shadow: 0 0 22px rgba(52,211,153,0.1);
}

[data-theme="dark"] .sol-card--live:hover {
  border-color: rgba(52,211,153,0.65);
  background: rgba(52,211,153,0.07);
  box-shadow: 0 0 32px rgba(52,211,153,0.2);
}

[data-theme="dark"] .sol-card__name { color: #fff; }

[data-theme="dark"] .sol-card__badge--live {
  background: rgba(52,211,153,0.2);
  color: #34d399;
  box-shadow: 0 0 8px rgba(52,211,153,0.3);
}

[data-theme="dark"] .sol-card__badge--dev {
  background: rgba(91,140,255,0.12);
  color: #7ba4ff;
}

/* ---------- Dark tooltips ---------- */
[data-theme="dark"] .sol-card__tooltip {
  background: #12141f;
  border-color: rgba(91,140,255,0.25);
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
}

[data-theme="dark"] .sol-card__tooltip--green {
  border-color: rgba(52,211,153,0.35);
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 20px rgba(52,211,153,0.08);
}

[data-theme="dark"] .sol-card__tooltip--blue {
  border-color: rgba(91,140,255,0.25);
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 16px rgba(91,140,255,0.06);
}

[data-theme="dark"] .sol-card__tooltip::after {
  border-top-color: #12141f;
  border-bottom-color: transparent;
}

[data-theme="dark"] .sol-card__tip-sub { color: rgba(255,255,255,0.7); }

[data-theme="dark"] .sol-card__tip-flow {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
}

[data-theme="dark"] .sol-card__tip-flow span { color: rgba(255,255,255,0.8); }
[data-theme="dark"] .sol-card__tip-flow span + span::before { color: rgba(255,255,255,0.25); }

[data-theme="dark"] .sol-card__tip-agents li {
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}

/* ---------- Dark propuesta ---------- */
[data-theme="dark"] .propuesta__card {
  background: linear-gradient(135deg, rgba(91,140,255,0.08), rgba(124,92,255,0.05));
}

[data-theme="dark"] .propuesta__card::before { opacity: 0.4; }

/* ---------- Dark footer ---------- */
[data-theme="dark"] .footer {
  background: var(--bg-0);
}

/* ---------- Dark next btn ---------- */
[data-theme="dark"] .next-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 14px 40px rgba(91, 140, 255, 0.45),
    0 4px 14px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .next-btn:hover {
  box-shadow:
    0 22px 55px rgba(91, 140, 255, 0.55),
    0 6px 18px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

/* ---------- Dark section dividers ---------- */
[data-theme="dark"] .section:not(.section--hero)::after {
  box-shadow:
    0 0 0 4px rgba(91, 140, 255, 0.12),
    0 0 20px var(--accent-glow);
}

/* ---------- Dark eyebrow ---------- */
[data-theme="dark"] .section__eyebrow {
  color: var(--accent-3);
  background: rgba(34, 211, 238, 0.06);
}

/* ================================================
   MOBILE RESPONSIVE — 640px and below
   Comprehensive fixes for phone viewports (390px target)
   ================================================ */

@media (max-width: 640px) {

  /* ---------- TOKENS / ROOT ---------- */
  :root {
    --container-pad: 1rem;
    --section-pad-y: 3rem;
  }

  /* ---------- NAV ---------- */
  .nav {
    padding-block: 8px;
  }

  .nav.is-scrolled {
    padding-block: 6px;
  }

  .nav__inner {
    gap: 8px;
  }

  .nav__brand {
    gap: 6px;
    font-size: var(--fs-sm);
  }

  .logo-circle--sm {
    width: 30px;
    height: 30px;
  }

  .nav__actions {
    gap: 0;
    flex-shrink: 0;
  }

  .nav__actions .nav__cta {
    padding: 6px 10px;
    font-size: 11px;
  }

  .nav__actions .nav__cta--portal {
    padding: 6px 8px;
    font-size: 11px;
  }

  /* Hide "Portal" text on mobile, keep icon */
  .nav__cta--portal {
    font-size: 0;
    gap: 0;
    padding: 6px 10px;
  }

  .nav__cta--portal svg {
    width: 14px;
    height: 14px;
  }

  .theme-toggle {
    width: 30px;
    height: 30px;
    margin-left: 4px;
  }

  .theme-toggle svg {
    width: 14px;
    height: 14px;
  }

  /* ---------- HERO ---------- */
  .section--hero {
    min-height: auto;
    min-height: auto;
    padding-block: 80px 2rem;
  }

  .hero__eyebrow {
    font-size: 10px;
    padding: 6px 12px;
    gap: 6px;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    text-align: center;
  }

  .hero__title {
    font-size: clamp(1.75rem, 1.3rem + 2vw, 2.4rem);
    max-width: 100%;
    letter-spacing: -0.03em;
  }

  .hero__subtitle {
    font-size: var(--fs-sm);
    max-width: 100%;
    line-height: 1.5;
    margin-bottom: 1.25rem;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 1rem;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: var(--fs-sm);
  }

  .hero__partner {
    margin-bottom: 1.25rem;
    padding: 7px 14px;
  }

  .hero__partner-label {
    font-size: 9px;
  }

  .hero__partner-logo {
    height: 18px;
  }

  .hero__metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px;
    max-width: 100%;
  }

  .hero__metric {
    padding: 8px 6px;
  }

  .hero__metric + .hero__metric::before {
    display: none;
  }

  .hero__metric:nth-child(even)::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: var(--line);
  }

  .hero__metric-value {
    font-size: clamp(1.3rem, 1rem + 1.2vw, 1.8rem);
  }

  .hero__metric-label {
    font-size: 10px;
  }

  .hero__scroll {
    display: none;
  }

  /* Hero background glows — smaller on mobile */
  .hero__glow--1 {
    width: 280px;
    height: 280px;
  }

  .hero__glow--2 {
    width: 240px;
    height: 240px;
  }

  /* ---------- SECTION HEADERS ---------- */
  .section__header {
    margin-bottom: var(--space-4);
  }

  .section__eyebrow {
    font-size: 10px;
    padding: 5px 10px;
    margin-bottom: var(--space-3);
  }

  .section__title {
    font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
    margin-bottom: var(--space-3);
  }

  .section__lead {
    font-size: var(--fs-sm);
    line-height: 1.5;
  }

  /* Section numbering */
  .section:not(.section--hero) .section__header::before {
    font-size: 9px;
    margin-bottom: var(--space-1);
  }

  /* ---------- SECTION 2: CONTEXT TABS ---------- */
  .ctx-tabs {
    flex-direction: column;
    border-radius: var(--radius-lg);
    max-width: 100%;
    padding: 4px;
    gap: 2px;
  }

  .ctx-tab {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: var(--radius-md);
    justify-content: flex-start;
  }

  .ctx-tab__icon {
    width: 16px;
    height: 16px;
  }

  /* Panel layout */
  .ctx-panel__body {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .ctx-visual {
    max-width: 160px;
    margin: 0 auto;
  }

  .ctx-panel__title {
    font-size: 13px;
  }

  /* Stat grids */
  .ctx-grid--3,
  .ctx-grid--4 {
    grid-template-columns: 1fr;
  }

  /* Horizontal bars (mundo tab) */
  .ctx-hbars {
    padding: var(--space-3);
  }

  .ctx-hbar {
    grid-template-columns: 80px 1fr 38px;
    gap: 6px;
    margin-bottom: 8px;
  }

  .ctx-hbar__name {
    font-size: 10px;
  }

  .ctx-hbar__track {
    height: 6px;
  }

  .ctx-hbar__val {
    font-size: 10px;
  }

  .ctx-hbars__label {
    font-size: 9px;
  }

  /* World bottom section */
  .ctx-world-bottom {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .ctx-stat-single {
    flex-direction: column;
    text-align: center;
    gap: var(--space-2);
    padding: var(--space-3);
  }

  .ctx-pioneers {
    padding: 10px 12px;
  }

  .ctx-pioneers__list li {
    font-size: 11px;
  }

  .ctx-panel__quote {
    font-size: 11px;
    padding: 8px 12px;
  }

  /* Mexico tab cards */
  .mx-cards {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mx-card {
    padding: 12px 14px 10px;
  }

  .mx-card__num {
    font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem);
  }

  .mx-card__text {
    font-size: 11px;
  }

  /* Mexico maturity bar */
  .mx-maturity {
    padding: 10px 14px 8px;
  }

  .mx-maturity__title {
    font-size: 12px;
  }

  .mx-maturity__track {
    height: 22px;
  }

  .mx-maturity__fill::after {
    font-size: 11px;
    right: 6px;
  }

  .mx-maturity__goal-label {
    font-size: 8px;
    top: -18px;
  }

  .mx-maturity__caption {
    font-size: 11px;
  }

  /* Mexico highlight */
  .mx-highlight {
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
  }

  .mx-highlight__badge {
    font-size: 1.3rem;
  }

  .mx-highlight__text {
    font-size: 12px;
  }

  .mx-highlight__sub {
    font-size: 10px;
  }

  .mx-highlight__srcs {
    gap: 10px;
  }

  /* Team tab (Tu equipo) */
  .ctx-bars {
    padding: 12px 14px 8px;
  }

  .ctx-bar__label {
    font-size: 12px;
  }

  .ctx-bar__val {
    font-size: var(--fs-sm);
  }

  .ctx-bar__track {
    height: 14px;
  }

  .ctx-bar__result {
    font-size: 12px;
    gap: 8px;
    padding: 8px 12px;
  }

  .ctx-bar__eq {
    font-size: 1.2rem;
  }

  .team-cards {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .team-card {
    padding: 12px 12px 8px;
  }

  .team-card__num {
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  }

  .team-card__text {
    font-size: 11px;
  }

  .team-card__sub {
    font-size: 9px;
  }

  /* ---------- SECTION 3: SOLUTION GRID ---------- */
  .section--solucion {
    min-height: auto;
  }

  .section--solucion > .container {
    padding-top: 70px;
    padding-bottom: 12px;
  }

  .section__header--compact .section__title {
    font-size: clamp(1.4rem, 1rem + 1.6vw, 2rem);
    margin-bottom: 4px;
  }

  .section__header--compact .section__lead {
    font-size: 14px;
    line-height: 1.45;
  }

  .section__lead-indent {
    padding-left: 0;
    display: block;
    margin-top: 4px;
  }

  .sol-headline {
    font-size: var(--fs-base);
    margin-bottom: var(--space-3);
  }

  .sol-grid {
    gap: 10px;
  }

  .sol-grid__row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .sol-grid__harrow {
    display: none;
  }

  .sol-grid__curve {
    display: none;
  }

  .sol-card {
    max-width: 100%;
    min-width: 0;
    flex-basis: 100%;
    padding: 16px 14px 12px;
  }

  .sol-card__title-row {
    gap: 8px;
    margin-bottom: 6px;
  }

  .sol-card__icon {
    font-size: 1.3rem;
  }

  .sol-card__name {
    font-size: 14px;
  }

  .sol-card__badge {
    font-size: 9px;
    padding: 3px 10px;
  }

  .sol-card__crew {
    font-size: 12px;
  }

  .sol-card__meta {
    gap: 8px;
  }

  /* Tooltips on mobile — show below card on tap */
  .sol-card__tooltip {
    position: fixed;
    left: 16px !important;
    right: 16px;
    bottom: 80px;
    top: auto;
    width: auto;
    transform: scale(0.96) !important;
    z-index: 200;
  }

  .sol-card:hover .sol-card__tooltip,
  .sol-card.is-touch .sol-card__tooltip {
    transform: scale(1) !important;
  }

  .sol-card__tooltip::after {
    display: none;
  }

  .sol-roadmap {
    font-size: 12px;
    padding: 8px 14px;
    margin-top: var(--space-3);
    border-radius: var(--radius-md);
  }

  /* ---------- SECTION 4: DEMO ---------- */
  .section--demo {
    min-height: auto;
  }

  .section--demo > .container {
    padding-top: 50px;
    padding-bottom: 12px;
  }

  .demo__wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .demo__chat-frame {
    height: 60vh;
    max-height: 440px;
    border-radius: 12px;
  }

  .demo__chat-header {
    padding: 8px 12px;
  }

  .demo__chat-name {
    font-size: 12px;
  }

  .demo__messages {
    padding: var(--space-3);
  }

  .msg {
    max-width: 88%;
    font-size: 12px;
  }

  .demo__input {
    padding: 6px 8px;
  }

  .demo__input input {
    padding: 7px 12px;
    font-size: 12px;
  }

  .demo__input button {
    width: 32px;
    height: 32px;
  }

  .demo__side-card {
    padding: 12px;
  }

  .demo__side-title {
    font-size: 13px;
  }

  .demo__side-list li {
    font-size: 11px;
  }

  .demo__side-subtitle {
    font-size: 9px;
  }

  .demo__data-label {
    font-size: 10px;
  }

  .demo__data-value {
    font-size: 11px;
  }

  /* ---------- LEGACY ZOOM BLOCKS ---------- */
  .zoom-block {
    padding: clamp(1.25rem, 3vw, 2rem);
  }

  .zoom-block__head {
    flex-direction: column;
    gap: var(--space-3);
  }

  .zoom-block__icon {
    width: 48px;
    height: 48px;
  }

  .zoom-block__icon svg {
    width: 26px;
    height: 26px;
  }

  .zoom-block__title {
    font-size: var(--fs-base);
  }

  .zoom-block__stats,
  .zoom-block__stats--4 {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .stat__num {
    font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem);
  }

  .stat--highlight .stat__num {
    font-size: clamp(2rem, 1.6rem + 1.4vw, 2.8rem);
  }

  .zoom-block__explain {
    font-size: var(--fs-sm);
    padding: var(--space-3) var(--space-4);
  }

  /* Gap chart */
  .gap-chart {
    padding: var(--space-4);
  }

  .gap-result {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
    padding: var(--space-4);
  }

  /* Closing stat */
  .closing-stat {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-4);
    padding: clamp(1.25rem, 3vw, 2rem);
    margin-top: var(--space-7);
  }

  .closing-stat__num {
    font-size: clamp(3rem, 2.5rem + 2vw, 4.5rem);
  }

  /* ctx-close */
  .ctx-close {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
    padding: 10px var(--space-3);
  }

  /* ---------- FLOATING NEXT BUTTON ---------- */
  .next-btn {
    right: 12px;
    bottom: 12px;
    padding: 10px 12px 10px 14px;
    gap: 8px;
  }

  .next-btn__left {
    display: none;
  }

  .next-btn__arrow {
    width: 32px;
    height: 32px;
  }

  /* ---------- FOOTER ---------- */
  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }

  .footer__brand {
    justify-content: center;
  }

  /* ---------- GENERAL CARD ---------- */
  .card {
    padding: var(--space-4);
  }

  /* ---------- BUTTONS ---------- */
  .btn {
    padding: 12px 20px;
    font-size: 13px;
  }

  /* ---------- PROPUESTA ---------- */
  .propuesta__card {
    padding: clamp(1.25rem, 3vw, 2rem);
  }

  /* ---------- DASHBOARD MOCK ---------- */
  .dashboard__mock {
    aspect-ratio: 4 / 3;
  }
}

/* ================================================
   EXTRA-SMALL PHONES — 380px and below
   Fine-tuning for narrowest viewports
   ================================================ */

@media (max-width: 380px) {

  :root {
    --container-pad: 0.75rem;
  }

  /* Nav: hide brand text, show only logo */
  .nav__logo-text {
    display: none;
  }

  .nav__actions .nav__cta {
    padding: 5px 8px;
    font-size: 10px;
  }

  .logo-circle--sm {
    width: 26px;
    height: 26px;
  }

  /* Hero */
  .hero__title {
    font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  }

  .hero__subtitle {
    font-size: 13px;
  }

  .hero__eyebrow {
    font-size: 9px;
    padding: 5px 10px;
    gap: 5px;
  }

  .hero__metric-value {
    font-size: 1.2rem;
  }

  .hero__metric-label {
    font-size: 9px;
  }

  .hero__metrics {
    padding: 8px;
    gap: 6px;
  }

  /* Section headers */
  .section__title {
    font-size: 1.35rem;
  }

  .section__lead {
    font-size: 13px;
  }

  /* Context tabs */
  .ctx-tab {
    padding: 7px 10px;
    font-size: 12px;
  }

  /* Horizontal bars */
  .ctx-hbar {
    grid-template-columns: 65px 1fr 34px;
    gap: 4px;
  }

  .ctx-hbar__name {
    font-size: 9px;
  }

  .ctx-hbar__val {
    font-size: 9px;
  }

  /* Mexico cards */
  .mx-card__num {
    font-size: 1.4rem;
  }

  /* Team cards */
  .team-card__num {
    font-size: 1.3rem;
  }

  /* Solution cards */
  .sol-card {
    padding: 14px 12px 10px;
  }

  .sol-card__name {
    font-size: 13px;
  }

  .sol-card__tooltip {
    left: 8px !important;
    right: 8px;
    bottom: 70px;
  }

  /* Solution headline */
  .sol-headline {
    font-size: 14px;
  }

  .section__header--compact .section__title {
    font-size: 1.25rem;
  }

  .section__header--compact .section__lead {
    font-size: 13px;
  }

  /* Maturity bar */
  .mx-maturity__fill::after {
    font-size: 10px;
    right: 4px;
  }

  /* Demo */
  .demo__chat-frame {
    height: 55vh;
    max-height: 380px;
  }

  /* Next button */
  .next-btn {
    right: 8px;
    bottom: 8px;
  }

  .next-btn__arrow {
    width: 28px;
    height: 28px;
  }
}

/* ================================================
   PRESENTATION MODE — Mobile slide deck
   Shows desktop layout scaled to phone, scroll-snap between sections.
   Activated via JS: html.presentation-mode + viewport width=1200
   ================================================ */

/* Presentation mode base — lock horizontal, center everything */
html.presentation-mode,
html.presentation-portrait {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

html.presentation-mode body,
html.presentation-portrait body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Scroll-snap for slide-like navigation */
html.presentation-mode {
  scroll-snap-type: y proximity;
}

html.presentation-mode .section {
  scroll-snap-align: start;
}

/* Override 100vh — at viewport=1200 on phone, 100vh ≈ 2600px which is too tall.
   Let sections be natural height. Content dictates size. */
html.presentation-mode .section--hero {
  min-height: auto;
  padding-block: 100px 60px;
}

html.presentation-mode .section--solucion {
  min-height: auto;
}

html.presentation-mode .section--solucion > .container {
  padding-top: 80px;
  padding-bottom: 40px;
}

html.presentation-mode .section--demo {
  min-height: auto;
}

html.presentation-mode .section--demo > .container {
  padding-top: 60px;
  padding-bottom: 40px;
}

/* Chat frame — fixed height that works for desktop-scaled layout */
html.presentation-mode .demo__chat-frame {
  height: 500px;
  max-height: none;
}

/* Next button — bigger for touch on scaled layout */
html.presentation-mode .next-btn {
  right: 40px;
  bottom: 40px;
  padding: 18px 24px 18px 28px;
  gap: 16px;
  font-size: 16px;
}

html.presentation-mode .next-btn__left {
  display: flex;
}

html.presentation-mode .next-btn__label {
  font-size: 12px;
}

html.presentation-mode .next-btn__name {
  font-size: 16px;
}

html.presentation-mode .next-btn__arrow {
  width: 46px;
  height: 46px;
}

/* Sol-card tooltips on touch — show on tap, overlay style */
html.presentation-mode .sol-card {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Tooltip hint text on presentation mode */
html.presentation-mode .sol-card::after {
  content: 'Toca para ver agentes →';
  display: block;
  font-size: 11px;
  color: var(--text-3);
  margin-top: 8px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

html.presentation-mode .sol-card.is-touch::after {
  opacity: 0;
}

/* Theme toggle — scaled to match portrait physical size (~38px on screen) */
/* Portrait: 38px CSS on 393px viewport ≈ 38px physical */
/* Landscape: need 62px CSS on 1400px viewport → 62*(852/1400) ≈ 38px physical */
html.presentation-mode .theme-toggle,
html.presentation-mode .nav.is-scrolled .theme-toggle {
  width: 62px;
  height: 62px;
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(79, 70, 229, 0.4);
}

html.presentation-mode .theme-toggle svg,
html.presentation-mode .nav.is-scrolled .theme-toggle svg {
  width: 32px;
  height: 32px;
  stroke: #fff !important;
  color: #fff !important;
}

/* Send button — same physical size as portrait */
html.presentation-mode .demo__input input {
  font-size: 24px;
  padding: 12px 20px;
}

html.presentation-mode .demo__input button {
  width: 62px;
  height: 62px;
  min-width: 62px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(37, 211, 102, 0.4);
}

html.presentation-mode .demo__input button svg {
  width: 32px;
  height: 32px;
}

html.presentation-mode .demo__input button svg,
html.presentation-mode .demo__input button svg path {
  fill: #ffffff !important;
  color: #ffffff !important;
}

/* ================================================
   PRESENTATION PORTRAIT — Polished mobile vertical
   Responsive layout but compact, slide-like, agents visible
   ================================================ */

/* No scroll-snap in portrait — the "Next" button handles smooth scrolling.
   Snap fights with scrollIntoView smooth and causes jitter. */

/* -- Hero: compact, centered, no min-height -- */
html.presentation-portrait .section--hero {
  min-height: auto;
  padding-block: 72px 28px;
}

html.presentation-portrait .hero__eyebrow {
  font-size: 9px;
  padding: 5px 10px;
  margin-bottom: 10px;
}

html.presentation-portrait .hero__title {
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem);
  max-width: 100%;
}

html.presentation-portrait .hero__subtitle {
  font-size: 13px;
  max-width: 100%;
  margin-bottom: 16px;
}

html.presentation-portrait .hero__actions {
  flex-direction: column;
  width: 100%;
  gap: 8px;
  margin-bottom: 14px;
}

html.presentation-portrait .hero__actions .btn {
  width: 100%;
  justify-content: center;
  padding: 11px 18px;
  font-size: 13px;
}

html.presentation-portrait .hero__partner {
  margin-bottom: 14px;
  padding: 6px 12px;
}

html.presentation-portrait .hero__partner-logo {
  height: 18px;
}

html.presentation-portrait .hero__metrics {
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 8px;
}

html.presentation-portrait .hero__metric {
  padding: 6px 4px;
}

html.presentation-portrait .hero__metric + .hero__metric::before { display: none; }
html.presentation-portrait .hero__metric:nth-child(even)::before {
  content: ""; display: block; position: absolute;
  left: 0; top: 20%; bottom: 20%; width: 1px; background: var(--line);
}

html.presentation-portrait .hero__metric-value {
  font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
}

html.presentation-portrait .hero__metric-label {
  font-size: 9px;
}

html.presentation-portrait .hero__scroll { display: none; }
html.presentation-portrait .hero__glow--1 { width: 250px; height: 250px; }
html.presentation-portrait .hero__glow--2 { width: 200px; height: 200px; }

/* -- Nav: compact with visible theme toggle -- */
html.presentation-portrait .nav { padding-block: 6px; }
html.presentation-portrait .nav__inner { gap: 6px; }
html.presentation-portrait .nav__links { display: none; }
html.presentation-portrait .nav__brand { gap: 5px; font-size: 13px; }
html.presentation-portrait .logo-circle--sm { width: 28px; height: 28px; }

/* CTA buttons: shorter text */
html.presentation-portrait .nav__actions {
  gap: 0;
  flex-shrink: 0;
  align-items: center;
}
html.presentation-portrait .nav__actions .nav__cta {
  padding: 5px 8px;
  font-size: 10px;
}

/* Portal: icon only */
html.presentation-portrait .nav__cta--portal { font-size: 0; gap: 0; padding: 5px 8px; }
html.presentation-portrait .nav__cta--portal svg { width: 12px; height: 12px; }

/* Theme toggle portrait: compact circle, big icon */
html.presentation-portrait .theme-toggle,
html.presentation-portrait .nav.is-scrolled .theme-toggle {
  width: 30px;
  height: 30px;
  margin-left: 6px;
  flex-shrink: 0;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.35);
  padding: 0;
}
html.presentation-portrait .theme-toggle svg,
html.presentation-portrait .nav.is-scrolled .theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: #fff !important;
  color: #fff !important;
}

/* -- Section headers: tighter -- */
html.presentation-portrait .section__header { margin-bottom: 12px; }
html.presentation-portrait .section__eyebrow { font-size: 9px; padding: 4px 9px; margin-bottom: 8px; }
html.presentation-portrait .section__title { font-size: clamp(1.3rem, 1rem + 1.3vw, 1.8rem); margin-bottom: 6px; }
html.presentation-portrait .section__lead { font-size: 12px; line-height: 1.45; }
html.presentation-portrait .section:not(.section--hero) .section__header::before { font-size: 8px; }

/* -- Section 2: Contexto -- */
html.presentation-portrait .section--problema { padding-block: clamp(2rem, 4vw, 3rem); }

html.presentation-portrait .ctx-tabs {
  flex-direction: row;
  border-radius: var(--radius-pill);
  max-width: 100%;
  gap: 2px;
}

html.presentation-portrait .ctx-tab {
  padding: 7px 10px;
  font-size: 12px;
  color: var(--text-1);
  font-weight: 600;
}

html.presentation-portrait .ctx-tab__icon { width: 15px; height: 15px; }
html.presentation-portrait .ctx-tab__text { font-size: 11px; }

html.presentation-portrait .ctx-panel__title { font-size: 12px; margin-bottom: 8px; }

html.presentation-portrait .ctx-hbars { padding: 10px; }
html.presentation-portrait .ctx-hbar { grid-template-columns: 70px 1fr 32px; gap: 4px; margin-bottom: 5px; }
html.presentation-portrait .ctx-hbar__name { font-size: 9px; }
html.presentation-portrait .ctx-hbar__track { height: 5px; }
html.presentation-portrait .ctx-hbar__val { font-size: 9px; }
html.presentation-portrait .ctx-hbars__label { font-size: 8px; margin-bottom: 6px; }

html.presentation-portrait .ctx-world-bottom { grid-template-columns: 1fr; gap: 8px; }
html.presentation-portrait .ctx-stat-single {
  flex-direction: row; gap: 8px; padding: 8px 10px;
}
html.presentation-portrait .ctx-stat-single .ctx-card__num { font-size: 1.3rem; }
html.presentation-portrait .ctx-stat-single .ctx-card__text { font-size: 11px; }
html.presentation-portrait .ctx-pioneers { padding: 8px 10px; }
html.presentation-portrait .ctx-pioneers__list li { font-size: 10px; }
html.presentation-portrait .ctx-panel__quote { font-size: 10px; padding: 6px 10px; }

/* Mexico tab */
html.presentation-portrait .mx-cards { grid-template-columns: repeat(3, 1fr); gap: 6px; }
html.presentation-portrait .mx-card { padding: 10px 8px 8px; }
html.presentation-portrait .mx-card__num { font-size: 1.4rem; }
html.presentation-portrait .mx-card__text { font-size: 9px; }
html.presentation-portrait .mx-maturity { padding: 8px 12px 6px; }
html.presentation-portrait .mx-maturity__title { font-size: 11px; }
html.presentation-portrait .mx-maturity__track { height: 18px; }
html.presentation-portrait .mx-maturity__fill::after { font-size: 9px; right: 4px; }
html.presentation-portrait .mx-maturity__goal-label { font-size: 7px; top: -16px; }
html.presentation-portrait .mx-maturity__caption { font-size: 10px; }
html.presentation-portrait .mx-highlight { padding: 10px 12px; gap: 8px; }
html.presentation-portrait .mx-highlight__badge { font-size: 1.2rem; }
html.presentation-portrait .mx-highlight__text { font-size: 11px; }
html.presentation-portrait .mx-highlight__sub { font-size: 9px; }

/* Team tab */
html.presentation-portrait .ctx-bars { padding: 10px 12px 6px; }
html.presentation-portrait .ctx-bar__label { font-size: 11px; }
html.presentation-portrait .ctx-bar__val { font-size: 13px; }
html.presentation-portrait .ctx-bar__track { height: 12px; }
html.presentation-portrait .ctx-bar__result { font-size: 11px; padding: 6px 10px; }
html.presentation-portrait .ctx-bar__eq { font-size: 1rem; }
html.presentation-portrait .team-cards { grid-template-columns: repeat(3, 1fr); gap: 6px; }
html.presentation-portrait .team-card { padding: 10px 8px 6px; }
html.presentation-portrait .team-card__num { font-size: 1.3rem; }
html.presentation-portrait .team-card__text { font-size: 9px; }
html.presentation-portrait .team-card__sub { font-size: 8px; }

/* -- Section 3: Solución — CARDS WITH INLINE AGENT INFO -- */
html.presentation-portrait .section--solucion { min-height: auto; }
html.presentation-portrait .section--solucion > .container { padding-top: 60px; padding-bottom: 16px; }

html.presentation-portrait .section__header--compact .section__title {
  font-size: clamp(1.2rem, 0.9rem + 1.5vw, 1.7rem);
}
html.presentation-portrait .section__header--compact .section__lead { font-size: 12px; }
html.presentation-portrait .section__lead-indent { padding-left: 0; display: block; margin-top: 2px; }
html.presentation-portrait .sol-headline { font-size: 13px; margin-bottom: 10px; }

html.presentation-portrait .sol-grid { gap: 6px; }
html.presentation-portrait .sol-grid__row { gap: 6px; }
html.presentation-portrait .sol-grid__harrow { display: none; }
html.presentation-portrait .sol-grid__curve { display: none; }

/* Cards in 2-column grid */
html.presentation-portrait .sol-grid__row--4,
html.presentation-portrait .sol-grid__row--3 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

html.presentation-portrait .sol-card {
  max-width: 100%;
  min-width: 0;
  padding: 12px 10px 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

html.presentation-portrait .sol-card__icon { font-size: 1.2rem; }
html.presentation-portrait .sol-card__name { font-size: 12px; }
html.presentation-portrait .sol-card__badge { font-size: 8px; padding: 2px 8px; }
html.presentation-portrait .sol-card__crew { font-size: 10px; }
html.presentation-portrait .sol-card__meta { gap: 6px; margin-top: 4px; }

/* Show tooltip content INLINE when tapped (is-touch) */
html.presentation-portrait .sol-card__tooltip {
  position: static;
  width: 100%;
  transform: none !important;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
  border: none;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  pointer-events: auto;
}

html.presentation-portrait .sol-card__tooltip::after { display: none; }

html.presentation-portrait .sol-card.is-touch .sol-card__tooltip {
  opacity: 1;
  max-height: 300px;
  padding: 10px 0 0;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

html.presentation-portrait .sol-card__tip-sub { font-size: 10px; margin-bottom: 6px; }
html.presentation-portrait .sol-card__tip-flow { padding: 5px 7px; margin-bottom: 6px; }
html.presentation-portrait .sol-card__tip-flow span { font-size: 8px; }
html.presentation-portrait .sol-card__tip-agents { gap: 3px; }
html.presentation-portrait .sol-card__tip-agents li { font-size: 8px; padding: 2px 6px; }

/* Tap hint under cards */
html.presentation-portrait .sol-card::after {
  content: 'Toca ↓';
  display: block;
  font-size: 9px;
  color: var(--text-3);
  margin-top: 4px;
  text-align: center;
  opacity: 0.5;
}

html.presentation-portrait .sol-card.is-touch::after { content: none; }

html.presentation-portrait .sol-roadmap { font-size: 10px; padding: 6px 12px; margin-top: 8px; }

/* -- Section 4: Demo — 50/50 chat + side visible -- */
html.presentation-portrait .section--demo { min-height: auto; }
html.presentation-portrait .section--demo > .container { padding-top: 48px; padding-bottom: 12px; }
html.presentation-portrait .section--demo .section__header { margin-bottom: 8px; }
html.presentation-portrait .section--demo .section__title { font-size: 1.2rem; margin-bottom: 2px; }
html.presentation-portrait .section--demo .section__lead { font-size: 11px; }

/* Chat full width on top, side panels below in 2 columns */
html.presentation-portrait .demo__wrapper {
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

html.presentation-portrait .demo__chat {
  grid-column: 1 / -1; /* full width */
}

html.presentation-portrait .demo__chat-frame {
  height: 42vh;
  max-height: 320px;
  border-radius: 10px;
}

html.presentation-portrait .demo__chat-header { padding: 6px 10px; }
html.presentation-portrait .demo__chat-name { font-size: 10px; }
html.presentation-portrait .demo__chat-status { font-size: 8px; }
html.presentation-portrait .demo__chat-avatar { width: 26px; height: 26px; }
html.presentation-portrait .demo__chat-avatar svg { width: 16px; height: 16px; }
html.presentation-portrait .demo__messages { padding: 8px; gap: 5px; }
html.presentation-portrait .msg { max-width: 92%; font-size: 10px; padding: 5px 8px 3px; }
html.presentation-portrait .msg__time { font-size: 8px; }

/* Input: font-size 16px prevents iOS zoom on focus */
html.presentation-portrait .demo__input { padding: 5px 6px; }
html.presentation-portrait .demo__input input {
  padding: 8px 10px;
  font-size: 16px;
  border-radius: 20px;
}
html.presentation-portrait .demo__input button {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4);
  padding: 0;
}
html.presentation-portrait .demo__input button svg {
  width: 22px;
  height: 22px;
}
/* Force white arrow on send button */
html.presentation-portrait .demo__input button svg,
html.presentation-portrait .demo__input button svg path {
  fill: #ffffff !important;
  color: #ffffff !important;
}

/* Side panel: 2 cards fill the 2-column grid */
html.presentation-portrait .demo__side {
  display: contents; /* let cards flow into parent grid */
}
html.presentation-portrait .demo__side-card { padding: 8px 10px; }
html.presentation-portrait .demo__side-title { font-size: 11px; margin-bottom: 6px; }
html.presentation-portrait .demo__side-list { gap: 4px; margin-bottom: 0; }
html.presentation-portrait .demo__side-list li { font-size: 9px; line-height: 1.3; gap: 5px; }
html.presentation-portrait .demo__side-icon { font-size: 11px; }
html.presentation-portrait .demo__side-subtitle { font-size: 8px; margin-bottom: 6px; }
html.presentation-portrait .demo__data-label { font-size: 8px; }
html.presentation-portrait .demo__data-value { font-size: 9px; }
html.presentation-portrait .demo__data-row { padding: 2px 0; }
html.presentation-portrait .demo__data-progress { height: 4px; margin-bottom: 2px; }
html.presentation-portrait .demo__data-progress-label { font-size: 8px; margin-bottom: 6px; }

/* -- Next button: show "Siguiente" label -- */
html.presentation-portrait .next-btn {
  right: 10px;
  bottom: 10px;
  padding: 8px 12px 8px 14px;
  gap: 8px;
}

html.presentation-portrait .next-btn__left { display: flex; }
html.presentation-portrait .next-btn__label { font-size: 9px; letter-spacing: 0.14em; }
html.presentation-portrait .next-btn__name  { font-size: 11px; }
html.presentation-portrait .next-btn__arrow { width: 28px; height: 28px; }
html.presentation-portrait .next-btn__arrow svg { width: 16px; height: 16px; }

/* -- Footer -- */
html.presentation-portrait .footer__inner {
  flex-direction: column;
  text-align: center;
  gap: 8px;
}

html.presentation-portrait .footer__brand { justify-content: center; }

/* ================================================
   PORTRAIT — Dashboard simplified view
   ================================================ */
html.presentation-portrait .section--dashboard { padding-top: 0 !important; padding-bottom: 12px !important; }
html.presentation-portrait .section--problema,
html.presentation-portrait .section--demo,
html.presentation-portrait .section--dashboard,
html.presentation-portrait .section--herramientas,
html.presentation-portrait .section--diferenciadores,
html.presentation-portrait .section--precios,
html.presentation-portrait .section--propuesta {
  padding-top: 0 !important;
}
html.presentation-portrait .section:not(.section--hero)::before,
html.presentation-portrait .section:not(.section--hero)::after { display: none; }
html.presentation-portrait .section--dashboard .section__title { font-size: 1.2rem; }
html.presentation-portrait .section--dashboard .section__lead { font-size: 11px; }

html.presentation-portrait .dash {
  height: auto;
  max-height: 560px;
  border-radius: 12px;
  overflow: hidden;
}

html.presentation-portrait .dash__content { max-height: 400px; overflow-y: auto; }

/* Hide sidebar labels, show only icons in compact horizontal strip */
html.presentation-portrait .dash__body {
  flex-direction: column;
}

html.presentation-portrait .dash__side {
  width: 100%;
  height: auto;
  padding: 6px 8px;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 6px;
  border-right: none;
  border-bottom: 1px solid #E5E7EB;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
html.presentation-portrait .dash__side::-webkit-scrollbar { display: none; }
html.presentation-portrait .dash__side-group { flex-direction: row; gap: 4px; flex-shrink: 0; align-items: center; }
html.presentation-portrait .dash__side-label {
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  margin: 0;
  font-size: 8px;
  white-space: nowrap;
  color: #9CA3AF;
}
html.presentation-portrait .dash__side-group--admin { border-top: none; padding-top: 0; margin-top: 0; border-left: 1px solid #F1F5F9; padding-left: 6px; margin-left: 2px; }
html.presentation-portrait .dash__side-item {
  padding: 6px 8px;
  font-size: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
html.presentation-portrait .dash__side-item svg { width: 12px; height: 12px; }

html.presentation-portrait .dash__topbar { height: 40px; padding: 0 12px; }
html.presentation-portrait .dash__topbar-brand { font-size: 11px; }
html.presentation-portrait .dash__topbar-logo { width: 22px; height: 22px; }
html.presentation-portrait .dash__topbar-env { font-size: 8px; padding: 2px 7px; }
html.presentation-portrait .dash__topbar-avatar { width: 24px; height: 24px; font-size: 9px; }

html.presentation-portrait .dash__content { padding: 12px; }
html.presentation-portrait .dash__view-title { font-size: 14px; margin-bottom: 10px; }

/* Stats: 2 columns on phone */
html.presentation-portrait .dash__stats { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
html.presentation-portrait .dash__card { padding: 10px; }
html.presentation-portrait .dash__card-num { font-size: 22px; }
html.presentation-portrait .dash__card-label { font-size: 9px; }
html.presentation-portrait .dash__card-delta { font-size: 8px; }

/* Panel grid: stack vertically */
html.presentation-portrait .dash__panel-grid { grid-template-columns: 1fr; gap: 10px; }
html.presentation-portrait .dash__panel-box { padding: 10px; }
html.presentation-portrait .dash__panel-title { font-size: 11px; margin-bottom: 8px; padding-bottom: 6px; }
html.presentation-portrait .dash__prio-info strong { font-size: 11px; }
html.presentation-portrait .dash__prio-info span { font-size: 9px; }
html.presentation-portrait .dash__prio-icon { width: 28px; height: 28px; font-size: 10px; }
html.presentation-portrait .dash__prio-tag { font-size: 9px; padding: 2px 6px; }

/* Pipeline bars */
html.presentation-portrait .dash__pipe-label { font-size: 9px; }
html.presentation-portrait .dash__pipe strong { font-size: 12px; }

/* Table: hide some columns */
html.presentation-portrait .dash__table { font-size: 10px; }
html.presentation-portrait .dash__table th,
html.presentation-portrait .dash__table td { padding: 6px 8px; }
html.presentation-portrait .dash__table th:nth-child(2),
html.presentation-portrait .dash__table th:nth-child(5),
html.presentation-portrait .dash__table td:nth-child(2),
html.presentation-portrait .dash__table td:nth-child(5) { display: none; }
html.presentation-portrait .dash__badge { font-size: 8px; padding: 2px 6px; }
html.presentation-portrait .dash__btn-docs { font-size: 9px; padding: 2px 6px; }

/* Drawer: full width on portrait */
html.presentation-portrait .dash__drawer-panel { width: 90%; }

/* Chats: stack */
html.presentation-portrait .dash__chats-layout { grid-template-columns: 1fr; height: auto; }
html.presentation-portrait .dash__chat-list { max-height: 160px; border-right: none; border-bottom: 1px solid #E5E7EB; }
html.presentation-portrait .dash__chat-msgs { min-height: 160px; }

/* Demo toast */
html.presentation-portrait .dash__toast { left: 50%; right: auto; }
html.presentation-portrait .dash__toast-inner { font-size: 10px; padding: 8px 14px; gap: 8px; white-space: normal; max-width: 85vw; }
html.presentation-portrait .dash__toast-text strong { font-size: 11px; }
html.presentation-portrait .dash__toast-text span { font-size: 9px; }

/* ================================================
   PORTRAIT — Orquestador stacked view
   ================================================ */
html.presentation-portrait .section--herramientas { padding-top: 12px !important; padding-bottom: 14px !important; }
html.presentation-portrait .section--herramientas .section__title { font-size: 1.2rem; }

html.presentation-portrait .orq {
  aspect-ratio: auto;
  max-height: none;
  height: auto;
  padding: 80px 0 10px;
}

/* Hide lines/particles SVG on portrait — not needed in stacked layout */
html.presentation-portrait .orq__svg { display: none; }

/* Hub at top, absolute reset */
html.presentation-portrait .orq__center {
  position: relative;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}
html.presentation-portrait .orq__halo,
html.presentation-portrait .orq__core,
html.presentation-portrait .orq__title,
html.presentation-portrait .orq__tag {
  position: static !important;
  transform: none !important;
  top: auto !important;
  left: auto !important;
}
html.presentation-portrait .orq__halo {
  position: absolute !important;
  width: 140px;
  height: 140px;
  top: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}
html.presentation-portrait .orq__core { width: 80px; height: 80px; padding: 8px; margin-bottom: 10px; }
html.presentation-portrait .orq__title { font-size: 16px; margin-bottom: 2px; }
html.presentation-portrait .orq__tag { font-size: 9px; margin-bottom: 16px; }

/* Blocks: 2-column grid */
html.presentation-portrait .orq__block {
  position: static !important;
  transform: none !important;
  width: auto !important;
  padding: 8px 10px;
}
html.presentation-portrait .orq__block:hover { transform: translateY(-2px) !important; }

/* Grid container via flex wrapper — but blocks are siblings of .orq__center */
html.presentation-portrait .orq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
}
html.presentation-portrait .orq__center { grid-column: 1 / -1; padding-top: 12px; }
html.presentation-portrait .orq__block-head { margin-bottom: 6px; padding-bottom: 5px; }
html.presentation-portrait .orq__block-title { font-size: 10px; }
html.presentation-portrait .orq__block-tools span { font-size: 9px; padding: 3px 7px; }

/* ================================================
   SPLASH SCREEN — Mobile-only animated intro
   ================================================ */

/* Active everywhere */
.splash {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  background: #060a14;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Animated background orbs */
.splash__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.splash__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: splashOrb 3s ease-in-out infinite alternate;
}

.splash__orb--1 {
  width: 300px; height: 300px;
  background: rgba(91, 140, 255, 0.3);
  top: 20%; left: 10%;
  animation-delay: 0s;
}

.splash__orb--2 {
  width: 250px; height: 250px;
  background: rgba(124, 92, 255, 0.25);
  bottom: 20%; right: 10%;
  animation-delay: -1s;
}

.splash__orb--3 {
  width: 200px; height: 200px;
  background: rgba(34, 211, 238, 0.15);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -2s;
}

@keyframes splashOrb {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.6; }
  100% { transform: translate(20px, -15px) scale(1.15); opacity: 1; }
}

/* Content */
.splash__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: splashFadeUp 0.8s ease-out 0.2s both;
}

@keyframes splashFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Logo with ring animation */
.splash__logo-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
}

.splash__logo {
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow:
    0 8px 32px rgba(91, 140, 255, 0.4),
    0 0 60px rgba(91, 140, 255, 0.2);
  overflow: hidden;
  animation: splashLogoPulse 2s ease-in-out infinite;
}

.splash__logo img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

@keyframes splashLogoPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(91,140,255,0.4), 0 0 60px rgba(91,140,255,0.2); }
  50%      { box-shadow: 0 8px 32px rgba(91,140,255,0.6), 0 0 80px rgba(124,92,255,0.35); }
}

/* Spinning ring around logo */
.splash__ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(91, 140, 255, 0.8);
  border-right-color: rgba(124, 92, 255, 0.4);
  animation: splashRingSpin 1.5s linear infinite;
}

@keyframes splashRingSpin {
  to { transform: rotate(360deg); }
}

/* Title */
.splash__title {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  animation: splashFadeUp 0.8s ease-out 0.5s both;
}

.splash__title span {
  background: linear-gradient(135deg, #5b8cff, #7c5cff, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Subtitle */
.splash__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 28px;
  animation: splashFadeUp 0.8s ease-out 0.7s both;
}

/* Progress loader bar */
.splash__loader {
  width: 120px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
  animation: splashFadeUp 0.8s ease-out 0.9s both;
}

.splash__loader-bar {
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #5b8cff, #7c5cff, #22d3ee);
  animation: splashLoaderFill 2.5s ease-in-out 0.5s forwards;
}

@keyframes splashLoaderFill {
  0%   { width: 0; }
  60%  { width: 80%; }
  100% { width: 100%; }
}

/* Rotate hint — only on portrait mobile */
.splash__rotate { display: none; }

html.presentation-portrait .splash__rotate {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin-top: 24px;
  animation: splashFadeUp 0.8s ease-out 1.2s both;
}

.splash__rotate-icon {
  animation: splashPhoneRotate 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes splashPhoneRotate {
  0%, 100% { transform: rotate(0deg); }
  30%, 70% { transform: rotate(-90deg); }
}

.splash__rotate-arrow {
  flex-shrink: 0;
  opacity: 0.6;
}

/* Light theme splash adjustments */
.splash {
  background: #060a14;
}

html:not([data-theme="dark"]) .splash {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}

/* ============================================ */
/* V2 ADDITIONS — comparison table, seguridad, founder */
/* ============================================ */

/* --- Head-to-head comparison table --- */
.dif__table-wrap {
  max-width: 1080px;
  margin: 40px auto 28px;
}

.dif__table-title {
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
  text-align: center;
  margin: 0 0 18px;
  font-weight: 600;
}

.dif__table-scroll {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.015);
}

.dif__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 720px;
}

.dif__table thead th {
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-2);
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}

.dif__table thead th.dif__table-us {
  color: #9aa5ff;
  background: rgba(123,136,255,0.08);
}

.dif__table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-1);
  vertical-align: middle;
}

.dif__table tbody tr:last-child td {
  border-bottom: none;
}

.dif__table tbody td:first-child {
  font-weight: 600;
  color: var(--text-0);
}

.dif__table tbody td.dif__table-us {
  background: rgba(123,136,255,0.04);
  color: var(--text-0);
  font-weight: 600;
}

/* --- Seguridad section --- */
.section--seguridad {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.sec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto 28px;
}

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

.sec-card {
  padding: 24px 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.sec-card:hover {
  border-color: rgba(123,136,255,0.25);
  transform: translateY(-2px);
}

.sec-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.sec-card__icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: rgba(123,136,255,0.1);
  border-radius: 10px;
  font-size: 18px;
}

.sec-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-0);
  margin: 0;
  letter-spacing: 0.01em;
}

.sec-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sec-card__list li {
  position: relative;
  padding: 7px 0 7px 18px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-1);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.sec-card__list li:last-child {
  border-bottom: none;
}

.sec-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  background: #9aa5ff;
  border-radius: 50%;
  opacity: 0.7;
}

.sec-card__list li strong {
  color: var(--text-0);
  font-weight: 600;
}

.sec-footer {
  max-width: 820px;
  margin: 0 auto;
  padding: 22px 26px;
  background: rgba(123,136,255,0.05);
  border: 1px solid rgba(123,136,255,0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.sec-footer p {
  margin: 0;
  font-size: 14px;
  color: var(--text-1);
  flex: 1;
  min-width: 260px;
}

.sec-footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--grad-brand, linear-gradient(135deg, #4f46e5, #7c3aed));
  color: #fff;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease;
  white-space: nowrap;
}

.sec-footer__cta:hover {
  transform: translateY(-1px);
}

/* --- Quiénes somos / Founder --- */
.section--quienes {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.founder {
  max-width: 820px;
  margin: 0 auto;
}

.founder__card {
  padding: 32px 36px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
}

.founder__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.founder__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(79,70,229,0.35);
}

.founder__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.founder__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-0);
  margin: 0;
}

.founder__role {
  font-size: 13px;
  color: var(--text-2);
  margin: 0;
}

.founder__bio {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-1);
  margin: 0 0 24px;
}

.founder__bio strong {
  color: var(--text-0);
  font-weight: 600;
}

.founder__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

@media (max-width: 640px) {
  .founder__stats { grid-template-columns: 1fr; }
  .founder__card { padding: 24px 22px; }
  .founder__bio { font-size: 14px; }
}

.founder__stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  text-align: center;
  padding: 10px 8px;
}

.founder__stat-num {
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, #5b8cff, #7c5cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  line-height: 1;
}

.founder__stat-label {
  font-size: 11.5px;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

/* --- Demo suggestion chips --- */
.demo__chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px 4px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.demo__chips-label {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-right: 2px;
}

.demo__chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(123,136,255,0.08);
  border: 1px solid rgba(123,136,255,0.2);
  border-radius: 16px;
  font-size: 11.5px;
  font-weight: 500;
  color: #9aa5ff;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  font-family: inherit;
}

.demo__chip:hover {
  background: rgba(123,136,255,0.15);
  border-color: rgba(123,136,255,0.35);
  transform: translateY(-1px);
}

.demo__chip:active {
  transform: translateY(0);
}

@media (max-width: 640px) {
  .demo__chip { font-size: 11px; padding: 5px 10px; }
  .demo__chips { padding: 6px 10px 3px; }
}

/* --- Footer legal entity --- */
.footer__legal-entity {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer__legal-fine {
  font-size: 11px;
  color: var(--text-3);
  opacity: 0.75;
  line-height: 1.5;
  max-width: 640px;
}

.founder__avatar--photo {
  overflow: visible;
  padding: 3px;
  background: linear-gradient(135deg, #5b8cff, #7c5cff);
  border-radius: 50%;
  box-shadow: 0 10px 32px rgba(79,70,229,0.45);
  aspect-ratio: 1 / 1;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.founder__avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  box-sizing: border-box;
  border: 2px solid #0a0e1a;
}

.founder__bio--closing {
  margin-top: -8px;
  padding: 14px 18px;
  background: rgba(123,136,255,0.05);
  border-left: 3px solid #7c5cff;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  font-style: italic;
  color: var(--text-1);
}

.founder__bio--closing strong {
  font-style: normal;
}

/* --- Seguridad strip (compact) --- */
.section--seguridad-strip {
  padding-block: 2rem;
}

.sec-strip {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 22px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.sec-strip__head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 260px;
}

.sec-strip__icon {
  font-size: 24px;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: rgba(123,136,255,0.1);
  border-radius: 10px;
  flex-shrink: 0;
}

.sec-strip__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-0);
  margin: 0 0 2px;
  letter-spacing: 0.01em;
}

.sec-strip__sub {
  font-size: 12px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.45;
}

.sec-strip__cta {
  font-size: 12.5px;
  font-weight: 600;
  color: #9aa5ff;
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 14px;
  background: rgba(123,136,255,0.08);
  border: 1px solid rgba(123,136,255,0.2);
  border-radius: 8px;
  transition: background 0.18s ease;
}

.sec-strip__cta:hover {
  background: rgba(123,136,255,0.16);
}

/* --- Founder mini (end-of-page compact) --- */
.section--quienes-compact {
  padding-block: 2.5rem 3rem;
}

.founder-mini {
  max-width: 820px;
  margin: 0 auto 16px;
  padding: 20px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.founder-mini__photo {
  width: 72px;
  height: 72px;
  padding: 3px;
  background: linear-gradient(135deg, #5b8cff, #7c5cff);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(79,70,229,0.35);
}

.founder-mini__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  border: 2px solid #0a0e1a;
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
}

.founder-mini__body {
  flex: 1;
  min-width: 0;
}

.founder-mini__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.founder-mini__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-0);
  margin: 0;
}

.founder-mini__role {
  font-size: 12px;
  color: var(--text-2);
}

.founder-mini__bio {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-1);
  margin: 0;
}

.founder-mini__bio strong {
  color: var(--text-0);
  font-weight: 600;
}

.sec-strip--footer {
  max-width: 820px;
  margin: 0 auto;
  padding: 10px 18px !important;
  font-size: 11.5px !important;
}

.sec-strip--footer .sec-strip__sub {
  font-size: 11.5px !important;
  margin: 0;
}

.sec-strip--footer .sec-strip__sub a {
  color: #9aa5ff;
  text-decoration: none;
  font-weight: 600;
}

.sec-strip--footer .sec-strip__icon {
  width: 28px;
  height: 28px;
  font-size: 14px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .founder-mini { flex-direction: column; text-align: center; padding: 18px; }
  .founder-mini__head { justify-content: center; }
}

/* --- Closing grid: Founder + Due diligence --- */
.section--quienes-compact { padding-block: 2.5rem 3rem; }

.closing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: stretch;
}

.closing-card {
  padding: 24px 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.closing-card__eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9aa5ff;
  font-weight: 700;
  margin-bottom: 4px;
}

.closing-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-0);
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}

/* --- Founder stacked layout --- */
.founder-mini--stacked {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  background: none;
  border: none;
  margin: 0;
}

.founder-mini--stacked .founder-mini__photo {
  width: 60px;
  height: 60px;
}

/* --- Due diligence list --- */
.dd-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.dd-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-1);
}

.dd-list__icon {
  flex-shrink: 0;
  font-size: 15px;
  line-height: 1.4;
  width: 20px;
  text-align: center;
}

.dd-list li strong {
  color: var(--text-0);
  font-weight: 600;
}

.dd-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: rgba(123,136,255,0.1);
  border: 1px solid rgba(123,136,255,0.25);
  border-radius: 10px;
  color: #9aa5ff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
  margin-top: auto;
}

.dd-cta:hover {
  background: rgba(123,136,255,0.18);
  transform: translateY(-1px);
}

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

/* === Dashboard Panel redesign === */
.dash__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.dash__panel-period {
  font-size: 11px;
  color: #64748B;
  font-weight: 500;
  padding: 3px 10px;
  background: #F0F4FF;
  border-radius: 20px;
}

.dash__kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.dash__kpi {
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dash__kpi-label {
  font-size: 10px;
  font-weight: 600;
  color: #64748B;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dash__kpi-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.dash__kpi-num {
  font-size: 22px;
  font-weight: 800;
  color: #0A1628;
  line-height: 1;
  letter-spacing: -0.02em;
}

.dash__kpi-unit {
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
}

.dash__kpi-trend {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  white-space: nowrap;
}

.dash__kpi-trend--up { background: rgba(16,185,129,0.12); color: #059669; }
.dash__kpi-trend--down { background: rgba(16,185,129,0.12); color: #059669; }
.dash__kpi-trend--alert { background: rgba(239,68,68,0.12); color: #DC2626; }

.dash__kpi-sub {
  font-size: 10px;
  color: #94A3B8;
}

.dash__panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1;
  min-height: 0;
}

.dash__panel-box {
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.dash__box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.dash__box-total {
  font-size: 10px;
  color: #64748B;
  font-weight: 600;
}

.dash__box-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #059669;
  font-weight: 600;
}

.dash__box-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  animation: pulseDot 2s ease-in-out infinite;
}

/* Pipeline */
.dash__pipeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.dash__pipe {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.dash__pipe-bar {
  grid-column: 2;
  grid-row: 2;
  height: 6px;
  border-radius: 3px;
  width: var(--w);
  display: block;
}

.dash__pipe-label {
  grid-column: 1;
  grid-row: 1;
  color: #334155;
  font-weight: 500;
  font-size: 11px;
}

.dash__pipe strong {
  grid-column: 3;
  grid-row: 1;
  font-size: 13px;
  color: #0A1628;
  font-weight: 700;
}

.dash__pipe-track-full {
  grid-column: 2;
  grid-row: 2;
  height: 6px;
  background: #F1F5F9;
  border-radius: 3px;
}

/* Activity */
.dash__activity {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  flex: 1;
}

.dash__act {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  background: #F8FAFC;
  border-radius: 8px;
  font-size: 11.5px;
}

.dash__act-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.dash__act-icon--green { background: rgba(16,185,129,0.15); color: #059669; }
.dash__act-icon--blue { background: rgba(59,130,246,0.15); color: #2563EB; }
.dash__act-icon--purple { background: rgba(124,58,237,0.15); color: #7C3AED; }
.dash__act-icon--orange { background: rgba(245,158,11,0.15); color: #D97706; }

.dash__act-text {
  flex: 1;
  color: #334155;
  line-height: 1.3;
}

.dash__act-text strong {
  color: #0A1628;
  font-weight: 600;
}

.dash__act-time {
  font-size: 10px;
  color: #94A3B8;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .dash__kpis { grid-template-columns: repeat(2, 1fr); }
  .dash__panel-grid { grid-template-columns: 1fr; }
}

/* === Contexto: letra más grande SOLO en panel El Mundo (desktop) === */
html:not(.presentation-portrait) #panel-world .ctx-panel__title { font-size: var(--fs-lg) !important; }
html:not(.presentation-portrait) #panel-world .ctx-hbar__name,
html:not(.presentation-portrait) #panel-world .ctx-hbar__val { font-size: 13px !important; }
html:not(.presentation-portrait) #panel-world .ctx-hbars__label { font-size: 13px !important; }
html:not(.presentation-portrait) #panel-world .ctx-pioneers__list li { font-size: 14px !important; }
html:not(.presentation-portrait) #panel-world .ctx-pioneers__gap { font-size: 14px !important; }
html:not(.presentation-portrait) #panel-world .ctx-card__src { font-size: 11px !important; }

/* === Contexto: El Mundo PORTRAIT — compacto === */
html.presentation-portrait #panel-world .ctx-hbars {
  padding: 8px 10px !important;
  margin-bottom: 6px;
}
html.presentation-portrait #panel-world .ctx-hbars__label { font-size: 9px !important; margin-bottom: 4px; }
html.presentation-portrait #panel-world .ctx-hbar { margin-bottom: 3px; }
html.presentation-portrait #panel-world .ctx-hbar__name { font-size: 9px !important; }
html.presentation-portrait #panel-world .ctx-hbar__val { font-size: 9px !important; }
html.presentation-portrait #panel-world .ctx-hbar__track { height: 4px !important; }
html.presentation-portrait #panel-world .ctx-pioneers { padding: 6px 10px; }
html.presentation-portrait #panel-world .ctx-pioneers__title { font-size: 9px; margin-bottom: 3px; }
html.presentation-portrait #panel-world .ctx-pioneers__list { gap: 1px; }
html.presentation-portrait #panel-world .ctx-pioneers__list li { font-size: 9px !important; margin-bottom: 0; }
html.presentation-portrait #panel-world .ctx-pioneers__gap { font-size: 10px !important; margin-top: 4px; }
html.presentation-portrait #panel-world .ctx-card__src { font-size: 8px !important; }
html.presentation-portrait #panel-world .ctx-panel__title { font-size: 11px !important; margin-bottom: 6px; }

/* === Propuesta — fit in single viewport === */
.section--propuesta {
  padding-block: 1.5rem 1.5rem;
  min-height: auto;
}

.section--propuesta .section__header {
  margin-bottom: 10px;
}

.section--propuesta .section__title { font-size: var(--fs-lg); margin-bottom: 2px; }
.section--propuesta .section__lead { font-size: 12.5px; margin-bottom: 0; }

.section--propuesta .prop__plan {
  margin-bottom: 10px;
  gap: 10px;
}

.section--propuesta .prop__phase {
  padding: 12px 14px;
}

.section--propuesta .prop__phase h4 { font-size: 13px; margin: 2px 0 4px; }
.section--propuesta .prop__phase strong { font-size: 10.5px; }
.section--propuesta .prop__phase ul li { font-size: 11.5px; line-height: 1.35; margin-bottom: 1px; }
.section--propuesta .prop__phase-icon { font-size: 16px; }
.section--propuesta .prop__phase-num { font-size: 18px; }

.section--propuesta .prop__success {
  padding: 12px 16px;
  margin: 8px auto 10px;
}

.section--propuesta .prop__success-head { margin-bottom: 8px; }
.section--propuesta .prop__success-title { font-size: 13px; }
.section--propuesta .prop__success-icon { width: 22px; height: 22px; font-size: 12px; }
.section--propuesta .prop__success-grid { gap: 8px; margin-bottom: 8px; }
.section--propuesta .prop__success-item { padding: 7px 10px; }
.section--propuesta .prop__success-num { font-size: 18px; }
.section--propuesta .prop__success-desc { font-size: 10.5px; line-height: 1.3; }
.section--propuesta .prop__guarantee { font-size: 11.5px; padding: 8px 12px; line-height: 1.4; }

.section--propuesta .prop__invest {
  padding: 12px 18px;
  margin-bottom: 10px;
}

.section--propuesta .prop__invest-badge {
  font-size: 10px;
  padding: 5px 13px;
  top: -10px;
}

.section--propuesta .prop__invest-title { font-size: 10px; margin: 2px 0 4px; }
.section--propuesta .prop__invest-amount { font-size: 24px; }
.section--propuesta .prop__invest-mult { font-size: 12px; }
.section--propuesta .prop__invest-tag { font-size: 11px; margin-bottom: 6px; }
.section--propuesta .prop__invest-notes p { font-size: 11px; margin: 2px 0; line-height: 1.35; }

.section--propuesta .prop__metrics {
  padding: 6px 10px;
  margin-bottom: 8px;
  font-size: 11px;
}

.section--propuesta .prop__ctas {
  gap: 10px;
  margin-top: 4px;
}

.section--propuesta .prop__cta {
  padding: 10px 22px;
  font-size: 13px;
}

/* ============================================ */
/* V2 PORTRAIT (mobile vertical) — slide fit    */
/* ============================================ */

/* --- Propuesta: success criteria compact --- */
html.presentation-portrait .prop__success {
  padding: 8px 10px;
  margin: 4px auto 6px;
  border-radius: 10px;
}
html.presentation-portrait .prop__success-head { margin-bottom: 4px; gap: 6px; }
html.presentation-portrait .prop__success-icon { width: 16px; height: 16px; font-size: 9px; }
html.presentation-portrait .prop__success-title { font-size: 10px; }
html.presentation-portrait .prop__success-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}
html.presentation-portrait .prop__success-item { padding: 5px 6px; border-radius: 6px; }
html.presentation-portrait .prop__success-num { font-size: 13px; }
html.presentation-portrait .prop__success-desc { font-size: 8px; line-height: 1.2; }
html.presentation-portrait .prop__guarantee {
  font-size: 9px;
  padding: 5px 8px;
  line-height: 1.3;
  border-radius: 6px;
}

/* --- Diferenciadores table --- */
html.presentation-portrait .section--diferenciadores .section__title { font-size: 1.1rem; }
html.presentation-portrait .section--diferenciadores .section__lead { font-size: 10px; }
html.presentation-portrait .dif__quote {
  padding: 8px 12px;
  margin-bottom: 6px;
}
html.presentation-portrait .dif__quote p { font-size: 11px; line-height: 1.4; }
html.presentation-portrait .dif__table-wrap { margin: 6px auto; }
html.presentation-portrait .dif__table-title { font-size: 10px; margin-bottom: 6px; letter-spacing: 0.1em; }
html.presentation-portrait .dif__table-scroll { border-radius: 8px; }
html.presentation-portrait .dif__table { font-size: 9px; min-width: 0; }
html.presentation-portrait .dif__table thead th {
  padding: 5px 6px;
  font-size: 8.5px;
  letter-spacing: 0.02em;
}
html.presentation-portrait .dif__table tbody td {
  padding: 5px 6px;
  font-size: 9px;
  line-height: 1.25;
}
html.presentation-portrait .dif__closing { font-size: 11px; margin-top: 6px; }

/* --- Dashboard panel redesign (KPIs + pipeline + activity) --- */
html.presentation-portrait .dash__panel-head { margin-bottom: 4px; }
html.presentation-portrait .dash__panel-period { font-size: 7px; padding: 1px 6px; }
html.presentation-portrait .dash__kpis { gap: 3px; margin-bottom: 4px; }
html.presentation-portrait .dash__kpi { padding: 4px 5px; border-radius: 5px; gap: 1px; }
html.presentation-portrait .dash__kpi-label { font-size: 6.5px; letter-spacing: 0; }
html.presentation-portrait .dash__kpi-num { font-size: 13px; }
html.presentation-portrait .dash__kpi-unit { font-size: 7px; }
html.presentation-portrait .dash__kpi-trend { font-size: 6.5px; padding: 1px 3px; border-radius: 3px; }
html.presentation-portrait .dash__kpi-sub { font-size: 6.5px; }
html.presentation-portrait .dash__box-head { margin-bottom: 4px; }
html.presentation-portrait .dash__box-total,
html.presentation-portrait .dash__box-live { font-size: 7px; }
html.presentation-portrait .dash__box-live-dot { width: 4px; height: 4px; }
html.presentation-portrait .dash__pipeline { gap: 4px; }
html.presentation-portrait .dash__pipe { gap: 4px; }
html.presentation-portrait .dash__pipe-label { font-size: 8px; }
html.presentation-portrait .dash__pipe strong { font-size: 9px; }
html.presentation-portrait .dash__pipe-bar { height: 3px; }
html.presentation-portrait .dash__activity { gap: 3px; }
html.presentation-portrait .dash__act { padding: 3px 5px; font-size: 8px; gap: 5px; border-radius: 4px; }
html.presentation-portrait .dash__act-icon { width: 14px; height: 14px; font-size: 7px; }
html.presentation-portrait .dash__act-time { font-size: 6.5px; }

/* --- Closing grid: Quiénes + Due diligence (stack vertical in portrait) --- */
html.presentation-portrait .closing-grid {
  grid-template-columns: 1fr;
  gap: 6px;
  max-width: 100%;
}
html.presentation-portrait .closing-card {
  padding: 8px 10px;
  border-radius: 10px;
  gap: 4px;
}
html.presentation-portrait .closing-card__eyebrow {
  font-size: 8px;
  letter-spacing: 0.12em;
}
html.presentation-portrait .closing-card__title { font-size: 11px; margin: 0 0 2px; }
html.presentation-portrait .founder-mini--stacked { gap: 8px; }
html.presentation-portrait .founder-mini--stacked .founder-mini__photo {
  width: 40px;
  height: 40px;
}
html.presentation-portrait .founder-mini__name { font-size: 11px; }
html.presentation-portrait .founder-mini__role { font-size: 8px; }
html.presentation-portrait .founder-mini__bio { font-size: 9px; line-height: 1.35; }
html.presentation-portrait .dd-list { gap: 4px; margin-bottom: 0; }
html.presentation-portrait .dd-list li { font-size: 8.5px; line-height: 1.3; gap: 5px; }
html.presentation-portrait .dd-list__icon { font-size: 10px; width: 14px; }

/* --- Demo chips portrait --- */
html.presentation-portrait .demo__chips { padding: 4px 6px 2px; gap: 3px; }
html.presentation-portrait .demo__chips-label { font-size: 7px; }
html.presentation-portrait .demo__chip { font-size: 8px; padding: 3px 6px; }

/* --- Propuesta investment & phase blocks in portrait --- */
html.presentation-portrait .prop__invest-notes p { font-size: 8px; line-height: 1.25; margin: 0; }
html.presentation-portrait .prop__invest-badge {
  font-size: 7px;
  padding: 2px 7px;
  top: -7px;
  letter-spacing: 0.04em;
}

/* Portrait: se dejan todas las reglas de v1 tal cual */

/* --- QUIENES + DD: show both stacked --- */
html.presentation-portrait .section--quienes-compact {
  padding-top: 48px !important;
  padding-bottom: 0 !important;
  justify-content: flex-start !important;
  min-height: 0 !important;
}
html.presentation-portrait .section--quienes-compact > .container {
  justify-content: flex-start !important;
  padding-top: 8px !important;
}
html.presentation-portrait .closing-grid {
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  max-width: 100% !important;
}
html.presentation-portrait .closing-card {
  padding: 10px 12px !important;
  border-radius: 10px !important;
}
html.presentation-portrait .founder-mini--stacked .founder-mini__photo { width: 44px; height: 44px; }
html.presentation-portrait .founder-mini__name { font-size: 12px; }
html.presentation-portrait .founder-mini__role { font-size: 9px; }
html.presentation-portrait .founder-mini__bio { font-size: 10px; line-height: 1.4; }
html.presentation-portrait .closing-card__title { font-size: 12px; }
html.presentation-portrait .closing-card__eyebrow { font-size: 8.5px; }
html.presentation-portrait .dd-list { gap: 6px; margin: 0; }
html.presentation-portrait .dd-list li { font-size: 10px !important; line-height: 1.35; }
html.presentation-portrait .dd-list__icon { font-size: 12px; width: 18px; }

/* Landscape: keep v1 natural sizing + 2 columns for quienes */
html.presentation-mode .closing-grid {
  grid-template-columns: 1fr 1fr;
  max-width: 1100px;
  margin: 0 auto;
}

/* === Ecosistema light mode adaptation === */
html:not([data-theme="dark"]) .orq__block {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--c) 10%, transparent), color-mix(in srgb, var(--c) 3%, transparent)),
    rgba(255,255,255,0.95);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.08),
    0 0 20px color-mix(in srgb, var(--c) 10%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.6);
  border-color: color-mix(in srgb, var(--c) 30%, transparent);
}

html:not([data-theme="dark"]) .orq__block-title {
  color: var(--text-0);
}

html:not([data-theme="dark"]) .orq__block-tools span {
  color: color-mix(in srgb, var(--c) 70%, #000);
  background: color-mix(in srgb, var(--c) 8%, #fff);
  border-color: color-mix(in srgb, var(--c) 25%, transparent);
}

html:not([data-theme="dark"]) .orq__title {
  color: var(--text-0);
}

html:not([data-theme="dark"]) .orq__title strong {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html:not([data-theme="dark"]) .orq__center-title,
html:not([data-theme="dark"]) .orq__center-label {
  color: var(--text-0);
}

html:not([data-theme="dark"]) .orq__center-sub {
  color: var(--text-2);
}

/* ============================================ */
/* FIX: Cada sección = 1 viewport, contenido arriba */
/* ============================================ */

/* Landscape: usa reglas nativas de v1 (natural sizing) */

/* --- Precios PORTRAIT: Starter + Enterprise compactos (solo nombre + precio + badge) --- */
html.presentation-portrait .pricing__card:not(.pricing__card--featured) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 18px;
}

html.presentation-portrait .pricing__card:not(.pricing__card--featured) .pricing__desc,
html.presentation-portrait .pricing__card:not(.pricing__card--featured) .pricing__feats,
html.presentation-portrait .pricing__card:not(.pricing__card--featured) .pricing__extra,
html.presentation-portrait .pricing__card:not(.pricing__card--featured) .pricing__btn {
  display: none;
}

html.presentation-portrait .pricing__card:not(.pricing__card--featured) .pricing__plan {
  margin-bottom: 4px;
}

html.presentation-portrait .pricing__card:not(.pricing__card--featured) .pricing__price {
  margin-bottom: 0;
}

/* ============================================================
   Encuadre móvil: cada sección llena el viewport - navH
   y scroll-snap limpio entre secciones.
   ============================================================ */

/* Portrait: nav ≈ 43px */
html.presentation-portrait {
  scroll-snap-type: y proximity;
  scroll-padding-top: 43px;
  --mobile-nav-h: 43px;
}

html.presentation-portrait main > section,
html.presentation-portrait #footer {
  min-height: calc(100dvh - var(--mobile-nav-h));
  scroll-snap-align: start;
  scroll-margin-top: 0;
}

html.presentation-portrait .section--hero,
html.presentation-portrait .section--solucion,
html.presentation-portrait .section--demo {
  min-height: calc(100dvh - var(--mobile-nav-h));
}

/* Landscape (presentation-mode): nav ≈ 80px en CSS del layout escalado */
html.presentation-mode {
  scroll-padding-top: 80px;
  --mobile-nav-h: 80px;
}

html.presentation-mode main > section,
html.presentation-mode #footer {
  min-height: calc(100dvh - var(--mobile-nav-h));
  scroll-margin-top: 0;
}

html.presentation-mode .section--hero,
html.presentation-mode .section--solucion,
html.presentation-mode .section--demo {
  min-height: calc(100dvh - var(--mobile-nav-h));
}
