/* Objetos interactivos del hero de cada producto. Solo reaccionan a lo que hace la persona. */
.lnk { background: none; border: 0; padding: 0; color: var(--paper-2); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.lp-ctl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ---------- Lupa: la caseta ---------- */
.lp-net { color: #5CC48A; transition: color .3s; }
.lp-net.is-off { color: var(--amber); }
.lp-counts { display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px; margin-top: 14px; }
.lp-counts > div { position: relative; display: grid; align-content: start; gap: 2px; min-height: 132px; padding: 14px 16px; border-radius: 16px; overflow: hidden; }
.lp-counts span { font-size: 13px; font-weight: 700; }
.lp-counts b { font-weight: 800; font-size: clamp(56px, 15vw, 84px); line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.lp-counts small { font-size: 12px; font-weight: 600; }
.lp-in { background: var(--paper); color: #0E1219; }
.lp-un { color: var(--paper); }
.lp-un b { color: transparent; -webkit-text-stroke: 2px var(--paper); }
.lp-log { margin-top: 12px; min-height: 3em; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .25); font-size: 14px; line-height: 1.45; color: var(--paper-2); }
.lp-log b { color: var(--accent); }
.bump { animation: bump .45s cubic-bezier(.2, .8, .3, 1.4); }
@keyframes bump { 0% { transform: translateY(6px); opacity: .3; } 100% { transform: none; opacity: 1; } }

/* ---------- Cana: la hoja ---------- */
.cn-sheet { display: grid; gap: 4px; margin-top: 14px; padding: 6px; border-radius: 16px; background: var(--paper); }
.cn-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 46px; padding: 0 14px;
  border: 0; border-radius: 10px; background: transparent; color: #0E1219; font-size: 15px; text-align: left; transition: background .15s, box-shadow .15s;
}
.cn-row b { font-weight: 800; font-variant-numeric: tabular-nums; }
button.cn-row:hover, .cn-row.is-on { background: rgba(25, 165, 140, .12); box-shadow: inset 0 0 0 1.5px #0B6E5F; }
.cn-row--none b { color: #8A5A00; font-weight: 700; }
.cn-row--none { background: repeating-linear-gradient(-45deg, rgba(242, 179, 61, .22) 0 6px, rgba(242, 179, 61, .06) 6px 12px); }
.cn-row--total { border-top: 1.5px solid rgba(14, 18, 25, .18); border-radius: 0 0 10px 10px; font-weight: 700; }
.cn-row--total b { color: #8A5A00; }
.cn-row--total.is-ok b, .cn-row--none.is-ok b { color: #0E1219; }
.cn-row--none.is-ok { background: transparent; }
.cn-src { display: flex; align-items: center; gap: 10px; margin-top: 10px; min-height: 46px; padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, .25); font-size: 14px; color: var(--paper-2); }
.cn-src b { color: var(--paper); }
.cn-src code { font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: var(--accent); }
.cn-fx { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-style: italic; font-weight: 800; font-size: 13px; }

/* ---------- Tabor: la lección ---------- */
.tb-lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(0, 0, 0, .3); }
.tb-lang button { min-width: 38px; height: 28px; border: 0; border-radius: 999px; background: none; color: var(--paper-2); font-size: 12px; font-weight: 800; }
.tb-lang button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.tb-screen { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; margin-top: 14px; border-radius: 16px; overflow: hidden;
  background: radial-gradient(70% 80% at 30% 20%, rgba(139, 102, 255, .5), transparent 70%), linear-gradient(160deg, #2A1B6E, #120A33); }
.tb-screen p { position: absolute; left: 12px; right: 12px; bottom: 10px; margin: 0; padding: 6px 10px; border-radius: 8px; background: rgba(0, 0, 0, .55); font-size: 13px; line-height: 1.35; text-align: center; }
.tb-play { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }
.tb-play span { width: 0; height: 0; margin-left: 5px; border-left: 18px solid var(--paper); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.tb-play.is-on span { width: 16px; height: 20px; margin: 0; border: 0; border-left: 5px solid var(--paper); border-right: 5px solid var(--paper); }
.tb-bar { position: relative; height: 26px; margin-top: 12px; cursor: pointer; touch-action: none; }
.tb-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .14); }
.tb-bar i { position: absolute; left: 0; right: 0; top: 9px; height: 8px; border-radius: 8px; overflow: hidden; }
.tb-bar i span { position: absolute; top: 0; bottom: 0; background: var(--accent); }
.tb-bar i span.gap { background: none; box-shadow: inset 0 0 0 1.5px var(--amber); border-radius: 3px; }
.tb-bar b { position: absolute; top: 4px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--paper); box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.tb-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.tb-stats span { display: grid; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .25); }
.tb-stats small { font-size: 12px; color: var(--paper-2); }
.tb-stats b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.tb-stats b.is-warn { color: var(--amber); }
.tb-stats b.is-ok { color: #5CC48A; }

/* ---------- Naza: la reserva ---------- */
.nz-step { margin-top: 14px; }
.nz-q { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.nz-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.nz-slot { min-height: 48px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .07); color: var(--paper); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.nz-slot:hover:not([disabled]) { background: rgba(255, 255, 255, .14); }
.nz-slot[disabled] { cursor: not-allowed; color: rgba(243, 239, 230, .4); border-color: transparent; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .08) 0 6px, rgba(255, 255, 255, .02) 6px 12px); text-decoration: line-through; }
.nz-slot[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.nz-go { width: 100%; margin-top: 12px; min-height: 52px; font-size: 16px; }
.nz-go:not([disabled]) { background: var(--poste); border-color: transparent; color: #fff; }
.nz-code { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.nz-code i { display: grid; place-items: center; height: 64px; border-radius: 14px; background: var(--paper); color: #071633; font-style: normal; font-weight: 800; font-size: 30px; }
.nz-small { margin-top: 10px; font-size: 14px; color: var(--paper-2); }
.nz-done { display: grid; justify-items: center; text-align: center; padding: 14px 0 6px; }
.nz-check { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #1F7A4D; margin-bottom: 12px; }
.nz-check::after { content: ""; width: 22px; height: 12px; margin-top: -5px; border-left: 4px solid #fff; border-bottom: 4px solid #fff; transform: rotate(-45deg); }

@media (min-width: 960px) { .demo { padding: 22px; } }

.demo [hidden] { display: none !important; }
