/* Chess Coach · landing. Claro con secciones oscuras, titulares en serif, acento azul eléctrico. */
:root {
  --bg: #f4f4f2;
  --surface: #ffffff;
  --ink: #141414;
  --muted: #5f6368;
  --line: #e2e2de;
  --accent: #0a3cff;
  --accent-ink: #ffffff;
  --accent-soft: #e8edff;
  --dark: #0d0e10;
  --dark-2: #16181b;
  --dark-3: #1f2226;
  --dark-line: #2b2e33;
  --dark-muted: #9aa0a8;
  --good: #3fa34d;
  --bad: #e04f3d;
  --radius: 16px;
  --f-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Logotipo: solo letras */
.logo { font-family: var(--f-display); font-size: 27px; line-height: 1; letter-spacing: -.02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo img { display: none; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font: 600 15px/1 var(--f-body); text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 20px -8px rgba(10,60,255,.6); }
.btn.primary:hover { background: #0030e6; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: #cfcfca; }
.btn.light { background: #fff; color: var(--ink); }
.btn.small { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }

/* Cabecera */
header.top { position: sticky; top: 0; z-index: 30; background: rgba(244,244,242,.94); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
header.top.scrolled { border-bottom-color: var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.top-links { display: flex; align-items: center; gap: 26px; font-size: 14.5px; font-weight: 500; }
.top-links a { text-decoration: none; color: var(--muted); }
.top-links a:hover { color: var(--ink); }
.top-links .lang { color: var(--ink); }
@media (max-width: 860px) { .top-links a:not(.btn):not(.lang) { display: none; } }
@media (max-width: 480px) { header.top .wrap { gap: 10px; } .top-links { gap: 10px; } .top-links .btn.small { padding: 0 11px; } }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 500; text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.pill .new { background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; letter-spacing: .02em; }
.pill:hover { border-color: #cfcfca; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--f-display); letter-spacing: -.035em; line-height: .98; text-wrap: balance; }
h1 { font-size: clamp(48px, 8.4vw, 104px); margin: 26px auto 22px; max-width: 12.5em; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
h2 { font-size: clamp(38px, 5.6vw, 68px); }
h3 { font: 600 18px/1.3 var(--f-body); letter-spacing: -.01em; }
.lede { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--muted); max-width: 37em; margin: 0 auto 34px; line-height: 1.55; }

/* Assistant choice on the landing. The checked radio exposes its native directory link. */
.assistant-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.assistant-picker label { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 8px 14px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; font: 600 15px/1 var(--f-body); cursor: pointer; }
.assistant-picker label:hover { border-color: var(--accent); }
.assistant-picker input:checked + label { background: var(--accent-soft); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.assistant-picker input:focus-visible + label { outline: 3px solid #6b8cff; outline-offset: 2px; }
@media (forced-colors: active) {
  .assistant-picker input:checked + label { border: 3px double ButtonText; }
}
.assistant-picker [data-connect] { display: none; }
.assistant-picker input[value="claude"]:checked ~ [data-connect="claude"],
.assistant-picker input[value="chatgpt"]:checked ~ [data-connect="chatgpt"] { display: inline-flex; }
.start { width: fit-content; max-width: 100%; grid-template-columns: auto auto auto; margin: 0 auto; padding: 8px; background: var(--surface); border: 2px solid var(--accent);
  border-radius: 18px; box-shadow: 0 0 0 6px rgba(10,60,255,.08), 0 20px 40px -24px rgba(10,60,255,.45); }
.modal .assistant-picker .btn { grid-column: 1 / -1; margin-top: 6px; }
@media (max-width: 480px) {
  .start { width: 100%; max-width: 360px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start .btn { grid-column: 1 / -1; }
}
@media (max-width: 620px) { .pill { font-size: 12.5px; } }
.props { list-style: none; padding: 0; margin: 40px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 940px; text-align: left; }
.props li { display: flex; gap: 12px; padding: 4px 22px; }
.props li + li { border-left: 1px solid var(--line); }
.props .ico { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.props b { display: block; font-size: 14.5px; }
.props span { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; }
@media (max-width: 760px) { .props { grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 420px; } .props li + li { border-left: 0; } }

/* Funciona con */
.works { padding: 34px 0 48px; }
.works .wrap { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 40px; }
.works .label { font-size: 13px; color: var(--muted); font-weight: 500; }
.works ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
.works li { display: flex; align-items: center; gap: 10px; font: 700 20px/1 var(--f-body); letter-spacing: -.02em; color: #1d1f23; }
.works .brand { width: 28px; height: 28px; flex-shrink: 0; }

/* Transición de píxeles */
.pixels { height: 180px; position: relative; background: linear-gradient(to bottom, var(--bg), var(--bg) 18%, var(--dark) 100%); }
.pixels canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Secciones oscuras */
.dark { background: var(--dark); color: #f2f2f0; }
.dark .sub, .dark .muted { color: var(--dark-muted); }
.section { padding: 96px 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px/1 var(--f-mono); letter-spacing: .02em; padding: 6px 10px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); margin: 0 0 20px; }
.dark .kicker { background: var(--dark-3); border-color: var(--dark-line); color: var(--dark-muted); }
.head { max-width: 760px; margin-bottom: 48px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sub { font-size: 18px; color: var(--muted); margin: 18px 0 0; max-width: 38em; }
.head.center .sub { margin-left: auto; margin-right: auto; }

/* Ventana de conversación con la demo */
.window { background: #faf9f7; color: var(--ink); border-radius: 20px; overflow: hidden; box-shadow: 0 40px 100px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06); }
.window .bar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; background: #efede9; border-bottom: 1px solid #e2dfd9; }
.window .bar span { width: 11px; height: 11px; border-radius: 50%; background: #d5d2cc; }
.window .bar b { margin-left: 10px; font: 600 13px var(--f-body); color: #6b6964; }
.convo { padding: 26px clamp(14px, 3vw, 34px) 30px; max-width: 1040px; margin: 0 auto; }
.bubble { margin-left: auto; width: fit-content; max-width: 80%; background: #ebe8e2; padding: 11px 16px; border-radius: 16px; font-size: 15.5px; }
.tool { display: flex; align-items: center; gap: 8px; font: 500 12.5px var(--f-mono); color: #8a877f; margin: 22px 0 10px; }
.tool::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.convo iframe { display: block; width: 100%; height: 760px; border: 1px solid #e4e1db; border-radius: 14px; background: #fff; }
.answer { margin-top: 20px; font-size: 16px; line-height: 1.6; max-width: 46em; }
.answer p { margin: 0 0 10px; }
.answer b { font-weight: 650; }
@media (max-width: 700px) { .convo iframe { height: 1300px; } }

/* Cifras */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 72px; border-top: 1px solid var(--dark-line); }
.stats div { padding: 28px 22px 0 0; }
.stats div + div { padding-left: 22px; border-left: 1px solid var(--dark-line); }
.stats strong { display: block; font: 400 clamp(48px, 6vw, 76px)/1 var(--f-display); letter-spacing: -.03em; }
.stats span { display: block; margin-top: 8px; color: var(--dark-muted); font-size: 14.5px; max-width: 16em; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stats div:nth-child(3) { border-left: 0; padding-left: 0; } }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; min-height: 290px; }
.step .num { font: 500 12.5px var(--f-mono); color: var(--accent); }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.step .ui { margin-top: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 13px; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } .step { min-height: 0; } }
.ui .url { min-width: 0; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 6px 6px 6px 10px; font: 12px var(--f-mono); overflow: hidden; }
.ui .url code { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui .url button { flex-shrink: 0; border: 0; background: var(--ink); color: #fff; font: 600 12px var(--f-body); padding: 6px 10px; border-radius: 7px; cursor: pointer; }
.ui .msg { background: #fff; border: 1px solid var(--line); border-radius: 12px 12px 4px 12px; padding: 8px 11px; margin-left: 18%; }
.ui .row { display: flex; align-items: center; gap: 8px; padding: 7px 4px; border-bottom: 1px solid var(--line); }
.ui .row:last-child { border-bottom: 0; }
.ui .row .r { margin-left: auto; font: 600 11px var(--f-mono); padding: 2px 7px; border-radius: 6px; }
.r.w { background: #e3f3e6; color: #2b7a37; } .r.l { background: #fbe6e3; color: #b3382c; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* Bento de funciones */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.cell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.cell p { margin: 0; color: var(--muted); font-size: 15px; }
.cell.w4 { grid-column: span 4; } .cell.w3 { grid-column: span 3; } .cell.w2 { grid-column: span 2; }
.cell .tag { align-self: flex-start; font: 600 11.5px var(--f-body); padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.cell .tag.plus { background: #111; color: #fff; }
@media (max-width: 900px) { .cell.w4, .cell.w3, .cell.w2 { grid-column: span 6; } }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.compare > div { border-radius: 12px; padding: 14px 16px; font-size: 14.5px; }
.compare small { display: block; font: 600 11px var(--f-mono); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.compare .before { background: var(--bg); color: var(--muted); font-family: var(--f-mono); }
.compare .after { background: var(--accent-soft); color: #0c1b5e; }
@media (max-width: 560px) { .compare { grid-template-columns: 1fr; } }
.why { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; font-size: 14px; }
.why .q { align-self: flex-end; background: #ebe8e2; padding: 8px 12px; border-radius: 12px 12px 4px 12px; }
.why .a { background: var(--bg); padding: 10px 12px; border-radius: 12px 12px 12px 4px; }
.bars { display: grid; gap: 9px; margin-top: 8px; }
.bars div { display: grid; grid-template-columns: 92px 1fr 30px; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.bars i { height: 8px; border-radius: 4px; background: var(--bg); overflow: hidden; display: block; }
.bars i::after { content: ""; display: block; height: 100%; width: var(--v); background: var(--accent); border-radius: 4px; }
.bars b { color: var(--ink); font-weight: 600; text-align: right; }
.mini-board { display: grid; grid-template-columns: repeat(8, 1fr); width: 100%; max-width: 180px; aspect-ratio: 1; border-radius: 8px; overflow: hidden; margin-top: 8px; }
.mini-board span { display: grid; place-items: center; font-size: 16px; line-height: 1; }
.mini-board .l { background: #ebecd0; } .mini-board .d { background: #779556; }
.mini-board .t { box-shadow: inset 0 0 0 3px var(--accent); }

/* Precios */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; }
.plan h3 { font-size: 16px; }
.plan .price { font: 400 58px/1 var(--f-display); letter-spacing: -.03em; margin: 16px 0 4px; }
.plan .price small { font: 400 15px var(--f-body); color: var(--muted); letter-spacing: 0; }
.plan .for { color: var(--muted); font-size: 14.5px; margin: 0 0 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; font-size: 15px; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230a3cff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan .btn { margin-top: auto; width: 100%; }
.plan.pro { background: var(--dark); color: #f2f2f0; border-color: var(--dark); box-shadow: 0 30px 60px -30px rgba(10,60,255,.55); }
.plan.pro .for, .plan.pro .price small { color: var(--dark-muted); }
.plan.pro li::before { background-color: rgba(255,255,255,.1); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan .badge { margin-left: 8px; font: 700 11px var(--f-body); padding: 3px 8px; border-radius: 999px; background: var(--accent); color: #fff; vertical-align: 2px; }
.fine { text-align: center; color: var(--muted); font-size: 14px; margin: 22px auto 0; max-width: 46em; }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin: 0 auto; } }
/* Precios: selector anual/mensual (anual por defecto) y dos planes */
.billing { display: flex; width: fit-content; margin: 0 auto 26px; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.billing button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--muted); font: 600 14.5px/1 var(--f-body); padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.billing button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.billing button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.billing .save { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--good); color: #fff; }
.plans.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; margin: 0 auto; }
.plan .for s { opacity: .8; }
@media (max-width: 900px) { .plans.two { grid-template-columns: minmax(0, 1fr); max-width: 460px; } }
/* Precios: comparación con Chess.com Diamond */
.vs-block { max-width: 900px; margin: 64px auto 0; display: grid; gap: 8px; }
.vs-title { font: 400 clamp(30px, 4vw, 42px)/1.05 var(--f-display); letter-spacing: -.03em; text-align: center; margin: 0; }
.vs-sub { text-align: center; color: var(--muted); margin: 0 0 14px; }
.vs-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.vs { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 6px 0; font-size: 14.5px; }
table.vs { table-layout: fixed; }
table.vs thead th:first-child { width: 31%; }
table.vs th, table.vs td { padding: 13px 10px; text-align: center; vertical-align: middle; border-bottom: 1px solid var(--line); }
table.vs tbody th { text-align: left; font-weight: 500; padding-left: 0; }
table.vs thead th { border-bottom: 0; border-radius: 16px 16px 0 0; padding: 14px 8px 12px; font-size: 13px; font-weight: 500; line-height: 1.25; vertical-align: bottom; }
table.vs thead th b { display: block; font-size: 18px; font-weight: 700; }
table.vs thead th:first-child { background: none; }
table.vs thead .vs-free { background: var(--surface); border: 1px solid var(--line); border-bottom: 0; }
table.vs thead .vs-pro { background: var(--accent); color: #fff; }
table.vs thead .vs-cc { background: #302e2b; color: #fff; }
table.vs thead .vs-cc img { display: block; height: 31px; width: auto; margin: 0 auto 2px; }
table.vs tbody td { background: var(--surface); }
table.vs tbody td.vs-pro { background: var(--accent-soft); font-weight: 600; }
table.vs tbody td.vs-cc { background: #efeeeb; }
table.vs tbody tr:last-child th, table.vs tbody tr:last-child td { border-bottom: 0; }
table.vs tbody tr:last-child td { border-radius: 0 0 16px 16px; }
table.vs .y { color: var(--good); font-weight: 700; font-size: 19px; }
table.vs .n { color: var(--bad); font-weight: 700; font-size: 17px; }
table.vs .d { color: var(--muted); }
table.vs small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; margin-top: 2px; }
table.vs small.tight { margin-top: 0; font-size: 13px; }
table.vs .vs-price { font-size: 20px; }
table.vs td.vs-pro .vs-price, table.vs .vs-trial { color: var(--accent); }
.vs-note { color: var(--muted); font-size: 12.5px; text-align: center; max-width: 62em; margin: 10px auto 0; }
.vs-short { display: none; }
@media (max-width: 640px) {
  table.vs { min-width: 0; font-size: 12.5px; border-spacing: 3px 0; }
  table.vs thead th:first-child { width: 29%; }
  table.vs th, table.vs td { padding: 10px 3px; }
  table.vs tbody th { font-size: 12.5px; line-height: 1.3; }
  table.vs thead th { font-size: 10.5px; padding: 10px 3px 8px; border-radius: 12px 12px 0 0; }
  table.vs thead th b { font-size: 14px; }
  table.vs thead .vs-cc img { height: 19px; }
  table.vs .vs-price { font-size: 15px; }
  table.vs small, table.vs small.tight { font-size: 11px; }
  table.vs td small:not(.tight) { display: none; }
  table.vs tbody tr:last-child td { border-radius: 0 0 12px 12px; }
  .vs-long { display: none; } .vs-short { display: inline; }
}

/* Preguntas */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--f-body); color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 22px; color: var(--muted); max-width: 44em; }

/* Empezar */
.install { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.install ol { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.install li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 14px; color: var(--dark-muted); }
.install li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--dark-3); border: 1px solid var(--dark-line); color: #fff; font: 600 14px var(--f-body); }
.install li b { color: #fff; font-weight: 600; }
.copybox { background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 16px; padding: 20px; }
.copybox + .copybox { margin-top: 14px; }
.copybox label { display: block; font: 500 12px var(--f-mono); color: var(--dark-muted); margin-bottom: 10px; letter-spacing: .02em; }
.copyrow { display: flex; gap: 10px; align-items: center; }
.copyrow code { flex: 1; min-width: 0; font: 13.5px/1.5 var(--f-mono); color: #fff; overflow-wrap: anywhere; }
.copybox.flash { box-shadow: 0 0 0 2px var(--accent); transition: box-shadow .3s; }
@media (max-width: 900px) { .install { grid-template-columns: minmax(0, 1fr); } }

/* Llamada final y pie */
.final { text-align: center; padding: 110px 0 96px; }
.final h2 { font-size: clamp(46px, 7vw, 92px); }
.final p { color: var(--dark-muted); margin: 18px auto 30px; }
footer { background: var(--dark); color: var(--dark-muted); border-top: 1px solid var(--dark-line); padding: 40px 0 48px; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; align-items: flex-start; }
footer .logo { color: #fff; font-size: 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
footer a { color: var(--dark-muted); text-decoration: none; }
footer a:hover { color: #fff; }
footer .legal-note { flex-basis: 100%; font-size: 12.5px; color: #6f747c; max-width: 60em; }
.language-switch { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 26px; font-size: 14px; }
.language-switch a { color: var(--accent); text-underline-offset: 3px; }
.language-switch a[aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: none; }
footer .language-switch { flex-basis: 100%; margin: 0; }
footer .language-switch a { color: var(--dark-muted); }
footer .language-switch a:hover, footer .language-switch a[aria-current="page"] { color: #fff; }

/* Demo: aviso al pulsar las preguntas */
.demo-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: min(560px, calc(100% - 32px)); z-index: 40;
  background: #fff; color: var(--ink); padding: 14px 18px; border-radius: 14px; font-size: 15px; box-shadow: 0 20px 50px rgba(0,0,0,.35); border-left: 4px solid var(--accent); }

/* Aparición suave */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Páginas legales */
.legal { max-width: 760px; padding-top: 40px; padding-bottom: 80px; }
.legal h1 { font-size: clamp(40px, 6vw, 64px); margin: 0 0 24px; text-align: left; }
.legal h2 { font-size: 30px; margin: 34px 0 10px; }
.legal p, .legal li { color: #3d4045; }

/* Inicio guiado */
.modal { width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; border: 0; border-radius: 22px; padding: 30px; background: var(--surface); color: var(--ink);
  box-shadow: 0 40px 120px rgba(0,0,0,.45); }
.modal::backdrop { background: rgba(13,14,16,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal h2 { font-size: clamp(34px, 5vw, 46px); margin: 0 32px 24px 0; }
.mclose { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--bg); font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }
.copyrow .btn + .btn { margin-left: 0; }
@media (max-width: 520px) { .modal { padding: 26px 18px 18px; } }

/* Plan recomendado */
.plan.featured { border: 2px solid var(--accent); box-shadow: 0 30px 70px -30px rgba(10,60,255,.5); position: relative; }
@media (min-width: 901px) { .plan.featured { transform: translateY(-10px); } .plan.featured.reveal:not(.in) { transform: translateY(8px); } }
.plan .badge.soft { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }


[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; }
.hero h1 { max-width: 13em; }
.hero .lede { max-width: 40em; }
.assistant-shortcut { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.install-title { margin-top: 28px; font-size: 19px; }
.install-lead { margin: 12px 0 0; color: var(--dark-muted); line-height: 1.55; }
.install-lead b { color: #fff; font-weight: 600; }
.install-copy { padding-top: 46px; }
.install-note { font-size: 14px; margin: 16px 0 0; }
.connect-action { margin: 26px 0 0; }
.chat-launch { margin-top: 15px; }
.connection-status { font-size: 13px; min-height: 1.4em; margin: 10px 0 0; color: var(--muted); }
.dark .connection-status { color: var(--dark-muted); }
.btn:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #6b8cff; outline-offset: 4px; }
@media (max-width: 900px) { .install-copy { padding-top: 0; } }
@media (max-width: 520px) { .copyrow { flex-wrap: wrap; } .copyrow code { flex-basis: 70%; } }

/* Ficha de jugador: el perfil que crece cada día */
.loop .step { min-height: 0; }
.profile-window { margin-top: 28px; }
.profile-caption { margin: 14px 0 0; font-size: 13.5px; color: #6b6964; }
.pstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 48px; border-top: 1px solid var(--line); }
.pstats div { padding: 26px 22px 0 0; }
.pstats div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.pstats strong { display: block; font: 400 clamp(40px, 5vw, 64px)/1 var(--f-display); letter-spacing: -.03em; }
.pstats span { display: block; margin-top: 8px; color: var(--muted); font-size: 14.5px; max-width: 16em; }
@media (max-width: 760px) { .pstats { grid-template-columns: 1fr 1fr; row-gap: 24px; } .pstats div:nth-child(3) { border-left: 0; padding-left: 0; } }

/* Reseñas reales del tablero */
.reviews { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.review { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.review .stars { color: #d99a00; letter-spacing: 2px; font-size: 17px; }
.review blockquote { margin: 0; font: 400 28px/1.15 var(--f-display); letter-spacing: -.01em; }
.review figcaption { margin-top: auto; color: var(--muted); font-size: 13.5px; }
.review.score { background: var(--ink); color: #fff; border-color: var(--ink); }
.review.score strong { font: 400 clamp(56px, 6vw, 84px)/1 var(--f-display); letter-spacing: -.03em; }
.review.score p { margin: 0; color: #c9c9c4; font-size: 14.5px; }
@media (max-width: 980px) { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .reviews { grid-template-columns: minmax(0, 1fr); } }
