/* ============================================================
   NUVA — Hoja de estilos compartida
   Extraída del <style> inline de index.html (5-ago-2026) para
   reutilizar el mismo sistema de diseño en todas las páginas del
   sitio sin duplicar ~500 líneas de CSS por archivo.
   No cambia nada visualmente en Home — es la misma cascada.
   ============================================================ */

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

:root {
  /* ===== NUVA — variante clara (crema unificada, opción B — 6-ago-2026) =====
     Antes --surface era blanco puro (#FFFFFF) contra un --bg crema: la
     superficie se sentía como un bloque plano flotando sobre el fondo.
     Se acorta esa distancia tonal para que todo lea como una sola familia
     cálida, sin perder el contraste de texto/placeholder sobre --surface. */
  --bg: #F5F0E6;
  --bg-alt: #EFE8D8;
  --surface: #FBF8F2;
  --surface-border: #DED5C2;
  --surface-elevated: #F3EEE1;

  --gradient: linear-gradient(135deg, #6366F1 0%, #06B6D4 100%);
  --indigo: #6366F1;
  --indigo-strong: #4F46E5;
  --cyan: #06B6D4;
  --green: #10B981;
  --amber: #F59E0B;
  --red: #EF4444;
  --red-wine: #B91C1C;

  --text: #111827;
  --muted: #6B6459;

  --dark-warm: #18142A;
  --dark-warm-2: #221c38;
  --dark-warm-text: #F5F1E8;
  --dark-warm-muted: #C9C2E0;

  --radius-lg: 26px;
  --radius: 18px;
  --radius-sm: 12px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 1.75rem; }
section { padding: 6.5rem 0; position: relative; }
@media (max-width: 768px) { section { padding: 4rem 0; } }

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

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(245,240,230,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--surface-border);
  padding: 0 1.75rem;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.nav-logo svg { width: 30px; height: 30px; flex-shrink: 0; }
.nav-logo span {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text);
}
.nav-links { display: flex; align-items: center; gap: 2.25rem; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}
.nav-links > li > a { display: flex; align-items: center; gap: 0.3rem; }
.nav-links a:hover { color: var(--text); }
.nav-caret { width: 9px; height: 9px; flex-shrink: 0; stroke: currentColor; opacity: 0.7; transition: transform 0.2s; }
.nav-links > li:hover .nav-caret { transform: rotate(180deg); }
.nav-cta {
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 6px 16px -6px rgba(99,102,241,0.45);
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -6px rgba(99,102,241,0.55); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---- Dropdown de nav (Soluciones ▾ / Cómo funciona ▾ / Recursos ▾) ---- */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 300px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  box-shadow: 0 20px 45px -18px rgba(17,24,39,0.28);
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 50;
}
.nav-links > li:hover .nav-dropdown,
.nav-links > li:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text);
}
.nav-dropdown a:hover { background: var(--surface-elevated); color: var(--indigo-strong); }
.nav-dropdown a .dd-hint { display: block; font-size: 0.76rem; font-weight: 500; color: var(--muted); margin-top: 0.15rem; }
.nav-dropdown .dd-star { color: var(--amber); }

/* ---- Menú móvil ---- */
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-burger svg { width: 20px; height: 20px; stroke: var(--text); }
@media (max-width: 860px) { .nav-burger { display: flex; } }

.mobile-menu {
  position: fixed;
  top: 76px; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 99;
  padding: 1.5rem 1.75rem 3rem;
  overflow-y: auto;
  display: none;
}
.mobile-menu.open { display: block; }
.mobile-menu details { border-bottom: 1px solid var(--surface-border); padding: 0.9rem 0; }
.mobile-menu summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 1rem; color: var(--text); display: flex; justify-content: space-between; align-items: center; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu .mm-sub { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.65rem; padding-left: 0.25rem; }
.mobile-menu .mm-sub a { font-size: 0.9rem; color: var(--muted); text-decoration: none; font-weight: 600; }
.mobile-menu > a.mm-link { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--surface-border); font-weight: 700; font-size: 1rem; text-decoration: none; color: var(--text); }
.mobile-menu .mm-cta { display: block; margin-top: 1.5rem; text-align: center; }

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  padding: calc(76px + 1.5rem) 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.breadcrumbs .container { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.breadcrumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.breadcrumbs a:hover { color: var(--indigo-strong); }
.breadcrumbs .sep { opacity: 0.5; }
.breadcrumbs .current { color: var(--text); font-weight: 700; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 1rem 2.2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 10px 24px -8px rgba(99,102,241,0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(99,102,241,0.6); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--surface-border);
  padding: 0.95rem 2.1rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--indigo); background: rgba(99,102,241,0.05); }

/* ===== BADGE / LABELS ===== */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--surface-elevated);
  border: 1px solid var(--surface-border);
  color: var(--indigo-strong);
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-bottom: 1.75rem;
}
.badge-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--indigo-strong);
  margin-bottom: 0.85rem;
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 1.1rem;
  line-height: 1.2;
  color: var(--text);
}
.section-sub {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 620px;
  line-height: 1.75;
}
.section-head { margin-bottom: 3.25rem; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .section-sub { margin: 0 auto; }

/* ===== PHOTO PLACEHOLDER (organic blob — sustituir por fotografía real) ===== */
.photo-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #EEE4CC 0%, #DCCDA9 60%, #CBB98F 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.photo-frame--a { border-radius: 44% 56% 63% 37% / 47% 41% 59% 53%; }
.photo-frame--b { border-radius: 38% 62% 45% 55% / 55% 48% 52% 45%; }
.photo-frame--c { border-radius: 58% 42% 40% 60% / 42% 55% 45% 58%; }
.photo-frame .ph-inner {
  text-align: center;
  color: #6B5A3C;
  padding: 1.5rem;
}
.photo-frame .ph-inner svg { width: 34px; height: 34px; margin: 0 auto 0.65rem; opacity: 0.65; }
.photo-frame .ph-inner span {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  max-width: 200px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ===== HERO (Home) ===== */
#hero {
  padding-top: calc(76px + 5rem);
  padding-bottom: 8rem;
  background: var(--bg);
  overflow: hidden;
}
#hero .glow {
  position: absolute;
  top: -10%; right: -8%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(99,102,241,0.14) 0%, rgba(6,182,212,0.06) 45%, transparent 72%);
  pointer-events: none;
}
#hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 110px;
  background: var(--bg-alt);
  clip-path: polygon(0 100%, 100% 35%, 100% 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: center; position: relative; z-index: 1; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.hero-title {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -1.2px;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.hero-sub {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 2.25rem;
  line-height: 1.75;
}
.hero-sub strong { color: var(--text); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.5rem; }
.hero-note { font-size: 0.85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; align-items: center; }
.hero-note .sep { opacity: 0.5; }
.hero-photo .photo-frame { min-height: 420px; }
@media (max-width: 900px) { .hero-photo .photo-frame { min-height: 300px; } }

/* ===== HERO L2 (páginas internas: soluciones, como-funciona, comparativas, etc.) ===== */
.l2-hero { padding-top: calc(76px + 3rem); padding-bottom: 4.5rem; background: var(--bg); }
.l2-hero .section-label { margin-bottom: 1rem; }
.l2-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.9px;
  line-height: 1.16;
  color: var(--text);
  margin-bottom: 1.25rem;
  max-width: 780px;
}
.l2-hero .l2-sub { color: var(--muted); font-size: 1.08rem; max-width: 640px; line-height: 1.75; margin-bottom: 2rem; }
.l2-hero .hero-actions { margin-bottom: 0; }

/* ===== CALCULADORA ===== */
#calculadora { background: var(--bg-alt); padding-top: 8.5rem; }
.calc-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.75rem;
}
@media (max-width: 900px) { .calc-wrap { grid-template-columns: 1fr; } }
.calc-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
}
.calc-field { margin-bottom: 1.6rem; }
.calc-field:last-child { margin-bottom: 0.2rem; }
.calc-field-top { display: flex; justify-content: space-between; margin-bottom: 0.6rem; }
.calc-field label { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.calc-field .val { font-size: 0.88rem; font-weight: 800; color: var(--indigo-strong); }
.calc-field input[type="range"] { width: 100%; height: 6px; border-radius: 100px; appearance: none; background: var(--surface-border); cursor: pointer; }
.calc-field input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gradient); cursor: pointer; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(99,102,241,0.4);
}
.calc-range-labels { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--muted); margin-top: 0.35rem; }

.calc-results { display: flex; flex-direction: column; gap: 1.1rem; }
.result-card { background: var(--red-wine); border: none; border-radius: var(--radius); padding: 1.6rem 1.8rem; }
.result-card.featured { background: var(--green); border: none; }
.result-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,0.78); margin-bottom: 0.4rem; }
.result-card.featured .result-label { color: rgba(4,46,33,0.72); }
.result-number { font-size: 2.4rem; font-weight: 800; letter-spacing: -1px; line-height: 1; margin-bottom: 0.5rem; color: #FFF5F5; }
.result-card.featured .result-number { color: #043422; }
.result-desc { font-size: 0.82rem; color: rgba(255,255,255,0.72); line-height: 1.6; }
.result-card.featured .result-desc { color: rgba(4,46,33,0.68); }
.calc-disclaimer { font-size: 0.76rem; color: var(--muted); line-height: 1.6; padding-top: 0.3rem; }
.calc-link { margin-top: 1.5rem; font-size: 0.88rem; font-weight: 700; color: var(--indigo-strong); text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.calc-link:hover { text-decoration: underline; }

/* ===== REFRAME ===== */
#reframe { background: var(--bg-alt); }
.reframe-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 900px) { .reframe-wrap { grid-template-columns: 1fr; gap: 2rem; } }
.reframe-quote {
  background: var(--surface);
  border-left: 4px solid transparent;
  border-image: var(--gradient) 1;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 2.25rem 2.25rem 2.25rem 2rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
}
#reframe .section-sub { max-width: 100%; font-size: 1.05rem; }

/* ===== LO QUE SE PIERDE ===== */
#costo-real { background: var(--bg); }
.cost-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.75rem;
  align-items: stretch;
}
@media (max-width: 900px) { .cost-grid { grid-template-columns: 1fr; } }
.cost-card {
  border-radius: var(--radius-lg);
  padding: 2.3rem;
  display: flex;
  flex-direction: column;
}
.cost-card--light { background: var(--surface); border: 1px solid var(--surface-border); }
.cost-card--dark { background: var(--dark-warm); color: var(--dark-warm-text); background-image: radial-gradient(circle at 85% 10%, rgba(99,102,241,0.35), transparent 55%); }
.cost-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.cost-card--light .cost-icon { background: rgba(99,102,241,0.1); }
.cost-card--light .cost-icon svg { width: 22px; height: 22px; stroke: var(--indigo-strong); }
.cost-card--dark .cost-icon { background: rgba(245,158,11,0.16); }
.cost-card--dark .cost-icon svg { width: 22px; height: 22px; stroke: var(--amber); }
.cost-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.85rem; }
.cost-card--dark h3 { font-size: 1.4rem; }
.cost-card p { font-size: 0.95rem; line-height: 1.7; color: var(--muted); }
.cost-card--dark p { color: var(--dark-warm-muted); font-size: 1.02rem; }
.cost-tag { font-size: 0.72rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 0.5rem; }
.cost-card--light .cost-tag { color: var(--indigo-strong); }
.cost-card--dark .cost-tag { color: var(--amber); }

/* ===== CÓMO FUNCIONA (pasos) ===== */
#como-funciona, .steps-section { background: var(--bg-alt); }
.steps-wrap { position: relative; margin-top: 3.5rem; }
.steps-line { position: absolute; top: 34px; left: 8%; right: 8%; height: 40px; display: none; }
@media (min-width: 901px) { .steps-line { display: block; } }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.25rem; position: relative; z-index: 1; }
@media (max-width: 900px) { .steps-grid { grid-template-columns: 1fr; gap: 2rem; } }
.step-card { text-align: left; }
.step-num {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--gradient);
  color: #fff; font-weight: 800; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 22px -8px rgba(99,102,241,0.5);
}
.step-card h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: 0.55rem; color: var(--text); }
.step-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }
.step-card p strong { color: var(--text); }

/* ===== RESULTADOS / PRUEBA SOCIAL ===== */
#resultados { background: var(--bg); }
.mechanism-banner {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.75rem;
  display: flex;
  align-items: center;
  gap: 2.25rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.mechanism-number { font-size: 3.2rem; font-weight: 800; letter-spacing: -1.5px; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.mechanism-copy h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.35rem; color: var(--text); }
.mechanism-copy p { font-size: 0.9rem; color: var(--muted); max-width: 480px; line-height: 1.6; }
.mechanism-chips { display: flex; gap: 0.6rem; margin-left: auto; flex-wrap: wrap; }
.chip { background: var(--surface-elevated); border: 1px solid var(--surface-border); color: var(--muted); font-size: 0.78rem; font-weight: 700; padding: 0.45rem 0.9rem; border-radius: 100px; }

.cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
@media (max-width: 800px) { .cases-grid { grid-template-columns: 1fr; } }
.case-card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-lg); padding: 2.25rem; }
.case-illustrative-tag {
  display: inline-block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--amber); background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.3);
  padding: 0.3rem 0.7rem; border-radius: 100px; margin-bottom: 1.25rem;
}
.case-avatar { width: 46px; height: 46px; border-radius: 46% 54% 60% 40% / 50% 45% 55% 50%; background: var(--gradient); flex-shrink: 0; }
.case-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.25rem; }
.case-head .who { font-size: 0.88rem; font-weight: 800; color: var(--text); }
.case-head .role { font-size: 0.78rem; color: var(--muted); }
.case-card blockquote { font-size: 1rem; font-weight: 600; color: var(--text); line-height: 1.6; margin-bottom: 1rem; }
.case-card .result-line { font-size: 0.85rem; color: var(--muted); }

/* ===== OBJECIONES / FAQ (reutilizable en todas las L2) ===== */
#objeciones, .obj-section { background: var(--bg-alt); }
.obj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3.5rem; }
@media (max-width: 860px) { .obj-grid { grid-template-columns: 1fr; } }
.obj-card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius); padding: 1.9rem; }
.obj-icon { width: 38px; height: 38px; border-radius: 10px; background: rgba(16,185,129,0.1); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.obj-icon svg { width: 19px; height: 19px; stroke: var(--green); }
.obj-card h3 { font-size: 0.98rem; font-weight: 800; margin-bottom: 0.55rem; color: var(--text); }
.obj-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.obj-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.obj-chips span { font-size: 0.72rem; font-weight: 700; color: var(--muted); background: var(--surface-elevated); border: 1px solid var(--surface-border); padding: 0.28rem 0.6rem; border-radius: 100px; }

.faq-list { display: flex; flex-direction: column; gap: 0.9rem; max-width: 760px; }
.faq-list.faq-full { max-width: 100%; }
.faq-item { background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-sm); padding: 0.4rem 1.5rem; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.15rem 0; font-weight: 700; font-size: 0.95rem; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { flex-shrink: 0; width: 20px; height: 20px; position: relative; }
.faq-item summary .plus::before, .faq-item summary .plus::after {
  content: ""; position: absolute; background: var(--indigo-strong); border-radius: 2px; transition: transform 0.2s;
}
.faq-item summary .plus::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq-item summary .plus::after { top: 0; left: 9px; width: 2px; height: 20px; }
.faq-item[open] summary .plus::after { transform: rotate(90deg); opacity: 0; }
.faq-item p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; padding-bottom: 1.3rem; }

/* ===== PLANES / PRECIOS ===== */
#planes, .plans-section { background: var(--bg); }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; align-items: stretch; margin-top: 2.75rem; }
@media (max-width: 900px) { .plans-grid { grid-template-columns: 1fr; } }
.plan-card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-lg); padding: 2.4rem; display: flex; flex-direction: column; position: relative; }
.plan-card.featured { position: relative; border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gradient) border-box; box-shadow: 0 20px 40px -16px rgba(99,102,241,0.3); }
.plan-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gradient); color: #fff; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.5px; padding: 0.4rem 1rem; border-radius: 100px; }
.plan-name { font-size: 1.15rem; font-weight: 800; color: var(--text); margin-bottom: 0.5rem; }
.plan-desc { font-size: 0.87rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.75rem; min-height: 62px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; flex: 1; }
.plan-features li { display: flex; gap: 0.65rem; font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.plan-features li svg { width: 17px; height: 17px; stroke: var(--green); flex-shrink: 0; margin-top: 2px; }
.plan-features li strong { color: var(--text); }
.plan-price { font-size: 0.95rem; font-weight: 700; color: var(--muted); margin-bottom: 1.5rem; padding: 0.85rem 1rem; background: var(--surface-elevated); border: 1px dashed var(--surface-border); border-radius: var(--radius-sm); }
.plan-price-lg { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.6px; color: var(--text); text-align: center; margin-bottom: 1.5rem; }
.plan-price-lg .plan-price-period { font-size: 1rem; font-weight: 600; color: var(--muted); margin-left: 0.3rem; }
.plan-price-lg .plan-price-prefix { font-size: 1.05rem; font-weight: 700; color: var(--muted); margin-right: 0.35rem; }
.plan-price-plain { font-size: 1.2rem; font-weight: 800; color: var(--text); text-align: center; margin-bottom: 1.5rem; }

/* ===== CIERRE / CTA final (reutilizable) ===== */
#demo, .cta-section { background: var(--bg-alt); }
.cta-wrap {
  background: var(--dark-warm);
  background-image: radial-gradient(circle at 15% 15%, rgba(99,102,241,0.35), transparent 50%), radial-gradient(circle at 85% 85%, rgba(6,182,212,0.25), transparent 50%);
  border-radius: 32px;
  padding: 4.5rem 3.5rem;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: var(--dark-warm-text);
}
@media (max-width: 640px) { .cta-wrap { padding: 3rem 1.75rem; } }
.cta-wrap .section-label { color: #A5B4FC; }
.cta-wrap .section-title { color: var(--dark-warm-text); }
.cta-wrap .section-sub { color: var(--dark-warm-muted); margin: 0 auto 2.25rem; }
.form-row { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.form-field {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 0.95rem 1.25rem;
  color: var(--dark-warm-text);
  font-size: 0.9rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-field:focus { border-color: var(--cyan); }
.form-field::placeholder { color: var(--dark-warm-muted); }
select.form-field { cursor: pointer; }
select.form-field option { color: #111827; background: #fff; }

/* ---- Variante clara: formularios fuera del cta-wrap oscuro (ej. /demo/) ----
   El .form-field base está pensado para fondo oscuro (placeholder claro).
   Sobre fondo claro ese mismo placeholder queda casi ilegible (~1.5:1 de
   contraste) — de ahí el bug reportado. Esta variante usa texto oscuro
   (var(--muted), ~5.8:1 sobre superficie clara) y una superficie con un
   punto de calidez distinta del blanco puro, para que el campo no se vea
   como un bloque blanco plano contra el fondo crema de la página. */
.form-field.is-light {
  background: var(--surface-elevated);
  border: 1.5px solid var(--surface-border);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(17,24,39,0.04);
}
.form-field.is-light:focus { border-color: var(--indigo); }
.form-field.is-light::placeholder { color: var(--muted); opacity: 1; }
.form-note { font-size: 0.78rem; color: var(--dark-warm-muted); margin-top: 0.9rem; }
.cta-wrap .btn-primary { width: 100%; text-align: center; border: none; cursor: pointer; font-family: inherit; }
.cta-direct { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 1.25rem; margin-top: 0.5rem; }
.cta-direct p { font-size: 0.82rem; color: var(--dark-warm-muted); margin-bottom: 0.5rem; }
.cta-direct a { color: #A5B4FC; font-size: 0.95rem; font-weight: 700; text-decoration: none; }
.consent-row { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 1.25rem; text-align: left; }
.consent-row input { margin-top: 0.25rem; flex-shrink: 0; }
.consent-row label { font-size: 0.78rem; color: var(--dark-warm-muted); line-height: 1.5; }
.consent-row a { color: #A5B4FC; text-decoration: underline; }

/* ===== FORMULARIO DE LEAD, 2 PASOS (compartido /demo/ y /contacto/) ===== */
.form-progress { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; }
.cta-wrap .form-progress { color: #A5B4FC; }
.form-step { display: flex; flex-direction: column; gap: 1rem; }
.form-step-nav { display: flex; gap: 0.75rem; align-items: stretch; margin-top: 0.25rem; }
.form-step-nav .btn-primary { flex: 1; width: auto; }
.form-step-nav .btn-secondary { flex-shrink: 0; padding: 0.95rem 1.4rem; }
.cta-wrap .btn-secondary { border-color: rgba(255,255,255,0.24); color: var(--dark-warm-text); background: transparent; }
.cta-wrap .btn-secondary:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.06); }

/* ===== FOOTER (4 columnas + bloque legal) ===== */
footer { background: var(--bg-alt); border-top: 1px solid var(--surface-border); padding: 4.5rem 1.75rem 2.5rem; color: var(--muted); font-size: 0.88rem; }
.footer-grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.footer-logo svg { width: 26px; height: 26px; }
.footer-logo span { font-size: 1.15rem; font-weight: 800; color: var(--text); }
.footer-tagline { font-size: 0.85rem; line-height: 1.6; max-width: 240px; margin-bottom: 1.25rem; }
.footer-col h4 { font-size: 0.75rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--text); margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 0.87rem; font-weight: 500; }
.footer-col a:hover { color: var(--indigo-strong); }
.footer-social { display: flex; gap: 0.6rem; margin-top: 0.25rem; }
.footer-social a { width: 34px; height: 34px; border-radius: 9px; background: var(--surface); border: 1px solid var(--surface-border); display: flex; align-items: center; justify-content: center; }
.footer-social svg { width: 16px; height: 16px; stroke: var(--muted); }
.footer-legal { max-width: 1160px; margin: 0 auto; border-top: 1px solid var(--surface-border); padding-top: 1.75rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.footer-legal .nap { font-size: 0.78rem; line-height: 1.6; max-width: 640px; }
.footer-legal .nap .hueco { color: var(--amber); font-weight: 700; }
.footer-legal .legal-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-legal .legal-links a { color: var(--muted); text-decoration: none; font-size: 0.82rem; font-weight: 600; }
.footer-legal .legal-links a:hover { color: var(--indigo-strong); }

/* ===== NOTAS DE ESTADO (HUECO / SÍNTESIS / en validación) reutilizables en todo el sitio ===== */
.status-note {
  display: flex; gap: 0.75rem; align-items: flex-start;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.28);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 1.5rem 0;
}
.status-note strong { color: var(--text); }
.status-note .tag {
  flex-shrink: 0;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--amber); background: rgba(245,158,11,0.16); border: 1px solid rgba(245,158,11,0.32);
  padding: 0.25rem 0.6rem; border-radius: 100px;
}

/* ===== CONTENIDO L2 genérico (problema / solución / body) ===== */
.l2-body { background: var(--bg); }
.l2-block { max-width: 760px; margin-bottom: 2.5rem; }
.l2-block h2 { font-size: 1.5rem; font-weight: 800; color: var(--text); margin-bottom: 0.9rem; letter-spacing: -0.4px; }
.l2-block p { font-size: 1rem; color: var(--muted); line-height: 1.8; margin-bottom: 0.9rem; }
.l2-block p strong { color: var(--text); }
.l2-eyebrow { font-size: 0.72rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--indigo-strong); margin-bottom: 0.6rem; }

/* ===== TARJETAS DE HUB (soluciones, como-funciona, integraciones, recursos, comparativas) ===== */
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1rem; }
@media (max-width: 900px) { .hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .hub-grid { grid-template-columns: 1fr; } }
.hub-card {
  background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius);
  padding: 1.85rem; text-decoration: none; display: flex; flex-direction: column; gap: 0.75rem;
  transition: border-color 0.2s, transform 0.15s;
}
.hub-card:hover { border-color: var(--indigo); transform: translateY(-2px); }
.hub-card .hub-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(99,102,241,0.1); display: flex; align-items: center; justify-content: center; }
.hub-card .hub-icon svg { width: 20px; height: 20px; stroke: var(--indigo-strong); }
.hub-card h3 { font-size: 1rem; font-weight: 800; color: var(--text); }
.hub-card p { font-size: 0.87rem; color: var(--muted); line-height: 1.6; }
.hub-card .hub-arrow { margin-top: auto; font-size: 0.82rem; font-weight: 700; color: var(--indigo-strong); }
.hub-card .hueco-flag { font-size: 0.68rem; font-weight: 800; color: var(--amber); text-transform: uppercase; letter-spacing: 0.4px; }

/* ===== TABLA COMPARATIVA ===== */
.compare-table-wrap { overflow-x: auto; margin: 2rem 0; border: 1px solid var(--surface-border); border-radius: var(--radius); background: var(--surface); }
table.compare-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 520px; }
table.compare-table th, table.compare-table td { padding: 1rem 1.4rem; text-align: left; border-bottom: 1px solid var(--surface-border); }
table.compare-table th { font-weight: 800; color: var(--text); background: var(--surface-elevated); font-size: 0.78rem; letter-spacing: 0.4px; text-transform: uppercase; }
table.compare-table td { color: var(--muted); }
table.compare-table td strong, table.compare-table td.is-nuva { color: var(--text); font-weight: 700; }
table.compare-table tr:last-child td { border-bottom: none; }
table.compare-table td .hueco { color: var(--amber); font-weight: 700; font-size: 0.82rem; }

/* ===== GRID DE INTEGRACIONES ===== */
.integr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1rem; }
@media (max-width: 760px) { .integr-grid { grid-template-columns: repeat(2, 1fr); } }
.integr-card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius); padding: 1.5rem; text-align: center; text-decoration: none; transition: border-color 0.2s; }
.integr-card:hover { border-color: var(--indigo); }
.integr-card .integr-emoji { font-size: 1.6rem; margin-bottom: 0.6rem; }
.integr-card span { display: block; font-size: 0.82rem; font-weight: 700; color: var(--text); }
.integr-card small { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }

/* ===== OUTLINE (páginas de recursos con outline en vez de artículo completo) ===== */
.outline-list { counter-reset: outline; list-style: none; max-width: 700px; margin-top: 1.5rem; }
.outline-list li { counter-increment: outline; position: relative; padding: 0.9rem 0 0.9rem 3rem; border-bottom: 1px solid var(--surface-border); font-size: 0.95rem; color: var(--text); font-weight: 600; }
.outline-list li::before { content: counter(outline); position: absolute; left: 0; top: 0.75rem; width: 26px; height: 26px; border-radius: 50%; background: var(--gradient); color: #fff; font-size: 0.78rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.outline-list li:last-child { border-bottom: none; }

/* ===== PLANTILLA DE CASO ===== */
.case-template-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--surface-border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); margin-top: 2rem; }
@media (max-width: 760px) { .case-template-grid { grid-template-columns: 1fr; } }
.case-template-grid > div { padding: 1.6rem 1.4rem; border-right: 1px solid var(--surface-border); }
.case-template-grid > div:last-child { border-right: none; }
.case-template-grid .ct-num { font-size: 0.72rem; font-weight: 800; color: var(--indigo-strong); letter-spacing: 0.5px; margin-bottom: 0.5rem; }
.case-template-grid h4 { font-size: 0.88rem; font-weight: 800; color: var(--text); margin-bottom: 0.4rem; }
.case-template-grid p { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }

/* ===== AVISO LEGAL (privacidad / términos) ===== */
.legal-notice { background: var(--surface); border: 1px dashed var(--surface-border); border-radius: var(--radius); padding: 2rem; max-width: 720px; }
.legal-notice p { color: var(--muted); font-size: 0.95rem; line-height: 1.75; margin-bottom: 0.75rem; }

::selection { background: rgba(99,102,241,0.22); }

/* ---- Acceder a Nuva (menú de acceso a las apps) ---- */
.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.nav-access { position: relative; }
.nav-cta--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--surface-border);
  box-shadow: none;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-cta--ghost:hover { box-shadow: none; background: var(--surface-elevated); transform: none; }
.nav-access:hover .nav-caret,
.nav-access:focus-within .nav-caret { transform: rotate(180deg); }
.nav-dropdown--right { left: auto; right: 0; transform: translateX(0) translateY(6px); }
.nav-access:hover .nav-dropdown,
.nav-access:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) translateY(0);
}
@media (max-width: 860px) { .nav-access { display: none; } }
