/* Estilo oscuro tipo YouTube: negro, amarillo #FFCC00, Roboto 900 en títulos. */
:root {
  --bg: #000000;
  --text: #ffffff;
  --sec: #b3b3b3;
  --sur: #141414;
  --sur2: #262626;
  --line: #262626;
  --acento: #FFCC00;
  --top: 56px;
  --side: 220px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.55 Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }

/* barra superior */
.top { position: fixed; inset: 0 0 auto 0; height: var(--top); z-index: 30; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: var(--bg); }
.icon-btn { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; }
.icon-btn:hover { background: var(--sur2); }
.logo { display: flex; align-items: center; gap: 8px; white-space: nowrap; flex: none; font: 900 19px Roboto; letter-spacing: -.03em; }
.logo i { width: 30px; height: 21px; border-radius: 6px; background: var(--acento); position: relative; }
.logo i::after { content: ""; position: absolute; left: 12px; top: 5px; border: 5.5px solid transparent; border-left: 9px solid #000; border-right: 0; }
.logo small { font: 500 10px Roboto; color: var(--sec); letter-spacing: .06em; text-transform: uppercase; align-self: flex-end; margin-bottom: 4px; }
.search { flex: 0 1 560px; margin: 0 auto; display: flex; height: 40px; }
.search input { flex: 1; min-width: 0; background: #0a0a0a; color: var(--text); border: 1px solid #3a3a3a; border-right: 0; border-radius: 20px 0 0 20px; padding: 0 16px; font: 400 15px Roboto; }
.search input:focus { border-color: var(--acento); outline: 0; }
.search button { width: 64px; border: 1px solid #3a3a3a; border-radius: 0 20px 20px 0; background: var(--sur2); display: grid; place-items: center; }
.search button:hover { background: #333; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--acento); color: #000; display: grid; place-items: center; font: 700 14px Roboto; margin-left: auto; }

/* menú lateral */
.side { position: fixed; top: var(--top); bottom: 0; left: 0; width: var(--side); padding: 12px; overflow-y: auto; background: var(--bg); z-index: 20; }
.side a { display: flex; align-items: center; gap: 20px; height: 40px; padding: 0 12px; border-radius: 10px; font-size: 14px; }
.side a:hover { background: var(--sur2); }
.side a.on { background: var(--sur2); font-weight: 700; }
.side a.menor { color: var(--sec); }
.side hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--acento); margin: 0 6px; flex: none; }
.dot.off { background: transparent; border: 2px solid var(--sec); }
.scrim { display: none; }

main { margin: var(--top) 0 0 var(--side); padding: 20px 24px 64px; min-height: calc(100vh - var(--top)); outline: 0; }

/* chips */
.chips { display: flex; gap: 12px; overflow-x: auto; padding: 4px 0 16px; scrollbar-width: none; position: sticky; top: var(--top); background: var(--bg); z-index: 5; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 0; padding: 0 12px; height: 32px; display: inline-flex; align-items: center; border-radius: 8px; background: var(--sur2); font: 500 14px Roboto; white-space: nowrap; }
.chip:hover { background: #3a3a3a; }
.chip.on { background: var(--text); color: #000; }

/* titulares */
h1, h2, h3 { font-family: Roboto, sans-serif; letter-spacing: -.03em; margin: 0; }
h1 { font-weight: 900; font-size: clamp(26px, 4vw, 40px); line-height: 1.08; }
h2 { font-weight: 900; font-size: 22px; line-height: 1.15; margin: 32px 0 14px; }
h2 em, h1 em { font-style: normal; color: var(--acento); }
.k { font: 500 12px Roboto; letter-spacing: .06em; text-transform: uppercase; color: var(--sec); }
.sec { color: var(--sec); }

/* portada del caso */
.hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.visor { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #1b1b1b, #050505 60%); padding: clamp(18px, 3vw, 36px); display: flex; flex-direction: column; justify-content: flex-end; }
.visor::before { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%; background: var(--acento); opacity: .12; }
.visor .k { margin-bottom: 10px; }
.visor h1 em { display: inline; }
.visor .prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #3a3a3a; }
.visor .prog::after { content: ""; display: block; height: 100%; width: 38%; background: var(--acento); }
.cuenta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.cuenta div { background: var(--sur); border-left: 3px solid var(--acento); border-radius: 10px; padding: 14px 14px 16px; }
.cuenta b { display: block; font: 500 11px Roboto; letter-spacing: .05em; text-transform: uppercase; color: var(--sec); margin-bottom: 6px; }
.cuenta span { font: 900 24px/1.05 Roboto; letter-spacing: -.02em; }
.cuenta div:nth-child(2) span { color: var(--acento); }
.resumen { color: var(--sec); max-width: 70ch; margin: 18px 0 0; }

/* tarjetas tipo video */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px 16px; }
.grid.destacados { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: block; border-radius: 12px; }
.thumb { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: var(--sur); padding: 16px; display: flex; flex-direction: column; justify-content: space-between; transition: border-radius .15s, transform .15s; }
.card:hover .thumb { border-radius: 4px; }
.thumb .tag { font: 500 11px Roboto; letter-spacing: .06em; text-transform: uppercase; color: #000; background: var(--acento); align-self: flex-start; padding: 3px 8px; border-radius: 4px; }
.thumb .big { font: 900 clamp(26px, 2.6vw, 34px)/1 Roboto; letter-spacing: -.03em; }
.thumb .big small { display: block; margin-top: 8px; font: 400 13px/1.35 Roboto; letter-spacing: 0; color: var(--sec); max-width: 90%; }
.thumb .dur { position: absolute; right: 10px; top: 12px; background: rgba(0,0,0,.8); font: 500 12px Roboto; padding: 2px 6px; border-radius: 4px; }
.thumb .prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #3a3a3a; }
.thumb .prog::after { content: ""; display: block; height: 100%; width: var(--w, 40%); background: var(--acento); }
.card.principal .thumb { background: linear-gradient(145deg, #202020, var(--sur) 55%); box-shadow: inset 0 3px 0 var(--acento); }
.card.menor .thumb { background: var(--sur); }
.card.menor .thumb .tag { background: var(--sur2); color: var(--sec); }
.card.menor .thumb .big { font-size: 22px; color: #d9d9d9; }
.meta { display: flex; gap: 12px; padding: 12px 4px 0; }
.meta .av { width: 36px; height: 36px; border-radius: 50%; background: var(--acento); color: #000; display: grid; place-items: center; font: 700 14px Roboto; flex: none; }
.card.menor .meta .av { background: var(--sur2); color: var(--sec); }
.meta h3 { font: 700 16px/1.3 Roboto; letter-spacing: -.01em; }
.meta p { margin: 2px 0 0; font-size: 13px; color: var(--sec); }

.rail { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; }
.rail .card { flex: 0 0 260px; scroll-snap-align: start; }
.rail .thumb .big { font-size: 24px; }

/* lista de archivos */
.lista { display: grid; gap: 8px; }
.fila { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; background: var(--sur); border-radius: 10px; padding: 12px 16px; }
.fila:hover { background: var(--sur2); }
.fila h3 { font: 500 15px/1.3 Roboto; letter-spacing: 0; }
.fila p { margin: 2px 0 0; color: var(--sec); font-size: 13px; }
.badge { font: 500 11px Roboto; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: var(--sur2); color: var(--sec); white-space: nowrap; }
.badge.y { background: var(--acento); color: #000; }

/* página de una parte */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.watch .visor { aspect-ratio: auto; min-height: 260px; justify-content: flex-end; }
.watch .visor h1 { font-size: clamp(22px, 2.6vw, 32px); margin-top: 0; }
.watch h1 { margin-top: 14px; }
.fila-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.caja { background: var(--sur); border-radius: 12px; padding: 14px 16px; margin: 14px 0; }
.caja p { margin: 0; }
.bloque h2 { font-size: 18px; margin: 28px 0 10px; }
details.it { background: var(--sur); border-radius: 10px; margin-bottom: 8px; }
details.it summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; gap: 12px; align-items: center; font: 500 15px/1.35 Roboto; }
details.it summary::-webkit-details-marker { display: none; }
details.it summary::after { content: "+"; margin-left: auto; color: var(--acento); font: 700 20px Roboto; transition: transform .15s; }
details.it[open] summary::after { transform: rotate(45deg); }
details.it .in { padding: 0 16px 16px; }
details.it .in p { margin: 0 0 10px; }
.resp { border-left: 3px solid var(--acento); background: #0c0c0c; border-radius: 0 8px 8px 0; padding: 10px 14px; }
.resp b { display: block; color: var(--acento); font: 500 11px Roboto; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.ver { display: inline-block; margin-top: 8px; color: var(--acento); font-weight: 500; font-size: 13px; }
.ver:hover { text-decoration: underline; }
.up h2 { font-size: 16px; margin: 0 0 12px; }
.up .card + .card { margin-top: 12px; }
.up .card { display: grid; grid-template-columns: 150px 1fr; gap: 10px; }
.up .thumb { padding: 8px; }
.up .thumb .big { font-size: 15px; }
.up .thumb .tag, .up .thumb .big small, .up .thumb .dur { display: none; }
.up .thumb { justify-content: flex-end; }
.up .thumb .big { font-size: 14px; overflow-wrap: anywhere; }
.up .card.menor .thumb .big { font-size: 12px; }
.up .meta { padding: 0; }
.up .meta .av { display: none; }

/* preguntar */
.chat { max-width: 860px; margin: 0 auto; }
.msg { display: flex; gap: 12px; margin: 18px 0; }
.msg .av { width: 36px; height: 36px; border-radius: 50%; background: var(--sur2); display: grid; place-items: center; font: 700 14px Roboto; flex: none; }
.msg.bot .av { background: var(--acento); color: #000; }
.msg .cuerpo { min-width: 0; }
.msg .cuerpo > p { margin: 0 0 10px; }
.sinresp { border: 1px dashed #666; border-radius: 10px; padding: 12px 14px; color: var(--sec); }
.sinresp b { color: var(--text); }
.cita { background: var(--sur); border-radius: 10px; padding: 12px 14px; margin: 8px 0; }
.cita .cab { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.cita .cab a { color: var(--acento); font-weight: 500; font-size: 13px; }
.cita blockquote { margin: 0; color: #e6e6e6; font-size: 14px; }
mark { background: rgba(255,204,0,.28); color: inherit; border-radius: 2px; padding: 0 1px; }
.sug { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.compo { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 18px 0 8px; }
.compo form { display: flex; gap: 8px; }
.compo input { flex: 1; height: 44px; border-radius: 22px; border: 1px solid #3a3a3a; background: #0a0a0a; color: var(--text); padding: 0 18px; font: 400 15px Roboto; }
.compo input:focus { border-color: var(--acento); outline: 0; }
.btn { height: 44px; padding: 0 22px; border: 0; border-radius: 22px; background: var(--acento); color: #000; font: 700 14px Roboto; }
.btn:hover { filter: brightness(1.08); }
.filtros { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 0; }

/* documento */
.doc { max-width: 820px; }
.doc h1 { font-size: 28px; }
.doc h2 { font-size: 20px; }
.doc h3 { font-size: 16px; margin: 20px 0 8px; }
.doc p, .doc li { color: #e6e6e6; }
.doc ul { padding-left: 22px; }
.doc .pg { display: inline-block; margin: 22px 0 6px; padding: 2px 8px; border-radius: 4px; background: var(--sur2); color: var(--sec); font: 500 11px Roboto; letter-spacing: .06em; text-transform: uppercase; scroll-margin-top: 80px; }
.doc .pg.hit { background: var(--acento); color: #000; }
.nota { color: var(--sec); font-size: 13px; margin-top: 40px; border-top: 1px solid var(--line); padding-top: 14px; max-width: 70ch; }

@media (max-width: 1100px) {
  .watch { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .grid.destacados { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  main { margin-left: 0; padding: 16px; }
  .side { transform: translateX(-100%); transition: transform .2s; background: #0a0a0a; }
  body.menu-open .side { transform: none; }
  body.menu-open .scrim { display: block; position: fixed; inset: var(--top) 0 0 0; background: rgba(0,0,0,.6); z-index: 15; }
  .logo small, .avatar { display: none; }
  .search { margin: 0; }
  .search button { width: 48px; }
  .grid.destacados { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
