/* ============================================================
   Mentalinvesting — sistema de diseño v2
   "Arte digital contemporáneo + editorial de lujo + tecnología creativa"
   Lienzo oscuro profundo, color como lenguaje. Todo hex vive en :root.
   ============================================================ */

:root {
  /* ── lienzo ── */
  --ink:            #08080F;
  --ink-2:          #0E0E19;
  --surface:        #14141F;
  --surface-raised: #1C1C2B;
  --stone:          #23233A;

  /* ── tinta ── */
  --fg:     #F3F1ED;
  --muted:  #9B9BB0;
  --border: #2A2A3E;

  /* ── acentos vivos ── */
  --accent:  #5B7CFF;  /* azul eléctrico / cobalto */
  --violet:  #8B4DFF;  /* violeta intenso */
  --magenta: #E83BE0;
  --coral:   #FF7A4D;  /* coral cálido */
  --gold:    #F2C14E;  /* acento luminoso */
  --gain:    #37D39A;
  --loss:    #FF5C7A;

  /* ── alias heredados (páginas existentes) ── */
  --bg:          var(--ink);
  --petrol:      #B7CBFF;
  --plum:        var(--violet);
  --mauve:       #C79BFF;
  --lavender:    #DCC9FF;
  --sage:        var(--gain);
  --mineral:     var(--gain);
  --champagne:   var(--gold);
  --terracotta:  var(--loss);

  /* ── derivados (nunca hex) ── */
  --accent-soft:     color-mix(in oklch, var(--accent) 22%, transparent);
  --plum-soft:       color-mix(in oklch, var(--violet) 24%, transparent);
  --mauve-soft:      color-mix(in oklch, var(--mauve) 20%, transparent);
  --sage-soft:       color-mix(in oklch, var(--gain) 20%, transparent);
  --champagne-soft:  color-mix(in oklch, var(--gold) 20%, transparent);
  --terracotta-soft: color-mix(in oklch, var(--loss) 20%, transparent);
  --fg-soft:         color-mix(in oklch, var(--fg) 9%, transparent);
  --fg-softer:       color-mix(in oklch, var(--fg) 5%, transparent);
  --gain-text:       #6FE7B4;
  --loss-text:       #FF9AAC;
  --violet-text:     #D9BEFF;
  --gold-text:       #F7D98A;

  /* ── sombras / brillo ── */
  --shadow-sm: 0 1px 2px color-mix(in oklch, var(--ink) 70%, transparent);
  --shadow-md: 0 14px 40px -18px color-mix(in oklch, var(--ink) 85%, transparent);
  --shadow-lg: 0 34px 90px -34px color-mix(in oklch, var(--ink) 92%, transparent);
  --glow-accent:  0 0 46px -8px color-mix(in oklch, var(--accent) 70%, transparent);
  --glow-violet:  0 0 46px -8px color-mix(in oklch, var(--violet) 70%, transparent);
  --glow-magenta: 0 0 46px -8px color-mix(in oklch, var(--magenta) 60%, transparent);

  --grad-brand: linear-gradient(105deg, var(--accent) 0%, var(--violet) 48%, var(--magenta) 100%);
  --grad-warm:  linear-gradient(120deg, var(--coral) 0%, var(--magenta) 100%);

  /* ── tipografía ── */
  --font-display: 'Bodoni Moda', 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --fs-h1: clamp(38px, 5vw, 66px);
  --fs-h2: clamp(28px, 3.4vw, 44px);
  --fs-h3: 21px;
  --fs-lead: 18px;
  --fs-body: 15.5px;
  --fs-meta: 12.5px;

  /* ── rejilla base 8 ── */
  --gap-xs: 8px;
  --gap-sm: 12px;
  --gap-md: 20px;
  --gap-lg: 32px;
  --gap-xl: 56px;
  --gap-2xl: 88px;
  --container: 1200px;
  --gutter: 28px;

  --radius-sm: 9px;
  --radius: 13px;
  --radius-lg: 20px;
  --radius-xl: 30px;
}

/* ── reset & base ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    radial-gradient(70vw 55vw at 6% -10%, color-mix(in oklch, var(--violet) 20%, transparent), transparent 68%),
    radial-gradient(60vw 50vw at 102% 2%, color-mix(in oklch, var(--accent) 17%, transparent), transparent 66%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }
::selection { background: color-mix(in oklch, var(--violet) 45%, transparent); color: var(--fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--stone); border-radius: 999px; border: 2px solid var(--ink); }

/* ── primitivas de layout ── */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(52px, 7.5vw, var(--gap-2xl)); position: relative; }
.section + .section { border-top: 1px solid var(--border); }
.section-tight { padding-block: clamp(32px, 5vw, 56px); }
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--gap-md); }
.row { display: flex; align-items: center; gap: var(--gap-md); }
.row-sm { display: flex; align-items: center; gap: var(--gap-sm); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md); }
.wrap { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-md); }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap-xl); align-items: start; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gap-xl); align-items: start; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--gap-md); }
@media (max-width: 980px) {
  .grid-2, .grid-3, .grid-4, .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
}

/* ── tipografía ── */
.h1, h1 { font-family: var(--font-display); font-size: var(--fs-h1); font-weight: 500; line-height: 1.04; letter-spacing: -0.02em; margin: 0; }
.h2, h2 { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
.h3, h3 { font-family: var(--font-body); font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; margin: 0; }
.h4 { font-family: var(--font-body); font-size: 16px; font-weight: 600; margin: 0; }
.em-serif { font-family: var(--font-display); font-style: italic; font-weight: 400; }
.lead { font-size: var(--fs-lead); line-height: 1.65; color: var(--muted); max-width: 62ch; margin: 0; }
.eyebrow {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--violet-text); margin: 0 0 16px;
}
.eyebrow-plain { color: var(--muted); }
.meta { font-family: var(--font-mono); font-size: var(--fs-meta); color: var(--muted); letter-spacing: 0.01em; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.fg { color: var(--fg); }
.center { text-align: center; }
.right { text-align: right; }
.up { color: var(--gain-text); }
.down { color: var(--loss-text); }
.plum { color: var(--violet-text); }
.gold { color: var(--gold-text); }
.tiny { font-size: 12px; }
.small { font-size: 13.5px; }
strong { font-weight: 600; }

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

/* ── chrome: topnav ── */
.topnav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklch, var(--ink) 74%, transparent);
  backdrop-filter: blur(18px) saturate(1.35);
  border-bottom: 1px solid var(--border);
}
.topnav-inner { display: flex; align-items: center; gap: var(--gap-lg); padding-block: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.logo-mark { width: 28px; height: 28px; flex: none; display: block; border-radius: 7px; object-fit: cover; }
.brand-word { white-space: nowrap; }
.topnav nav { display: flex; gap: 2px; margin-left: auto; }
.topnav nav a {
  position: relative; font-size: 14px; color: var(--muted); padding: 8px 12px; border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.topnav nav a:hover { color: var(--fg); background: var(--fg-soft); }
.topnav nav a[aria-current="page"] { color: var(--fg); font-weight: 600; }
.topnav nav a[aria-current="page"]::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 1px; height: 2px;
  border-radius: 2px; background: var(--grad-brand);
}
.topnav .nav-actions { display: flex; align-items: center; gap: 8px; }

/* ── selector de idioma ── */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; flex: none;
  padding: 3px; border-radius: 999px; border: 1px solid var(--border);
  background: color-mix(in oklch, var(--surface-raised) 60%, transparent);
}
.lang-btn {
  border: 0; background: transparent; cursor: pointer;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--muted); padding: 4px 8px; border-radius: 999px; line-height: 1;
  transition: color .15s ease, background .15s ease;
}
.lang-btn:hover { color: var(--fg); }
.lang-btn.is-active, .lang-btn[aria-pressed="true"] { color: var(--surface); background: var(--accent); }
@media (max-width: 1060px) {
  .lang-switch { padding: 2px; }
  .lang-btn { padding: 4px 7px; font-size: 11px; }
}

/* ── chrome: navegación inferior (móvil) ── */
.mobnav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: color-mix(in oklch, var(--ink-2) 92%, transparent);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
.mobnav ul { list-style: none; display: flex; margin: 0; padding: 0; justify-content: space-around; }
.mobnav a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10.5px; color: var(--muted); padding: 4px 6px; border-radius: 10px; min-width: 48px;
}
.mobnav a svg { width: 21px; height: 21px; }
.mobnav a[aria-current="page"] { color: var(--petrol); }
.mobnav a[aria-current="page"] svg { color: var(--accent); }
@media (max-width: 1200px) {
  .topnav-inner { gap: var(--gap-md); }
  .topnav nav a { font-size: 13px; padding: 8px 8px; }
}
@media (max-width: 1060px) {
  .topnav nav { display: none; }
  .topnav .nav-actions .ghost-hide { display: none; }
  .mobnav { display: block; }
  body.has-mobnav { padding-bottom: 76px; }
}

/* ── menú móvil (hamburguesa) ── */
.nav-burger {
  display: none; border: 1px solid var(--border);
  background: color-mix(in oklch, var(--surface-raised) 65%, transparent);
  width: 40px; height: 40px; border-radius: 11px; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px; flex: none;
  transition: border-color .15s ease, background .15s ease;
}
.nav-burger:hover { border-color: color-mix(in oklch, var(--accent) 45%, var(--border)); }
.nav-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--fg); transition: transform .22s ease, opacity .18s ease; }
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-drawer {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 39;
  display: none; flex-direction: column; gap: 2px;
  padding: 10px clamp(16px, 4vw, 32px) calc(14px + env(safe-area-inset-bottom));
  background: color-mix(in oklch, var(--ink-2) 96%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.nav-drawer.open { display: flex; animation: ndIn .18s ease; }
@keyframes ndIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nav-drawer .nd-link {
  font-size: 15px; color: var(--muted); padding: 12px 10px; border-radius: 10px; text-align: left;
  background: transparent; border: 0; width: 100%; cursor: pointer; font-family: inherit;
}
.nav-drawer .nd-link:hover, .nav-drawer .nd-link[aria-current="page"] { color: var(--fg); background: var(--fg-soft); }
.nav-drawer .nd-sep { height: 1px; background: var(--border); margin: 8px 4px; }
.nav-drawer .nd-cta { color: var(--surface); background: var(--accent); text-align: center; font-weight: 600; }
.nav-drawer .nd-cta:hover { background: var(--accent); color: var(--surface); filter: brightness(1.06); }
@media (max-width: 1060px) {
  .nav-burger { display: flex; margin-left: auto; }
}

/* ── botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 19px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .08s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background-image: var(--grad-brand); background-size: 180% 180%; color: var(--ink); border-color: transparent; box-shadow: var(--glow-accent); }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 0 60px -6px color-mix(in oklch, var(--violet) 70%, transparent); }
.btn-secondary { background: var(--surface-raised); color: var(--fg); border-color: var(--border); }
.btn-secondary:hover { border-color: color-mix(in oklch, var(--accent) 55%, var(--border)); background: color-mix(in oklch, var(--surface-raised) 80%, var(--accent)); }
.btn-ghost { background: transparent; color: var(--fg); border-color: transparent; padding-inline: 12px; }
.btn-ghost:hover { background: var(--fg-soft); }
.btn-plum { background: var(--violet); color: var(--ink); border-color: var(--violet); }
.btn-plum:hover { background: color-mix(in oklch, var(--violet) 84%, var(--magenta)); }
.btn-sage { background: var(--gain); color: var(--ink); border-color: var(--gain); }
.btn-sage:hover { background: color-mix(in oklch, var(--gain) 84%, var(--accent)); }
.btn-danger { background: transparent; color: var(--loss-text); border-color: color-mix(in oklch, var(--loss) 50%, var(--border)); }
.btn-danger:hover { background: var(--terracotta-soft); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 13px; font-size: 13.5px; }
.btn-lg { padding: 15px 26px; font-size: 15.5px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-arrow::after { content: '\2192'; transition: transform .18s ease; }
.btn-arrow:hover::after { transform: translateX(3px); }

/* ── tarjetas ── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.card-flat { background: transparent; border: 0; padding: 0; }
.card-raised { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.card-interactive { transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease; }
.card-interactive:hover { border-color: color-mix(in oklch, var(--accent) 45%, var(--border)); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-pad-lg { padding: 34px; }
.card-quiet { background: var(--fg-softer); border-color: var(--border); }
.card-rule { background: transparent; border: 0; border-top: 1px solid color-mix(in oklch, var(--violet) 45%, var(--border)); padding: 22px 0 0; border-radius: 0; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 30px; box-shadow: var(--shadow-sm); }

/* aviso / nota */
.note {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--fg-softer); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px; font-size: 13.5px; color: var(--muted);
}
.note svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--muted); }
.note-plum { background: var(--plum-soft); border-color: color-mix(in oklch, var(--violet) 40%, transparent); color: var(--violet-text); }
.note-gold { background: var(--champagne-soft); border-color: color-mix(in oklch, var(--gold) 40%, transparent); color: var(--gold-text); }

/* ── pills / tags / badges ── */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px;
  background: var(--accent-soft); color: var(--petrol); border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
}
.pill-plum  { background: var(--plum-soft); color: var(--violet-text); }
.pill-sage  { background: var(--sage-soft); color: var(--gain-text); }
.pill-gold  { background: var(--champagne-soft); color: var(--gold-text); }
.pill-loss  { background: var(--terracotta-soft); color: var(--loss-text); }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px;
  background: transparent; color: var(--muted); border: 1px solid var(--border);
  border-radius: 999px; font-size: 12.5px; cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.tag:hover { border-color: color-mix(in oklch, var(--accent) 45%, var(--border)); color: var(--fg); }
.tag[aria-pressed="true"] { background: var(--accent); color: var(--ink); border-color: var(--accent); font-weight: 600; }
.dot { width: 7px; height: 7px; border-radius: 999px; flex: none; }
.dot-sage { background: var(--gain); }
.dot-plum { background: var(--violet); }
.dot-terra { background: var(--loss); }
.dot-gold { background: var(--gold); }

/* ── campos de formulario ── */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .label { font-size: 13px; color: var(--muted); font-weight: 500; }
.field .hint { font-size: 11.5px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--ink-2); color: var(--fg); font: inherit; font-size: 14.5px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.input::placeholder, .textarea::placeholder { color: color-mix(in oklch, var(--muted) 72%, transparent); }
.textarea { min-height: 92px; resize: vertical; line-height: 1.55; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239B9BB0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 15px; padding-right: 34px; }
.select option { background: var(--surface-raised); color: var(--fg); }
.input-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-md); }
.field-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-md); }
@media (max-width: 640px) { .field-row, .field-row-3 { grid-template-columns: 1fr; } }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.check input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }

/* ── control segmentado ── */
.segmented { display: inline-flex; background: var(--stone); border-radius: var(--radius); padding: 4px; gap: 4px; }
.segmented button {
  border: 0; background: transparent; color: var(--muted); padding: 8px 16px;
  border-radius: 9px; font-size: 13.5px; font-weight: 600; transition: background .15s ease, color .15s ease;
}
.segmented button:hover { color: var(--fg); }
.segmented button[aria-pressed="true"] { background: var(--surface-raised); color: var(--fg); box-shadow: var(--shadow-sm); }
.segmented button[aria-pressed="true"].seg-long { color: var(--gain-text); }
.segmented button[aria-pressed="true"].seg-short { color: var(--loss-text); }

/* ── quick R:R ── */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-rr {
  flex: 1; min-width: 68px; border: 1px solid var(--border); background: var(--surface-raised);
  border-radius: var(--radius-sm); padding: 9px 6px; font-family: var(--font-mono); font-size: 13px;
  color: var(--muted); transition: all .15s ease;
}
.chip-rr:hover { border-color: color-mix(in oklch, var(--accent) 50%, var(--border)); color: var(--fg); }
.chip-rr[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 600; }

/* ── emociones ── */
.emo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .emo-grid { grid-template-columns: repeat(2, 1fr); } }
.emo {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  border: 1px solid var(--border); background: var(--surface-raised); border-radius: var(--radius);
  padding: 14px 8px 12px; color: var(--muted); transition: all .15s ease;
}
.emo svg { width: 30px; height: 30px; color: var(--mauve); transition: color .15s ease, filter .15s ease; }
.emo span { font-size: 12.5px; font-weight: 500; }
.emo:hover { border-color: color-mix(in oklch, var(--violet) 55%, var(--border)); color: var(--fg); }
.emo:hover svg { color: var(--violet-text); filter: drop-shadow(0 0 10px color-mix(in oklch, var(--violet) 60%, transparent)); }
.emo[aria-pressed="true"] {
  background: var(--plum-soft); border-color: var(--violet); color: var(--violet-text);
}
.emo[aria-pressed="true"] svg { color: var(--violet-text); }

.intensity { display: flex; gap: 8px; }
.intensity button {
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface-raised); color: var(--muted); font-family: var(--font-mono); font-size: 14px;
  transition: all .15s ease;
}
.intensity button:hover { border-color: var(--violet); color: var(--violet-text); }
.intensity button[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: var(--ink); font-weight: 600; }
.intensity-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; }

/* ── etiquetas KPI / métricas ── */
.kpi { display: flex; flex-direction: column; gap: 4px; }
.kpi .kpi-label { font-size: 12px; color: var(--muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; }
.kpi .kpi-value { font-family: var(--font-display); font-size: 32px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.kpi .kpi-value.num { font-family: var(--font-mono); font-size: 26px; }
.kpi .kpi-delta { font-size: 12.5px; font-family: var(--font-mono); }
.metric-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.metric-tile .m-label { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-family: var(--font-mono); }
.metric-tile .m-value { font-family: var(--font-mono); font-size: 19px; margin-top: 6px; font-variant-numeric: tabular-nums; }

/* ── stat billboard ── */
.stat .stat-num { font-family: var(--font-display); font-size: clamp(46px, 6vw, 78px); line-height: .95; letter-spacing: -0.04em; font-weight: 600;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .stat-label { color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 26ch; }

/* ── tabla ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.ds-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ds-table th, .ds-table td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.ds-table th { color: var(--muted); font-weight: 500; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.ds-table tbody tr { transition: background .12s ease; }
.ds-table tbody tr:hover { background: var(--fg-softer); }
.ds-table .num-col { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }
.ds-table tbody tr:last-child td { border-bottom: 0; }

/* ── progreso ── */
.progress { height: 6px; background: var(--stone); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--grad-brand); border-radius: 999px; transition: width .4s cubic-bezier(.4,0,.2,1); }

/* ── gráficos ── */
.chart-box { width: 100%; position: relative; }
.spark { width: 100%; height: 44px; display: block; overflow: visible; }
.spark path.line { fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.spark path.area { opacity: .18; }
.chart-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.chart-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }

/* ── hero (base, páginas internas) ── */
.hero { padding-block: clamp(56px, 9vw, 120px); }
.hero-center { max-width: 42ch; margin-inline: auto; text-align: center; }
.hero h1 { margin-bottom: var(--gap-md); }
.hero .lead { margin-bottom: var(--gap-lg); }
.hero-center .lead { margin-inline: auto; }
.hero-cta { display: inline-flex; gap: var(--gap-sm); flex-wrap: wrap; }
.hero-center .hero-cta { justify-content: center; }
.hero-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 980px) { .hero-split { grid-template-columns: 1fr; } }
.hero-visual { position: relative; }

/* ── footer ── */
.pagefoot { padding-block: var(--gap-xl); color: var(--muted); font-size: 13px; border-top: 1px solid var(--border); }
.pagefoot .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--gap-lg); }
@media (max-width: 800px) { .pagefoot .foot-grid { grid-template-columns: 1fr 1fr; } }
.pagefoot h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: var(--font-mono); font-weight: 500; margin: 0 0 12px; }
.pagefoot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pagefoot a { transition: color .15s ease; }
.pagefoot a:hover { color: var(--fg); }
.disclaimer { margin-top: var(--gap-lg); padding-top: var(--gap-md); border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); max-width: 82ch; }

/* ── log-row editorial ── */
.log-row { display: grid; grid-template-columns: 110px 1fr auto; gap: var(--gap-lg); padding: 22px 0; border-top: 1px solid var(--border); align-items: baseline; }
.log-row h3 { font-size: 19px; }
.log-row .pull { text-align: right; }
@media (max-width: 640px) { .log-row { grid-template-columns: 1fr; gap: 8px; } .log-row .pull { text-align: left; } }

/* ── utilidades ── */
.mt-0 { margin-top: 0; } .mt-xs { margin-top: var(--gap-xs); } .mt-sm { margin-top: var(--gap-sm); }
.mt-md { margin-top: var(--gap-md); } .mt-lg { margin-top: var(--gap-lg); } .mt-xl { margin-top: var(--gap-xl); }
.mb-0 { margin-bottom: 0; } .mb-sm { margin-bottom: var(--gap-sm); } .mb-md { margin-bottom: var(--gap-md); }
.mb-lg { margin-bottom: var(--gap-lg); } .mb-xl { margin-bottom: var(--gap-xl); }
.gap-sm { gap: var(--gap-sm); } .gap-md { gap: var(--gap-md); } .gap-lg { gap: var(--gap-lg); }
.flex-1 { flex: 1; } .nowrap { white-space: nowrap; }
.hide { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 900px) { .hide-mobile { display: none !important; } }
@media (min-width: 901px) { .only-mobile { display: none !important; } }

/* contenido real: respeta geometría intrínseca */
.content-img { display: block; max-width: 100%; max-height: min(70vh, 720px); width: auto; height: auto; object-fit: contain; justify-self: center; border-radius: var(--radius-lg); }
.ph-img {
  background: linear-gradient(135deg, var(--fg-softer), var(--accent-soft)), var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  aspect-ratio: 16 / 10; display: grid; place-items: center; color: var(--muted);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em;
}
.ph-img.wide { aspect-ratio: 16 / 9; } .ph-img.square { aspect-ratio: 1 / 1; } .ph-img.portrait { aspect-ratio: 3 / 4; }

/* ============================================================
   DIRECCIÓN DE ARTE · INICIO
   ============================================================ */
.art-site { overflow-x: clip; }
.art-site {
  background-image:
    radial-gradient(70vw 55vw at 8% -8%, color-mix(in oklch, var(--violet) 30%, transparent), transparent 68%),
    radial-gradient(60vw 50vw at 100% 2%, color-mix(in oklch, var(--accent) 24%, transparent), transparent 66%),
    radial-gradient(90vw 45vw at 48% 116%, color-mix(in oklch, var(--magenta) 15%, transparent), transparent 72%);
}

/* hero */
.hero-stage { position: relative; padding-block: clamp(60px, 9vw, 132px) clamp(20px, 4vw, 48px); overflow: clip; }
.hero-stage > .container { position: relative; z-index: 3; }
.hero-bg { position: absolute; inset: -10% -6% -2%; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .5; mix-blend-mode: screen; }
.blob-a { width: 42vw; height: 42vw; right: -8%; top: -12%;
  background: radial-gradient(circle at 35% 35%, var(--accent), transparent 68%); animation: drift-a 24s ease-in-out infinite; }
.blob-b { width: 38vw; height: 38vw; left: -12%; top: 6%;
  background: radial-gradient(circle at 60% 40%, var(--violet), transparent 66%); animation: drift-b 30s ease-in-out infinite; }
.blob-c { width: 30vw; height: 30vw; right: 16%; bottom: -22%;
  background: radial-gradient(circle at 50% 50%, var(--magenta), transparent 66%); opacity: .34; animation: drift-c 27s ease-in-out infinite; }
@keyframes drift-a { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-4%, 5%, 0) scale(1.12); } }
@keyframes drift-b { 0%,100% { transform: translate3d(0,0,0) scale(1.05); } 50% { transform: translate3d(5%, -4%, 0) scale(.92); } }
@keyframes drift-c { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-3%, -6%, 0) scale(1.16); } }
.hero-bg .texture { position: absolute; inset: 0;
  background-image: radial-gradient(color-mix(in oklch, var(--fg) 16%, transparent) 1px, transparent 1.3px);
  background-size: 28px 28px; opacity: .25; }
.hero-bg .veil { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, color-mix(in oklch, var(--ink) 85%, transparent)); }

.hero-grid { display: grid; grid-template-columns: 1.55fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: end; }
@media (max-width: 1020px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.display-mega { font-family: var(--font-display); font-size: clamp(40px, 6.6vw, 100px); line-height: .95; letter-spacing: -0.035em; font-weight: 500; margin: 0; }
.display-mega .line { display: block; }
.display-mega .em { font-style: italic; font-weight: 400; }
.hero-copy .lead { margin-top: clamp(20px, 2.4vw, 30px); max-width: 46ch; }
.hero-copy .hero-cta { margin-top: clamp(24px, 3vw, 36px); }
.hero-copy .hero-note { margin-top: 26px; }

/* collage */
.hero-collage { position: relative; display: grid; gap: var(--gap-md); }
.frag { position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: color-mix(in oklch, var(--surface) 78%, transparent); backdrop-filter: blur(14px);
  padding: 18px 18px 16px; box-shadow: var(--shadow-lg); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.frag:hover { transform: translateY(-4px); }
.frag-a { transform: rotate(-1.4deg); }
.frag-b { transform: rotate(1.2deg); margin-left: 10%; }
@media (max-width: 1020px) { .frag-a, .frag-b { transform: none; margin-left: 0; } }
.frag-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.emo-mini { display: flex; gap: 8px; margin-top: 12px; }
.emo-dot { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--border); display: grid; place-items: center;
  color: var(--mauve); background: var(--surface-raised); }
.emo-dot.sel { border-color: var(--violet); color: var(--violet-text); background: var(--plum-soft); box-shadow: var(--glow-violet); }
.emo-dot svg { width: 22px; height: 22px; }
.rr-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; }
.rr-row .big { font-family: var(--font-display); font-size: 34px; font-weight: 600; letter-spacing: -0.02em;
  background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rr-chips { display: flex; gap: 6px; margin-top: 14px; }
.rr-chips span { flex: 1; text-align: center; font-family: var(--font-mono); font-size: 12px; padding: 6px 0;
  border: 1px solid var(--border); border-radius: 8px; color: var(--muted); }
.rr-chips span.on { border-color: var(--accent); color: var(--petrol); background: var(--accent-soft); }
.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; margin-top: 14px; }
.mini-bars i { flex: 1; border-radius: 4px 4px 0 0; background: var(--grad-brand); opacity: .85; }

/* cinta de conceptos */
.ribbon { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding-block: 16px; overflow: hidden; margin-top: clamp(40px, 6vw, 76px); }
.ribbon-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon-track span { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 12.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-inline: 26px; }
.ribbon-track span::before { content: ''; width: 6px; height: 6px; border-radius: 999px; margin-right: 26px; background: var(--accent); }
.ribbon-track span:nth-child(3n)::before { background: var(--magenta); }
.ribbon-track span:nth-child(3n+2)::before { background: var(--violet); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* accesos asimétricos */
.entry-grid { display: grid; grid-template-columns: 1.28fr 1fr; gap: var(--gap-md); }
@media (max-width: 900px) { .entry-grid { grid-template-columns: 1fr; } }
.entry-stack { display: grid; gap: var(--gap-md); }
.entry { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-xl);
  border: 1px solid var(--border); background: var(--surface); padding: clamp(24px, 3vw, 38px); overflow: hidden;
  transition: transform .28s cubic-bezier(.2,.7,.2,1), border-color .28s ease; }
.entry::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(130% 120% at 100% 0, color-mix(in oklch, var(--accent) 26%, transparent), transparent 58%); }
.entry:hover { transform: translateY(-4px); border-color: color-mix(in oklch, var(--accent) 50%, var(--border)); }
.entry:hover::after { opacity: 1; }
.entry-big { justify-content: space-between; min-height: clamp(320px, 38vw, 440px); }
.entry h3 { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; margin: 18px 0 8px; }
.entry p { color: var(--muted); margin: 0; max-width: 40ch; }
.entry-idx { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; color: var(--muted); }
.entry-mark { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface-raised); color: var(--petrol); }
.entry-mark svg { width: 22px; height: 22px; }
.entry-big .entry-mark { width: 58px; height: 58px; border-radius: 18px; color: var(--violet-text);
  background: var(--plum-soft); border-color: color-mix(in oklch, var(--violet) 40%, transparent); }
.entry-go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--petrol); }
.entry:hover .entry-go { color: var(--fg); }

/* sección "hablan de ti" — viz emocional */
.viz-panel { border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); padding: clamp(22px, 3vw, 34px); }
.emotion-bar { display: grid; grid-template-columns: 132px 1fr 54px; gap: 14px; align-items: center; padding: 9px 0; }
.emotion-bar .ename { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg); }
.emotion-bar .ename svg { width: 20px; height: 20px; color: var(--mauve); }
.emotion-bar .track { height: 10px; border-radius: 999px; background: var(--stone); overflow: hidden; }
.emotion-bar .fill { height: 100%; border-radius: 999px; background: var(--grad-brand); }
.emotion-bar .fill.warm { background: var(--grad-warm); }
.emotion-bar .pct { font-family: var(--font-mono); font-size: 13px; text-align: right; color: var(--muted); }

/* pasos editorial */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap-md); position: relative; }
@media (max-width: 940px) { .steps { grid-template-columns: 1fr; } .stepx { transform: none !important; } }
.stepx { position: relative; padding-top: 20px; border-top: 1px solid var(--border); }
.stepx::before { content: ''; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 999px; background: var(--grad-brand); }
.stepx .snum { font-family: var(--font-display); font-size: clamp(40px, 4.6vw, 62px); line-height: 1; font-weight: 600; letter-spacing: -0.04em;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stepx:nth-child(even) { transform: translateY(26px); }
.stepx h3 { margin-top: 10px; }
.stepx p { color: var(--muted); font-size: 13.5px; margin: 6px 0 0; }

/* cierre */
.cta-stage { position: relative; overflow: clip; text-align: center; }
.cta-stage .blob-d { position: absolute; width: 46vw; height: 46vw; left: 50%; top: 40%; transform: translate(-50%,-50%);
  background: radial-gradient(circle, color-mix(in oklch, var(--violet) 55%, transparent), transparent 62%);
  filter: blur(70px); opacity: .5; mix-blend-mode: screen; z-index: 0; pointer-events: none; animation: drift-b 26s ease-in-out infinite; }
.cta-stage .container { position: relative; z-index: 2; }

/* revelado al hacer scroll */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }

/* ── barra de modo demo ── */
.demo-bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 38px; padding: 8px 16px;
  background-image: var(--grad-brand); color: var(--ink);
  font-size: 13px; font-weight: 600; text-align: center;
}
.demo-bar-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ink); flex: none; animation: demoPulse 1.8s ease-in-out infinite; }
@keyframes demoPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.demo-bar-cta {
  flex: none; color: var(--ink); background: color-mix(in oklch, var(--ink) 14%, transparent);
  border: 1px solid color-mix(in oklch, var(--ink) 35%, transparent);
  padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
}
.demo-bar-cta:hover { background: color-mix(in oklch, var(--ink) 26%, transparent); }
body.has-demo-bar .topnav { top: 38px; }
@media (max-width: 560px) {
  .demo-bar { font-size: 11.5px; gap: 8px; padding-inline: 10px; }
  .demo-bar-cta { padding: 3px 9px; font-size: 11.5px; }
}

/* ── ajustes / preferencias ── */
.settings-block { display: grid; gap: 14px; }
.settings-block + .settings-block { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.settings-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.settings-strat-list { display: grid; gap: 8px; }
.strat-row { display: flex; align-items: center; gap: 10px; background: var(--ink-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 13px; }
.strat-row span { flex: 1; font-size: 14px; }
.strat-add { display: flex; gap: 8px; }
.strat-add .input { flex: 1; }

/* ── participación · modal compartido ── */
.modal { position: fixed; inset: 0; z-index: 120; display: none; place-items: center; padding: 20px; background: color-mix(in oklch, var(--fg) 42%, transparent); backdrop-filter: blur(3px); }
.modal.open { display: grid; }
.modal-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); max-width: 540px; width: 100%; max-height: 90vh; overflow: auto; padding: 30px; box-shadow: var(--shadow-lg); }

/* ── botón flotante de feedback ── */
.iv-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 110;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 18px; border-radius: 999px;
  background: var(--surface-raised); color: var(--fg);
  border: 1px solid color-mix(in oklch, var(--violet) 38%, var(--border));
  box-shadow: var(--shadow-lg); font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
}
.iv-fab:hover { transform: translateY(-2px); border-color: color-mix(in oklch, var(--violet) 62%, var(--border)); }
.iv-fab svg { width: 18px; height: 18px; color: var(--violet-text); }
body.has-mobnav .iv-fab { bottom: 88px; }
@media (max-width: 560px) {
  .iv-fab { padding: 12px; gap: 0; }
  .iv-fab span { display: none; }
}

/* ── casilla de verificación ── */
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; flex: none; accent-color: var(--violet); }
.check a { color: var(--violet-text); text-decoration: underline; }

/* ── valoración con estrellas ── */
.rating { display: inline-flex; gap: 6px; }
.rating .star {
  background: none; border: 0; cursor: pointer; padding: 0 2px; line-height: 1;
  font-size: 34px; color: var(--stone); transition: color .15s ease, transform .15s ease;
}
.rating .star:hover { transform: translateY(-1px); }
.rating .star.on { color: var(--gold); }

/* ── compartir resultado ── */
.share-grid { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 28px; align-items: start; }
@media (max-width: 720px) { .share-grid { grid-template-columns: 1fr; } }
.share-preview { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); }
.share-preview canvas { display: block; width: 100%; height: auto; }
.share-social { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── campos trampa (honeypot) ── */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* avisos de color */
.note-loss { background: var(--terracotta-soft); border-color: color-mix(in oklch, var(--loss) 40%, transparent); color: var(--loss-text); }
.note-sage { background: var(--sage-soft); border-color: color-mix(in oklch, var(--gain) 40%, transparent); color: var(--gain-text); }

/* accesibilidad de movimiento */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .blob, .blob-d, .demo-bar-dot { animation: none !important; }
}
