/* TsBot War — portada de war.tsbot.co. Va DESPUÉS de site.css (mismos tokens, botones, cabecera, pie y FAQ que
   tsbot.co); aquí solo lo propio de War: el tablero animado del héroe y las secciones. Acento coral (War) + teal. */
@property --pc-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
:root { --ok: #3ecf8e; --hot-text: #ff9d8a; --card-line: #1f3544; --us: #1998ae; --them: #ec5a3c; }
.war { overflow-x: hidden; }
.war section[id] { scroll-margin-top: 72px; }
.mono { font-variant-numeric: tabular-nums; }
.up { color: var(--ok); font-style: normal; }
.dn { color: var(--accent-soft); font-style: normal; }

/* cabecera: la marca es texto (TSBOT WAR), como en el producto */
.w-mark { font: 700 24px/1 var(--display); letter-spacing: .05em; color: var(--accent-soft); white-space: nowrap; }
.w-mark b { color: var(--text-strong); font-weight: 700; }
.w-mark:hover { color: var(--accent-soft); }
.w-back { gap: 8px; }
.nav-links a.w-back-m { display: none; }
@media (max-width: 1439px) { .w-back { display: none; } }
/* la cabecera pasa a menú antes que en tsbot.co (lleva la marca + 5 enlaces + idioma + botón) */
@media (max-width: 1240px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav-actions { margin-left: auto; }
  .nav.open .nav-links { display: flex; position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 16px; }
  .nav.open .nav-links a { padding: 12px 0; font-size: 17px; }
  .nav.open .nav-links a.w-back-m { display: inline-flex; }
}
@media (max-width: 700px) {
  .nav.open .nav-links { top: 68px; }
  .w-mark { font-size: 20px; }
}

/* ---------- héroe ---------- */
.w-hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 48px; padding-bottom: 24px; }
.w-hero h1 { font-size: clamp(38px, 5.2vw, 60px); line-height: 1.04; margin: 22px 0 20px; }
.w-hero .lead { max-width: 640px; }
.w-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border-radius: 999px; background: var(--accent-bg); border: 1px solid var(--accent-line); color: #ffd2c6; font: 500 14px/1.3 var(--body); }
.w-pill b { font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 6px 9px; border-radius: 999px; flex-shrink: 0; }
.w-cta { position: relative; overflow: hidden; box-shadow: 0 12px 32px rgba(217,54,12,.3), inset 0 1px 0 rgba(255,255,255,.18); }
.w-cta::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 42%; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255,255,255,.26), transparent); transform: translateX(-130%) skewX(-18deg); animation: cta-sheen 3.6s ease-in-out infinite; }
.w-cta svg { transition: transform .2s; }
.w-cta:hover svg, .w-cta:focus-visible svg { transform: translateX(4px); }
.w-have { margin: 18px 0 0; font-size: 15px; color: var(--muted); }
.w-have a { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 1360px) {
  .w-hero .wrap { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 40px; padding-top: 64px; padding-bottom: 40px; }
  .w-hero h1 { font-size: clamp(52px, 4vw, 60px); }
}

/* ---------- tablero animado ---------- */
.w-board-wrap { min-width: 0; }
.w-board { position: relative; isolation: isolate; overflow: hidden; container-type: inline-size; border: 1px solid var(--card-line); border-radius: 18px;
  background: radial-gradient(ellipse at 100% 0%, rgba(217,54,12,.12), transparent 50%), radial-gradient(ellipse at 0% 100%, rgba(0,124,153,.16), transparent 55%), linear-gradient(180deg, #0f1922, #0a1017);
  box-shadow: 0 30px 80px rgba(0,0,0,.55); font-size: 13px; }
.w-board::before, .w-alert-card::before, .w-plan.on::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1; pointer-events: none;
  background: conic-gradient(from var(--pc-a), transparent 0deg 250deg, rgba(255,77,77,.9) 310deg, rgba(255,111,85,.7) 335deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: pcBorder 9s linear infinite; }
.w-board.is-paused::before, .w-board.is-paused .wb-livedot::after { animation-play-state: paused; }
@keyframes pcBorder { to { --pc-a: 360deg; } }
.wb-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; min-height: 46px; padding: 8px 16px; border-bottom: 1px solid var(--line); background: rgba(10,16,23,.7); }
.wb-mark { font: 700 14px/1 var(--display); letter-spacing: .05em; color: var(--accent-soft); white-space: nowrap; }
.wb-mark b { color: var(--text-strong); }
.wb-tabs { display: none; gap: 4px; min-width: 0; overflow: hidden; }
.wb-tabs i { font-style: normal; font-size: 12px; color: var(--muted); padding: 6px 10px; border-radius: 7px; white-space: nowrap; }
.wb-tabs i.on { background: var(--line); color: var(--text-strong); }
.wb-demo { font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--hot-text); border: 1px solid var(--accent-line); background: var(--accent-bg); border-radius: 999px; padding: 5px 10px; white-space: nowrap; flex-shrink: 0; }
.wb-head { display: flex; align-items: flex-end; gap: 14px 18px; padding: 16px 16px 14px; flex-wrap: wrap; }
.wb-name { flex-grow: 1; min-width: 0; }
.wb-kicker { font: 500 10.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.wb-title { font: 700 22px/1.1 var(--display); color: var(--text-strong); margin-top: 6px; }
.wb-title i { font-style: normal; font-weight: 500; color: var(--muted-2); }
.wb-live { display: flex; align-items: center; gap: 9px; height: 30px; margin-left: auto; padding: 0 12px; border: 1px solid var(--teal-line); border-radius: 9px; background: var(--teal-deep); font-size: 12.5px; color: var(--soft); white-space: nowrap; }
.wb-livedot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }
.wb-livedot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(62,207,142,.55); animation: wbRing 1.8s ease-out infinite; }
@keyframes wbRing { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.wb-counts { display: flex; gap: 18px; }
.wb-counts div { display: flex; flex-direction: column; align-items: flex-end; }
.wb-counts b { font: 700 26px/1 var(--display); display: inline-block; }
.wb-counts b.fr { color: var(--cyan-soft); }
.wb-counts b.en { color: var(--accent-soft); }
.wb-counts b.bump { animation: wbBump .5s ease; }
@keyframes wbBump { 0% { transform: translateY(0); } 35% { transform: translateY(-5px); } 100% { transform: translateY(0); } }
.wb-counts span { font: 500 10px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-top: 4px; white-space: nowrap; }
.wb-lists { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 0 14px 14px; align-items: stretch; transition: opacity .35s; }
.wb-lists.is-reset { opacity: 0; }
.wb-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.wb-list { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(13,20,28,.86); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.wb-list.is-grow { flex-grow: 1; }
.wb-list.is-drop { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,188,214,.14); }
.wb-list.is-alert { border-color: var(--accent-soft); box-shadow: 0 0 0 3px rgba(255,111,85,.16); }
.wb-lhead { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px; }
.wb-lname { font: 600 15px/1 var(--display); color: var(--text-strong); }
.wb-ln { font: 500 11.5px/1 var(--mono); color: var(--hot-text); background: var(--accent-bg); border: 1px solid var(--accent-line); border-radius: 999px; padding: 3px 8px; }
.wb-ln.calm { color: var(--muted); background: transparent; border-color: var(--line-3); }
.wb-spk { margin-left: auto; display: inline-flex; color: var(--muted-2); }
.wb-list.is-alert .wb-spk { color: var(--accent-soft); animation: wbShake .5s ease-in-out 3; }
@keyframes wbShake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.wb-th, .wb-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 28px 62px 30px 16px; gap: 8px; align-items: center; padding: 0 12px; }
.wb-th { height: 26px; font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); border-top: 1px solid var(--line); }
.wb-th .c-note, .wb-row .c-note { display: none; }
.wb-body { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(#000 calc(100% - 20px), transparent); mask-image: linear-gradient(#000 calc(100% - 20px), transparent); }
.wb-list[data-list="bombs"] .wb-body { height: 150px; }
.wb-list[data-list="makers"] .wb-body { height: 60px; -webkit-mask-image: none; mask-image: none; }
.wb-list[data-list="mains"] .wb-body { flex: 1 1 0; min-height: 150px; }
.wb-row { height: 30px; border-top: 1px solid #121b24; transition: background-color 1.2s, opacity .4s; }
.wb-row .c-lvl, .wb-row .c-login, .wb-row .c-dth { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--soft); }
.wb-row .c-name { font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-row .c-exp { display: flex; gap: 3px; font-size: 12px; }
.wb-row .c-exp b { font-weight: 700; }
.wb-row .c-dth { color: var(--muted); text-align: right; }
.wb-row .c-note { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-voc { font: 500 10.5px/1.5 var(--mono); font-style: normal; color: var(--muted); border: 1px solid var(--line-3); border-radius: 5px; text-align: center; display: inline-block; min-width: 28px; }
.wb-row.hot { background: var(--accent-bg); }
.wb-row.hot .c-name { color: var(--hot-text); }
.wb-row.is-in { animation: wbIn .55s cubic-bezier(.2,.8,.2,1) both; }
.wb-row.is-out { opacity: 0; }
.wb-row.is-drag { background: var(--teal-deep); outline: 1px dashed var(--cyan); outline-offset: -1px; opacity: .55; }
.wb-row.is-dead { animation: wbDead 1.6s ease both; }
.wb-row.is-lvl { animation: wbLvl 1.6s ease both; }
.wb-row.is-moved { animation: wbIn .55s cubic-bezier(.2,.8,.2,1) both, wbMoved 2.2s ease both; }
@keyframes wbIn { from { height: 0; opacity: 0; } to { height: 30px; opacity: 1; } }
@keyframes wbDead { 0%, 30%, 60% { background-color: rgba(217,54,12,.55); } 15%, 45% { background-color: rgba(217,54,12,.15); } 100% { background-color: transparent; } }
@keyframes wbLvl { 0%, 40% { background-color: rgba(62,207,142,.22); } 100% { background-color: transparent; } }
@keyframes wbMoved { 0%, 50% { box-shadow: inset 3px 0 0 var(--cyan); } 100% { box-shadow: inset 3px 0 0 transparent; } }
.wb-ghost { position: absolute; z-index: 4; margin: 0; pointer-events: none; border: 1px solid var(--cyan); border-radius: 8px; background: #0e2a38; box-shadow: 0 18px 40px rgba(0,0,0,.6), 0 0 0 3px rgba(34,188,214,.16); transition: transform 1s cubic-bezier(.5,0,.2,1); }
.wb-cursor { position: absolute; right: 26px; top: 14px; width: 18px; height: 18px; color: #fff; filter: drop-shadow(0 2px 3px rgba(0,0,0,.7)); }
.wb-toast { position: absolute; left: 50%; bottom: 14px; z-index: 5; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 28px); padding: 10px 14px; border: 1px solid var(--teal-line); border-radius: 12px; background: rgba(11,35,48,.96); box-shadow: 0 18px 40px rgba(0,0,0,.55); font-size: 13px; color: var(--soft); white-space: nowrap; opacity: 0; transform: translate(-50%, 14px); transition: opacity .3s, transform .3s; }
.wb-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.wb-toast.k-death, .wb-toast.k-alert { border-color: var(--accent-line); background: rgba(42,19,12,.97); }
.wb-toast .k { font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-soft); border: 1px solid var(--teal-line); border-radius: 999px; padding: 4px 8px; flex-shrink: 0; }
.wb-toast.k-death .k, .wb-toast.k-alert .k { color: var(--hot-text); border-color: var(--accent-line); }
.wb-toast .tx { overflow: hidden; text-overflow: ellipsis; }
.wb-toast b { color: var(--text-strong); font-weight: 600; }
.w-board-cap { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--muted-2); }
.w-pause { flex-shrink: 0; font: 500 12px/1 var(--mono); padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line-3); background: transparent; color: var(--soft); cursor: pointer; }
.w-pause:hover { border-color: var(--cyan); color: var(--text-strong); }
/* el tablero se adapta a SU ancho (no al de la ventana): notas en ancho, una sola lista en estrecho */
@container (min-width: 860px) {
  .wb-th, .wb-row { grid-template-columns: 40px minmax(0, 1fr) 28px 62px 30px 16px minmax(0, .8fr); }
  .wb-th .c-note, .wb-row .c-note { display: block; }
  .wb-title { font-size: 26px; }
  .wb-tabs { display: flex; }
}
@container (max-width: 559px) {
  .wb-lists { grid-template-columns: minmax(0, 1fr); }
  .wb-col + .wb-col, .wb-list[data-list="makers"] { display: none; }
  .wb-list[data-list="bombs"] .wb-body { height: 180px; }
  .wb-title { font-size: 19px; }
  .wb-demo { margin-left: auto; }
  .wb-live { order: 3; flex-basis: 100%; margin-left: 0; }
  .wb-name { flex-basis: 100%; }
  .wb-toast { white-space: normal; width: calc(100% - 28px); }
}

/* ---------- el tablero: una fila explicada + tarjetas ---------- */
.w-h2 { font-size: clamp(32px, 3.8vw, 52px); line-height: 1.08; font-weight: 700; margin: 14px 0 18px; }
.w-anat { position: relative; border: 1px solid var(--card-line); border-radius: 16px; background: radial-gradient(ellipse at 100% 0%, rgba(0,124,153,.14), transparent 55%), linear-gradient(180deg, #0f1922, #0b1118); box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.w-anat-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.w-list-name { font: 600 16px/1 var(--display); color: var(--text-strong); }
.w-list-n { font: 500 12px/1 var(--mono); color: var(--hot-text); background: var(--accent-bg); border: 1px solid var(--accent-line); border-radius: 999px; padding: 3px 8px; }
.w-anat-hint { margin-left: auto; font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); text-align: right; }
.w-anat-grid { display: grid; grid-template-columns: .8fr 1.5fr .9fr 1.1fr 1fr .8fr 1.4fr; background: rgba(42,19,12,.35); border-radius: 0 0 16px 16px; }
.w-cell { display: flex; flex-direction: column; gap: 6px; padding: 18px 16px 20px; border-left: 1px solid var(--line); min-width: 0; }
.w-cell:first-child { border-left: 0; }
.w-val { min-height: 30px; display: flex; align-items: center; gap: 6px; font-size: 18px; color: var(--text-strong); }
.w-val.mono { font-family: var(--mono); font-size: 17px; }
.w-val .wb-voc { font-size: 13px; padding: 1px 6px; }
.w-val .w-lv { font-weight: 700; }
.w-note { font-size: 15px; color: var(--soft); }
.w-cell b { font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); margin-top: 6px; }
.w-cell > span:last-child { font-size: 14px; color: var(--muted); }
.w-copy { font: 600 18px/1.2 var(--body); color: var(--hot-text); background: none; border: 0; border-bottom: 1px dashed var(--accent-line); padding: 0 0 2px; cursor: pointer; text-align: left; align-self: flex-start; }
.w-copy:hover { color: #fff; border-bottom-color: var(--accent-soft); }
.w-copied { position: absolute; right: 16px; top: -22px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--teal-line); border-radius: 12px; background: var(--teal-deep); box-shadow: 0 18px 40px rgba(0,0,0,.5); font-size: 13px; color: var(--soft); animation: cta-in .3s ease both; }
.w-copied .mono { color: var(--text-strong); }
.w-feats { margin-top: 20px; }

/* ---------- alertas de sonido ---------- */
.w-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.w-list3 { grid-template-columns: minmax(0, 1fr); }
.w-alert-card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--card-line); border-radius: 18px; background: radial-gradient(ellipse at 100% 0%, rgba(217,54,12,.14), transparent 55%), linear-gradient(180deg, #0f1922, #0b1118); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.w-alert-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.w-alert-title { font: 700 24px/1.1 var(--display); color: var(--text-strong); margin-top: 8px; }
.w-bell { display: inline-flex; padding: 10px; border-radius: 12px; border: 1px solid var(--accent-line); background: var(--accent-bg); color: var(--accent-soft); transform-origin: 50% 0; animation: wbBell 3.2s ease-in-out infinite; }
@keyframes wbBell { 0%, 60%, 100% { transform: rotate(0); } 66%, 78% { transform: rotate(-11deg); } 72%, 84% { transform: rotate(11deg); } 90% { transform: rotate(-4deg); } }
.w-rule { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.w-rule-head { display: flex; align-items: center; gap: 12px; }
.w-rule-t { font: 600 15px/1.2 var(--display); color: var(--text-strong); }
.w-on { font: 500 11px/1 var(--mono); color: var(--ok); }
.w-eq { margin-left: auto; display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.w-eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--accent-soft); transform-origin: 50% 100%; transform: scaleY(.25); }
.w-eq.is-on i { animation: wbEq .9s ease-in-out infinite; }
.w-eq i:nth-child(2) { animation-delay: .15s; } .w-eq i:nth-child(3) { animation-delay: .3s; } .w-eq i:nth-child(4) { animation-delay: .1s; } .w-eq i:nth-child(5) { animation-delay: .4s; }
@keyframes wbEq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.w-rule-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--soft); }
.w-rule-k { color: var(--muted); }
.w-num { min-width: 44px; height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; border: 1px solid var(--line-3); border-radius: 8px; background: var(--bg); font: 500 14px/1 var(--mono); color: var(--text-strong); }
.w-sel { height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--line-3); border-radius: 8px; background: var(--bg-2); font-weight: 600; color: var(--text); }
.w-sw { position: relative; width: 38px; height: 22px; border-radius: 11px; background: var(--line-2); flex-shrink: 0; }
.w-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); }
.w-sw.on { background: var(--teal); }
.w-sw.on::after { left: 19px; background: #fff; }
.w-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.w-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--teal-line); border-radius: 999px; background: var(--teal-deep); color: var(--cyan-soft); font-size: 13px; }
.w-chip.off { border-color: var(--line-2); background: var(--bg-2); color: var(--muted); }
.w-log { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 6px; }
.w-log-body { height: 84px; overflow: hidden; display: flex; flex-direction: column; }
.w-log-line { display: flex; gap: 12px; align-items: baseline; height: 28px; flex-shrink: 0; font-size: 13px; color: var(--soft); white-space: nowrap; overflow: hidden; }
.w-log-line .mono { color: var(--muted-2); font-family: var(--mono); flex-shrink: 0; }
.w-log-line span:last-child { overflow: hidden; text-overflow: ellipsis; }
.w-log-line.is-in { animation: wbLog .5s cubic-bezier(.2,.8,.2,1) both; }
.w-log-line.is-in span:last-child { color: var(--text-strong); }
@keyframes wbLog { from { height: 0; opacity: 0; } to { height: 28px; opacity: 1; } }
.w-muted { font: 500 11px/1.3 var(--mono); letter-spacing: .06em; color: var(--muted-2); padding: 0 16px; }

/* ---------- estadísticas ---------- */
.w-stats-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-bottom: 28px; }
.w-stats-head .section-head { margin-bottom: 0; }
.w-tabs { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); }
.w-tab { height: 40px; padding: 0 22px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 600 16px/1 var(--display); cursor: pointer; }
.w-tab[aria-selected="true"] { background: var(--accent-bg); color: #ffd2c6; box-shadow: inset 0 0 0 1px var(--accent-line); }
.w-tabs .wb-demo { margin: 0 8px 0 10px; }
.w-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.w-kpis { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.w-kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.w-kpi, .w-chart { border: 1px solid var(--card-line); border-radius: 14px; background: radial-gradient(ellipse at 100% 0%, rgba(0,124,153,.14), transparent 55%), linear-gradient(180deg, #0f1922, #0b1118); }
.w-kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.w-kpi span { font: 500 10.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.w-kpi b { font: 600 34px/1.1 var(--body); color: var(--text-strong); }
.w-chart { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.w-chart-wide { grid-column: 1 / -1; }
.w-chart-head { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; }
.w-chart-head h3 { font-size: 19px; font-weight: 600; margin-right: auto; }
.w-lg { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--soft); }
.sq { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.sq.us { background: var(--us); } .sq.them { background: var(--them); }
.w-bars { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 0 10px; }
.w-yax { display: flex; flex-direction: column; justify-content: space-between; height: 180px; font: 500 11px/1 var(--mono); color: var(--muted-2); text-align: right; }
.w-plot { height: 180px; display: flex; align-items: flex-end; justify-content: space-around; border-bottom: 1px solid var(--line-3); background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 45px; }
.w-day { display: flex; align-items: flex-end; gap: 2px; height: 100%; }
.w-bar { width: clamp(5px, 1.1vw, 14px); border-radius: 4px 4px 0 0; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .15s; }
.w-bar.us { background: var(--us); } .w-bar.them { background: var(--them); }
.is-drawn .w-bar { transform: scaleY(1); }
.w-bar:hover, .w-hb i:hover, .w-heat i:hover { filter: brightness(1.3); }
.w-xax { grid-column: 2; display: flex; justify-content: space-around; margin-top: 8px; font: 500 11px/1 var(--mono); color: var(--muted-2); }
.w-xax span { width: 24px; text-align: center; }
.w-hbars { display: flex; flex-direction: column; gap: 12px; }
.w-hbars-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; }
.w-hb { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 44px; gap: 12px; align-items: center; font-size: 13px; color: var(--soft); }
.w-hb > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-hb i { display: block; height: 14px; border-radius: 0 4px 4px 0; transform-origin: 0 50%; transform: scaleX(0); transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .15s; }
.w-hb i.us { background: var(--us); } .w-hb i.them { background: var(--them); }
.is-drawn .w-hb i { transform: scaleX(1); }
.w-kk .w-hb { grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 78px; }
.w-hb > span:last-child { font-family: var(--mono); white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; color: var(--text-strong); }
.w-ramp { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.w-ramp i { width: 10px; height: 10px; border-radius: 2px; }
.w-ramp span:first-child { margin-right: 4px; } .w-ramp span:last-child { margin-left: 4px; }
.h0 { background: #10222d; } .h1 { background: #12465a; } .h2 { background: #0f6c84; } .h3 { background: #1998ae; } .h4 { background: #6fd6e8; }
.w-heat { display: grid; grid-template-columns: 40px repeat(24, minmax(0, 1fr)); gap: 2px; align-items: center; }
.w-heat i { height: 20px; border-radius: 3px; opacity: 0; transition: opacity .5s, filter .15s; }
.is-drawn .w-heat i, .w-heat.is-drawn i { opacity: 1; }
.w-heat span { font: 500 10.5px/1 var(--mono); color: var(--muted-2); }
.w-heat span.hr { text-align: center; padding-top: 4px; }
.w-seg { grid-column: 1 / -1; display: inline-flex; justify-self: start; }
.w-seg button { height: 38px; padding: 0 16px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--muted); font: 500 14px/1 var(--body); cursor: pointer; }
.w-seg button + button { border-left: 0; }
.w-seg button:first-child { border-radius: 10px 0 0 10px; } .w-seg button:last-child { border-radius: 0 10px 10px 0; }
.w-seg button[aria-pressed="true"] { background: var(--teal-deep); border-color: var(--teal-line); color: var(--cyan-soft); }

/* ---------- acceso ---------- */
.w-wid { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--accent-line); border-radius: 12px; background: var(--accent-bg); }
.w-wid-k { flex-basis: 100%; font: 500 10.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--hot-text); }
.w-wid-code { font-size: 19px; letter-spacing: .08em; color: var(--text-strong); margin-right: auto; }
.w-wid-ok { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ok); }
.w-reqs { display: flex; flex-direction: column; gap: 8px; }
.step .w-wid, .step .w-reqs { margin-top: 4px; }
.w-req { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font-size: 14px; }
.w-req-n { font-weight: 600; color: var(--text-strong); }
.w-req-g { grid-column: 1; font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.w-req-s { grid-column: 2; grid-row: 1 / span 2; font-size: 13px; font-weight: 600; text-align: right; }
.w-req-s.ok { color: var(--ok); } .w-req-s.wait { color: var(--hot-text); }

/* ---------- planes ---------- */
.w-plans-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-bottom: 32px; }
.w-plans-head .section-head { margin-bottom: 0; }
.w-toggle { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--teal-line); border-radius: 14px; background: var(--teal-deep); }
.w-toggle-txt { display: flex; flex-direction: column; gap: 4px; font-size: 15px; font-weight: 600; color: var(--text-strong); }
.w-toggle-txt b { font: 500 12px/1.3 var(--mono); letter-spacing: .06em; color: var(--cyan-soft); }
.w-switch { position: relative; width: 54px; height: 30px; border-radius: 15px; border: 0; padding: 0; background: var(--line-3); cursor: pointer; flex-shrink: 0; transition: background-color .2s; }
.w-switch span { position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--soft); transition: transform .2s, background-color .2s; }
.w-switch[aria-checked="true"] { background: var(--cyan); }
.w-switch[aria-checked="true"] span { transform: translateX(24px); background: #fff; }
.w-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.w-plan { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 18px; padding: 28px; border: 1px solid var(--card-line); border-radius: 16px; background: radial-gradient(ellipse at 100% 0%, rgba(0,124,153,.14), transparent 55%), linear-gradient(180deg, #0f1922, #0b1118); box-shadow: 0 24px 60px rgba(0,0,0,.4); transition: transform .25s; }
.w-plan:hover { transform: translateY(-3px); }
.w-plan.on { border-color: var(--accent-line); background: radial-gradient(ellipse at 100% 0%, rgba(217,54,12,.22), transparent 60%), linear-gradient(180deg, #1a100d, #0f0b0a); }
.w-plan-name { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.w-plan.on .w-plan-name { color: var(--hot-text); }
.w-plan-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.w-price { font: 700 52px/1 var(--display); color: var(--text-strong); font-variant-numeric: tabular-nums; }
.w-old { font: 500 20px/1 var(--mono); color: var(--muted-2); }
.w-plan-price span { font-size: 14px; color: var(--muted); }
.w-plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.w-plan li { position: relative; padding-left: 26px; font-size: 15px; color: var(--soft); }
.w-plan li::before { content: ""; position: absolute; left: 3px; top: .42em; width: 11px; height: 6px; border-left: 2.5px solid var(--cyan); border-bottom: 2.5px solid var(--cyan); transform: rotate(-45deg); }
.w-plan.on li::before { border-color: var(--accent-soft); }
.w-plans-fine { margin-top: 20px; font-size: 14px; }

/* ---------- mes gratis ---------- */
.w-free { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; padding: 56px 64px; border: 1px solid var(--accent-line); border-radius: 22px; background: radial-gradient(ellipse at 88% 50%, rgba(217,54,12,.3), transparent 55%), linear-gradient(120deg, #1a100d, #0d141c 70%); }
.w-free .w-h2 { margin-top: 14px; }
.w-free .lead { max-width: 720px; color: #d5c5c0; }
.w-free-mascot { width: 240px; animation: float2 6s ease-in-out infinite; }

/* ---------- seguridad ---------- */
.w-sec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.w-sec-i { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 2px solid var(--teal-line); }
.w-sec-i b { font: 600 20px/1.2 var(--display); color: var(--text-strong); }
.w-sec-i span { font-size: 15px; color: var(--muted); }
.w-band { border-color: var(--accent-line); background: linear-gradient(120deg, var(--accent-bg), var(--teal-deep)); }
.w-band .eyebrow { color: var(--hot-text); }
.footer a img { display: block; }

/* pantallas grandes */
@media (min-width: 1600px) {
  .w-hero .wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; padding-top: 80px; }
  .w-hero h1 { font-size: clamp(64px, 3.6vw, 76px); }
  .w-have { font-size: 16px; }
  .w-h2 { font-size: clamp(52px, 3vw, 64px); }
  .w-board { font-size: 14px; }
  .wb-row .c-lvl, .wb-row .c-login, .wb-row .c-dth, .wb-row .c-note { font-size: 13px; }
  .w-cell > span:last-child, .w-sec-i span, .w-plan li { font-size: 16px; }
  .w-kpi b { font-size: 40px; }
  .w-plot, .w-yax { height: 220px; }
  .w-plot { background-size: 100% 55px; }
  .w-free { padding: 64px 72px; }
  .w-free-mascot { width: 280px; }
  .w-sec-i b { font-size: 22px; }
}

/* tableta y teléfono */
@media (max-width: 1100px) {
  .w-anat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .w-cell { border-top: 1px solid var(--line); }
  .w-cell:nth-child(-n+4) { border-top: 0; }
  .w-cell:nth-child(5) { border-left: 0; }
  .w-cell:last-child { grid-column: span 2; }
  .w-split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .w-sec { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .w-plans { grid-template-columns: minmax(0, 1fr); }
  .w-free-mascot { width: 180px; }
  .w-kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .w-hero .wrap { padding-top: 28px; gap: 32px; }
  .w-pill { font-size: 13px; }
  .w-trust-x, .w-hero .trust span[aria-hidden="true"] { display: none; }
  .w-hero .trust { gap: 4px 18px; }
  .war .cta-row .btn { white-space: normal; text-align: center; line-height: 1.25; }
  .w-board-cap { flex-direction: column; align-items: flex-start; }
  .w-anat-hint { display: none; }
  .w-anat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w-cell:nth-child(-n+4) { border-top: 1px solid var(--line); }
  .w-cell:nth-child(-n+2) { border-top: 0; }
  .w-cell:nth-child(odd) { border-left: 0; }
  .w-cell:nth-child(5) { border-left: 0; }
  .w-cell:last-child { grid-column: 1 / -1; }
  .w-cell { padding: 14px 14px 16px; }
  .w-copied { left: 12px; right: 12px; top: -30px; flex-wrap: wrap; }
  .w-alert-card { padding: 16px; }
  .w-alert-title { font-size: 21px; }
  .w-panel { grid-template-columns: minmax(0, 1fr); }
  .w-kpis { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .w-kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w-kpi { padding: 14px 16px; }
  .w-kpi b { font-size: 28px; }
  .w-chart { padding: 16px; }
  .w-chart-wide { grid-column: auto; }
  .w-day:nth-child(-n+7) { display: none; }
  .w-xax span:nth-child(-n+7) { display: none; }
  .w-bar { width: 12px; }
  .w-hbars-2 { grid-template-columns: minmax(0, 1fr); }
  .w-hb { grid-template-columns: minmax(0, 110px) minmax(0, 1fr) 40px; gap: 10px; }
  .w-kk .w-hb { grid-template-columns: minmax(0, 100px) minmax(0, 1fr) 70px; }
  .w-heat { grid-template-columns: 30px repeat(24, minmax(0, 1fr)); gap: 1px; }
  .w-heat i { height: 16px; border-radius: 2px; }
  .w-heat span.hr { visibility: hidden; }
  .w-heat span.hr.k { visibility: visible; }
  .w-tabs { width: 100%; }
  .w-tab { flex-grow: 1; padding: 0 12px; }
  .w-toggle { width: 100%; }
  .w-plan { padding: 22px; }
  .w-price { font-size: 44px; }
  .w-free { grid-template-columns: minmax(0, 1fr); padding: 30px 22px; }
  .w-free-mascot { display: none; }
  .w-sec { grid-template-columns: minmax(0, 1fr); }
  .w-seg { width: 100%; }
  .w-seg button { flex-grow: 1; padding: 0 8px; }
}
