/* WOPE Herramientas */
.wt-page *, .wt-page *::before, .wt-page *::after, .wt-modal * { box-sizing: border-box; }
.wt-page { padding-top: calc(var(--nav-h, 76px) + 32px); padding-bottom: 80px; min-height: 80vh; }
.wt-intro { margin-bottom: 40px; }
.wt-intro .w3-display { font-size: clamp(48px, 9vw, 112px); }
.wt-intro p { max-width: 720px; color: var(--w3-soft); }
.wt-kicker { font-family: var(--w3-mono); font-size: 13px; color: var(--w3-orange); text-transform: uppercase; margin: 0 0 10px; letter-spacing: .5px; }
.wt-mono { font-family: var(--w3-mono); font-size: 13px; text-transform: uppercase; }
.wt-muted { color: var(--w3-muted); }
.wt-small { font-size: 14px; }
.wt-o { color: var(--w3-orange); }
.wt-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wt-row.is-center { justify-content: center; }
.wt-sp { margin-top: 24px; }
.wt-loading { color: var(--w3-muted); font-family: var(--w3-mono); }

/* hub */
.wt-group { margin: 0 0 56px; }
.wt-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; border-bottom: 1px solid var(--w3-line); padding-bottom: 12px; margin-bottom: 18px; }
.wt-group-head h2 { font-size: clamp(32px, 5vw, 52px); }
.wt-group-head p { margin: 0; }
.wt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.wt-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 18px 18px; background: var(--w3-card); border: 1px solid var(--w3-line); border-radius: 6px; color: var(--w3-text); text-decoration: none; transition: transform .25s var(--w3-ease), border-color .25s, background .25s; min-height: 150px; }
.wt-card:hover, .wt-card:focus-visible { transform: translateY(-3px); border-color: var(--w3-orange); background: var(--w3-line); color: var(--w3-text); }
.wt-card.is-hot { border-color: var(--w3-violet); background: linear-gradient(160deg, rgba(70, 7, 199, .35), var(--w3-card) 60%); }
.wt-card.is-hot::after { content: "nuevo"; position: absolute; top: 12px; right: 12px; font: 600 11px var(--w3-mono); text-transform: uppercase; background: var(--w3-orange); color: var(--w3-bg); padding: 3px 7px; border-radius: 3px; }
.wt-ico { font-size: 28px; line-height: 1; }
.wt-card-t { font-family: var(--w3-display); font-weight: var(--w3-dw, 900); text-transform: uppercase; font-size: 26px; line-height: .95; }
.wt-card-d { color: var(--w3-muted); font-size: 14px; line-height: 1.45; }

/* tool shell */
.wt-back { display: inline-block; font: 500 13px var(--w3-mono); text-transform: uppercase; color: var(--w3-muted); text-decoration: none; margin-bottom: 24px; }
.wt-back:hover { color: var(--w3-orange); }
.wt-tool-head { margin-bottom: 28px; }
.wt-h1 { font-size: calc(clamp(44px, 8vw, 92px) * var(--w3-tscale, 1)); }
.wt-lead { max-width: 720px; color: var(--w3-soft); font-size: 18px; margin: 12px 0 0; }
.wt-body { min-height: 200px; }
.wt-foot { margin-top: 48px; }

/* bloques */
.wt-box { background: var(--w3-card); border: 1px solid var(--w3-line); border-radius: 6px; padding: 20px; margin-bottom: 16px; }
.wt-box h3 { font-family: var(--w3-display); font-weight: var(--w3-dw, 900); text-transform: uppercase; font-size: 28px; line-height: 1; margin: 0 0 10px; }
.wt-box h4 { font: 600 14px var(--w3-mono); text-transform: uppercase; color: var(--w3-orange); margin: 14px 0 6px; }
.wt-box p { margin: 0 0 10px; }
.wt-box.is-violet { background: linear-gradient(150deg, rgba(70, 7, 199, .45), var(--w3-card)); border-color: rgba(120, 80, 255, .5); }
.wt-box.is-orange { border-color: var(--w3-orange); }
.wt-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.wt-grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }

/* formularios */
.wt-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.wt-field > span { font: 500 12px var(--w3-mono); text-transform: uppercase; color: var(--w3-muted); }
.wt-in, .wt-sel, .wt-ta { width: 100%; background: var(--w3-bg); color: var(--w3-text); border: 1px solid var(--w3-line); border-radius: 4px; padding: 11px 12px; font: 16px var(--w3-sans); }
.wt-in:focus, .wt-sel:focus, .wt-ta:focus { outline: 2px solid var(--w3-orange); outline-offset: 1px; border-color: transparent; }
.wt-ta { min-height: 120px; resize: vertical; }
.wt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 4px; border: 2px solid var(--w3-orange); background: var(--w3-orange); color: var(--w3-bg); font: 600 14px var(--w3-mono); text-transform: uppercase; cursor: pointer; transition: transform .15s, background .2s; }
.wt-btn:hover { background: var(--w3-orange-2); border-color: var(--w3-orange-2); }
.wt-btn:active { transform: scale(.97); }
.wt-btn.is-ghost { background: transparent; color: var(--w3-text); border-color: var(--w3-line); }
.wt-btn.is-ghost:hover { border-color: var(--w3-text); }
.wt-btn.is-violet { background: var(--w3-violet); border-color: var(--w3-violet); color: var(--w3-tinta); }
.wt-btn.is-big { min-height: 64px; font-size: 18px; padding: 14px 28px; }
.wt-btn[disabled] { opacity: .4; cursor: not-allowed; }
.wt-seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.wt-seg button { min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--w3-line); background: transparent; color: var(--w3-soft); font: 500 13px var(--w3-mono); text-transform: uppercase; cursor: pointer; }
.wt-seg button.on, .wt-seg button[aria-pressed="true"] { background: var(--w3-orange); border-color: var(--w3-orange); color: var(--w3-bg); }
.wt-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; padding: 6px 0; }
.wt-check input { width: 22px; height: 22px; accent-color: var(--w3-orange); flex: 0 0 auto; margin-top: 2px; }

/* niveles */
.wt-lv { display: inline-block; font: 600 11px var(--w3-mono); text-transform: uppercase; padding: 3px 8px; border-radius: 3px; background: var(--w3-line); color: var(--w3-soft); white-space: nowrap; }
.wt-lv.lv-0 { background: #2c3b2f; color: #b9f0c8; }
.wt-lv.lv-1 { background: #4a3410; color: #ffd27a; }
.wt-lv.lv-2 { background: #4b1f1f; color: #ffb3a8; }
.wt-lv.lv-3 { background: #2c1a5c; color: #d8c8ff; }
.wt-lv.lv-4 { background: #f0a418; color: var(--w3-bg); }

/* listas de ejercicios */
.wt-ex { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--w3-line); border-radius: 6px; background: var(--w3-card); margin-bottom: 8px; }
.wt-ex-main { flex: 1 1 auto; min-width: 0; }
.wt-ex-n { font-weight: 600; line-height: 1.3; }
.wt-ex-d { color: var(--w3-muted); font-size: 14px; margin-top: 2px; }
.wt-ex-dose { font: 700 18px var(--w3-mono); color: var(--w3-orange); white-space: nowrap; }
.wt-vbtn { flex: 0 0 auto; border: 1px solid var(--w3-line); background: transparent; color: var(--w3-text); border-radius: 999px; padding: 7px 12px; font: 500 12px var(--w3-mono); text-transform: uppercase; cursor: pointer; }
.wt-vbtn:hover { border-color: var(--w3-orange); color: var(--w3-orange); }
.wt-ex.is-done { opacity: .55; }
.wt-ex.is-done .wt-ex-n { text-decoration: line-through; }

/* escalera */
.wt-ladder { position: relative; padding-left: 28px; }
.wt-ladder::before { content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 3px; background: linear-gradient(var(--w3-orange), var(--w3-violet)); border-radius: 2px; }
.wt-step { position: relative; }
.wt-step::before { content: ""; position: absolute; left: -24px; top: 22px; width: 13px; height: 13px; border-radius: 50%; background: var(--w3-bg); border: 3px solid var(--w3-orange); }
.wt-step.is-mine::before { background: var(--w3-orange); box-shadow: 0 0 0 6px rgba(240, 164, 24, .25); }
.wt-step.is-mine .wt-ex { border-color: var(--w3-orange); }
.wt-lvhead { font: 600 13px var(--w3-mono); text-transform: uppercase; margin: 22px 0 8px; color: var(--w3-soft); }

/* reloj grande */
.wt-clock { text-align: center; padding: 28px 16px; border-radius: 8px; background: var(--w3-bg); border: 1px solid var(--w3-line); margin-bottom: 16px; transition: background .3s; }
.wt-clock.is-work { background: linear-gradient(160deg, #3a2a05, var(--w3-bg)); border-color: var(--w3-orange); }
.wt-clock.is-rest { background: linear-gradient(160deg, #1d0a4a, var(--w3-bg)); border-color: var(--w3-violet); }
.wt-clock-phase { font: 600 15px var(--w3-mono); text-transform: uppercase; color: var(--w3-soft); min-height: 22px; }
.wt-clock-t { font-family: var(--w3-display); font-weight: var(--w3-dw, 900); font-size: clamp(88px, 22vw, 220px); line-height: .9; font-variant-numeric: tabular-nums; letter-spacing: 2px; }
.wt-clock-sub { font-family: var(--w3-mono); color: var(--w3-muted); min-height: 22px; }
.wt-progress { height: 8px; background: var(--w3-card); border-radius: 4px; overflow: hidden; margin-top: 14px; }
.wt-progress > i { display: block; height: 100%; background: var(--w3-orange); width: 0; transition: width .3s; }

/* tablero 30 días */
.wt-board30 { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.wt-day { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid var(--w3-line); background: var(--w3-card); color: var(--w3-soft); font-family: var(--w3-display); font-weight: var(--w3-dw, 900); font-size: 30px; cursor: pointer; position: relative; padding: 0; }
.wt-day small { font: 500 9px var(--w3-mono); text-transform: uppercase; color: var(--w3-muted); }
.wt-day.is-done { background: var(--w3-orange); color: var(--w3-bg); border-color: var(--w3-orange); }
.wt-day.is-done small { color: #3b2700; }
.wt-day.is-next { border: 2px solid var(--w3-orange); animation: wt-pulse 1.8s infinite; }
.wt-day.is-locked { opacity: .35; cursor: default; }
.wt-day.is-sel { outline: 3px solid var(--w3-violet-text); outline-offset: 2px; }
.wt-day.is-test::after { content: "★"; position: absolute; top: 3px; right: 6px; font-size: 12px; color: var(--w3-violet-text); }
@keyframes wt-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(240, 164, 24, .5); } 50% { box-shadow: 0 0 0 8px rgba(240, 164, 24, 0); } }

/* camino tipo mapa */
.wt-map { position: relative; max-width: 520px; margin: 0 auto; padding: 10px 0 40px; }
.wt-world { text-align: center; margin: 34px 0 18px; padding: 16px; border-radius: 8px; background: linear-gradient(150deg, rgba(70, 7, 199, .5), var(--w3-bg-2)); border: 1px solid rgba(120, 80, 255, .45); }
.wt-world h3 { font-family: var(--w3-display); font-weight: var(--w3-dw, 900); text-transform: uppercase; font-size: 34px; margin: 0; line-height: 1; }
.wt-world p { margin: 4px 0 0; color: var(--w3-soft); font-size: 14px; }
.wt-nodes { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.wt-node-wrap { position: relative; display: flex; flex-direction: column; align-items: center; transform: translateX(calc(var(--o, 0) * min(110px, 26vw))); }
.wt-node { width: 74px; height: 74px; border-radius: 50%; border: none; cursor: pointer; font-family: var(--w3-display); font-weight: var(--w3-dw, 900); font-size: 30px; color: var(--w3-bg); background: var(--w3-orange); box-shadow: 0 6px 0 #9b6400; transition: transform .15s; display: flex; align-items: center; justify-content: center; }
.wt-node:hover { transform: translateY(-2px); }
.wt-node:active { transform: translateY(4px); box-shadow: 0 2px 0 #9b6400; }
.wt-node.is-locked { background: var(--w3-line); color: #666; box-shadow: 0 6px 0 var(--w3-card); cursor: default; }
.wt-node.is-locked:hover { transform: none; }
.wt-node.is-cur { background: var(--w3-violet); color: var(--w3-tinta); box-shadow: 0 6px 0 #26046e, 0 0 0 8px rgba(70, 7, 199, .35); animation: wt-bob 1.6s ease-in-out infinite; }
.wt-node.is-test { border-radius: 18px; transform: rotate(45deg); }
.wt-node.is-test > span { transform: rotate(-45deg); }
.wt-node.is-test:hover { transform: rotate(45deg) translateY(-2px); }
.wt-node.is-boss { width: 96px; height: 96px; font-size: 40px; }
.wt-stars { font-size: 14px; letter-spacing: 2px; color: var(--w3-orange); min-height: 18px; margin-top: 10px; }
.wt-stars .off { color: var(--w3-line); }
.wt-node-tag { position: absolute; top: -26px; white-space: nowrap; font: 700 11px var(--w3-mono); text-transform: uppercase; background: var(--w3-text); color: var(--w3-bg); padding: 4px 8px; border-radius: 4px; }
@keyframes wt-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
.wt-hud { position: sticky; top: calc(var(--nav-h, 76px) + 8px); z-index: 5; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 14px; background: rgb(var(--w3-bg-rgb) / .92); backdrop-filter: blur(6px); border: 1px solid var(--w3-line); border-radius: 999px; margin-bottom: 10px; font: 600 14px var(--w3-mono); }
.admin-bar .wt-hud { top: calc(var(--nav-h, 76px) + 40px); }

/* sesión */
.wt-session-ex { border: 1px solid var(--w3-line); border-radius: 8px; padding: 16px; margin-bottom: 12px; background: #1a1a1a; }
.wt-session-ex.is-done { border-color: var(--w3-orange); }
.wt-sets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.wt-set { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--w3-line); background: transparent; color: var(--w3-soft); font: 700 15px var(--w3-mono); cursor: pointer; }
.wt-set.on { background: var(--w3-orange); border-color: var(--w3-orange); color: var(--w3-bg); }
.wt-rest { position: sticky; bottom: 12px; z-index: 6; display: none; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--w3-violet); color: var(--w3-tinta); border-radius: 999px; font: 700 16px var(--w3-mono); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.wt-rest.on { display: flex; }
.wt-rest button { background: rgb(var(--w3-tinte) / .15); color: var(--w3-tinta); border: 0; border-radius: 999px; padding: 6px 12px; font: 600 12px var(--w3-mono); cursor: pointer; }

/* quiz */
.wt-q { font-size: clamp(22px, 3.4vw, 30px); font-weight: 700; line-height: 1.25; margin: 0 0 18px; }
.wt-opts { display: grid; gap: 10px; }
.wt-opt { text-align: left; padding: 14px 16px; border-radius: 6px; border: 1px solid var(--w3-line); background: var(--w3-card); color: var(--w3-text); font: 16px var(--w3-sans); cursor: pointer; }
.wt-opt:hover { border-color: var(--w3-soft); }
.wt-opt.ok { border-color: #3fbf6a; background: #16301f; }
.wt-opt.bad { border-color: #d0574a; background: #351a17; }

/* árbol de trucos */
.wt-tree { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.wt-skill { text-align: left; padding: 14px; border-radius: 6px; border: 1px solid var(--w3-line); background: var(--w3-card); color: var(--w3-text); cursor: pointer; font: 15px var(--w3-sans); display: flex; flex-direction: column; gap: 6px; }
.wt-skill:hover, .wt-skill.on { border-color: var(--w3-orange); }
.wt-skill b { font-family: var(--w3-display); font-size: 24px; text-transform: uppercase; line-height: 1; }
.wt-diff { color: var(--w3-orange); letter-spacing: 1px; }

/* mapa 4x4 */
.wt-matrix { display: grid; grid-template-columns: 110px repeat(4, minmax(150px, 1fr)); gap: 6px; min-width: 760px; }
.wt-matrix-wrap { overflow-x: auto; padding-bottom: 8px; }
.wt-mh { font: 600 12px var(--w3-mono); text-transform: uppercase; color: var(--w3-muted); padding: 8px; display: flex; align-items: center; }
.wt-mc { background: var(--w3-card); border: 1px solid var(--w3-line); border-radius: 6px; padding: 10px; font-size: 14px; }
.wt-mc a, .wt-mc button { color: var(--w3-text); }
.wt-mc ul { margin: 0; padding-left: 16px; }
.wt-mc li { margin-bottom: 4px; }

/* semáforo */
.wt-light { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 8px; border: 2px solid; margin-top: 14px; }
.wt-light.g { border-color: #3fbf6a; background: #142a1b; }
.wt-light.y { border-color: #f0c818; background: #2e2a10; }
.wt-light.r { border-color: #e0574a; background: #331614; }
.wt-light-dot { width: 54px; height: 54px; border-radius: 50%; flex: 0 0 auto; }
.wt-light.g .wt-light-dot { background: #3fbf6a; }
.wt-light.y .wt-light-dot { background: #f0c818; }
.wt-light.r .wt-light-dot { background: #e0574a; }
.wt-range { width: 100%; accent-color: var(--w3-orange); height: 32px; }
.wt-scale { display: flex; justify-content: space-between; font: 12px var(--w3-mono); color: var(--w3-muted); }

/* gráfico */
.wt-chart { width: 100%; height: auto; display: block; }
.wt-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.wt-table th, .wt-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--w3-line); }
.wt-table th { font: 600 12px var(--w3-mono); text-transform: uppercase; color: var(--w3-muted); }
.wt-table-wrap { overflow-x: auto; }

/* juegos */
.wt-card-big { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 24px; border-radius: 10px; background: var(--w3-text); color: var(--w3-bg); border: 4px solid var(--w3-bg); box-shadow: 0 0 0 2px var(--w3-orange); margin-bottom: 16px; }
.wt-card-big.is-red { color: #b3261e; }
.wt-card-big.is-dark { background: var(--w3-card); color: var(--w3-text); box-shadow: 0 0 0 2px var(--w3-violet); border-color: #000; }
.wt-card-val { font-family: var(--w3-display); font-weight: var(--w3-dw, 900); font-size: clamp(56px, 12vw, 110px); line-height: .9; }
.wt-card-ex { font-size: clamp(20px, 3vw, 28px); font-weight: 700; line-height: 1.2; }
.wt-dice { display: flex; gap: 16px; justify-content: center; margin: 10px 0 16px; }
.wt-die { width: 110px; height: 110px; border-radius: 18px; background: var(--w3-text); color: var(--w3-bg); display: flex; align-items: center; justify-content: center; font-family: var(--w3-display); font-weight: var(--w3-dw, 900); font-size: 64px; box-shadow: 0 6px 0 #9b958a; }
.wt-die.roll { animation: wt-roll .5s; }
@keyframes wt-roll { 0% { transform: rotate(0) scale(.8); } 60% { transform: rotate(320deg) scale(1.1); } 100% { transform: rotate(360deg) scale(1); } }
.wt-wheel-box { position: relative; max-width: 420px; margin: 0 auto 16px; }
.wt-wheel-box canvas { width: 100%; height: auto; display: block; }
.wt-wheel-pin { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 30px solid var(--w3-text); filter: drop-shadow(0 2px 2px #000); }
.wt-score { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.wt-team { border-radius: 10px; padding: 16px; text-align: center; border: 2px solid var(--w3-line); }
.wt-team input { background: transparent; border: 0; color: inherit; font: 700 20px var(--w3-sans); text-align: center; width: 100%; }
.wt-team-n { font-family: var(--w3-display); font-weight: var(--w3-dw, 900); font-size: 96px; line-height: 1; font-variant-numeric: tabular-nums; }
.wt-bingo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-width: 560px; }
.wt-bingo button { aspect-ratio: 1; border-radius: 6px; border: 1px solid var(--w3-line); background: var(--w3-card); color: var(--w3-text); font: 600 12px/1.25 var(--w3-sans); padding: 6px; cursor: pointer; }
.wt-bingo button.on { background: var(--w3-orange); color: var(--w3-bg); border-color: var(--w3-orange); }
.wt-signal { min-height: 46vh; border-radius: 12px; display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--w3-display); font-weight: var(--w3-dw, 900); text-transform: uppercase; font-size: clamp(56px, 13vw, 150px); line-height: .9; padding: 20px; transition: background .2s; background: var(--w3-card); margin-bottom: 16px; }
.wt-signal.red { background: #c62b22; color: var(--w3-tinta); }
.wt-signal.green { background: #2c9a4f; color: var(--w3-tinta); }
.wt-signal.violet { background: var(--w3-violet); color: var(--w3-tinta); }
.wt-signal.orange { background: var(--w3-orange); color: var(--w3-bg); }

/* producto al final */
.wt-cta { border-top: 1px dashed var(--w3-line); padding-top: 28px; margin-top: 8px; }
.wt-cta-lead { font-size: 20px; font-weight: 600; margin: 0 0 16px; max-width: 720px; }
.wt-cta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.wt-cta-item { display: flex; gap: 16px; align-items: flex-start; background: var(--w3-card); border: 1px solid var(--w3-line); border-radius: 8px; padding: 14px; }
.wt-cta-item h3 { font-family: var(--w3-display); font-weight: var(--w3-dw, 900); text-transform: uppercase; font-size: 24px; line-height: 1; margin: 4px 0 8px; }
.wt-cta-item h3 a { color: var(--w3-text); text-decoration: none; }
.wt-cta-item h3 a:hover { color: var(--w3-orange); }
.wt-cta-img { flex: 0 0 92px; }
.wt-cta-img img { width: 92px; height: auto; border-radius: 3px; display: block; box-shadow: 0 6px 16px rgba(0, 0, 0, .5); }
.wt-cta-img.is-course { flex-basis: 140px; }
.wt-cta-img.is-course img { width: 140px; }
.wt-mks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wt-mk { display: inline-block; padding: 7px 11px; border-radius: 3px; background: var(--w3-violet); color: var(--w3-tinta); font: 600 12px var(--w3-mono); text-transform: uppercase; text-decoration: none; }
.wt-mk:hover { filter: brightness(1.15); color: var(--w3-tinta); }
.wt-mk.is-hot { background: #f04e23; }
.wt-mk.is-light { background: var(--w3-orange); color: var(--w3-bg); }
.wt-cta.is-soft { margin-top: 24px; }

/* modal y confeti */
.wt-modal { position: fixed; inset: 0; z-index: 9999; background: rgb(var(--w3-tinte) / .85); display: flex; align-items: center; justify-content: center; padding: 16px; }
.wt-modal-in { position: relative; width: min(960px, 100%); }
.wt-modal-v { position: relative; aspect-ratio: 16 / 9; background: #000; }
.wt-modal-v iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wt-modal-x { position: absolute; top: -44px; right: 0; background: transparent; color: var(--w3-tinta); border: 1px solid #fff; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; font-size: 16px; }
.wt-modal-t { color: var(--w3-soft); margin: 10px 0 0; }
.wt-confeti { position: fixed; inset: 0; pointer-events: none; z-index: 9998; overflow: hidden; }
.wt-confeti i { position: absolute; top: -12px; width: 9px; height: 14px; animation: wt-fall 1.8s linear forwards; }
@keyframes wt-fall { to { transform: translateY(105vh) rotate(720deg); } }

/* pantalla completa / TV */
.wt-tv:fullscreen { background: var(--w3-bg); padding: 4vh 4vw; overflow: auto; }
.wt-tv:fullscreen .wt-clock-t { font-size: 34vh; }
.wt-tv:fullscreen .wt-clock-phase { font-size: 4vh; }
.wt-tv:fullscreen .wt-tv-ex { font-size: 6vh; }
.wt-tv-ex { font-family: var(--w3-display); font-weight: var(--w3-dw, 900); text-transform: uppercase; font-size: clamp(32px, 6vw, 64px); line-height: 1; text-align: center; margin: 8px 0; }

/* imprimir */
@media print {
	.w3-header, .w3-footer, .w3-wa, .wt-back, .wt-foot, .wt-noprint { display: none !important; }
	body { background: #fff !important; color: #000 !important; }
	.wt-page { padding-top: 0; }
	.wt-box, .wt-ex { background: #fff !important; color: #000 !important; border-color: var(--w3-muted) !important; }
}

@media (max-width: 600px) {
	.wt-node { width: 64px; height: 64px; font-size: 26px; }
	.wt-node.is-boss { width: 84px; height: 84px; }
	.wt-cta-item { flex-direction: column; }
	.wt-die { width: 88px; height: 88px; font-size: 52px; }
}
@media (prefers-reduced-motion: reduce) {
	.wt-node.is-cur, .wt-day.is-next { animation: none; }
	.wt-confeti { display: none; }
	.wt-card, .wt-btn { transition: none; }
}

/* ---------- 3.3: colores por tipo de herramienta ---------- */
.wt-jump { position: static; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; }
.wt-jump a { --gc: #f0a418; padding: 9px 14px; border-radius: 999px; border: 2px solid var(--gc); color: var(--w3-text); text-decoration: none; font: 600 13px var(--w3-mono); text-transform: uppercase; }
.wt-jump a:hover { background: var(--gc); color: var(--w3-tinta); }
.wt-group { --gc: #f0a418; scroll-margin-top: calc(var(--nav-h, 76px) + 20px); }
.wt-group-head { border-bottom: 3px solid var(--gc); }
.wt-group-head h2 { color: var(--w3-text); }
.wt-group-head h2::before { content: ""; display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--gc); margin-right: .3em; vertical-align: .05em; }
.wt-card { border-top: 5px solid var(--gc); background: linear-gradient(170deg, color-mix(in srgb, var(--gc) 22%, var(--w3-card)) 0%, var(--w3-card) 65%); }
.wt-card:hover, .wt-card:focus-visible { border-color: var(--gc); background: linear-gradient(170deg, color-mix(in srgb, var(--gc) 38%, var(--w3-card)) 0%, var(--w3-line) 70%); }
/* Sobre naranja la letra va oscura, de día y de noche. */
.wt-card.is-star { --sc: var(--w3-orange); background: var(--sc); border-color: var(--sc); color: var(--w3-bg); }
.wt-card.is-star .wt-card-d { color: color-mix(in srgb, var(--w3-bg) 90%, var(--sc)); }
.wt-card.is-star:hover { background: color-mix(in srgb, var(--sc) 85%, #fff); color: var(--w3-bg); border-color: var(--sc); }
.wt-card.is-star::after { content: "★ destacada"; position: absolute; top: 12px; right: 12px; font: 600 11px var(--w3-mono); text-transform: uppercase; background: var(--w3-text); color: var(--sc); padding: 3px 7px; border-radius: 3px; }
.wt-tool-head { --gc: #f0a418; }
.wt-gk a { color: var(--gc); text-decoration: none; filter: brightness(1.25); }
.wt-gk a:hover { text-decoration: underline; }

/* ---------- 3.7 · sección Juegos: caminos resaltados ---------- */
.wt-jump a.is-resalta { background: var(--gc); color: var(--w3-tinta); box-shadow: 0 0 18px color-mix(in srgb, var(--gc) 55%, transparent); }
.wt-jump a.is-otra { border-style: dashed; border-color: var(--w3-line); color: var(--w3-muted); }
.wt-group.is-resalta { padding: 22px clamp(14px, 3vw, 28px) 26px; border-radius: 14px; background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--gc) 38%, transparent), transparent 60%), #17121f; border: 1px solid color-mix(in srgb, var(--gc) 55%, transparent); }
.wt-group.is-resalta .wt-card { background: linear-gradient(155deg, var(--gc) 0%, #3a0b9e 100%); border-color: color-mix(in srgb, var(--gc) 70%, #fff); color: var(--w3-tinta); }
/* La destacada manda sobre el fondo del grupo: va del color de acento, con letra oscura. */
.wt-group.is-resalta .wt-card.is-star { background: var(--sc); border-color: var(--sc); color: var(--w3-bg); }
.wt-group.is-resalta .wt-card .wt-card-d { color: #e9e0ff; }
/* La destacada va rellena del color de acento: su texto, oscuro. */
.wt-group.is-resalta .wt-card.is-star .wt-card-d { color: color-mix(in srgb, #161616 88%, var(--sc)); }
.wt-group.is-resalta .wt-card:hover, .wt-group.is-resalta .wt-card:focus-visible { background: linear-gradient(155deg, color-mix(in srgb, var(--gc) 80%, #fff) 0%, #4607c7 100%); color: var(--w3-tinta); }

/* ---------- 3.7 · juegos de pantalla con cuerpo ---------- */
.wt-ar-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.wt-ar-stats { display: flex; gap: 14px; font: 600 14px var(--w3-mono); text-transform: uppercase; }
.wt-ar-stats b { color: var(--w3-orange); font-size: 18px; }
.wt-seg { display: inline-flex; border: 1px solid var(--w3-line); border-radius: 999px; overflow: hidden; }
.wt-seg button { background: none; border: 0; color: var(--w3-muted); padding: 8px 14px; font: 600 12px var(--w3-mono); text-transform: uppercase; cursor: pointer; }
.wt-seg button.is-on { background: var(--w3-orange); color: var(--w3-bg); }
.wt-mem { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; width: 100%; margin: 0 auto; }
.wt-mem button { aspect-ratio: 1; border-radius: 10px; border: 2px solid var(--w3-line); background: linear-gradient(150deg, #4607c7, #2a0a73); color: var(--w3-tinta); font-size: clamp(26px, 7vw, 44px); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 4px; transition: transform .25s; }
.wt-mem button span { font: 600 clamp(9px, 2.2vw, 12px)/1.1 var(--w3-sans); text-align: center; }
.wt-mem button.is-back { font-size: 0; background: repeating-linear-gradient(45deg, #4607c7 0 10px, #3a06a8 10px 20px); }
.wt-mem button.is-back::after { content: "W"; font: 900 clamp(22px, 6vw, 34px) var(--w3-display); color: #f0a418; }
.wt-mem button.is-ok { background: var(--w3-card); border-color: #1fa463; opacity: .75; cursor: default; }
.wt-mines { display: grid; gap: 3px; margin: 0 auto; max-width: 520px; touch-action: manipulation; }
.wt-mines button { aspect-ratio: 1; border: 0; border-radius: 4px; background: #2d2d2d; color: var(--w3-tinta); font: 800 clamp(13px, 3.6vw, 20px) var(--w3-mono); cursor: pointer; padding: 0; box-shadow: inset 0 -3px 0 rgba(0,0,0,.35); }
.wt-mines button:hover { background: #383838; }
.wt-mines button.is-open { background: var(--w3-text); color: var(--w3-bg); box-shadow: none; cursor: default; }
.wt-mines button.is-boom { background: #e5484d; }
.wt-mines button.n1 { color: #2f80ed; } .wt-mines button.n2 { color: #1fa463; } .wt-mines button.n3 { color: #e5484d; } .wt-mines button.n4 { color: #4607c7; } .wt-mines button.n5 { color: #8a5a00; }
.wt-pen { position: fixed; inset: 0; z-index: 9999; background: rgba(10,10,10,.92); display: flex; align-items: center; justify-content: center; padding: 20px; }
.wt-pen-in { max-width: 460px; width: 100%; text-align: center; background: var(--w3-card); border: 2px solid var(--w3-orange); border-radius: 14px; padding: 26px 20px; }
.wt-pen-ico { font-size: 64px; line-height: 1; }
.wt-pen-t { font: 900 clamp(30px, 8vw, 46px)/1 var(--w3-display); text-transform: uppercase; margin: 10px 0 6px; }
.wt-pen-c { font: 800 64px var(--w3-mono); color: var(--w3-orange); margin: 6px 0; }
.wt-simon { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 420px; margin: 0 auto; }
.wt-simon button { aspect-ratio: 1; border: 0; border-radius: 18px; color: var(--w3-tinta); font: 700 clamp(13px, 3.5vw, 17px)/1.2 var(--w3-sans); cursor: pointer; opacity: .55; transition: opacity .12s, transform .12s; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; }
.wt-simon button i { font-style: normal; font-size: clamp(30px, 9vw, 48px); }
.wt-simon button.is-lit { opacity: 1; transform: scale(1.04); box-shadow: 0 0 30px currentColor; }
.wt-ttt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 420px; margin: 0 auto; }
.wt-ttt button { aspect-ratio: 1; border-radius: 10px; border: 2px solid var(--w3-line); background: var(--w3-card); color: var(--w3-text); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 6px; }
.wt-ttt button small { font: 500 clamp(10px, 2.6vw, 13px)/1.15 var(--w3-sans); color: var(--w3-muted); }
.wt-ttt button b { font: 900 clamp(40px, 13vw, 76px)/1 var(--w3-display); }
.wt-ttt button.p0 b { color: var(--w3-orange); } .wt-ttt button.p1 b { color: #9b6bff; }
.wt-ttt button.is-win { border-color: #1fa463; background: #13281c; }
.wt-hang-w { font: 800 clamp(28px, 8vw, 48px) var(--w3-mono); letter-spacing: .25em; text-align: center; margin: 14px 0; word-break: break-word; }
.wt-keys { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 640px; margin: 0 auto; }
.wt-keys button { width: 42px; height: 46px; border-radius: 6px; border: 1px solid #3a3a3a; background: #242424; color: var(--w3-text); font: 700 18px var(--w3-mono); cursor: pointer; }
.wt-keys button:disabled { opacity: .25; cursor: default; }
.wt-keys button.is-ok { background: #1fa463; opacity: 1; color: var(--w3-tinta); }
.wt-hang-vidas { text-align: center; font-size: 26px; letter-spacing: 4px; }
.wt-sl { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; max-width: 620px; margin: 0 auto 14px; }
.wt-sl div { position: relative; aspect-ratio: 1; border-radius: 6px; background: var(--w3-bg-2); padding: 4px; font: 600 10px/1.1 var(--w3-mono); color: var(--w3-muted); overflow: hidden; }
.wt-sl div.is-up { background: #13281c; } .wt-sl div.is-down { background: #2c1416; }
.wt-sl div em { font-style: normal; position: absolute; right: 4px; bottom: 2px; font-size: clamp(14px, 4vw, 22px); }
.wt-sl div .wt-fichas { position: absolute; left: 3px; bottom: 3px; display: flex; gap: 2px; flex-wrap: wrap; }
.wt-sl div .wt-fichas i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid #000; }
.wt-reto-banner { background: linear-gradient(120deg, #0aa4b8, #4607c7); color: var(--w3-tinta); border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; }
.wt-reto-banner b { font-size: 1.15em; }
.wt-ppt { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.wt-ppt button { flex: 1 1 120px; max-width: 180px; padding: 14px 8px; border-radius: 12px; border: 2px solid var(--w3-line); background: var(--w3-card); color: var(--w3-text); cursor: pointer; font: 600 14px/1.3 var(--w3-sans); }
.wt-ppt button i { display: block; font-style: normal; font-size: 46px; }
.wt-steps { margin: 0 0 8px; padding-left: 1.3em; line-height: 1.7; }
.wt-btn.is-on { background: var(--w3-orange); color: var(--w3-bg); }
.wt-mines button.is-free { background: #13281c; color: var(--w3-tinta); }
.wt-node.is-pay { outline: 2px dashed #9b6bff; }
.wt-world.is-pay { border-color: #7b2ff7; }
.wt-pay { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; background: linear-gradient(120deg, #7b2ff7, #3a0b9e); color: var(--w3-tinta); padding: 14px 16px; border-radius: 10px; margin: 8px 0 14px; }
.wt-pay p { margin: 0; }
.wt-yo { margin: 0 0 18px; padding: 10px 14px; border: 1px dashed var(--w3-line); border-radius: 10px; font-size: 14px; color: var(--w3-muted); }
.wt-yo a { color: var(--w3-orange); }

/* 3.10 · memotest de tamaño libre, partidas a distancia */
.wt-mem button i { font-style: normal; font-size: clamp(26px, 5vw, 40px); line-height: 1; }
.wt-mem.is-espera button:not(.is-ok) { opacity: .7; cursor: not-allowed; }
@media (max-width: 600px) { .wt-mem { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; } .wt-mem button span { font-size: 8.5px; } }
.wt-num { display: inline-block; width: 78px; margin-left: 6px; padding: 7px 8px; }
.wt-ar-stats .is-turno { color: var(--w3-orange); text-decoration: underline 3px; text-underline-offset: 6px; }
.wt-turno { padding: 4px 12px; border-radius: 999px; background: var(--w3-line); }
.wt-turno.is-mio { background: var(--w3-orange); color: var(--w3-bg); animation: wtpul 1.4s infinite; }
@keyframes wtpul { 50% { box-shadow: 0 0 0 6px rgba(240,164,24,.25); } }
.wt-sala-inv { border-color: #0aa4b8; background: linear-gradient(150deg, rgba(10,164,184,.18), var(--w3-card) 60%); }
.wt-sala-inv input { margin: 8px 0; }
.wt-aviso { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 9998; background: var(--w3-card); border: 1px solid var(--w3-orange); color: var(--w3-text); padding: 12px 18px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: opacity .6s; max-width: 90vw; text-align: center; }
.wt-aviso.is-out { opacity: 0; }
.wt-app-inst { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; background: linear-gradient(120deg, rgba(240,164,24,.18), rgba(70,7,199,.25)); border: 1px solid rgba(240,164,24,.5); font-size: 15px; }
.wt-app-inst[hidden] { display: none; }

/* 3.10 · Diagnósticos */
.dx-card { background: var(--w3-card); border: 1px solid var(--w3-line); border-radius: 18px; padding: clamp(18px, 4vw, 32px); margin: 0 0 18px; box-shadow: 0 18px 40px rgba(0,0,0,.25); animation: dxIn .35s ease; }
@keyframes dxIn { from { opacity: 0; transform: translateY(8px); } }
.dx-card h2 { font-size: clamp(32px, 6vw, 54px); margin: 6px 0 12px; }
.dx-card h3 { font-size: clamp(22px, 3.4vw, 30px); margin: 0 0 12px; }
.dx-ini { text-align: center; }
.dx-ini .wt-btn { margin-top: 14px; }
.dx-big { font-size: clamp(18px, 2.4vw, 22px); line-height: 1.45; }
.dx-prog { height: 6px; border-radius: 3px; background: var(--w3-line); margin: 0 0 16px; overflow: hidden; }
.dx-prog i { display: block; height: 100%; background: var(--w3-orange); transition: width .4s; }
.dx-ops2 { display: flex; gap: 10px; margin-bottom: 14px; }
.dx-ops2 button, .dx-acts button, .dx-objs button { flex: 1; text-align: left; padding: 14px 16px; border-radius: 12px; border: 2px solid var(--w3-line); background: #151515; color: var(--w3-text); cursor: pointer; transition: border-color .2s, background .2s; font: inherit; }
.dx-ops2 button.is-on, .dx-acts button.is-on, .dx-objs button.is-on { border-color: var(--w3-orange); background: rgba(240,164,24,.12); }
.dx-acts { display: grid; gap: 8px; }
.dx-acts button b, .dx-objs button b { display: block; font-size: 17px; }
.dx-acts button span, .dx-objs button span { display: block; color: var(--w3-muted); font-size: 14px; margin-top: 2px; }
.dx-objs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.dx-objs button i { font-style: normal; font-size: 30px; }
.dx-help { margin: 16px 0; border: 1px dashed var(--w3-line); border-radius: 12px; padding: 12px 16px; }
.dx-help summary { cursor: pointer; color: var(--w3-orange); font-weight: 700; }
.dx-err { color: #ff8a8d; min-height: 1.2em; }
.dx-anal { text-align: center; }
.dx-anal ul { list-style: none; padding: 0; display: inline-block; text-align: left; }
.dx-anal li { opacity: .3; margin: 8px 0; transition: opacity .3s; }
.dx-anal li::before { content: "○ "; color: var(--w3-muted); }
.dx-anal li.is-ok { opacity: 1; } .dx-anal li.is-ok::before { content: "✓ "; color: #1fa463; }
.dx-spin { width: 54px; height: 54px; margin: 10px auto; border-radius: 50%; border: 5px solid var(--w3-line); border-top-color: var(--w3-orange); animation: dxSpin 1s linear infinite; }
@keyframes dxSpin { to { transform: rotate(360deg); } }
.dx-hero { margin: 16px 0; padding: 22px; border-radius: 16px; background: linear-gradient(135deg, var(--w3-text), #d8d2c6); color: var(--w3-bg); text-align: center; }
.dx-hero span { display: block; font: 700 13px var(--w3-mono); text-transform: uppercase; letter-spacing: .06em; }
.dx-hero b { display: block; font: 900 clamp(54px, 12vw, 96px)/1 var(--w3-display); margin: 6px 0; }
.dx-hero em { font-style: normal; }
.dx-grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 18px; }
.dx-grid4 > div { background: #151515; border: 1px solid var(--w3-line); border-radius: 14px; padding: 14px; }
.dx-grid4 span { display: block; font: 600 12px var(--w3-mono); text-transform: uppercase; color: var(--w3-muted); }
.dx-grid4 b { display: block; font: 900 30px/1.1 var(--w3-display); margin: 4px 0; }
.dx-grid4 em { font-style: normal; font-size: 13px; color: var(--w3-muted); }
.dx-grid4.is-mac i { font-style: normal; font-size: 26px; }
.dx-aviso { margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: rgba(229,72,77,.12); border: 1px solid rgba(229,72,77,.5); font-size: 15px; }
.dx-bloque { border-top: 1px solid var(--w3-line); padding-top: 14px; margin-top: 14px; }
.dx-frase { font-weight: 800; color: var(--w3-orange); }
.dx-check { display: flex; gap: 10px; align-items: flex-start; text-align: left; max-width: 620px; margin: 16px auto 4px; padding: 12px 14px; border: 1px solid var(--w3-line); border-radius: 12px; font-size: 15px; }
.dx-check input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; }
.dx-cta { border-color: rgba(240,164,24,.5); background: linear-gradient(150deg, rgba(240,164,24,.12), var(--w3-card) 60%); }
.dx-firma { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: 13px; color: var(--w3-muted); margin: 8px 0 0; }
.dx-firma a { color: var(--w3-muted); }

/* ---------- entrenador virtual, caminata, respiración y recordatorio (3.39) ---------- */
.wt-vg { background: var(--w3-bg-2); border: 1px solid rgba(240, 164, 24, .45); border-radius: 12px; padding: 14px; margin: 14px 0; }
.wt-vg-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.wt-vg-top b { display: block; font-size: 19px; line-height: 1.2; }
.wt-vg-top small { display: block; color: var(--w3-soft); font-size: 13px; margin-top: 3px; }
.wt-vg-meta { flex: none; font: 700 12px var(--w3-mono); text-transform: uppercase; background: var(--w3-orange); color: var(--w3-bg); padding: 5px 9px; border-radius: 99px; white-space: nowrap; }
.wt-vg-cam { position: relative; background: #000; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; max-height: 62vh; margin: 0 auto; }
.wt-vg-cam video, .wt-vg-cam canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wt-vg-cam video { transform: scaleX(-1); }
.wt-vg-cam .wt-vg-n { position: absolute; top: 8px; right: 12px; text-shadow: 0 2px 10px #000; }
.wt-vg-n { font-family: var(--w3-display); font-weight: var(--w3-dw, 900); font-size: 64px; line-height: 1; color: var(--w3-orange); }
.wt-vg-crono { position: relative; text-align: center; padding: 18px 0; min-height: 120px; }
.wt-vg-msg { position: absolute; left: 8px; right: 8px; bottom: 8px; text-align: center; background: rgb(var(--w3-tinte) / .68); color: var(--w3-tinta); padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: 15px; }
.wt-vg-msg:empty { display: none; }
.wt-vg-msg.is-alerta { background: rgba(190, 50, 20, .9); }
.wt-vg-bar { height: 8px; border-radius: 99px; background: var(--w3-line); margin: 10px 0; overflow: hidden; }
.wt-vg-bar i { display: block; height: 100%; width: 0; background: var(--w3-orange); border-radius: 99px; transition: width .4s; }
.wt-vg-fin { text-align: center; padding: 16px 8px; }
.wt-vg-fin b { display: block; font-family: var(--w3-display); font-weight: var(--w3-dw, 900); font-size: 30px; text-transform: uppercase; }
.wt-vg-fin.is-ok b { color: var(--w3-orange); }
.wt-vg-fin span { color: var(--w3-soft); }
.wt-vg-guia { text-align: center; margin: 4px 0 8px; }
.wt-resp { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; pointer-events: none; }
.wt-vg-crono .wt-resp { position: static; margin-top: 10px; }
.wt-resp i { width: 110px; height: 110px; border-radius: 50%; background: rgba(120, 80, 255, .55); box-shadow: 0 0 0 10px rgba(120, 80, 255, .2); transform: scale(1); transition: transform 4s ease-in-out; }
.wt-resp.is-out i { transform: scale(.45); transition-duration: 6s; }
.wt-resp b { background: rgb(var(--w3-tinte) / .6); color: var(--w3-tinta); padding: 4px 12px; border-radius: 99px; font-size: 15px; }
.wt-cam3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.wt-cam3 div { background: var(--w3-card); border-radius: 10px; padding: 12px 4px; }
.wt-cam3 b { display: block; font-family: var(--w3-display); font-weight: var(--w3-dw, 900); font-size: 34px; color: var(--w3-orange); line-height: 1; }
.wt-cam3 span { font-size: 12px; color: var(--w3-soft); }
.wt-rec { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 12px 0; font-size: 14px; color: var(--w3-soft); }
.wt-rec .wt-in { width: auto; max-width: 130px; padding: 6px 8px; }
.wt-chip { border: 1px solid var(--w3-muted); background: transparent; color: var(--w3-soft); border-radius: 99px; padding: 4px 10px; font-size: 13px; cursor: pointer; }
.wt-chip.on { border-color: var(--w3-orange); color: var(--w3-orange); }
.wt-hoy h3 { font-size: 34px; }
.wt-world.is-fut { opacity: .6; margin: 12px 0; padding: 10px 16px; }
.wt-world.is-fut h3 { font-size: 22px; }
.wt-ex-extra { margin-top: 8px; gap: 6px; }
.wt-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 9999; background: var(--w3-bg); color: var(--w3-tinta); border: 1px solid var(--w3-orange); padding: 10px 16px; border-radius: 99px; font-size: 14px; max-width: 90vw; }

.wt-inst { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; padding: 14px 16px; border-radius: 12px; background: linear-gradient(120deg, #4607c7, #26046e); color: var(--w3-tinta); }
.wt-inst b { display: block; font-size: 18px; }
.wt-inst span { display: block; font-size: 14px; opacity: .92; margin-top: 2px; line-height: 1.5; }
.wt-inst > div { flex: 1 1 220px; }
.wt-vids .wt-row { gap: 8px; }

.wt-gsup { margin: 0 0 2px; color: var(--gc, var(--w3-orange)); }
.wt-group.is-fijo .w3-jg { margin-top: 10px; }

.wt-node.is-mini { width: 52px; height: 52px; font-size: 20px; box-shadow: 0 4px 0 var(--w3-card); }
@media (max-width: 640px) { .wt-node.is-mini { width: 46px; height: 46px; font-size: 18px; } }

/* ---------- Aula WOPE: cursos en video (3.47) ---------- */
.au-hero { background: linear-gradient(130deg, #26046e, #4607c7); color: var(--w3-tinta); border-radius: 16px; padding: 22px; margin-bottom: 16px; }
.au-hero h2 { margin: 2px 0 8px; font-size: clamp(26px, 6vw, 40px); }
.au-prog { display: flex; align-items: center; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.au-bar { flex: 1 1 180px; height: 10px; border-radius: 99px; background: rgb(var(--w3-tinte) / .25); overflow: hidden; }
.au-bar i { display: block; height: 100%; background: var(--w3-orange); border-radius: 99px; transition: width .5s; }
.au-prog span { font-size: 14px; opacity: .92; }
.au-mod { background: var(--w3-bg-2); border: 1px solid #2f2f2f; border-radius: 14px; margin: 12px 0; overflow: hidden; }
.au-mod.is-pay { opacity: .85; }
.au-mod > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: var(--w3-bg-2); }
.au-mod > header b { font-size: 19px; }
.au-mod > header small { display: block; color: var(--w3-soft); font-size: 14px; margin-top: 2px; }
.au-cont { flex: none; font: 600 13px var(--w3-mono); color: var(--w3-orange); white-space: nowrap; }
.au-mod ol { list-style: none; margin: 0; padding: 0; }
.au-mod li + li { border-top: 1px solid var(--w3-line); }
.au-lec { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; text-decoration: none; }
.au-lec:hover { background: var(--w3-card); }
.au-lec.is-lock { cursor: default; opacity: .55; }
.au-ico { flex: none; width: 30px; font-size: 18px; text-align: center; }
.au-lec.is-vista .au-ico { color: var(--w3-orange); }
.au-t { flex: 1; }
.au-t small { display: block; color: var(--w3-soft); font-size: 13px; margin-top: 2px; }
.au-tag { flex: none; font-size: 12px; color: var(--w3-soft); white-space: nowrap; }
.au-pdf { margin: 0; padding: 10px 16px; border-top: 1px solid var(--w3-line); font-size: 14px; }
.au-play { background: #000; border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.au-video { display: block; width: 100%; aspect-ratio: 16/9; border: 0; background: #000; }
.au-vacio { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 16/9; background: #151515; color: var(--w3-soft); }
.au-vacio b { font-size: 20px; color: var(--w3-tinta); }
.au-cab h3 { margin: 4px 0 6px; font-size: clamp(22px, 5vw, 32px); }
.au-nav { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 18px 0; }
.au-prom { font-size: 19px; line-height: 1.5; margin: 4px 0 0; }

/* ===== Mapas con más vida: color por etapa, camino que se pinta, burbuja que late y estrellas ===== */
.wt-nodes { isolation: isolate; }
.wt-nodes svg.wt-camino { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; overflow: visible; }
.wt-node-wrap { z-index: 1; }
.wt-camino-b { fill: none; stroke: var(--w3-line); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 1 17; }
.wt-camino-a { fill: none; stroke: var(--et, var(--w3-orange)); stroke-width: 9; stroke-linecap: round; opacity: .85; }
.wt-world { border-color: color-mix(in srgb, var(--et, #7850ff) 55%, transparent); background: linear-gradient(150deg, color-mix(in srgb, var(--et, #4607c7) 26%, var(--w3-bg-2)), var(--w3-bg-2) 70%); }
.wt-world .wt-kicker { color: var(--et, var(--w3-orange)); }
.wt-node { background: var(--et, var(--w3-orange)); box-shadow: 0 6px 0 color-mix(in srgb, var(--et, #f0a418) 58%, #000); }
.wt-node:active { box-shadow: 0 2px 0 color-mix(in srgb, var(--et, #f0a418) 58%, #000); }
.wt-node.is-num { font-size: 28px; }
.wt-node.is-suave { width: 64px; height: 64px; font-size: 26px; }
/* Tests y entrenamientos clave: una estrella dorada, más grande. */
.wt-node.is-boss { background: radial-gradient(circle at 35% 30%, #fff1b3, #f6b21c 62%, #d98f00); box-shadow: 0 7px 0 #8a5a00, 0 0 0 7px rgba(246, 178, 28, .22); color: #3a2500; border-radius: 30px; }
.wt-node.is-boss:active { box-shadow: 0 2px 0 #8a5a00; }
.wt-node.is-test { background: #f4f1ff; color: #26046e; box-shadow: 0 6px 0 #8f86b8; }
.wt-node.is-locked, .wt-node.is-pend { background: var(--w3-line); color: var(--w3-muted); box-shadow: 0 6px 0 var(--w3-card); }
.wt-node.is-pend { cursor: pointer; }
.wt-node.is-pend:hover { color: var(--w3-text); }
.wt-node.is-boss.is-locked, .wt-node.is-boss.is-pend { background: var(--w3-line); box-shadow: 0 6px 0 var(--w3-card), 0 0 0 2px rgba(246, 178, 28, .55) inset; filter: none; }
.wt-node.is-boss.is-locked > span, .wt-node.is-boss.is-pend > span { filter: grayscale(.75); opacity: .75; }
.wt-node.is-cur { background: var(--w3-violet); color: var(--w3-tinta); box-shadow: 0 6px 0 #26046e, 0 0 0 8px rgba(70, 7, 199, .35); }
.wt-node.is-cur.is-boss { background: radial-gradient(circle at 35% 30%, #fff1b3, #f6b21c 62%, #d98f00); color: #3a2500; box-shadow: 0 7px 0 #8a5a00, 0 0 0 8px rgba(246, 178, 28, .35); }
.wt-node.is-cur::after { content: ''; position: absolute; inset: -8px; border-radius: inherit; border: 3px solid currentColor; opacity: 0; animation: wt-pulso 1.9s ease-out infinite; pointer-events: none; }
.wt-node { position: relative; }
@keyframes wt-pulso { 0% { transform: scale(.92); opacity: .55; } 100% { transform: scale(1.35); opacity: 0; } }
.wt-node-tag { background: var(--w3-orange); color: var(--w3-bg); box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.wt-node-tag::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); }
.wt-stars { letter-spacing: 0; color: var(--w3-soft); font-size: 12.5px; margin-top: 8px; text-align: center; max-width: 150px; line-height: 1.25; }
.wt-node:not(.is-locked):not(.is-pend):not(.is-cur) + .wt-stars { color: var(--et, var(--w3-orange)); }
.wt-hud .wt-est { color: var(--w3-orange); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .wt-node.is-cur::after { animation: none; opacity: .4; } }

/* ===== Cursos en video con mapa y entrenamientos ===== */
.au-world h3 { font-size: clamp(22px, 5.4vw, 32px); }
.au-world.is-fut h3 { font-size: 19px; }
.au-cand { color: #f6b21c !important; }
.au-det { text-align: center; margin: -6px 0 10px; }
.au-det summary { display: inline-block; cursor: pointer; padding: 8px 14px; border-radius: 99px; background: var(--w3-bg-2); font-size: 14px; color: var(--w3-soft); list-style: none; }
.au-det summary::-webkit-details-marker { display: none; }
.au-det[open] summary { margin-bottom: 18px; }
.au-nodes { gap: 20px; padding: 14px 0 6px; }
.au-lbl i { font-style: normal; opacity: .7; display: block; }
.au-lbl b { color: #f6b21c; }
.au-casa { text-align: center; }
.au-cab .wt-casa { margin-top: 8px; }
.au-lista .wt-casa, .au-serie .wt-casa { margin-left: 6px; padding: 2px 8px; vertical-align: middle; }
.au-cierre { margin-top: 14px; text-align: center; }
.au-cierre .au-play { max-width: 560px; margin: 6px auto 0; }
.au-pres h3 { margin-top: 2px; }
.au-play.is-rut { position: sticky; top: calc(var(--nav-h, 76px) + 4px); z-index: 4; max-width: 560px; margin-left: auto; margin-right: auto; }
.au-rut ul, .au-lista { margin: 6px 0 10px; padding-left: 20px; }
.au-rut li { margin: 3px 0; }
.au-serie { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: rgb(var(--w3-tinte) / .04); }
.au-serie small { margin-left: 8px; color: var(--w3-soft); }
.au-cond { padding: 10px 12px; border-radius: 10px; background: rgba(246, 178, 28, .12); border: 1px solid rgba(246, 178, 28, .4); }
.au-rut-ok { padding: 10px 12px; border-radius: 10px; background: rgba(62, 198, 168, .14); border: 1px solid rgba(62, 198, 168, .45); font-weight: 600; }
.au-veces { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 4px; }
.au-veces i { width: 16px; height: 16px; border-radius: 50%; background: var(--w3-line); }
.au-veces i.is-on { background: #f6b21c; }
.au-paso { margin: 6px 0 10px; }
.au-paso .au-bar { background: var(--w3-line); margin-bottom: 8px; flex: none; }
.au-desc { text-align: center; padding: 22px 16px; }
.wt-nodes .wt-stars { position: relative; z-index: 1; padding: 2px 8px; border-radius: 8px; background: rgba(20, 20, 20, .9); }
.wt-pay-nota { flex: 1 1 100%; margin: 4px 0 0 !important; font-size: 13.5px; opacity: .88; line-height: 1.45; }

