/* Bunedev: la pizarra. Superficie blanca fria y cuatro marcadores: negro, azul, rojo y verde. */
:root {
  /* Nocturne role 2 (light) — from the Bunedev design system's theme.json */
  --board: #e7e7e7;
  --surface: #cfcfcf;
  --ink: #3d3d3d;
  --ink-2: color-mix(in srgb, var(--ink) 70%, transparent);
  --ink-3: color-mix(in srgb, var(--ink) 55%, transparent);
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --line-soft: color-mix(in srgb, var(--ink) 6%, transparent);
  --blue: #6e12bf;           /* color-accent-ink: text, links, borders, focus */
  --blue-fill: #6e12bf;      /* color-accent: solid fills (primary buttons, marks) */
  --blue-fill-hover: #9052e0;
  --blue-fill-active: #6d3fab;
  --on-blue: #ffffff;
  --blue-soft: #f7f4fe;      /* accent-100: soft tinted panels */
  --blue-soft-ink: #6d3fab;  /* accent-700: ink for text/icons on --blue-soft */
  --onaccent-bg: #6e12bf;    /* button fill for the --section-bg band (near-white here, so solid accent pops) */
  --onaccent-bg-hover: #9052e0;
  --onaccent-ink: #ffffff;
  --section-bg: #f7f4fe;     /* color-section: the system's one full-bleed saturated band */
  --section-glow: #ebe2ff;
  --red: #d6362c;
  --red-soft: #fce7e4;
  --green: #15804a;
  --green-soft: #dcf2e5;
  --shadow: 0 0 0 1px #b4b9b4, 0 6px 18px rgba(61,61,61,0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* Nocturne role 1 (dark, default) */
    --board: #000a03;
    --surface: #000000;
    --ink: #e5ece5;
    --ink-2: color-mix(in srgb, var(--ink) 70%, transparent);
    --ink-3: color-mix(in srgb, var(--ink) 55%, transparent);
    --line: color-mix(in srgb, var(--ink) 16%, transparent);
    --line-soft: color-mix(in srgb, var(--ink) 8%, transparent);
    --blue: #508a58;
    --blue-fill: #115823;
    --blue-fill-hover: #3d6943;
    --blue-fill-active: #2e4a31;
    --on-blue: #e5ece5;
    --blue-soft: #203022;
    --blue-soft-ink: #badfbe;
    --onaccent-bg: #f0f8f1;
    --onaccent-bg-hover: #daeedc;
    --onaccent-ink: #203022;
    --section-bg: #012e0a;
    --section-glow: #023f10;
    --red: #ff7b6f;
    --red-soft: #3a1a17;
    --green: #56d195;
    --green-soft: #15301f;
    --shadow: 0 0 0 1px #556255, 0 6px 18px rgba(0,0,0,0.55);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    /* Nocturne role 1 (dark, default) */
    --board: #000a03;
    --surface: #000000;
    --ink: #e5ece5;
    --ink-2: color-mix(in srgb, var(--ink) 70%, transparent);
    --ink-3: color-mix(in srgb, var(--ink) 55%, transparent);
    --line: color-mix(in srgb, var(--ink) 16%, transparent);
    --line-soft: color-mix(in srgb, var(--ink) 8%, transparent);
    --blue: #508a58;
    --blue-fill: #115823;
    --blue-fill-hover: #3d6943;
    --blue-fill-active: #2e4a31;
    --on-blue: #e5ece5;
    --blue-soft: #203022;
    --blue-soft-ink: #badfbe;
    --onaccent-bg: #f0f8f1;
    --onaccent-bg-hover: #daeedc;
    --onaccent-ink: #203022;
    --section-bg: #012e0a;
    --section-glow: #023f10;
    --red: #ff7b6f;
    --red-soft: #3a1a17;
    --green: #56d195;
    --green-soft: #15301f;
    --shadow: 0 0 0 1px #556255, 0 6px 18px rgba(0,0,0,0.55);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--board); color: var(--ink); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--blue); color: var(--on-blue); }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.icon { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.icon svg { width: 1em; height: 1em; display: block; fill: currentColor; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--board); padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }

.h2 {
  font: 800 clamp(32px, 4.2vw, 54px)/1.04 var(--display); letter-spacing: -0.03em;
  margin: 0 0 16px; max-width: 20ch; text-wrap: balance;
}
.lede { font-size: 19px; color: var(--ink-2); max-width: 56ch; margin: 0 0 48px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid transparent; font: 650 16px/1 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .12s ease, color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn i { font-size: 18px; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-blue { background: var(--blue-fill); color: var(--on-blue); }
.btn-blue:hover { background: var(--blue-fill-hover); }
.btn-blue:active { background: var(--blue-fill-active); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.btn-white { background: var(--onaccent-bg); color: var(--onaccent-ink); }
.btn-white:hover { background: var(--onaccent-bg-hover); }
.btn-block { width: 100%; }
.btn-arrow svg { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.btn:hover .btn-arrow svg { transform: translateX(5px); }

/* Navegacion */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in oklab, var(--board) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); height: 68px; display: flex; align-items: center; gap: 32px; }
.logo { font: 800 26px/1 var(--display); letter-spacing: -0.045em; text-decoration: none; color: var(--ink); }
/* "dev" va en el color principal del tema (morado en claro, verde en oscuro). */
.logo-dev { color: var(--blue); }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 15.5px; }
.nav-links a { text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav-login { text-decoration: none; font-weight: 600; font-size: 15.5px; }
.nav-login:hover { color: var(--blue); }
.nav-toggle {
  display: none; flex: none; width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.nav-toggle-bar { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { display: flex; flex-direction: column; padding: 4px var(--gutter) 12px; border-top: 1px solid var(--line); background: var(--board); }
.mobile-nav a { padding: 14px 0; text-decoration: none; color: var(--ink); font: 600 16px var(--body); border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: 0; }
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
}
.theme-toggle {
  position: relative; flex: none; width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden; padding: 0; transition: border-color .18s ease;
}
.theme-toggle:hover { border-color: var(--blue); }
.theme-toggle .icon { position: absolute; font-size: 19px; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), opacity .35s ease; }
.theme-toggle .theme-icon-dark { transform: rotate(0deg) scale(1); opacity: 1; }
.theme-toggle .theme-icon-light { transform: rotate(90deg) scale(.4); opacity: 0; }
.theme-toggle[data-state="light"] .theme-icon-dark { transform: rotate(-90deg) scale(.4); opacity: 0; }
.theme-toggle[data-state="light"] .theme-icon-light { transform: rotate(0deg) scale(1); opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  body, .nav, .board-note, .ledger, .tool-hero, .join-form, .cell, .field input, .status-live, .day, .pie, .theme-toggle {
    transition: background-color .35s ease, border-color .35s ease, color .35s ease, box-shadow .35s ease;
  }
}

/* Hero */
.hero {
  max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gutter) 88px;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero h1 { font: 800 clamp(38px, 4vw, 58px)/1.04 var(--display); letter-spacing: -0.03em; margin: 0 0 24px; }
.hero-sub { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 40ch; margin: 0 0 36px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.mark {
  background-image: linear-gradient(color-mix(in oklab, var(--blue) 85%, transparent), color-mix(in oklab, var(--blue) 85%, transparent));
  background-repeat: no-repeat; background-position: 0 94%; background-size: 0% .13em;
  transition: background-size 1.1s cubic-bezier(.65, 0, .35, 1) .25s;
}
.mark.is-drawn { background-size: 100% .13em; }

.hero-visual { position: relative; }
.hero-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); max-height: min(72vh, 640px); background: var(--line); }
.board-note {
  position: absolute; left: clamp(-56px, -4vw, -16px); bottom: 36px; width: min(290px, 80%);
  background: var(--surface); border-radius: var(--radius-md); padding: 18px 20px; box-shadow: var(--shadow);
}
.board-note p { margin: 0; }
.board-note-title { display: flex; align-items: center; gap: 6px; font: 700 13px/1 var(--body); color: var(--red); margin-bottom: 8px !important; }
.board-note-title i { font-size: 15px; }
.board-note-goal { font: 750 24px/1.15 var(--display); letter-spacing: -0.02em; }
.board-note-goal .mono { font-family: var(--display); font-variant-numeric: tabular-nums; }
.board-note-ticks { display: flex; gap: 1px; align-items: flex-end; height: 20px; margin: 14px 0 10px; }
.board-note-ticks span { flex: 1 1 0; min-width: 0; border-radius: 1px; background: var(--line); transform: scaleY(0); transform-origin: bottom; animation: tickGrow .5s cubic-bezier(.34, 1.56, .64, 1) forwards; animation-delay: calc(var(--i) * 18ms + .5s); }
.board-note-ticks span.is-past { background: var(--blue); }
@keyframes tickGrow { to { transform: scaleY(1); } }
.board-note-meta { font-size: 14px; color: var(--ink-3); }
.board-note-meta .mono { color: var(--ink); font-weight: 500; }

/* Racimo de iconos flotando sobre la foto: donde crece el negocio */
.hero-growth { position: absolute; top: clamp(-22px, -3vw, -8px); right: clamp(-22px, -3vw, -6px); width: 190px; height: 172px; z-index: 3; pointer-events: none; }
.hero-growth-chip {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow);
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink);
  opacity: 0; transform: scale(.4) rotate(var(--r, 0deg));
  animation: chipPop .55s cubic-bezier(.34, 1.56, .64, 1) forwards; animation-delay: var(--d, 0s);
}
.hero-growth-chip svg { width: 22px; height: 22px; }
.hero-growth-money { width: 62px; height: 62px; background: var(--blue-fill); color: var(--on-blue); }
.hero-growth-money svg { width: 27px; height: 27px; }
.hero-growth-money { top: -14px; right: -10px; --r: -6deg; --d: .95s; }
.hero-growth-ventas { top: -4px; right: 76px; --r: 6deg; --d: 1.08s; }
.hero-growth-fb { top: 40px; right: 128px; --r: -8deg; --d: 1.21s; }
.hero-growth-ig { top: 74px; right: 70px; --r: 7deg; --d: 1.34s; }
.hero-growth-tiktok { top: 108px; right: 14px; --r: -5deg; --d: 1.47s; }
@keyframes chipPop { to { opacity: 1; transform: scale(1) rotate(var(--r, 0deg)); } }
@media (max-width: 860px) {
  .hero-growth { top: -12px; right: -4px; width: 150px; height: 136px; }
  .hero-growth-chip { width: 42px; height: 42px; }
  .hero-growth-chip svg { width: 18px; height: 18px; }
  .hero-growth-money { width: 50px; height: 50px; }
  .hero-growth-money svg { width: 22px; height: 22px; }
  .hero-growth-money { top: -11px; right: -8px; }
  .hero-growth-ventas { top: -3px; right: 60px; }
  .hero-growth-fb { top: 32px; right: 100px; }
  .hero-growth-ig { top: 58px; right: 56px; }
  .hero-growth-tiktok { top: 84px; right: 10px; }
}

/* Lo que tachamos */
.crossed { background: var(--surface); padding: 112px 0 104px; border-block: 1px solid var(--line); }
.err-list { list-style: none; margin: 0; padding: 0; }
.err { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px 48px; padding: 30px 0; border-top: 1px solid var(--line); align-items: baseline; }
.err-old { margin: 0; font: 650 clamp(22px, 2.4vw, 32px)/1.2 var(--display); letter-spacing: -0.02em; }
.strike {
  background-image: linear-gradient(var(--red), var(--red)); background-repeat: no-repeat;
  background-position: 0 58%; background-size: 0% .085em;
  transition: background-size .9s cubic-bezier(.65, 0, .35, 1), color .4s ease .7s;
}
.err.is-in .strike { background-size: 100% .085em; color: var(--ink-3); }
.err-new {
  margin: 0; font-size: 19px; line-height: 1.45; color: var(--blue); font-weight: 550; display: flex; gap: 10px;
  opacity: 0; transform: translateY(6px); transition: opacity .5s ease .85s, transform .5s cubic-bezier(.16, 1, .3, 1) .85s;
}
.err-new i { font-size: 22px; flex: none; margin-top: 1px; }
.err.is-in .err-new { opacity: 1; transform: none; }
.no-js .err-new, .no-js .strike { opacity: 1; transform: none; background-size: 100% .085em; }
.crossed-cta { margin: 40px 0 0; }

/* Herramientas */
.tools { padding: 112px 0; }
.theme-light-block {
  /* Isla clara: este bloque se ve en el tema claro aunque el resto de la pagina este en oscuro */
  --board: #e7e7e7;
  --surface: #cfcfcf;
  --ink: #3d3d3d;
  --ink-2: color-mix(in srgb, var(--ink) 70%, transparent);
  --ink-3: color-mix(in srgb, var(--ink) 55%, transparent);
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --line-soft: color-mix(in srgb, var(--ink) 6%, transparent);
  --blue: #6e12bf;
  --blue-fill: #6e12bf;
  --blue-fill-hover: #9052e0;
  --blue-fill-active: #6d3fab;
  --on-blue: #ffffff;
  --blue-soft: #f7f4fe;
  --blue-soft-ink: #6d3fab;
  --onaccent-bg: #6e12bf;
  --onaccent-bg-hover: #9052e0;
  --onaccent-ink: #ffffff;
  --section-bg: #f7f4fe;
  --section-glow: #ebe2ff;
  --red: #d6362c;
  --red-soft: #fce7e4;
  --green: #15804a;
  --green-soft: #dcf2e5;
  --shadow: 0 0 0 1px #b4b9b4, 0 6px 18px rgba(61, 61, 61, 0.12);
  background: var(--board);
  color: var(--ink);
}
.tool-hero {
  background:
    radial-gradient(900px 420px at 85% -40%, color-mix(in srgb, var(--section-glow) 70%, transparent), transparent 64%),
    var(--section-bg);
  color: var(--ink); border-radius: var(--radius-lg); padding: clamp(28px, 4.5vw, 56px); overflow: hidden;
}
.tool-hero h3 { font: 800 clamp(30px, 3.4vw, 46px)/1.02 var(--display); letter-spacing: -0.035em; margin: 10px 0 0; }

.status { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; font-weight: 650; color: var(--ink-3); }
.status i { font-size: 17px; }
.status-live { color: var(--green); background: var(--green-soft); padding: 6px 12px 6px 10px; border-radius: calc(var(--radius-md) * 0.75); }
.status-build { color: var(--green); }
.status-soon { color: var(--blue-soft-ink); background: var(--blue-soft); padding: 6px 12px 6px 10px; border-radius: calc(var(--radius-md) * 0.75); }

/* Cabecera del bloque Estudio */
.tool-hero-head { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: flex-end; justify-content: space-between; margin-bottom: clamp(28px, 3.5vw, 44px); }
.tool-hero-head > div { flex: 1 1 460px; min-width: 0; }
.tool-hero-lede { flex: 1 1 300px; max-width: 44ch; margin: 0; color: var(--ink-2); }
.tool-promo { display: inline-block; margin: 14px 0 0; padding: 10px 16px; border-radius: 999px; background: var(--blue-fill); color: var(--on-blue); font: 800 15px/1 var(--body); letter-spacing: -0.01em; }
.tool-facts { list-style: none; padding: 0; margin: 0; flex: 1 1 320px; max-width: 46ch; display: grid; gap: 12px; font-size: 16px; color: var(--ink); }
.tool-facts li { display: flex; gap: 10px; align-items: center; }
.tool-facts i { font-size: 20px; color: var(--blue); flex: none; }

/* Paso a paso del Estudio (idea tomada del mockup de Claude Design) */
.tool-steps { display: flex; flex-wrap: wrap; gap: 28px clamp(24px, 3vw, 44px); align-items: stretch; }
.tool-step { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tool-step-1 { flex: 1 1 220px; max-width: 260px; }
.tool-step-2 { flex: 1.3 1 300px; gap: 22px; padding-left: clamp(0px, 2vw, 32px); border-left: 1px solid var(--line); }
.tool-step-3 { flex: 1.3 1 280px; gap: 14px; padding-left: clamp(0px, 2vw, 32px); border-left: 1px solid var(--line); }
.tool-step-4 { flex: 1 1 100%; }
.tool-step-title { margin: 0; display: flex; align-items: center; gap: 10px; font: 650 17px/1.2 var(--display); }
.step-num { position: relative; width: 30px; height: 30px; flex: none; display: inline-flex; align-items: center; justify-content: center; font: 700 15px var(--mono); }
.step-num svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.step-num path { fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; clip-path: inset(0 100% 0 0); transition: clip-path .9s cubic-bezier(.65, 0, .35, 1); }
.tool-hero.is-in .step-num path, .no-js .step-num path { clip-path: inset(0 0 0 0); }
.tool-hero.is-in .tool-step-2 .step-num path { transition-delay: .18s; }
.tool-hero.is-in .tool-step-3 .step-num path { transition-delay: .36s; }
.tool-hero.is-in .tool-step-4 .step-num path { transition-delay: .54s; }

.step-photo { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.step-photo img { display: block; width: 100%; max-width: 220px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-md); filter: saturate(.8); background: var(--line); }
.step-photo figcaption { font-size: 14px; color: var(--ink-3); }
.ai-prompt {
  width: 100%; min-height: 120px; resize: vertical; border-radius: var(--radius-md); border: 1.5px solid var(--line);
  background: #fff; color: var(--ink); font: 400 15px/1.5 var(--body); padding: 12px 14px;
}
.ai-prompt::placeholder { color: var(--ink-3); }
.ai-prompt:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 30%, transparent); }
.ai-prompt-hint { margin: 8px 0 0; font-size: 13px; color: var(--ink-3); }

.tool-step-2 fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.tool-step-2 legend { padding: 0; margin-bottom: 10px; font: 600 14px/1.2 var(--body); color: var(--ink-2); }
.opt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opt-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 50px; padding: 8px 14px;
  border-radius: var(--radius-md); border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font: 500 15px/1.2 var(--body); text-align: left; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.opt-btn span { display: flex; flex-direction: column; gap: 2px; }
.opt-btn .opt-ratio { font: 500 12.5px var(--mono); color: var(--ink-3); }
.opt-btn:hover { border-color: var(--blue); }
.opt-btn[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-soft-ink); }
.opt-btn[aria-pressed="true"] .opt-ratio { color: var(--blue-soft-ink); }
.cr-badge { display: inline-flex; align-items: center; gap: 4px; }
.cr-badge i { font-size: 13px; }

.opt-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-pill {
  min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  color: var(--ink); font: 500 15px var(--body); cursor: pointer; transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.opt-pill:hover { border-color: var(--blue); }
.opt-pill[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-soft-ink); }

.tool-step-3-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.step-spec { margin: 0; font: 500 13px/1.3 var(--mono); color: var(--ink-2); }
.step-output {
  position: relative; flex: 1; min-height: clamp(240px, 28vw, 400px); display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); background: color-mix(in srgb, var(--ink) 5%, var(--surface)); padding: clamp(16px, 2vw, 28px); margin-top: 14px;
}
.step-output img { max-width: 100%; max-height: 100%; border-radius: calc(var(--radius-md) * .8); box-shadow: var(--shadow); object-fit: cover; }
.preview-frame { background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow); width: min(300px, 100%); margin: 0 auto; }
.preview-frame .frame-post-head, .preview-frame .frame-post-foot,
.preview-frame .frame-web-bar, .preview-frame .frame-story-top, .preview-frame .frame-story-cta, .preview-frame .frame-tag, .preview-frame .frame-web-copy { display: none; }
.preview-frame .frame-media { position: relative; overflow: hidden; background: var(--line); }
.preview-frame .frame-media img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
.preview-frame[data-place="post"] .frame-post-head, .preview-frame[data-place="post"] .frame-post-foot { display: flex; }
.preview-frame[data-place="post"] .frame-media { aspect-ratio: 4 / 5; }
.frame-post-head { align-items: center; gap: 8px; padding: 10px 12px; }
.frame-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--blue-fill); color: var(--on-blue); display: inline-flex; align-items: center; justify-content: center; font: 700 12px var(--display); flex: none; }
.frame-who { display: flex; flex-direction: column; line-height: 1.2; font-size: 13px; color: var(--ink); }
.frame-who small { color: var(--ink-3); font-size: 11px; font-weight: 400; }
.frame-post-head i { margin-left: auto; font-size: 16px; color: var(--ink-3); }
.frame-post-foot { padding: 10px 12px 12px; }
.frame-icons { display: flex; gap: 12px; font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.frame-post-foot p { margin: 0; font-size: 12.5px; color: var(--ink); }
.preview-frame[data-place="story"] { width: min(210px, 100%); }
.preview-frame[data-place="story"] .frame-story-top, .preview-frame[data-place="story"] .frame-story-cta { display: flex; }
.preview-frame[data-place="story"] .frame-media { aspect-ratio: 9 / 16; }
.frame-story-top { position: absolute; top: 0; left: 0; right: 0; padding: 10px; flex-direction: column; gap: 8px; z-index: 2; }
.frame-story-bars { display: flex; gap: 4px; }
.frame-story-bars span { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.45); }
.frame-story-who { display: flex; align-items: center; gap: 6px; color: #fff; font-size: 12px; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.frame-story-who .frame-avatar { width: 20px; height: 20px; font-size: 10px; }
.frame-story-cta { position: absolute; bottom: 14px; left: 0; right: 0; justify-content: center; align-items: center; gap: 4px; color: #fff; font-size: 12px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.4); z-index: 2; }
.frame-story-cta i { font-size: 14px; }
.preview-frame[data-place="catalogo"] .frame-tag { display: inline-flex; }
.preview-frame[data-place="catalogo"] .frame-media { aspect-ratio: 1 / 1; }
.frame-tag { position: absolute; left: 10px; bottom: 10px; align-items: center; gap: 5px; background: #fff; color: var(--ink); font: 600 12px var(--body); padding: 5px 10px; border-radius: 999px; box-shadow: var(--shadow); z-index: 2; }
.frame-tag i { font-size: 13px; }
.preview-frame[data-place="web"] { width: min(440px, 100%); }
.preview-frame[data-place="web"] .frame-web-bar { display: flex; }
.preview-frame[data-place="web"] .frame-web-copy { display: flex; }
.preview-frame[data-place="web"] .frame-media { aspect-ratio: 16 / 9; }
.frame-web-bar { align-items: center; gap: 5px; padding: 9px 12px; background: var(--board); }
.frame-web-bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.frame-web-copy { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.frame-web-copy strong { color: #fff; font: 700 17px var(--display); text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.frame-web-btn { background: #fff; color: var(--ink); font: 600 12px var(--body); padding: 6px 12px; border-radius: 999px; }
.step-arrow { position: absolute; left: -46px; top: 44%; width: 64px; height: 32px; color: var(--blue); }
.step-price-row { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; padding-top: 18px; }
.step-price { display: flex; flex-direction: column; gap: 2px; }
.step-price span { font-size: 14px; color: var(--ink-3); }
.step-price strong { font: 500 clamp(24px, 2.2vw, 32px)/1.1 var(--mono); color: var(--ink); }
.step-note { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-3); }

.tool-next { margin-top: 72px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; }
.tool-next-head h3 { font: 800 clamp(26px, 2.6vw, 34px)/1.08 var(--display); letter-spacing: -0.03em; margin: 0 0 10px; }
.tool-next-head p { margin: 0; color: var(--ink-2); max-width: 36ch; }
.next-list { list-style: none; margin: 0; padding: 0; }
.next { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 6px 24px; align-items: start; padding: 22px 0; border-top: 1px solid var(--line); }
.next .status { grid-row: 1 / span 2; padding-top: 4px; }
.next h4 { margin: 0; font: 700 21px/1.2 var(--display); letter-spacing: -0.015em; }
.next > p:not(.status) { margin: 0; grid-column: 2; color: var(--ink-2); font-size: 16px; }
.vote {
  grid-column: 3; grid-row: 1 / span 2; align-self: center; display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent; background: var(--blue-fill);
  color: var(--on-blue); font: 650 15px var(--body); cursor: pointer; text-decoration: none; transition: background-color .18s ease, color .18s ease, transform .12s ease;
}
.vote i { font-size: 18px; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.vote:hover { background: var(--blue-fill-hover); }
.vote:active { transform: translateY(1px); }
.vote[aria-pressed="true"] { background: var(--green-soft); color: var(--green); }
.vote[aria-pressed="true"] i { transform: translateY(-2px); }

/* Comunidad */
.community { padding: 112px 0; background: var(--surface); border-block: 1px solid var(--line); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); gap: 16px; }
.cell { margin: 0; border-radius: var(--radius-md); overflow: hidden; }
.cell-photo img { width: 100%; height: 100%; object-fit: cover; }
.cell-a { grid-column: 1 / span 7; grid-row: span 2; }
.cell-b { grid-column: 8 / span 5; }
.cell-c { grid-column: 8 / span 5; }
.cell-d { grid-column: 1 / span 5; }
.cell-e { grid-column: 6 / span 7; }
.cell:not(.cell-photo) { padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.cell i { font-size: 30px; margin-bottom: auto; align-self: flex-start; }
.cell h3 { margin: 18px 0 0; font: 750 clamp(22px, 2vw, 27px)/1.1 var(--display); letter-spacing: -0.02em; }
.cell p { margin: 0; font-size: 16.5px; max-width: 42ch; }
.cell-blue, .cell-plain, .cell-green { color: #fff; }
.cell-blue h3, .cell-plain h3, .cell-green h3 { color: #fff; }
.cell-blue { background: #6e12bf; }
.cell-blue i { color: #e3c8ff; }
.cell-blue p { color: #e4d4f7; }
.cell-plain { background: #14171a; }
.cell-plain i { color: #9fd8ff; }
.cell-plain p { color: #c7cbd1; }
.cell-green { background: #0e6b33; }
.cell-green i { color: #9df0bf; }
.cell-green p { color: #cdeeda; }

/* El reto */
.challenge { padding: 112px 0; }
.challenge-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.challenge-copy p { font-size: 18px; color: var(--ink-2); max-width: 46ch; margin: 0 0 16px; }
.challenge-copy p:first-of-type { color: var(--ink); font-size: 20px; }
.challenge-copy .challenge-juntos { color: var(--ink); font-weight: 600; }
.founder { display: flex; gap: 20px; align-items: flex-end; margin: 36px 0 0; font-size: 15px; color: var(--ink-2); }
.founder img { width: clamp(140px, 22vw, 200px); height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.founder figcaption { padding-bottom: 6px; }
.founder strong { color: var(--ink); }

.ledger { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.ledger-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.ledger-head h3 { margin: 0; font: 750 22px/1.1 var(--display); letter-spacing: -0.02em; }
.ledger-head p { margin: 0; color: var(--ink-3); font-size: 15px; }
.ledger-head strong { color: var(--blue); font-weight: 500; }
.tag-example { display: inline-block; margin-left: 8px; font: 600 12px/1 var(--body); padding: 5px 10px; border-radius: 999px; border: 1.5px solid var(--red); color: var(--red); vertical-align: middle; }
.ledger-day { margin: 8px 0 0; font-size: clamp(40px, 5vw, 64px); line-height: .95; letter-spacing: -0.03em; color: var(--ink); }
.ledger-of { text-align: right; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.calendar { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: clamp(5px, .8vw, 8px); margin-bottom: 16px; }
.day {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); background: var(--board); border: 1px solid var(--line);
  display: grid; place-items: center; font: 500 clamp(11px, 1.3vw, 14px) var(--mono); color: var(--ink-3);
}
.day.is-past::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: calc(50% - 1.5px); height: 3px; border-radius: 2px; background: var(--red);
  transform: rotate(-40deg) scaleX(0); transition: transform .28s cubic-bezier(.65, 0, .35, 1); transition-delay: calc(var(--i) * 14ms);
}
.calendar.is-in .day.is-past::before { transform: rotate(-40deg) scaleX(1); }
.day.is-past { color: color-mix(in oklab, var(--ink-3) 60%, transparent); }
.day.is-today { color: var(--blue-soft-ink); font-weight: 700; }
.day.is-today::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2.5px solid var(--blue);
  transform: scale(.3); opacity: 0; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), opacity .25s ease; transition-delay: calc(var(--i) * 14ms + 120ms);
}
.calendar.is-in .day.is-today::after { transform: scale(1); opacity: 1; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 22px; font-size: 13.5px; color: var(--ink-3); }
.calendar-legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend-strike { width: 16px; height: 3px; border-radius: 2px; background: var(--red); transform: rotate(-40deg); }
.legend-today { width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--blue); }
.ledger-rows { margin: 0; display: grid; }
.ledger-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.ledger-rows dt { color: var(--ink-2); }
.ledger-rows dd { margin: 0; font-size: 18px; font-weight: 500; }
.ledger-note { margin: 14px 0 0; font-size: 13.5px; color: var(--ink-3); }

/* Preguntas */
.faq { padding: 104px 0; background: var(--surface); border-block: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.faq .h2 { position: sticky; top: 100px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 22px 0; font: 650 clamp(19px, 1.7vw, 22px)/1.25 var(--display); letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 14px; height: 14px; border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq-list summary:hover { color: var(--blue); }
.faq-list details p { margin: 0 0 24px; color: var(--ink-2); max-width: 58ch; }

/* Unirme */
.join {
  padding: 104px 0; color: var(--ink);
  background:
    radial-gradient(900px 420px at 85% -40%, color-mix(in srgb, var(--section-glow) 70%, transparent), transparent 64%),
    var(--section-bg);
}
.join-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.join .h2 { color: var(--ink); }
.join-grid > div > p { font-size: 19px; color: var(--ink-2); max-width: 40ch; margin: 0; }
.join-form { display: grid; gap: 16px; background: color-mix(in srgb, var(--ink) 6%, transparent); border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); border-radius: var(--radius-lg); padding: 24px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 15px; }
.opt { font-weight: 400; opacity: .8; }
.field input {
  min-height: 52px; border-radius: var(--radius-md); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font: 400 16px var(--body); padding: 0 16px;
}
.field input::placeholder { color: var(--ink-3); }
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 35%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 35%, transparent); }
.field-error { margin: 0; font-size: 14.5px; color: var(--red); font-weight: 550; }
.join-done { margin: 0; font-size: 16px; font-weight: 550; display: flex; gap: 8px; align-items: flex-start; }
.join-done i { font-size: 22px; }
.join-edit { display: inline; margin: 0; padding: 0; border: 0; background: none; color: var(--blue); font: 600 inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }


/* Rasgo de lapiz alrededor de una palabra clave (idea tomada del mockup de Claude Design) */
.scribble { position: relative; display: inline-block; white-space: nowrap; }
.scribble svg { position: absolute; left: -6%; top: -16%; width: 112%; height: 134%; overflow: visible; pointer-events: none; }
.scribble path {
  fill: none; stroke: var(--red); stroke-width: 4.5; stroke-linecap: round; vector-effect: non-scaling-stroke;
  clip-path: inset(0 100% 0 0); transition: clip-path 1s cubic-bezier(.65, 0, .35, 1);
}
.scribble.is-in path, .no-js .scribble path { clip-path: inset(0 0 0 0); }

/* Responsive */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .tool-step-2, .tool-step-3 { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .step-arrow { display: none; }
  .tool-next, .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .faq .h2 { position: static; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 72px; }
  .hero-visual { max-width: 520px; }
  .board-note { left: 16px; bottom: 16px; }
  .err { grid-template-columns: 1fr; gap: 10px; }
  .challenge-grid, .join-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .cell-a { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
  .cell-b, .cell-c, .cell-e { grid-column: 1 / -1; }
  .cell-d { grid-column: 1 / -1; aspect-ratio: 1; max-height: 420px; }
  .cell:not(.cell-photo) { min-height: 200px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-inner { gap: 12px; }
  .nav-login { display: none; }
  .crossed, .tools, .community, .challenge { padding: 80px 0; }
  .faq, .join { padding: 72px 0; }
  .lede { font-size: 17px; margin-bottom: 36px; }
  .hero-ctas .btn { width: 100%; }
  .opt-grid { grid-template-columns: 1fr; }
  .step-photo img { max-width: 160px; }
  .next { grid-template-columns: minmax(0, 1fr) auto; }
  .next .status { grid-row: auto; grid-column: 1 / -1; padding: 0; }
  .next > p:not(.status) { grid-column: 1; }
  .next h4 { grid-column: 1; }
  .vote { grid-column: 2; grid-row: 2 / span 2; }
  .calendar { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
}
