/* SeptemberCorp · hoja de estilos principal. Sin frameworks. */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }

:root {
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --radius-sm: 9px;
  --header-h: 64px;
  --maxw: 1280px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:root:lang(zh-Hans), :root:lang(zh) {
  --font-body: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --font-head: "Space Grotesk", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
:root:lang(ja) {
  --font-body: "Inter", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", "Noto Sans CJK JP", system-ui, sans-serif;
  --font-head: "Space Grotesk", "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
}

/* Tema oscuro (por defecto, coherente con el logo) */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0c22; --bg2: #0e1130; --surface: #141838; --surface2: #1b2048; --line: rgba(255,255,255,.1);
  --text: #eef0fb; --muted: #a6abcb; --accent: #a193ff; --accent-strong: #8b7bff; --accent2: #e46bc6; --on-accent: #0a0c22;
  --glow: radial-gradient(1000px 420px at 85% -10%, rgba(139,123,255,.22), transparent 60%), radial-gradient(800px 380px at 0% 0%, rgba(228,107,198,.12), transparent 55%);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --header-bg: rgba(10,12,34,.78);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f6fc; --bg2: #ffffff; --surface: #ffffff; --surface2: #eceefa; --line: rgba(10,12,34,.12);
  --text: #12142e; --muted: #565b7d; --accent: #5640d1; --accent-strong: #4731c0; --accent2: #b0308f; --on-accent: #ffffff;
  --glow: radial-gradient(1000px 420px at 85% -10%, rgba(139,123,255,.18), transparent 60%), radial-gradient(800px 380px at 0% 0%, rgba(228,107,198,.10), transparent 55%);
  --shadow: 0 10px 30px rgba(30,30,80,.12);
  --header-bg: rgba(246,246,252,.82);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font-body); font-size: 1rem; line-height: 1.65; color: var(--text);
  background: var(--bg); background-image: var(--glow); background-repeat: no-repeat; background-attachment: scroll;
  overflow-wrap: break-word;
}
main { flex: 1 0 auto; outline: none; }
img, video, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.9rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.container { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(1.6rem, 1rem + 2.5vw, 3rem); }
.narrow { max-width: 820px; }
.meta { color: var(--muted); font-size: .875rem; margin: 0; }
.sub { color: var(--muted); }
.kicker { text-transform: uppercase; letter-spacing: .09em; font-size: .75rem; font-weight: 600; color: var(--accent2); margin: 0 0 .25rem; }
.empty { padding: 2.5rem 1rem; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Botones y chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .55rem 1.2rem; border-radius: 999px; border: 1px solid transparent; font: 600 .95rem var(--font-body); cursor: pointer; text-decoration: none !important; color: var(--on-accent); background: linear-gradient(135deg, var(--accent), var(--accent-strong)); transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(139,123,255,.35); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); box-shadow: none; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.4rem; }
.chip { display: inline-block; padding: .2rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--surface2); color: var(--accent); border: 1px solid transparent; text-decoration: none !important; }
.chip-lg { font-size: .9rem; padding: .45rem 1rem; background: var(--surface); border-color: var(--line); color: var(--text); min-height: 38px; }
.chip-lg:hover, .chip-lg.is-on { border-color: var(--accent); color: var(--accent); }
.chip-lg.is-on { background: var(--surface2); }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: .6rem; height: var(--header-h); position: relative; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--text); cursor: pointer; transition: background .2s; }
.icon-btn:hover { background: var(--surface2); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none !important; flex: none; }
.brand-logo { border-radius: 50%; display: block; }
.brand-word { font: 700 1.25rem var(--font-head); letter-spacing: -.02em; }
.brand-word b { font-weight: 700; background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.main-nav { display: none; gap: .25rem; margin-left: 1rem; }
.main-nav a { color: var(--muted); padding: .5rem .85rem; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none !important; transition: color .2s, background .2s; }
.main-nav a:hover { color: var(--text); background: var(--surface2); }
.main-nav a[aria-current="page"] { color: var(--text); background: var(--surface2); box-shadow: inset 0 -2px 0 var(--accent); }
.bar-actions { margin-left: auto; display: flex; align-items: center; gap: .15rem; }
.ico-sun { display: none; } [data-theme="light"] .ico-sun { display: inline-flex; } [data-theme="light"] .ico-moon { display: none; }
.ico-moon, .ico-sun { display: inline-flex; }
[data-theme="dark"] .ico-sun { display: none; }

.search { position: relative; display: flex; align-items: center; }
.search input { width: 0; opacity: 0; padding: 0; border: 0; background: var(--surface); color: var(--text); font: inherit; height: 40px; border-radius: 999px; transition: width .3s var(--ease), opacity .2s, padding .3s; }
.search.open input { width: min(260px, 38vw); opacity: 1; padding: 0 1rem; border: 1px solid var(--line); }
.suggest { position: absolute; top: calc(100% + 8px); right: 0; width: min(420px, 92vw); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .5rem; max-height: 70vh; overflow: auto; z-index: 60; }
.suggest h4 { margin: .5rem .6rem .25rem; font: 600 .72rem var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.suggest a { display: flex; align-items: center; gap: .7rem; padding: .5rem .6rem; border-radius: 10px; color: var(--text); text-decoration: none !important; font-size: .92rem; }
.suggest a:hover, .suggest a:focus { background: var(--surface2); }
.suggest img { width: 64px; height: 36px; object-fit: cover; border-radius: 6px; flex: none; }
.suggest .none { padding: .8rem; color: var(--muted); font-size: .9rem; }

.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: .3rem; height: 44px; padding: 0 .6rem; border: 0; background: transparent; color: var(--text); font: 600 .85rem var(--font-body); border-radius: 999px; cursor: pointer; }
.lang-btn:hover { background: var(--surface2); }
.lang-list { position: absolute; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: .35rem; min-width: 150px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 60; }
.lang-list[hidden] { display: none; }
.lang-list a { display: block; padding: .5rem .75rem; border-radius: 8px; color: var(--text); text-decoration: none !important; }
.lang-list a:hover { background: var(--surface2); }
.lang-list a[aria-current="true"] { color: var(--accent); font-weight: 600; }

/* Menú lateral */
.drawer[hidden] { display: none; }
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(3,4,16,.6); opacity: 0; transition: opacity .25s; }
.drawer-panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(88vw, 360px); background: var(--bg2); border-right: 1px solid var(--line); padding: 1rem 1.2rem 2rem; overflow: auto; transform: translateX(-100%); transition: transform .28s var(--ease); }
.drawer.open .drawer-backdrop { opacity: 1; } .drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.drawer-nav { display: grid; gap: .15rem; }
.drawer-nav a, .drawer-list a { display: block; padding: .6rem .75rem; border-radius: 10px; color: var(--text); font-weight: 600; text-decoration: none !important; }
.drawer-nav a:hover, .drawer-list a:hover { background: var(--surface2); }
.drawer-title { font: 600 .75rem var(--font-body); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 1.4rem .75rem .4rem; }
.drawer-list { list-style: none; margin: 0; padding: 0; }
.drawer-list a { font-weight: 400; color: var(--muted); }

/* Móvil: el buscador ocupa toda la barra al abrirse */
@media (max-width: 899px) {
  .search.open { position: absolute; inset: 0; z-index: 5; background: var(--bg); align-items: center; padding: 0 .5rem; }
  .search.open input { width: auto; flex: 1; }
  .search.open #search-toggle { order: 2; }
  .brand-word { font-size: 1.1rem; }
}
@media (min-width: 900px) { .main-nav { display: flex; } }

/* Portada: bloque de vídeo */
.hero { padding-top: clamp(1rem, .5rem + 2vw, 2rem); }
.hero-tabs { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .3rem; margin-bottom: .9rem; scrollbar-width: none; }
.hero-tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 40px; padding: .4rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 600 .9rem var(--font-body); cursor: pointer; transition: all .2s; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--on-accent); background: linear-gradient(135deg, var(--accent), var(--accent-strong)); border-color: transparent; }
.hero-grid { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1fr) clamp(340px, 30vw, 440px); align-items: stretch; } }
.hero-info { padding: .9rem .2rem 0; }
.hero-info h2 { font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem); margin-bottom: .35rem; }
.hero-info h2 a, .video-title a { color: var(--text); }
.hero-list { display: flex; flex-direction: column; min-height: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; max-height: 480px; }
@media (min-width: 1000px) { .hero-list { contain: size; max-height: none; min-height: 380px; } }
.seg { display: inline-flex; background: var(--surface2); border-radius: 999px; padding: 3px; gap: 2px; align-self: flex-start; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg button, .seg a { flex: none; border: 0; background: transparent; color: var(--muted); font: 600 .82rem var(--font-body); padding: .42rem .85rem; border-radius: 999px; cursor: pointer; text-decoration: none !important; min-height: 34px; display: inline-flex; align-items: center; }
.seg [aria-selected="true"], .seg [aria-current="true"] { background: var(--bg2); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.seg-inline { margin-bottom: 1.4rem; }
.vlist { list-style: none; margin: .7rem 0 0; padding: 0; overflow-y: auto; flex: 1; scrollbar-width: thin; }
.vlist li a { display: grid; grid-template-columns: 124px 1fr; gap: .7rem; padding: .45rem; border-radius: 10px; color: var(--text); text-decoration: none !important; }
.vlist li a:hover, .vlist li.is-active a { background: var(--surface2); }
.vthumb { position: relative; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: var(--surface2); display: block; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vtext { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.vtitle { font-weight: 600; font-size: .9rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dur { position: absolute; right: 5px; bottom: 5px; background: rgba(0,0,0,.78); color: #fff; font-size: .72rem; font-weight: 600; padding: 1px 6px; border-radius: 5px; }
.more-link { display: inline-block; margin-top: .6rem; font-weight: 600; font-size: .9rem; }

/* Reproductor */
.player { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.player iframe, .player video, .player .player-facade { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.player-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.player-facade:hover img { transform: scale(1.03); }
.yt-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-strong), var(--accent2)); box-shadow: 0 8px 30px rgba(139,123,255,.55); transition: transform .25s var(--ease); }
.yt-play::after { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 23px; border-color: transparent transparent transparent #fff; }
.player-facade:hover .yt-play, .yt-embed-link:hover .yt-play { transform: scale(1.1); }
.player-end { position: absolute; inset: 0; background: rgba(7,9,28,.94); padding: 1rem; display: flex; flex-direction: column; gap: .8rem; overflow: auto; z-index: 3; }
.player-end h3 { margin: 0; color: #fff; }
.player-end .end-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
.player-end a { color: #fff; font-size: .82rem; text-decoration: none !important; }
.player-end img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; display: block; margin-bottom: .25rem; }
.preroll { position: absolute; inset: 0; z-index: 4; background: #000; display: flex; align-items: center; justify-content: center; }
.preroll video, .preroll img { width: 100%; height: 100%; object-fit: contain; }
.preroll .skip-ad { position: absolute; right: 12px; bottom: 12px; }
.preroll .ad-tag { position: absolute; left: 12px; top: 12px; font-size: .72rem; background: rgba(0,0,0,.7); color: #fff; padding: 2px 8px; border-radius: 6px; }

/* Secciones y tarjetas */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.section-head h2 { margin: 0; }
.page-head { margin-bottom: 1rem; }
.h-sm { font-size: 1.25rem; margin: 2rem 0 1rem; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: var(--shadow); }
.card-media { display: block; aspect-ratio: 16/9; background: var(--surface2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #1b2048, #3a2a6b 60%, #7a2f78); }
.ph b { font: 700 3rem var(--font-head); color: rgba(255,255,255,.55); }
.card-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }
.card-title { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.card-title a { color: var(--text); text-decoration: none !important; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card .chip { position: relative; z-index: 2; }
.card-ex { margin: 0; color: var(--muted); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-big .card-title { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); }
.card-row, .card-compact { display: grid; grid-template-columns: 112px 1fr; }
.card-row .card-media, .card-compact .card-media { position: relative; aspect-ratio: auto; height: 100%; min-height: 96px; }
.card-row .card-media img, .card-compact .card-media img, .card-row .ph, .card-compact .ph { position: absolute; inset: 0; }
.card-row .card-body, .card-compact .card-body { padding: .8rem .9rem; justify-content: center; }
.card-row .card-ex { -webkit-line-clamp: 2; }
.card-compact .card-title { font-size: .98rem; }
@media (min-width: 640px) { .card-row { grid-template-columns: 260px 1fr; } .card-row .card-media { aspect-ratio: 16/10; height: auto; } .card-row .card-title { font-size: 1.2rem; } }
.featured-grid { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .featured-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.featured-side { display: grid; gap: .9rem; align-content: start; }
.row-list { display: grid; gap: 1rem; }
@media (min-width: 1100px) { .row-list { grid-template-columns: 1fr 1fr; } }
.lead { margin-bottom: 1.2rem; }
.grid-3 { display: grid; gap: 1.4rem 1.1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-4 { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card-tile .card-media { aspect-ratio: 16/9; }
.vcard-media { position: relative; display: block; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: var(--surface2); }
.vcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.vcard:hover .vcard-media img { transform: scale(1.05); }
.vcard-title { margin: .6rem 0 .2rem; font-size: 1rem; line-height: 1.35; }
.vcard-title a { color: var(--text); text-decoration: none !important; }
.channels { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.channel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; display: flex; flex-direction: column; gap: .4rem; }
.channel h3 { margin: 0; } .channel p { color: var(--muted); font-size: .93rem; flex: 1; margin: 0 0 .6rem; }
.channel-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.channel-links .btn { min-height: 40px; padding: .4rem 1rem; font-size: .88rem; }
.newsletter { text-align: center; padding: 2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }

/* Artículo */
.article-wrap { display: grid; gap: 2rem; padding-block: clamp(1.2rem, 1rem + 2vw, 2.5rem); }
@media (min-width: 1100px) { .article-wrap.has-side { grid-template-columns: minmax(0, 1fr) 300px; } .article-side { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; } }
.article { min-width: 0; max-width: 820px; width: 100%; margin-inline: auto; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.article-head { margin-bottom: 1.2rem; } .article-head h1 { margin: .5rem 0 .6rem; }
.article-hero { margin: 0 0 1.6rem; } .article-hero img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.prose { font-size: clamp(1.02rem, .98rem + .25vw, 1.15rem); line-height: 1.8; }
.prose > * { max-width: 100%; }
.prose h2, .prose h3, .prose h4 { margin: 2em 0 .6em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: 10px; height: auto; display: block; margin: 1.2rem auto; }
.prose figure { margin: 1.4rem 0; } .prose figcaption { color: var(--muted); font-size: .88rem; text-align: center; margin-top: .4rem; }
.prose blockquote { margin: 1.5rem 0; padding: .8rem 1.2rem; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4rem; } .prose li { margin: .3em 0; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; width: 100%; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; }
.prose pre { overflow-x: auto; padding: 1rem; background: var(--surface); border-radius: 10px; font-size: .9rem; }
.prose code { font-size: .92em; background: var(--surface); padding: .1em .35em; border-radius: 5px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.yt-embed { position: relative; aspect-ratio: 16/9; margin: 1.5rem 0; border-radius: var(--radius); overflow: hidden; background: #000; }
.yt-embed iframe, .yt-embed-link { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.yt-embed-link img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; }
.share { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; margin: 2.2rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.video-layout { display: grid; gap: 1.6rem; }
@media (min-width: 1000px) { .video-layout { grid-template-columns: minmax(0, 1fr) 380px; } }
.video-title { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); margin: 1rem 0 .4rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.video-desc { font-size: 1rem; line-height: 1.7; background: var(--surface); padding: 1rem 1.2rem; border-radius: var(--radius); margin-top: 1rem; overflow-wrap: anywhere; }
.video-related h2 { font-size: 1.1rem; }

/* Buscador / paginación / error */
.search-page { display: flex; gap: .6rem; margin: 1rem 0 1.4rem; }
.search-page input { flex: 1; min-height: 48px; padding: 0 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; }
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; }
.pager-pages { display: flex; gap: .25rem; align-items: center; }
.pager-pages a { min-width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--text); text-decoration: none !important; font-weight: 600; }
.pager-pages a:hover { background: var(--surface2); } .pager-pages a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.error-page { padding-block: 5rem; } .error-code { font: 700 clamp(4rem, 12vw, 8rem) var(--font-head); line-height: 1; margin: 0; background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Publicidad */
.ad-slot { margin: 1.4rem auto; text-align: center; min-height: 90px; position: relative; padding-top: 1rem; overflow: hidden; }
.ad-label { position: absolute; top: 0; left: 50%; transform: translateX(-50%); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Pie */
.site-footer { margin-top: 3rem; border-top: 1px solid var(--line); background: var(--bg2); }
.footer-grid { display: grid; gap: 2rem; padding-block: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 36ch; margin-top: .8rem; }
.site-footer h2 { font: 600 .78rem var(--font-body); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer li a { color: var(--text); }
.footer-bottom { padding-block: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

/* Cookies */
.consent { position: fixed; z-index: 90; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(720px, calc(100% - 24px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.2rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.consent[hidden] { display: none; } .consent p { margin: 0; flex: 1 1 320px; font-size: .9rem; color: var(--muted); }
.consent-btns { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Animaciones de aparición al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .card.reveal.in:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Pantallas grandes y televisores */
@media (min-width: 1920px) { html { font-size: 112.5%; } :root { --maxw: 1640px; --header-h: 72px; } }
@media (min-width: 2560px) { html { font-size: 137.5%; } :root { --maxw: 2000px; --header-h: 80px; } }
@media (pointer: coarse) { .chip-lg, .tab, .seg button, .seg a { min-height: 44px; } }
@media (max-width: 520px) {
  .vlist li a { grid-template-columns: 112px 1fr; }
  .search-page { flex-direction: column; }
  .consent { bottom: 8px; }
}
@media print { .site-header, .site-footer, .consent, .ad-slot, .share, .drawer { display: none !important; } body { background: #fff; color: #000; } }

/* ---------- Cuentas ---------- */
.auth-wrap { padding-block: clamp(1.5rem, 5vw, 4rem); display: flex; justify-content: center; }
.auth-card { width: min(100%, 440px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--shadow); }
.auth-card-wide { width: min(100%, 560px); }
.auth-card h1 { margin: 0 0 1rem; font-size: 1.6rem; }
.auth-card h2 { margin: 1.8rem 0 .6rem; font-size: 1.1rem; }
.field { display: block; margin: 0 0 1rem; }
.field > span { display: block; font-size: .88rem; color: var(--muted); margin-bottom: .3rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: .55rem .8rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field small { display: block; color: var(--muted); font-size: .8rem; margin-top: .3rem; }
.alert { padding: .7rem .9rem; border-radius: var(--radius-sm); margin: 0 0 1rem; font-size: .93rem; }
.alert-err { background: rgba(228,80,100,.14); border: 1px solid rgba(228,80,100,.5); }
.alert-ok { background: rgba(60,190,130,.14); border: 1px solid rgba(60,190,130,.5); }
.auth-alt { margin: 1.2rem 0 0; color: var(--muted); font-size: .92rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; margin: 0 0 1.2rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-all; }
.role-badge { display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: .82rem; font-weight: 600; border: 1px solid var(--line); background: var(--surface2); }
.role-admin { border-color: var(--accent2); } .role-editor { border-color: var(--accent); }
.logout-form { margin-top: 2rem; }
.icon-btn.account.in { color: var(--accent); }

/* Favoritos y comentarios */
.fav-form { display: inline-block; margin: 0; }
.fav-btn.is-on { border-color: var(--accent, currentColor); }
.share .fav-form, .share .fav-btn { margin-left: .75rem; }
.comments { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.comment-list { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .9rem; }
.comment { padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.comment-meta { margin: 0 0 .3rem; font-size: .88rem; color: var(--muted, inherit); }
.comment-body { margin: 0; overflow-wrap: anywhere; }
.comment-form textarea { width: 100%; min-height: 6rem; resize: vertical; }
.comment-form .hp, .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.comments-login { display: flex; gap: .6rem; flex-wrap: wrap; }
.fav-list { padding-left: 1.2rem; }

.notice { padding: .7rem .9rem; border-radius: var(--radius-sm); margin: 0 0 1.2rem; border: 1px solid var(--line); background: var(--surface2); }
.notice-expired { border-color: rgba(228,160,60,.6); background: rgba(228,160,60,.12); }

/* Juegos */
.game-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0 0 .4rem; }
.chip-premium { border-color: rgba(228,160,60,.7); background: rgba(228,160,60,.14); }
.notice-premium { max-width: 40rem; }
.game-frame { width: 100%; max-width: calc(var(--gw) * 1px); aspect-ratio: var(--gw) / var(--gh); margin: 0 0 1rem; background: #000; border-radius: var(--radius-sm); overflow: hidden; }
.game-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.game-files { list-style: none; padding: 0; display: grid; gap: .6rem; }
.game-desc { margin-top: 1.5rem; }
