:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --ink: #0f172a;
  --ink-body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff6ff;
  --indigo: #4338ca;
  --indigo-soft: #eef2ff;
  --emerald: #059669;
  --emerald-soft: #ecfdf5;
  --amber: #d97706;
  --amber-bright: #fbbf24;
  --amber-soft: #fffbeb;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(30, 58, 138, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

p, ul, ol, dl, dd {
  margin: 0;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a, button, summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

::selection {
  background: #dbeafe;
  color: #1e3a8a;
}

.skip {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 100;
  background: var(--ink);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   1. CINTILLA EJECUTIVA CORPORATIVA DE CAMPAÑA (AUTO-EXPIRABLE)
   ========================================================================== */
.promo-banner {
  background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
  color: #f8fafc;
  border-bottom: 1px solid rgba(59, 130, 246, 0.35);
  position: relative;
}

.promo-banner[hidden] {
  display: none;
}

.promo-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 9px 44px 9px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  position: relative;
}

.promo-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: #2563eb;
  border: 1px solid rgba(147, 197, 253, 0.45);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.promo-copy {
  color: #e2e8f0;
  font-weight: 500;
}

.promo-copy strong {
  color: #ffffff;
  font-weight: 700;
}

.promo-link {
  color: #93c5fd;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.promo-link:hover {
  color: #ffffff;
}

.promo-dismiss {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.55);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.promo-dismiss:hover {
  background: rgba(59, 130, 246, 0.25);
  color: #ffffff;
}

/* ==========================================================================
   2. NAVBAR PRINCIPAL (LOGIN INTACTO Y SIEMPRE VISIBLE)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
  color: #ffffff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28);
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.edition-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  border: 1px solid #bfdbfe;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.edition-pill[hidden] {
  display: none;
}

.edition-pill svg {
  width: 12px;
  height: 12px;
  color: var(--blue);
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
}

.main-nav a {
  padding: 8px 2px;
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 15px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.nav-login:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.nav-login-arrow {
  color: #64748b;
  font-size: 13px;
}

.nav-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--blue);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav-signup:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

/* ==========================================================================
   3. HERO CENTRADO EMPÁTICO + SELECTOR DINÁMICO DE 4 PERFILES
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: #ffffff;
  background-image:
    radial-gradient(circle at 86% 12%, rgba(245, 158, 11, 0.09), transparent 42%),
    radial-gradient(circle at 14% 78%, rgba(37, 99, 235, 0.09), transparent 48%);
  border-bottom: 1px solid var(--line);
  padding: 52px 0 68px;
}

.hero-center {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--blue-soft);
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  flex-shrink: 0;
}

.hero-center h1 {
  font-size: clamp(32px, 4.7vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.032em;
  color: #090d16;
}

.hero-center h1 span {
  display: inline-block;
  margin-top: 4px;
  background: linear-gradient(92deg, #2563eb 0%, #4338ca 62%, #1d4ed8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 18px auto 0;
  max-width: 690px;
  font-size: 17.5px;
  line-height: 1.62;
  color: #475569;
}

.hero-ctas {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-whatsapp {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #065f46;
  font-weight: 600;
}

.btn-whatsapp:hover {
  background: #d1fae5;
  border-color: #34d399;
}

.btn-whatsapp svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #059669;
}

.btn-dark {
  background: var(--ink);
  color: #ffffff;
}

.btn-dark:hover {
  background: #1e293b;
}

.btn-outline {
  background: #ffffff;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-outline:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.hero-trust {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 24px;
  font-size: 13px;
  color: var(--muted);
}

.hero-trust > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-trust strong {
  color: var(--ink);
  font-weight: 700;
}

.trust-check {
  color: var(--emerald);
  font-weight: 800;
}

/* SELECTOR DE PERFILES */
.persona-showcase {
  margin: 46px auto 0;
  max-width: 1080px;
}

.persona-prompt {
  text-align: center;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 12px;
}

.persona-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border-radius: 16px;
  background: #f1f5f9;
  border: 1px solid var(--line);
}

.persona-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  min-height: 62px;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.persona-btn:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.72);
}

.persona-btn.is-active {
  background: #ffffff;
  border-color: #bfdbfe;
  box-shadow: var(--shadow-sm);
}

.persona-kicker {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.kicker-blue { color: var(--blue); }
.kicker-emerald { color: var(--emerald); }
.kicker-indigo { color: var(--indigo); }
.kicker-amber { color: var(--amber); }

.persona-name {
  display: block;
  margin-top: 3px;
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.persona-btn:not(.is-active) .persona-name {
  color: #475569;
}

.persona-card {
  margin-top: 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.persona-panel[hidden] {
  display: none;
}

.fade-slide {
  animation: fadeSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.persona-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 32px;
  align-items: center;
}

.persona-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 12px;
  font-weight: 700;
}

.persona-main h2 {
  margin-top: 14px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.22;
}

.persona-desc {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.65;
  color: #475569;
}

.persona-bullets {
  list-style: none;
  padding: 0;
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.persona-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #1e293b;
}

.persona-bullets li::before {
  content: "✓";
  color: var(--emerald);
  font-weight: 800;
  flex-shrink: 0;
}

.persona-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.persona-secondary-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.persona-secondary-link:hover {
  color: var(--blue-dark);
}

.persona-steps {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: grid;
  gap: 10px;
}

.persona-steps-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 2px;
}

.step-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  box-shadow: var(--shadow-xs);
}

.step-box strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-dark);
}

.step-box p {
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #475569;
}

/* ==========================================================================
   4. RECORRIDO INTERACTIVO DEL PRODUCTO REAL (#recorrido)
   ========================================================================== */
.anchor-alias {
  display: block;
  height: 0;
  overflow: hidden;
}

.product-section {
  padding: 76px 0;
  background: var(--bg);
}

.section-header-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 8px;
}

.section-header-split h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
}

.demo-label {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: #475569;
  text-align: right;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 10px;
  flex-shrink: 0;
}

.demo-label small {
  display: block;
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--muted);
}

.workbench {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.task-rail {
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.task-rail > button {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: #cbd5e1;
  padding: 15px 14px;
  border-radius: 12px;
  transition: background 0.15s ease, color 0.15s ease;
}

.task-rail > button:hover:not([aria-selected="true"]) {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.task-rail > button[aria-selected="true"] {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.task-number {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  opacity: 0.8;
  margin-top: 2px;
}

.task-rail strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.task-rail small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.86;
}

.task-arrow {
  margin-left: auto;
  font-size: 15px;
  opacity: 0.75;
}

.rail-footer {
  margin-top: auto;
  padding: 16px 12px 6px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.mini-brand {
  font-size: 12px;
  font-weight: 800;
  color: #93c5fd;
}

.rail-footer p {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: #94a3b8;
}

.workspace {
  min-width: 0;
  background: #ffffff;
}

.demo-panel[hidden] {
  display: none;
}

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

.breadcrumb {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue);
  font-weight: 700;
}

.capture-heading h3 {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 800;
}

.zoom-btn {
  border: 1px solid var(--line-strong);
  background: #f8fafc;
  color: var(--ink);
  border-radius: 9px;
  padding: 8px 13px;
  min-height: 40px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.zoom-btn:hover {
  background: #f1f5f9;
}

.capture-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #f1f5f9;
  cursor: zoom-in;
}

.capture-open img {
  display: block;
  width: 100%;
  height: auto;
}

.capture-explanation {
  padding: 16px 24px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
  border-top: 1px solid var(--line);
  background: #fcfdff;
}

.demo-foot {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.demo-foot a {
  font-weight: 700;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================================================
   5. IMANES DE VALOR Y HERRAMIENTAS (#herramientas-gratis)
   ========================================================================== */
.tools-section {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: #ffffff;
  padding: 68px 0;
  position: relative;
}

.tools-head {
  max-width: 720px;
  margin-bottom: 32px;
}

.tools-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fde68a;
  font-size: 12px;
  font-weight: 700;
}

.tools-head h2 {
  margin-top: 12px;
  color: #ffffff;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 800;
}

.tools-head p {
  margin-top: 10px;
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.6;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid #334155;
  padding: 24px;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  background: rgba(30, 41, 59, 1);
  border-color: #60a5fa;
}

.tool-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.label-amber { color: #fbbf24; }
.label-blue { color: #60a5fa; }
.label-emerald { color: #34d399; }

.tool-card h3 {
  margin-top: 8px;
  color: #ffffff;
  font-size: 19px;
  font-weight: 700;
}

.tool-card p {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #cbd5e1;
}

.tool-cta {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #93c5fd;
}

.tool-card:hover .tool-cta {
  color: #ffffff;
}

/* ==========================================================================
   6. PLANES Y PRECIOS CLAROS EN MXN (#planes)
   ========================================================================== */
.pricing-section {
  padding: 76px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.pricing-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 42px;
}

.pricing-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
}

.pricing-head p {
  margin-top: 10px;
  font-size: 15.5px;
  color: #475569;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.plan-card.is-featured {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow-lg);
}

.featured-ribbon {
  position: absolute;
  top: -13px;
  right: 22px;
  background: var(--blue);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.plan-badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge-blue { background: var(--blue-soft); color: #1d4ed8; }
.badge-emerald { background: var(--emerald-soft); color: #047857; }
.badge-indigo { background: var(--indigo-soft); color: #4338ca; }

.plan-card h3 {
  margin-top: 14px;
  font-size: 23px;
  font-weight: 800;
}

.plan-price {
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan-price strong {
  font-family: var(--display);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #090d16;
  line-height: 1;
}

.plan-price span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.plan-promo-block[hidden],
.plan-regular-block[hidden] {
  display: none;
}

.plan-promo-tag {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--emerald-soft);
  border: 1px solid rgba(5, 150, 105, 0.26);
  color: #047857;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.plan-promo-sub {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #047857;
  font-weight: 600;
}

.plan-promo-sub s {
  color: var(--muted);
  font-weight: 500;
}

.plan-summary {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #475569;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 20px 0 24px;
  display: grid;
  gap: 11px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #1e293b;
}

.plan-features li::before {
  content: "✓";
  color: var(--emerald);
  font-weight: 800;
  flex-shrink: 0;
}

.plan-cta-stack {
  display: grid;
  gap: 10px;
}

.plan-cta-stack .btn {
  width: 100%;
}

.plan-scope-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 6px;
  min-height: 38px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.plan-scope-btn:hover {
  color: var(--blue);
}

.pricing-note {
  margin: 28px auto 0;
  max-width: 980px;
  text-align: center;
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
}

.pricing-note a {
  color: var(--blue-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   7. PREGUNTAS FRECUENTES (#preguntas)
   ========================================================================== */
.faq-section {
  padding: 72px 0;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.faq-intro h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
}

.faq-intro p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.65;
  color: #475569;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
  padding: 0 20px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.faq-list details[open] {
  background: #ffffff;
  border-color: #bfdbfe;
  box-shadow: var(--shadow-xs);
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 28px 18px 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 600;
  color: var(--blue);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  padding: 0 0 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
}

/* ==========================================================================
   8. CIERRE COMERCIAL + FOOTER + MODALES
   ========================================================================== */
.closing-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #3730a3 100%);
  color: #ffffff;
  padding: 64px 0;
}

.closing-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.closing-copy {
  max-width: 620px;
}

.closing-copy h2 {
  color: #ffffff;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
}

.closing-copy p {
  margin-top: 10px;
  font-size: 15.5px;
  color: #dbeafe;
  line-height: 1.6;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-white {
  background: #ffffff;
  color: #1d4ed8;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
}

.btn-white:hover {
  background: #f8fafc;
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.2);
}

.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-brand .brand-name {
  color: #ffffff;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #94a3b8;
  max-width: 300px;
}

.footer-col h3 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f8fafc;
  margin-bottom: 14px;
}

.footer-links {
  display: grid;
  gap: 9px;
  font-size: 13.5px;
}

.footer-links a {
  color: #94a3b8;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
}

/* MODALES ACCESIBLES (<dialog>) */
dialog {
  border: 1px solid var(--line);
  padding: 0;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.35);
  background: #ffffff;
  color: var(--ink);
  width: min(640px, calc(100% - 28px));
  max-height: 88dvh;
  overflow: auto;
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(3px);
}

.dialog-head {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.dialog-head button,
.close-capture {
  background: #f1f5f9;
  border: 0;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#dialog-content {
  padding: 24px;
}

#dialog-content .example-kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

#dialog-content h2 {
  font-size: 26px;
  margin-bottom: 12px;
}

#dialog-content p {
  font-size: 14px;
  line-height: 1.65;
  color: #475569;
  margin: 12px 0;
}

#dialog-content ul {
  padding-left: 20px;
  margin: 14px 0;
  font-size: 14px;
  line-height: 1.75;
  color: #1e293b;
}

#dialog-content .dialog-note {
  border-left: 3px solid var(--blue);
  padding: 12px 14px;
  background: var(--blue-soft);
  border-radius: 0 8px 8px 0;
  color: #1e3a8a;
  font-size: 13px;
}

.dialog-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f8fafc;
}

.dialog-foot span {
  font-size: 12px;
  color: var(--muted);
}

#capture-dialog {
  max-width: 1360px;
  width: 95vw;
  max-height: 92dvh;
}

.capture-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}

.capture-dialog-head span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--blue);
}

.capture-dialog-head h2 {
  font-size: 20px;
  margin-top: 4px;
}

.capture-scroll {
  overflow: auto;
  max-height: 74dvh;
  background: #f1f5f9;
}

.capture-scroll img {
  display: block;
  width: 100%;
  min-width: 920px;
}

.capture-caption {
  padding: 12px 24px;
  font-size: 12px;
  color: var(--muted);
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.noscript {
  padding: 16px 24px;
  background: var(--amber-soft);
  color: #92400e;
  text-align: center;
  font-size: 13px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (TABLET & MOBILE 390PX PERFECT FIT)
   ========================================================================== */
@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .persona-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .workbench {
    grid-template-columns: 1fr;
  }

  .task-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
  }

  .rail-footer,
  .task-arrow {
    display: none;
  }

  .tools-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .promo-inner {
    font-size: 12px;
    padding: 8px 38px 8px 14px;
    text-align: left;
    justify-content: flex-start;
  }

  .header-inner {
    height: 62px;
    gap: 10px;
  }

  .edition-pill,
  .nav-signup {
    display: none;
  }

  .brand-name {
    font-size: 18px;
  }

  .nav-login {
    padding: 0 13px;
    font-size: 13px;
  }

  .hero-section {
    padding: 34px 0 48px;
  }

  .hero-badge {
    font-size: 11.5px;
    padding: 5px 11px;
  }

  .hero-lead {
    font-size: 15.5px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .hero-trust {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
  }

  .hero-trust > span {
    align-items: flex-start;
    text-align: left;
  }

  .persona-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
  }

  .persona-btn {
    padding: 10px 11px;
    min-height: 58px;
  }

  .persona-kicker {
    font-size: 10px;
  }

  .persona-name {
    font-size: 13px;
  }

  .persona-card {
    padding: 20px 18px;
  }

  .persona-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .persona-actions .btn {
    width: 100%;
  }

  .persona-secondary-link {
    text-align: center;
    padding: 6px 0;
  }

  .product-section,
  .tools-section,
  .pricing-section,
  .faq-section,
  .closing-section {
    padding: 52px 0;
  }

  .section-header-split {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .demo-label {
    text-align: left;
    width: 100%;
  }

  .task-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .task-rail > button {
    padding: 11px 10px;
  }

  .task-rail small {
    display: none;
  }

  .task-rail strong {
    font-size: 12.5px;
  }

  .capture-heading {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  .capture-explanation {
    padding: 14px 16px;
    font-size: 13px;
  }

  .closing-actions {
    width: 100%;
    flex-direction: column;
  }

  .closing-actions .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

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