@font-face { font-family: Inter; src: url(fonts/inter.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #15181b; --panel: #1d2226; --panel2: #242a2f; --line: #343c42;
  --ink: #ebe7df; --mute: #a7afb4; --teal: #33b5a9; --tealD: #1f6f68; --amber: #e6a73c; --red: #e0705a; --green: #5cc28a;
  --r: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: hidden; }
a { color: var(--teal); }
b, strong { color: #fff; font-weight: 700; }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

.top { position: sticky; top: 0; z-index: 20; padding: 10px 16px; background: rgba(21,24,27,.97); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand b { display: block; font-size: 16.5px; letter-spacing: -.01em; }
.brand small { display: block; color: var(--mute); font-size: 12px; }
.logo { width: 34px; height: 34px; border-radius: 9px; flex: none; background: url(icons/icon-192.png) center/cover; }
.tabs { position: sticky; top: 55px; z-index: 19; display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; background: var(--bg); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: 0 0 auto; border: 1px solid var(--line); background: var(--panel); color: var(--mute); border-radius: 20px; padding: 7px 12px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.tabs a.on { background: var(--ink); color: #111; border-color: var(--ink); }

main { max-width: 760px; margin: 0 auto; padding: 14px 16px 8px; outline: none; }
h1 { font-size: 25px; line-height: 1.2; margin: 6px 0 8px; letter-spacing: -.02em; }
h2 { font-size: 20px; margin: 26px 0 10px; letter-spacing: -.01em; }
h3 { font-size: 17px; margin: 18px 0 6px; }
h4 { font-size: 15.5px; margin: 14px 0 4px; }
p { margin: 8px 0; }
.lead { color: var(--mute); font-size: 15.5px; }
.muted { color: var(--mute); }
.small { font-size: 13.5px; }
.crumb { font-size: 14px; margin: 2px 0 6px; }
.crumb a { text-decoration: none; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin: 10px 0; }
a.card { display: block; color: var(--ink); text-decoration: none; }
a.card:active { border-color: var(--teal); }
a.card.tile, a.card.lrow, a.card.vrow, a.card.guide { display: flex; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 4px; min-height: 112px; }
.tile .k { font-size: 26px; font-weight: 800; color: var(--teal); line-height: 1; }
.tile b { font-size: 16px; }
.tile span { font-size: 13px; color: var(--mute); }

.progress { height: 8px; background: var(--panel2); border-radius: 6px; overflow: hidden; margin: 8px 0 4px; }
.progress i { display: block; height: 100%; background: var(--teal); }

.part { color: var(--amber); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin: 22px 0 4px; }
.lrow { display: flex; gap: 12px; align-items: center; padding: 10px; }
.lrow .th { position: relative; width: 112px; flex: none; aspect-ratio: 16/9; border-radius: 9px; overflow: hidden; background: var(--panel2); }
.lrow .th img { width: 100%; height: 100%; object-fit: cover; }
.lrow .th .d { position: absolute; right: 4px; bottom: 4px; background: rgba(0,0,0,.75); color: #fff; font-size: 11.5px; padding: 1px 5px; border-radius: 5px; }
.lrow .tx { min-width: 0; }
.lrow .tx b { display: block; font-size: 15px; line-height: 1.3; }
.lrow .tx span { font-size: 12.5px; color: var(--mute); }
.done-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); margin-right: 5px; vertical-align: 1px; }

.player { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; margin: 8px 0; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: #000 center/cover no-repeat; }
.player .poster::after { content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: rgba(0,0,0,.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23fff'/%3E%3C/svg%3E") center/30px no-repeat; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 9px 14px; border-radius: 11px; border: 1.5px solid var(--line); background: var(--panel2); color: var(--ink); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.btn.pri { background: var(--teal); border-color: var(--teal); color: #0d1012; }
.btn.ok { border-color: var(--green); color: var(--green); }

ul, ol { padding-left: 22px; margin: 6px 0; }
li { margin: 4px 0; }
.ts { display: inline-block; font-variant-numeric: tabular-nums; font-size: 12.5px; font-weight: 700; color: #0d1012; background: var(--amber); border-radius: 6px; padding: 0 6px; margin-right: 6px; border: 0; }
button.ts { cursor: pointer; }
ol.steps { list-style: none; padding: 0; }
ol.steps li { padding: 8px 0; border-bottom: 1px solid var(--line); }
ol.steps li:last-child { border: 0; }

.tablewrap { overflow-x: auto; margin: 8px 0; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 7px 8px; border-bottom: 1px solid var(--line); }
th { background: var(--panel2); font-size: 13px; color: var(--mute); }
tr:last-child td { border-bottom: 0; }

.box { border-radius: 12px; padding: 12px 14px; margin: 12px 0; border: 1px solid var(--line); background: var(--panel); }
.box .t { font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.box.safe, .seguridad { border-color: var(--red); background: rgba(224,112,90,.09); }
.box.safe .t { color: var(--red); }
.box.err { border-color: var(--amber); background: rgba(230,167,60,.08); }
.box.err .t { color: var(--amber); }
.box.ok .t { color: var(--green); }
.box.rev .t { color: var(--mute); }
.nota, .ejemplo, .seguridad { border-radius: 12px; padding: 10px 14px; margin: 12px 0; border: 1px solid var(--line); background: var(--panel); }
.nota { border-color: var(--teal); background: rgba(51,181,169,.08); }
.ejemplo { border-color: var(--amber); background: rgba(230,167,60,.07); }
sup { font-size: 11px; color: var(--teal); }
.watermark-note { font-size: 12.5px; color: var(--mute); }

.chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; border: 1px solid var(--line); background: var(--panel); color: var(--mute); border-radius: 18px; padding: 6px 11px; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.chip.on { background: var(--teal); color: #0d1012; border-color: var(--teal); }
.vrow { display: flex; gap: 12px; padding: 10px; }
.vrow .th { position: relative; width: 128px; flex: none; aspect-ratio: 16/9; border-radius: 9px; overflow: hidden; background: var(--panel2); }
.vrow .th img { width: 100%; height: 100%; object-fit: cover; }
.vrow .th .d { position: absolute; right: 4px; bottom: 4px; background: rgba(0,0,0,.8); color: #fff; font-size: 11.5px; padding: 1px 5px; border-radius: 5px; }
.vrow .tx { min-width: 0; }
.vrow .tx b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; line-height: 1.3; }
.vrow .tx span { display: block; font-size: 12.5px; color: var(--mute); margin-top: 3px; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 1px 6px; margin-right: 4px; background: var(--panel2); color: var(--mute); border: 1px solid var(--line); }
.tag.en { color: var(--amber); border-color: var(--amber); }
dl.meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; margin: 8px 0; }
dl.meta dt { color: var(--mute); }
dl.meta dd { margin: 0; }

.guide { display: flex; gap: 12px; }
.guide .num { flex: none; width: 44px; height: 58px; border-radius: 6px; background: var(--teal); color: #0d1012; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.guide .num.f { background: var(--amber); font-size: 13px; }
.guide b { font-size: 16px; }
details { margin: 6px 0; }
summary { cursor: pointer; color: var(--teal); font-weight: 600; font-size: 14px; }
.glos dt { font-weight: 700; color: #fff; margin-top: 10px; }
.glos dd { margin: 2px 0 0; color: var(--ink); }
.search { width: 100%; min-height: 44px; border-radius: 11px; border: 1.5px solid var(--line); background: var(--panel2); color: var(--ink); padding: 8px 12px; font: inherit; }
.pn { display: flex; justify-content: space-between; gap: 8px; margin: 18px 0 6px; }
.pn a { flex: 1; }
.foot { max-width: 760px; margin: 18px auto 0; padding: 14px 16px 40px; color: var(--mute); font-size: 12.5px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); } }
