:root {
  --bg: #030a24;
  --panel: #0a1638;
  --line: #1b2b5e;
  --text: #e9eefc;
  --muted: #9fb0d8;
  --accent: #2f8bff;
  --glow: #5fd0ff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 70% -10%, #10328f55, transparent), var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--glow); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: 1.5rem; margin-top: 2.2em; }
.meta, .crumbs { color: var(--muted); font-size: .85rem; }

.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 10px 20px;
  background: #030a24e6; backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand img { border-radius: 10px; }
.top nav { display: flex; align-items: center; gap: 18px; }
.top nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.top nav a:not(.btn):hover { color: var(--text); }

/* El rojo de YouTube queda reservado para los botones que llevan al canal: es el unico
   color calido de la pagina, asi resalta sobre el azul sin pelearse con el. */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px;
  background: #f03; color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap;
  box-shadow: 0 6px 22px #ff003355;
}
.btn:hover { background: #d9002b; }
.btn.small { padding: 8px 16px; font-size: .9rem; gap: 8px; }
.btn.small svg { width: 20px; height: 14px; }
.btn.ghost { background: none; box-shadow: none; border: 1px solid var(--accent); color: var(--text); }
.btn.ghost:hover { background: #2f8bff22; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }

.wrap, .hero { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.hero { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding-top: 64px; padding-bottom: 24px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.hero em { font-style: normal; color: var(--glow); text-shadow: 0 0 28px #2f8bff; }
.eyebrow { color: var(--glow); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); }
.portrait { border-radius: 50%; border: 3px solid var(--accent); box-shadow: 0 0 60px #2f8bff77; }

.featured, .card {
  display: block; color: var(--text); text-decoration: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.featured:hover, .card:hover { border-color: var(--accent); transform: translateY(-2px); }
.featured { display: grid; grid-template-columns: 1.2fr 1fr; }
.featured > div { padding: 24px; }
.featured h3 { font-size: 1.5rem; }
.featured p { color: var(--muted); }
.more { color: var(--glow); font-weight: 700; }
/* hqdefault viene en 4:3 con franjas negras: se recorta a 16:9 */
.featured img, .card img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.card img { height: auto; }
.card h3 { font-size: 1.05rem; padding: 14px 16px 16px; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

.shorts { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
.shorts a { flex: 0 0 170px; color: var(--text); text-decoration: none; font-size: .9rem; line-height: 1.3; scroll-snap-align: start; }
.shorts img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); display: block; margin-bottom: 8px; }
.shorts a:hover img { border-color: var(--accent); }

.about { max-width: 760px; }
.post { max-width: 800px; padding-top: 32px; }
.post h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.player { margin: 20px 0 28px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 0 60px #2f8bff33; }
.player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.post li { margin-bottom: .4em; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; }
.tags span { display: inline-block; margin: 0 6px 6px 0; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .85rem; }
.cta { margin-top: 2.5em; padding: 24px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }

.foot {
  max-width: 1100px; margin: 72px auto 0; padding: 28px 20px 40px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px;
  border-top: 1px solid var(--line); color: var(--muted);
}
.foot p { margin: .4em 0; }
.foot strong { color: var(--text); }

@media (max-width: 760px) {
  .top nav a:not(.btn) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .portrait { order: -1; width: 160px; }
  .featured { grid-template-columns: 1fr; }
}
