/* ============================================================
   bloomind.dev — sistema visual (Mono cálido + acento bloom violeta)
   Todo sale de tokens. El violeta de marca es el ÚNICO acento de color
   y vive sobre todo en la marca viva. El resto: papel + tinta.
   ============================================================ */

:root {
  /* superficies */
  --paper:      #f7f6f2;
  --paper-2:    #f1efe9;
  --surface:    #ffffff;
  --surface-2:  #fbfaf7;
  --ink-inv:    #0a0a0a;

  /* texto */
  --ink:        #0a0a0a;
  --ink-2:      #2b2b2b;
  --muted:      #6b6b6b;
  --faint:      #9a988f;

  /* líneas */
  --line:       #e7e4dc;
  --line-2:     #d8d4c8;

  /* acento mono (el negro) */
  --accent:     #0a0a0a;
  --accent-ink: #ffffff;
  --btn-hover:  #1c1c1c;
  --metric-bg:  #0a0a0a;

  /* marca viva — bloom violeta (acento de marca, usar con cuentagotas) */
  --mark-color: #4b34c4;   /* dots de la flor */
  --mark-soft:  #b9b6ad;   /* (modo mono) */
  --mark-line:  #0a0a0a;
  --violet-ink: #4b34c4;   /* texto/acento violeta fuerte sobre papel */
  --violet-soft:#ece7fb;   /* fondo violeta tenue */

  /* tipografía */
  --font-display: 'Sora', sans-serif;
  --font-body:    'Manrope', sans-serif;
  --font-mono:    'Space Mono', monospace;

  /* layout */
  --maxw:        1200px;
  --pad-x:       32px;
  --section-pad: 130px;

  /* radios */
  --radius-sm: 12px;
  --radius:    18px;
  --radius-lg: 28px;

  /* sombras */
  --shadow-sm:  0 1px 2px rgba(16,16,16,.04), 0 4px 14px rgba(16,16,16,.05);
  --shadow-md:  0 6px 22px rgba(16,16,16,.07), 0 28px 64px -24px rgba(16,16,16,.18);
  --shadow-chip:0 8px 26px -8px rgba(16,16,16,.16);
}

/* ===== Superficie: BLANCO PURO ===== */
:root[data-surface="white"] {
  --paper:     #ffffff;
  --paper-2:   #f5f5f6;
  --surface:   #ffffff;
  --surface-2: #fafafb;
  --line:      #ececef;
  --line-2:    #dededf;
  --faint:     #9b9ba2;
}

/* ===== Superficie: LINO (más cálido) ===== */
:root[data-surface="lino"] {
  --paper:     #f0ece3;
  --paper-2:   #e8e3d7;
  --surface:   #faf8f3;
  --surface-2: #f4f1e9;
  --line:      #ddd6c7;
  --line-2:    #cfc6b3;
}

/* ===== Tema: NOCHE (oscuro) ===== */
:root[data-theme="dark"] {
  --paper:      #0b0b0e;
  --paper-2:    #101015;
  --surface:    #141419;
  --surface-2:  #17171d;
  --ink-inv:    #16151c;
  --metric-bg:  #16151c;

  --ink:        #f6f5f1;
  --ink-2:      #d7d5cd;
  --muted:      #9d9b93;
  --faint:      #6e6c66;

  --line:       #26262d;
  --line-2:     #34343d;

  --accent:     #f6f5f1;
  --accent-ink: #0a0a0a;
  --btn-hover:  #e6e4dd;

  --violet-ink: #b6a4ff;
  --violet-soft:#1d1733;
  --mark-soft:  #4a4856;

  --shadow-sm:  0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.34);
  --shadow-md:  0 10px 30px rgba(0,0,0,.42), 0 34px 70px -24px rgba(0,0,0,.6);
}
:root[data-theme="dark"] .metrics { border: 1px solid var(--line-2); }
:root[data-theme="dark"] .nav-toggle,
:root[data-theme="dark"] .btn-ghost { background: var(--surface-2); }
:root[data-theme="dark"] ::selection { color: #0a0a0a; }

/* ===== Densidad ===== */
:root[data-density="compact"] { --section-pad: 96px; }
:root[data-density="comfy"]   { --section-pad: 164px; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, p { margin: 0; }
ul { margin: 0; padding: 0; }

::selection { background: var(--mark-color); color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: var(--section-pad) 0; }
.divline { height: 1px; background: var(--line); }
.alt { background: var(--paper-2); }

/* ---------- primitivas ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-size: 15px; font-weight: 700;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn .arrow { font-family: var(--font-mono); font-size: 14px; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary {
  background: var(--ink); color: var(--accent-ink);
  box-shadow: 0 8px 22px -8px rgba(16,16,16,.28), inset 0 1px 0 rgba(255,255,255,.12);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--btn-hover); }
.btn-ghost {
  background: var(--surface); color: var(--ink);
  border-color: var(--line-2); box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--faint);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ''; width: 7px; height: 7px; background: var(--mark-color);
  transform: rotate(45deg); display: inline-block;
}

.section-head { max-width: 720px; margin: 0 auto 70px; }
.section-head.center { text-align: center; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 2.85rem); line-height: 1.1;
  letter-spacing: -.025em; color: var(--ink); text-wrap: balance;
}
.section-head p { margin-top: 18px; font-size: 1.12rem; color: var(--muted); text-wrap: pretty; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent; transition: border-color .25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 60px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  position: relative; font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  transition: color .18s; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: var(--mark-color); transform: scaleX(0); transform-origin: left;
  transition: transform .22s cubic-bezier(.2,.7,.2,1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 10px 18px; font-size: 14px; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line-2);
  background: var(--surface); border-radius: 12px; cursor: pointer;
  align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 17px; height: 1.6px; background: var(--ink);
  position: relative; transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -5.5px; }
.nav-toggle span::after  { position: absolute; top: 5.5px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: translateY(5.5px) rotate(45deg); }
.nav.open .nav-toggle span::after  { transform: translateY(-5.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 72px 0 96px; text-align: center; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; }
.hero-mark { position: relative; width: min(360px, 64vw); aspect-ratio: 1/1; margin-bottom: 4px; }
.hero-mark canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .eyebrow { margin: 14px 0 22px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.5rem, 4.6vw, 3.85rem); line-height: 1.06; letter-spacing: -.03em;
  color: var(--ink); margin-bottom: 24px; max-width: 17ch; text-wrap: balance;
}
.hero h1 .grad { font-style: italic; color: var(--violet-ink); }
.hero-sub {
  font-size: 1.18rem; color: var(--muted); line-height: 1.6;
  max-width: 56ch; margin-bottom: 32px; text-wrap: pretty;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; margin-bottom: 36px; }
.hero-quick { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: center; list-style: none; }
.hero-quick li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.hero-quick li svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--violet-ink); }

/* ============================================================
   TRUST STRIP / MARQUEE
   ============================================================ */
.strip { padding: 4px 0 0; }
.strip .label {
  text-align: center; font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 26px;
}
.marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee + .marquee { margin-top: 22px; }
.marquee-track {
  display: flex; gap: 56px; width: max-content;
  animation: scroll-x calc(46s / var(--speed, 1)) linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
  color: var(--faint); letter-spacing: -.01em; white-space: nowrap; transition: color .2s;
}
.marquee-track span:hover { color: var(--ink); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ============================================================
   PROOF / POSICIONAMIENTO (reemplaza el trust strip redundante)
   ============================================================ */
.proofband { padding-top: 36px; padding-bottom: 36px; }
.proofband .wrap { display: flex; justify-content: center; }
.proof-line {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 2.05rem); line-height: 1.32; letter-spacing: -.02em;
  text-align: center; max-width: 22ch; color: var(--muted); text-wrap: balance;
}
.proof-line em { font-style: normal; color: var(--ink); }
html[data-surface="charcoal"] .proof-line em { color: var(--mark-color); }

/* ============================================================
   PILARES
   ============================================================ */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 30px; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  display: flex; flex-direction: column;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.pcard .n { font-family: var(--font-mono); font-size: 12px; color: var(--faint); letter-spacing: .12em; }
.pcard .pico { width: 40px; height: 40px; margin: 16px 0; color: var(--ink); }
html[data-surface="charcoal"] .pcard .pico { color: var(--mark-color); }
.pcard h3 { font-family: var(--font-display); font-size: 1.16rem; font-weight: 600; margin-bottom: 10px; letter-spacing: -.01em; color: var(--ink); }
.pcard p { font-size: .95rem; color: var(--muted); line-height: 1.58; text-wrap: pretty; }
.pcard .ptags {
  display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 20px; list-style: none;
}
.pcard .ptags li {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 9px; line-height: 1;
}

/* ---- Card 04 · Soluciones Propias: showcase de Cloura (producto propio) ---- */
.pcard-product { border-color: color-mix(in srgb, var(--violet-ink) 24%, var(--line)); }
.pcard-product:hover { border-color: color-mix(in srgb, var(--violet-ink) 40%, var(--line)); }
.pcard-product .n { display: flex; align-items: center; gap: 10px; }
.pcard-product .tag-own {
  font-family: var(--font-mono); font-style: normal; font-size: 9px;
  letter-spacing: .12em; text-transform: uppercase; line-height: 1;
  color: var(--violet-ink); background: var(--violet-soft);
  border: 1px solid color-mix(in srgb, var(--violet-ink) 20%, transparent);
  border-radius: 999px; padding: 4px 8px;
}

.cloura-card {
  margin-top: 22px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 9px;
  padding: 13px 15px 12px;
  border: 1px solid color-mix(in srgb, var(--violet-ink) 18%, var(--line));
  background: color-mix(in srgb, var(--violet-soft) 55%, var(--surface));
  border-radius: 12px; text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.cloura-card:hover,
.cloura-card:focus-visible {
  transform: translateY(-2px); border-color: var(--violet-ink);
  background: var(--violet-soft); box-shadow: var(--shadow-sm);
}
.cloura-lockup { display: flex; align-items: center; gap: 10px; }
.cloura-mark { width: 28px; height: 28px; flex-shrink: 0; display: block; }
.cloura-word { height: 16px; width: auto; display: block; }
.cloura-meta {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted);
}
.cloura-cta {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-size: .84rem; font-weight: 600; color: var(--violet-ink);
}
.cloura-cta .arrow { font-family: var(--font-mono); font-size: 13px; transition: transform .2s ease; }
.cloura-card:hover .cloura-cta .arrow,
.cloura-card:focus-visible .cloura-cta .arrow { transform: translateX(4px); }

/* logos en tinta negra: invertir sobre temas oscuros para mantener contraste */
html[data-theme="dark"] .cloura-mark,
html[data-theme="dark"] .cloura-word,
html[data-surface="charcoal"] .cloura-mark,
html[data-surface="charcoal"] .cloura-word { filter: invert(1) brightness(1.7); }

/* ============================================================
   SERVICIOS — Problema / Solución / Resultado
   ============================================================ */
.svc-list { display: flex; flex-direction: column; gap: 22px; }
.svc {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 44px 46px; box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
  position: relative; overflow: hidden;
}
.svc:hover { box-shadow: var(--shadow-md); border-color: var(--line-2); }
.svc-n {
  position: absolute; top: 20px; right: 24px; font-family: var(--font-mono); font-size: 11px;
  font-weight: 700; letter-spacing: .12em; color: var(--faint);
}
.svc-title .ic { width: 52px; height: 52px; color: var(--ink); margin-bottom: 22px; }
.svc-title h3 {
  font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700; letter-spacing: -.02em; margin-bottom: 16px; line-height: 1.12; color: var(--ink);
}
.svc-title .lead { color: var(--muted); font-size: 1.02rem; line-height: 1.6; max-width: 38ch; }
.svc-title .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.svc-title .tags span {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 11px;
}
.psr { display: flex; flex-direction: column; gap: 18px; }
.psr-row {
  display: grid; grid-template-columns: 116px 1fr; gap: 18px; align-items: start;
  padding-bottom: 18px; border-bottom: 1px dashed var(--line-2);
}
.psr-row:last-child { border-bottom: 0; padding-bottom: 0; }
.psr-row .k {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint); padding-top: 3px;
}
.psr-row.r .k { color: var(--violet-ink); }
.psr-row .v { font-size: 1rem; color: var(--ink-2); line-height: 1.55; }
.psr-row.r .v { color: var(--ink); font-weight: 600; }

/* ============================================================
   MÉTRICAS (banda oscura)
   ============================================================ */
.metrics {
  background: var(--metric-bg); color: #fff; border-radius: var(--radius-lg);
  padding: 64px 56px; position: relative; overflow: hidden;
}
.metrics canvas {
  position: absolute; top: 50%; right: -6%; transform: translateY(-50%);
  width: min(520px, 50%); aspect-ratio: 1/1; opacity: .5; z-index: 0;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 72%);
}
.metrics-head { max-width: 620px; margin-bottom: 48px; position: relative; z-index: 1; }
.metrics-head .eyebrow { color: rgba(255,255,255,.7); }
.metrics-head .eyebrow::before { background: var(--mark-color); }
.metrics-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.025em; line-height: 1.1; margin-top: 18px;
}
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; z-index: 1; }
.metric .num {
  font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1; color: #fff;
}
.metric .lab { margin-top: 12px; font-size: .95rem; color: rgba(255,255,255,.66); line-height: 1.45; }

/* ============================================================
   PROCESO
   ============================================================ */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.pstep { padding: 0 22px; position: relative; }
.pstep:not(:last-child)::after {
  content: ''; position: absolute; top: 26px; right: -4px; width: 8px; height: 8px;
  border-top: 1.5px solid var(--line-2); border-right: 1.5px solid var(--line-2); transform: rotate(45deg);
}
.pstep .dot {
  width: 54px; height: 54px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 14px; font-weight: 700;
  color: var(--ink); box-shadow: var(--shadow-sm); margin-bottom: 24px;
}
.pstep h3 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; margin-bottom: 9px; letter-spacing: -.01em; color: var(--ink); }
.pstep p { font-size: .93rem; color: var(--muted); line-height: 1.55; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 14px; padding: 4px 26px; box-shadow: var(--shadow-sm); transition: border-color .2s;
}
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: 20px; padding: 22px 0; font-family: var(--font-display); font-size: 1.12rem; font-weight: 600;
  color: var(--ink); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-family: var(--font-mono); font-size: 1.4rem; color: var(--violet-ink);
  line-height: 1; flex-shrink: 0; transition: transform .2s;
}
.faq details[open] summary::after { content: '−'; }
.faq .a { padding: 0 0 24px; color: var(--muted); font-size: 1.02rem; line-height: 1.65; max-width: 70ch; }

/* ============================================================
   CTA final
   ============================================================ */
.cta { position: relative; padding: 120px 0; text-align: center; overflow: hidden; }
.cta canvas {
  position: absolute; inset: 0; margin: auto; width: min(680px, 92vw); aspect-ratio: 1/1;
  opacity: .14; z-index: 0;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 70%);
}
.cta .wrap { position: relative; z-index: 1; }
.cta h2 {
  font-family: var(--font-display); font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.06; color: var(--ink); text-wrap: balance;
}
.cta p { margin: 22px auto 36px; font-size: 1.16rem; color: var(--muted); max-width: 52ch; text-wrap: pretty; }
.cta .hero-cta { justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 70px 0 36px; }
.footer-grid {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 50px; border-bottom: 1px solid var(--line);
}
.footer-brand img { height: 60px; width: auto; display: block; }
.footer-brand p { color: var(--muted); font-size: .95rem; max-width: 32ch; margin-top: 18px; line-height: 1.6; }
.footer-col h5 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 18px; font-weight: 700;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--muted); font-size: .95rem; transition: color .18s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 16px; padding-top: 30px; color: var(--faint); font-size: .86rem; font-family: var(--font-mono); letter-spacing: .03em;
}
.footer-bottom .legal { display: flex; gap: 24px; }
.footer-bottom .legal a:hover { color: var(--ink); }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  :root { --section-pad: 92px; --pad-x: 22px; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: color-mix(in srgb, var(--paper) 96%, transparent);
    backdrop-filter: blur(18px); border-bottom: 1px solid var(--line);
    padding: 8px var(--pad-x) 18px; transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-ghost { display: none; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .svc { grid-template-columns: 1fr; gap: 30px; padding: 34px 30px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .metrics { padding: 48px 34px; }
  .metrics canvas { opacity: .28; right: -20%; }
  .process { grid-template-columns: repeat(2, 1fr); gap: 40px 16px; }
  .pstep::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pillars, .process, .footer-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .hero-mark { width: min(300px, 78vw); }
  .cta { padding: 80px 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .nav-links a::after { transition: none; }
}

/* ============================================================
   THEME VARIANTS (Tweaks) — superficies alternativas
   Cambian sólo tokens; el sistema entero reacciona.
   ============================================================ */

/* Blanco puro — neutros fríos, más limpio y corporativo */
html[data-surface="white"] {
  --paper: #ffffff; --paper-2: #f4f5f7; --surface: #ffffff; --surface-2: #fafbfc;
  --line: #eceef1; --line-2: #dde0e5;
  --ink: #0a0b0d; --ink-2: #25272c; --muted: #5d626b; --faint: #9aa0a8;
  --shadow-sm: 0 1px 2px rgba(15,18,22,.04), 0 6px 18px rgba(15,18,22,.05);
  --shadow-md: 0 8px 26px rgba(15,18,22,.08), 0 30px 70px -26px rgba(15,18,22,.20);
}

/* Niebla fría — off-white azulado, neutros slate (tech sobrio) */
html[data-surface="fog"] {
  --paper: #f3f5f8; --paper-2: #e9edf2; --surface: #ffffff; --surface-2: #f8fafc;
  --line: #e3e8ee; --line-2: #d2d9e2;
  --ink: #0d121b; --ink-2: #283142; --muted: #586173; --faint: #8d97a6;
}

/* Carbón — modo oscuro, papel casi negro, tinta clara */
html[data-surface="charcoal"] {
  --paper: #0d0e12; --paper-2: #14151b; --surface: #16171f; --surface-2: #1c1e27;
  --ink-inv: #050507;
  --line: #25262f; --line-2: #34353f;
  --ink: #f4f5f8; --ink-2: #d2d5dd; --muted: #969aa6; --faint: #686d79;
  --accent: #f4f5f8; --accent-ink: #0a0a0a;
  --violet-soft: color-mix(in srgb, var(--mark-color) 16%, transparent);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 8px 22px rgba(0,0,0,.32);
  --shadow-md: 0 12px 40px -10px rgba(0,0,0,.6);
  --shadow-chip: 0 8px 26px -8px rgba(0,0,0,.5);
  --theme-color: #0d0e12;
}
html[data-surface="charcoal"] .nav {
  background: color-mix(in srgb, var(--paper) 80%, transparent);
}
html[data-surface="charcoal"] .metrics { border: 1px solid var(--line-2); }
html[data-surface="charcoal"] .btn-ghost { background: var(--surface-2); }
html[data-surface="charcoal"] .hero h1 .grad,
html[data-surface="charcoal"] .psr-row.r .k,
html[data-surface="charcoal"] .faq summary::after,
html[data-surface="charcoal"] .hero-quick li svg { color: var(--mark-color); }
/* Logo: en oscuro se usa la versión blanca (lo conmuta el JS de tweaks) */

/* Bordes rectos — opción editorial/severa */
html[data-corners="sharp"] {
  --radius-sm: 0px; --radius: 2px; --radius-lg: 3px;
}
html[data-corners="sharp"] .btn,
html[data-corners="sharp"] .tags span,
html[data-corners="sharp"] .pstep .dot,
html[data-corners="sharp"] .nav-toggle { border-radius: 2px; }
html[data-corners="sharp"] .pstep .dot { border-radius: 0; }

/* El acento (—mark-color / —violet-ink) lo inyecta el JS de tweaks en :root */
