:root {
  --bg: #0d0b1a;
  --bg-2: #141129;
  --surface: #1a1633;
  --line: #2f2856;
  --text: #f5f2ff;
  --muted: #b3aad6;
  --pink: #ff4fa3;
  --orange: #ff9a3c;
  --cyan: #54e1ff;
  --grad: linear-gradient(100deg, var(--pink), var(--orange));
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 85% -10%, #2a1650 0%, transparent 60%), var(--bg);
  color: var(--text);
  font: 17px/1.6 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
small { color: var(--muted); }

.skip { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: 8px 14px; z-index: 20; }
.skip:focus { left: 8px; top: 8px; }

/* Barra de desbloqueo */
.unlock-bar {
  background: var(--grad);
  color: #1b0b1e;
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
  padding: 8px 16px;
}
.unlock-bar a { color: #1b0b1e; margin-left: 10px; white-space: nowrap; }

/* Cabecera */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 18px;
  padding: 12px max(20px, calc((100vw - var(--max)) / 2));
  background: rgba(13, 11, 26, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); background: var(--surface); }
.top nav .x-link { color: #1b0b1e; background: var(--grad); margin-left: 8px; }
.top nav .x-link:hover { color: #1b0b1e; filter: brightness(1.1); background: var(--grad); }
.nav-toggle { display: none; margin-left: auto; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; }

/* Estructura */
main { display: block; }
.block, .page-head, .article, .cta, .hero { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.block { margin-top: 56px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.block-head a { font-weight: 600; white-space: nowrap; }
.page-head { padding-top: 56px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.kicker { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 12px; }

/* Portada */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  padding-top: 64px; padding-bottom: 24px;
}
.hero::before {
  content: ""; position: absolute; right: 6%; top: 8%; width: 300px; aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(180deg, #ffb347, var(--pink) 75%);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 26px, transparent 26px 32px);
  mask: repeating-linear-gradient(180deg, #000 0 26px, transparent 26px 32px);
  opacity: 0.2; z-index: -1; filter: blur(0.5px);
}
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; text-decoration: none; }
.btn:hover { border-color: var(--pink); color: var(--text); }
.btn.primary { background: var(--grad); color: #1b0b1e; border-color: transparent; }
.btn.primary:hover { filter: brightness(1.1); color: #1b0b1e; }

.hero-clock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.clock-label { display: block; font-weight: 700; margin-bottom: 14px; }
.clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.clock span { background: var(--bg-2); border-radius: 10px; padding: 14px 4px 10px; }
.clock b { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); font-variant-numeric: tabular-nums; line-height: 1; }
.clock small { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.clock-note { display: block; margin-top: 14px; color: var(--muted); font-size: 0.85rem; }
.hero-clock.done .clock { display: none; }
.hero-clock.done .clock-label { font-size: 1.5rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Datos clave */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.facts dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 6px 0 10px; font-size: 1.25rem; font-weight: 800; }
.facts a { font-size: 0.85rem; }

/* Tarjetas */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--text); text-decoration: none; transition: transform 0.15s, border-color 0.15s; }
a.card:hover { transform: translateY(-3px); border-color: var(--pink); color: var(--text); }
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.card.soon { border-style: dashed; opacity: 0.8; }

/* Personajes */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.person { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; color: var(--text); text-decoration: none; }
.person:hover { border-color: var(--pink); color: var(--text); }
.person-text { display: flex; flex-direction: column; min-width: 0; }
.person small { font-size: 0.85rem; }
.avatar { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--grad); color: #1b0b1e; font-weight: 800; }
.avatar.big { width: 84px; height: 84px; font-size: 1.7rem; }
.entry-head { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; }
.entry-head h1 { margin-bottom: 4px; }

/* Vídeos */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.video { margin: 0; }
.yt { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2) center / cover no-repeat; cursor: pointer; padding: 0; overflow: hidden; }
.yt iframe { width: 100%; height: 100%; border: 0; }
.play { width: 68px; height: 68px; border-radius: 50%; background: rgba(13, 11, 26, 0.8); border: 2px solid #fff; position: relative; }
.play::after { content: ""; position: absolute; left: 26px; top: 19px; border-left: 22px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.yt:hover .play { background: var(--pink); }
.yt-link { text-decoration: none; color: var(--text); font-weight: 700; text-align: center; align-content: center; gap: 6px; padding: 20px; }
.video figcaption { display: flex; flex-direction: column; margin-top: 10px; }
.video figcaption small { font-size: 0.85rem; }

/* Artículos */
.article { max-width: 780px; padding-top: 56px; }
.meta { color: var(--muted); font-size: 0.95rem; }
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose blockquote { margin: 1.2em 0; padding: 4px 18px; border-left: 4px solid var(--pink); color: var(--muted); }
.sources { margin-top: 36px; padding: 18px 20px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
.sources h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; }
.sources ul { margin: 0; padding-left: 1.2em; }

/* Desbloqueo */
.unlock-you { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.unlock-big { font-size: clamp(1.3rem, 3.4vw, 2rem); font-weight: 800; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.unlock-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.unlock-table th, .unlock-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.unlock-table thead th { background: var(--bg-2); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.unlock-table tbody tr:last-child th, .unlock-table tbody tr:last-child td { border-bottom: 0; }
.unlock-table th small { display: block; font-weight: 400; font-size: 0.82rem; }
.unlock-table .open { color: #6dffb0; font-weight: 700; }
.mark { color: var(--orange); }
.footnote { color: var(--muted); font-size: 0.9rem; margin-top: 14px; }

/* Llamada final y pie */
.cta { margin-top: 72px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 24px; max-width: calc(var(--max) - 40px); }
.cta p { color: var(--muted); }
.foot { margin-top: 80px; border-top: 1px solid var(--line); background: var(--bg-2); padding: 40px max(20px, calc((100vw - var(--max)) / 2)) 28px; }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot nav { display: flex; flex-direction: column; gap: 8px; }
.foot p { color: var(--muted); font-size: 0.95rem; }
.disclaimer { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.85rem; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero::before { width: 200px; right: 4%; top: 2%; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .foot-cols { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .top nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 10px 20px 16px; }
  .top nav.open { display: flex; }
  .top nav a { padding: 12px; }
  .top nav .x-link { margin: 8px 0 0; text-align: center; }
  .cta { margin-left: 20px; margin-right: 20px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .facts { grid-template-columns: 1fr; }
  .unlock-bar a { display: block; margin: 2px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
