  :root {
    --blue: #517BD9;
    --blue-hi: #7D9EEA;
    --blue-deep: #26375F;
    --navy: #141C2F;
    --ink: #05070D;
    --card: #0B1120;
    --line: rgba(125, 158, 234, 0.16);
    --text: #F2F5FC;
    --muted: #8A96B3;
    --live: #FF4D5E;
    --ok: #3ECF8E;
    --display: "Syncopate", "Inter", sans-serif;
    --body: "Inter", -apple-system, "SF Pro Display", sans-serif;   /* Inter de verdad también en Mac/iPhone */
    --radius: 18px;
    --gutter: clamp(16px, 4vw, 56px);
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0; background: var(--ink); color: var(--text); font-family: var(--body);
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
  }
  a { color: inherit; text-decoration: none; }
  img { display: block; max-width: 100%; }
  button { font-family: inherit; cursor: pointer; }

  /* fondo de marca: glows azules */
  body::before {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background:
      radial-gradient(60vw 45vw at 92% -8%, rgba(81,123,217,.32), transparent 60%),
      radial-gradient(50vw 40vw at -5% 105%, rgba(81,123,217,.18), transparent 60%);
  }

  /* ---------- fondo ASCII que reacciona al ratón (toda la academia) ---------- */
  #ascii { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
  body.focus #ascii { display: none; }

  .view { position: relative; z-index: 1; display: none; }
  .view.on { display: block; z-index: 2; flex: 1 0 auto; padding-bottom: 70px; }
  body { min-height: 100vh; display: flex; flex-direction: column; }

  /* ---------- header ---------- */
  header {
    position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 28px;
    padding: 14px var(--gutter); transition: background .3s, border-color .3s;
    border-bottom: 1px solid transparent;
  }
  header.solid { background: rgba(5,7,13,.78); backdrop-filter: blur(18px); border-color: var(--line); }
  .brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
  .brand img { width: 26px; height: 29px; }
  .brand span { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .14em; line-height: 1.15; }
  nav.tabs { display: flex; gap: 4px; }
  nav.tabs a {
    padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted);
    transition: color .2s, background .2s;
  }
  nav.tabs a:hover { color: var(--text); }
  nav.tabs a.on { color: var(--text); background: rgba(81,123,217,.16); }
  .hdr-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
  .search {
    display: flex; align-items: center; gap: 10px; width: 260px; padding: 9px 14px;
    border: 1px solid var(--line); border-radius: 12px; background: rgba(20,28,47,.6); color: var(--muted); font-size: 14px;
  }
  .search kbd { margin-left: auto; font: 600 11px var(--body); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); }
  .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(255,77,94,.6); animation: pulse 1.6s infinite; }
  @keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(255,77,94,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,94,0); } }
  .avatar { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); display: grid; place-items: center; font: 700 12px/1 var(--body); letter-spacing: .03em; }

  /* ---------- hero ---------- */
  .hero { position: relative; height: min(82vh, 760px); margin-top: -64px; overflow: hidden; }
  .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: 85% 30%; transform: scale(1.04); animation: kb 18s ease-out forwards; }
  @keyframes kb { to { transform: scale(1.12); } }
  .hero::after {
    content: ""; position: absolute; inset: 0;
    background:
      linear-gradient(90deg, rgba(5,7,13,.97) 0%, rgba(5,7,13,.86) 42%, rgba(5,7,13,.15) 78%),
      linear-gradient(0deg, var(--ink) 0%, transparent 35%);
  }
  .hero-in { position: absolute; z-index: 2; left: var(--gutter); bottom: 13%; max-width: 760px; }
  .eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 11px var(--display); letter-spacing: .2em; color: var(--blue-hi); text-transform: uppercase; }
  .eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--blue); }
  h1, h2, h3, h4 { overflow-wrap: break-word; }
  .hero h1 { font: 700 clamp(26px, 3.3vw, 48px)/1.08 var(--display); text-transform: uppercase; margin: 18px 0 16px; letter-spacing: -.01em; }
  .hero p { color: #C5CDE0; font-size: 17px; line-height: 1.55; margin: 0 0 28px; max-width: 520px; }
  .meta { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 14px; margin-bottom: 26px; }
  .meta b { color: var(--text); font-weight: 600; }
  .btns { display: flex; gap: 12px; flex-wrap: wrap; }
  .btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 12px; border: 0;
    font: 700 15px var(--body); transition: transform .15s, box-shadow .2s, background .2s;
  }
  .btn:active { transform: scale(.97); }
  .btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 40px -10px rgba(81,123,217,.8); }
  .btn-primary:hover { background: #5f88e6; box-shadow: 0 14px 50px -8px rgba(81,123,217,.95); }
  .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); }
  .btn-ghost:hover { background: rgba(255,255,255,.14); }
  .hero-dots { position: absolute; z-index: 2; right: var(--gutter); bottom: 15%; display: flex; gap: 8px; }
  .hero-dots i { width: 28px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); }
  .hero-dots i.on { background: var(--blue); width: 48px; }

  /* ---------- rows ---------- */
  .row { padding: 34px 0 10px; }
  .row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 0 var(--gutter); margin-bottom: 18px; }
  .row-head h2 { font: 700 clamp(16px, 1.6vw, 22px) var(--display); text-transform: uppercase; margin: 0; letter-spacing: .02em; }
  .row-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
  .row-head a { color: var(--blue-hi); font-size: 14px; font-weight: 600; white-space: nowrap; }
  .rail {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: var(--gutter);
    padding: 6px var(--gutter) 26px; scrollbar-width: none;
  }
  .rail::-webkit-scrollbar { display: none; }

  .tile { position: relative; flex: 0 0 auto; scroll-snap-align: start; width: clamp(240px, 22vw, 330px); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
  .tile:hover { transform: translateY(-6px); }
  .thumb { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: var(--navy); border: 1px solid var(--line); }
  .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
  .tile:hover .thumb img { transform: scale(1.07); }
  .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,7,13,.65), transparent 55%); opacity: .8; }
  .tile:hover .thumb { border-color: rgba(81,123,217,.7); box-shadow: 0 18px 50px -18px rgba(81,123,217,.7); }
  .play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(81,123,217,.92); display: grid; place-items: center; opacity: 0; transform: scale(.7); transition: .25s; }
  .tile:hover .play { opacity: 1; transform: scale(1); }
  .tag { position: absolute; z-index: 2; top: 10px; left: 10px; padding: 4px 9px; border-radius: 7px; font: 700 10px var(--display); letter-spacing: .1em; text-transform: uppercase; background: rgba(5,7,13,.72); backdrop-filter: blur(8px); border: 1px solid var(--line); }
  .tag.new { background: var(--blue); border-color: var(--blue); }
  .tag.soon { color: #fff; display: inline-flex; align-items: center; gap: 5px; background: rgba(5,7,13,.72); border: 1px solid rgba(157,184,242,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .dur { position: absolute; z-index: 2; right: 10px; bottom: 10px; font: 600 12px var(--body); padding: 3px 7px; border-radius: 6px; background: rgba(5,7,13,.75); }
  .tile h3 { font: 700 15px/1.3 var(--body); margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .01em; }
  .by { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
  .by .mini { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; background: var(--blue-deep); display: grid; place-items: center; font: 700 8.5px/1 var(--body); letter-spacing: .04em; color: #fff; }
  .bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); margin-top: 12px; overflow: hidden; }
  .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-hi)); border-radius: 4px; }

  /* top 10 con números Syncopate en outline */
  .tile.ranked { width: clamp(300px, 27vw, 400px); display: flex; align-items: flex-start; }
  .rank { font: 700 clamp(90px, 9vw, 138px)/.78 var(--display); color: transparent; -webkit-text-stroke: 2px rgba(125,158,234,.55); margin-right: -18px; margin-top: clamp(48px, 5vw, 76px); flex-shrink: 0; letter-spacing: -.06em; }
  .tile.ranked .inner { flex: 1; min-width: 0; position: relative; z-index: 1; }

  /* formaciones: cards grandes con descripción al hover */
  .course { width: clamp(280px, 26vw, 380px); }
  .course .thumb { aspect-ratio: 16/10; }
  .course .desc { color: #AEB8CF; font-size: 13.5px; line-height: 1.5; margin: 8px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  .count { display: flex; gap: 10px; margin-left: auto; }
  .count div { text-align: center; padding: 10px 14px; border-radius: 12px; background: rgba(5,7,13,.6); border: 1px solid var(--line); min-width: 64px; }
  .count b { display: block; font: 700 24px var(--display); }
  .count span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

  /* comunidad */
  .community { margin: 40px var(--gutter) 0; border-radius: 24px; overflow: hidden; position: relative; min-height: 340px; display: flex; align-items: flex-end; }
  .community img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) brightness(.55); }
  .community::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,7,13,.92), rgba(5,7,13,.2)), linear-gradient(0deg, rgba(81,123,217,.35), transparent 60%); }
  .community .in { position: relative; z-index: 2; padding: 40px; max-width: 560px; }
  .community h2 { font: 700 clamp(22px, 2.6vw, 36px)/1.1 var(--display); text-transform: uppercase; margin: 14px 0 12px; }
  .community p { color: #C5CDE0; margin: 0 0 22px; line-height: 1.55; }
  .stats { display: flex; gap: 34px; margin-bottom: 0; }
  .stats b { display: block; font: 700 28px var(--display); color: var(--blue-hi); }
  .stats span { font-size: 13px; color: var(--muted); }

  footer { margin-top: auto; padding: 30px var(--gutter) 40px; border-top: 1px solid var(--line); display: flex; justify-content: center; text-align: center; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 13px; position: relative; z-index: 1; }

  /* ---------- ficha de curso ---------- */
  .c-hero { position: relative; min-height: 560px; margin-top: -64px; display: flex; align-items: flex-end; overflow: hidden; }
  .c-hero .bg { position: absolute; inset: 0 0 0 30%; background-size: cover; background-position: center; filter: brightness(.55) saturate(.85); -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }
  .c-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 5%, rgba(5,7,13,.6) 50%, rgba(5,7,13,.25)), linear-gradient(0deg, var(--ink), transparent 50%); }
  .c-in { position: relative; z-index: 2; padding: 120px var(--gutter) 48px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; width: 100%; align-items: end; }
  .c-in h1 { font: 700 clamp(30px, 4vw, 56px)/1.05 var(--display); text-transform: uppercase; margin: 16px 0; }
  .c-in p { color: #C5CDE0; font-size: 16px; line-height: 1.6; max-width: 600px; margin: 0 0 24px; }
  .glass { background: rgba(11,17,32,.72); backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
  .prog-big { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
  .prog-big b { color: var(--text); font: 700 26px var(--display); }
  .author { display: flex; gap: 14px; align-items: center; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
  .author .ph { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); display: grid; place-items: center; font: 700 16px var(--display); }
  .author b { display: block; }
  .author span { color: var(--muted); font-size: 13px; }

  .modules { padding: 10px var(--gutter) 0; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; }
  .mod-list { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 90px; align-self: start; }
  .mod-list button { text-align: left; padding: 14px 16px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; }
  .mod-list button.on { background: var(--card); color: var(--text); border-color: rgba(81,123,217,.45); }
  .mod-list button small { color: var(--muted); font-weight: 500; }
  .eps { display: flex; flex-direction: column; gap: 10px; }
  .ep { display: grid; grid-template-columns: 54px 180px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 12px; border-radius: 16px; border: 1px solid transparent; transition: .2s; }
  .ep:hover { background: var(--card); border-color: var(--line); }
  .ep .n { font: 700 22px var(--display); letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1.5px rgba(125,158,234,.6); text-align: center; }
  .ep .thumb { aspect-ratio: 16/9; border-radius: 10px; }
  .ep h4 { margin: 0 0 6px; font-size: 15px; font-weight: 700; text-transform: uppercase; overflow-wrap: break-word; hyphens: auto; }
  .ep p { margin: 0; color: var(--muted); font-size: 13px; }
  .ep .state { font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
  .ep .state.done { color: var(--ok); background: rgba(62,207,142,.1); }
  .ep .state.now { color: #fff; background: var(--blue); }

  /* ---------- reproductor ---------- */
  .player { padding: 26px var(--gutter) 0; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; }
  .screen { position: relative; aspect-ratio: 16/9; border-radius: 20px; overflow: hidden; border: 1px solid rgba(81,123,217,.35); box-shadow: 0 30px 90px -30px rgba(81,123,217,.6); }
  .screen img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.7); }
  .screen .big-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px; border-radius: 50%; background: rgba(81,123,217,.95); display: grid; place-items: center; box-shadow: 0 0 0 14px rgba(81,123,217,.2); }
  .ctrl { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 22px; background: linear-gradient(0deg, rgba(5,7,13,.9), transparent); display: flex; align-items: center; gap: 14px; font-size: 13px; }
  .ctrl .track { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.2); position: relative; }
  .ctrl .track i { position: absolute; inset: 0 62% 0 0; background: var(--blue); border-radius: 4px; }
  .p-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin: 22px 0 0; flex-wrap: wrap; }
  .p-title h1 { font: 700 clamp(20px, 2.2vw, 30px)/1.15 var(--display); text-transform: uppercase; margin: 8px 0 0; }
  .side { display: flex; flex-direction: column; gap: 16px; }
  .side-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
  .side-tabs button { flex: 1; padding: 10px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 600; font-size: 13px; }
  .side-tabs button.on { background: var(--blue-deep); color: #fff; }
  .playlist { display: flex; flex-direction: column; gap: 6px; max-height: 520px; overflow: auto; }
  .pl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 8px; border-radius: 12px; align-items: center; border: 1px solid transparent; }
  .pl:hover { background: var(--card); }
  .pl.on { background: rgba(81,123,217,.14); border-color: rgba(81,123,217,.5); }
  .pl .thumb { aspect-ratio: 16/9; border-radius: 8px; }
  .pl b { display: block; font-size: 13px; text-transform: uppercase; line-height: 1.3; }
  .pl span { font-size: 12px; color: var(--muted); }
  textarea { width: 100%; min-height: 200px; resize: vertical; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 16px; font: 14px/1.6 var(--body); }


  /* ---------- ajustes ---------- */
  .settings { padding: 40px var(--gutter) 0; display: grid; grid-template-columns: 280px minmax(0, 720px); gap: 32px; justify-content: center; }
  .settings h1 { grid-column: 1 / -1; font: 700 clamp(26px, 3vw, 40px) var(--display); text-transform: uppercase; margin: 0; }
  .s-nav { display: flex; flex-direction: column; gap: 6px; align-self: start; position: sticky; top: 90px; }
  .s-nav button, .s-nav a { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 14.5px; font-weight: 600; text-align: left; }
  .s-nav button:hover, .s-nav a:hover { color: var(--text); background: rgba(255,255,255,.03); }
  .s-nav button.on { color: var(--text); background: var(--card); border-color: rgba(81,123,217,.45); }
  .s-nav button.on svg { color: var(--blue-hi); }
  .s-nav hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
  .s-nav .out { color: #FF8A95; }
  .panel { background: linear-gradient(180deg, rgba(20,28,47,.7), rgba(11,17,32,.85)); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 3vw, 36px); }
  .panel h2 { font: 700 16px var(--display); text-transform: uppercase; margin: 0 0 6px; letter-spacing: .03em; }
  .panel > p { color: var(--muted); margin: 0 0 26px; font-size: 14px; }
  .who { display: flex; align-items: center; gap: 22px; padding: 22px; border-radius: 18px; background: radial-gradient(120% 140% at 0% 0%, rgba(81,123,217,.28), transparent 60%), rgba(5,7,13,.45); border: 1px solid var(--line); margin-bottom: 28px; }
  .av { position: relative; width: 96px; height: 96px; flex-shrink: 0; cursor: pointer; }
  .av .ring { position: absolute; inset: 0; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, var(--blue), #9DB8F2, var(--blue-deep), var(--blue)); }
  .av .ring div { width: 100%; height: 100%; border-radius: 50%; background: var(--ink) center/cover; display: grid; place-items: center; font: 700 26px var(--display); }
  .av .cam { position: absolute; right: -2px; bottom: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); border: 3px solid var(--ink); display: grid; place-items: center; transition: transform .2s; }
  .av:hover .cam { transform: scale(1.1); }
  .who b { display: block; font: 700 20px var(--display); text-transform: uppercase; }
  .who span { color: var(--muted); font-size: 14px; }
  .chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 5px 10px; border-radius: 8px; background: rgba(81,123,217,.14); border: 1px solid rgba(81,123,217,.35); color: var(--blue-hi); font: 700 10px var(--display); letter-spacing: .12em; text-transform: uppercase; }
  .field { margin-bottom: 20px; }
  .field label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: #C5CDE0; margin-bottom: 8px; }
  .field label small { color: var(--muted); font-weight: 500; }
  .inp { position: relative; }
  .inp input { width: 100%; padding: 15px 46px 15px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(5,7,13,.55); color: var(--text); font: 15px var(--body); outline: none; transition: border-color .2s, box-shadow .2s; }
  .inp input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(81,123,217,.18); }
  .inp input:disabled { color: var(--muted); cursor: not-allowed; }
  .inp .ico { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); background: none; border: 0; padding: 4px; display: grid; }
  .help { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
  .help a { color: var(--blue-hi); }
  .strength { display: flex; gap: 6px; margin-top: 10px; }
  .strength i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); transition: background .25s; }
  .strength-txt { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
  .rules { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin: 4px 0 24px; font-size: 13px; color: var(--muted); }
  .rules span::before { content: "○ "; }
  .rules span.ok { color: var(--ok); }
  .rules span.ok::before { content: "✓ "; }
  .actions { display: flex; justify-content: flex-end; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); margin-top: 6px; }
  .toast { position: fixed; z-index: 120; left: 50%; top: 84px; transform: translate(-50%, -20px); opacity: 0; padding: 12px 18px; border-radius: 12px; background: rgba(62,207,142,.14); border: 1px solid rgba(62,207,142,.45); color: #BFF3DA; font-weight: 600; font-size: 14px; transition: .3s; pointer-events: none; }
  .toast.on { opacity: 1; transform: translate(-50%, 0); }
  @media (max-width: 900px) {
    .settings { grid-template-columns: 1fr; }
    .s-nav { position: static; flex-direction: row; overflow-x: auto; }
    .s-nav hr, .s-nav a { display: none; }
    .who { flex-direction: column; text-align: center; }
    .rules { grid-template-columns: 1fr; }
    .actions .btn { flex: 1; justify-content: center; }
  }


  /* recursos de la clase */
  .res { position: relative; }
  .res-btn { display: inline-flex; align-items: center; gap: 10px; }
  .res-btn .count-b { min-width: 22px; height: 22px; border-radius: 7px; background: var(--blue); display: grid; place-items: center; font: 700 12px var(--body); }
  .res-menu { position: absolute; left: 0; bottom: calc(100% + 10px); width: 340px; padding: 8px; border-radius: 16px; background: rgba(11,17,32,.97); border: 1px solid rgba(81,123,217,.4); box-shadow: 0 24px 60px -20px rgba(0,0,0,.8); backdrop-filter: blur(18px); display: none; z-index: 30; }
  .res.open .res-menu { display: block; }
  .res-menu small { display: block; padding: 8px 10px 6px; color: var(--muted); font: 700 10px var(--display); letter-spacing: .14em; text-transform: uppercase; }
  .res-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; }
  .res-item:hover { background: rgba(81,123,217,.12); }
  .res-item .ft { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font: 700 10px var(--display); letter-spacing: .05em; background: rgba(255,92,92,.14); color: #FF8A95; border: 1px solid rgba(255,92,92,.3); }
  .res-item .ft.sheet { background: rgba(62,207,142,.12); color: var(--ok); border-color: rgba(62,207,142,.3); }
  .res-item b { display: block; font-size: 14px; }
  .res-item span { font-size: 12px; color: var(--muted); }
  .res-item svg { color: var(--blue-hi); }
  .ep-res { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 2px 7px; border-radius: 6px; font: 700 10px var(--display); letter-spacing: .08em; color: var(--blue-hi); background: rgba(81,123,217,.14); vertical-align: middle; }
  @media (max-width: 640px) { .res-menu { position: fixed; left: 16px; right: 16px; top: auto; bottom: 80px; width: auto; } }


  /* ---------- modo foco: solo vídeo + notas ---------- */
  .focus-bar, .nt-head { display: none; }
  body.focus { overflow: hidden; }
  body.focus::before, body.focus header, body.focus footer, body.focus .proto-note,
  body.focus .p-title, body.focus .side-tabs, body.focus #pl { display: none !important; }
  body.focus .player {
    position: fixed; inset: 0; z-index: 200; margin: 0; padding: 18px 22px 22px; background: #000;
    grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto minmax(0, 1fr); gap: 16px 20px;
    animation: fin .35s ease;
  }
  @keyframes fin { from { opacity: 0; transform: scale(.985); } }
  body.focus .focus-bar { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 16px; }
  .focus-bar .t { display: flex; align-items: center; gap: 14px; min-width: 0; }
  .focus-bar .t img { width: 22px; height: 24px; }
  .focus-bar .t b { font: 700 13px var(--display); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .focus-bar .t span { color: var(--muted); font-size: 13px; white-space: nowrap; }
  .focus-bar .exit { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--text); font-weight: 600; font-size: 13px; }
  .focus-bar .exit kbd { font: 600 11px var(--body); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); color: var(--muted); }
  body.focus .player > div:not(.focus-bar) { min-height: 0; display: flex; align-items: center; justify-content: center; }
  body.focus .screen { aspect-ratio: 16/9; width: min(100%, calc((100vh - 100px) * 16 / 9)); height: auto; border-radius: 16px; box-shadow: none; }
  body.focus .side { min-height: 0; }
  body.focus #nt { display: flex !important; flex-direction: column; height: 100%; padding: 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
  body.focus .nt-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
  .nt-head b { font: 700 14px var(--display); text-transform: uppercase; letter-spacing: .04em; }
  .nt-head span { color: var(--muted); font-size: 12px; }
  body.focus #nt textarea { flex: 1; min-height: 0; resize: none; background: rgba(5,7,13,.6); }
  @media (max-width: 900px) {
    body.focus .player { grid-template-columns: 1fr; grid-template-rows: auto auto minmax(0, 1fr); padding: 12px; }
    body.focus .screen { aspect-ratio: 16/9; height: auto; }
    .focus-bar .t span { display: none; }
  }


  /* ---------- v2: navegación completa ---------- */
  .icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: rgba(20,28,47,.6); color: var(--text); display: grid; place-items: center; }
  .icon-btn:hover { border-color: rgba(81,123,217,.6); }
  .menu-btn { display: none; }
  .search { cursor: pointer; transition: border-color .2s; }
  .search:hover { border-color: rgba(81,123,217,.6); color: var(--text); }
  .avatar { border: 0; color: #fff; cursor: pointer; position: relative; background-size: cover; background-position: center; }

  /* menú del avatar */
  .drop { position: absolute; right: var(--gutter); top: 62px; width: 260px; padding: 8px; border-radius: 16px; background: rgba(11,17,32,.97); border: 1px solid rgba(81,123,217,.35); box-shadow: 0 24px 60px -20px rgba(0,0,0,.8); backdrop-filter: blur(18px); display: none; z-index: 60; }
  .drop.open { display: block; animation: fin .2s ease; }
  .drop .me { display: flex; gap: 12px; align-items: center; padding: 10px 10px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
  .drop .me b { display: block; font-size: 14px; }
  .drop .me span { font-size: 12px; color: var(--muted); }
  .drop a { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 10px; font-size: 14px; font-weight: 500; color: #C5CDE0; }
  .drop a:hover { background: rgba(81,123,217,.12); color: #fff; }
  .drop a.out { color: #FF8A95; }

  /* menú móvil */
  .sheet { position: fixed; inset: 0; z-index: 150; background: rgba(5,7,13,.6); backdrop-filter: blur(6px); display: none; }
  .sheet.open { display: block; }
  .sheet nav { position: absolute; left: 0; top: 0; bottom: 0; width: min(320px, 86vw); padding: 22px 18px; background: var(--card); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; animation: slin .25s ease; }
  @keyframes slin { from { transform: translateX(-30px); opacity: 0; } }
  .sheet nav a { padding: 14px 14px; border-radius: 12px; font-weight: 600; color: var(--muted); }
  .sheet nav a.on { background: rgba(81,123,217,.16); color: #fff; }
  .sheet .brand { margin-bottom: 18px; }

  /* hero con slides */
  .hero-bg { transition: opacity .8s ease; }
  .hero-in > * { animation: up .6s cubic-bezier(.2,.8,.2,1) both; }
  .hero-in > *:nth-child(2) { animation-delay: .05s; } .hero-in > *:nth-child(3) { animation-delay: .1s; } .hero-in > *:nth-child(4) { animation-delay: .15s; } .hero-in > *:nth-child(5) { animation-delay: .2s; }
  @keyframes up { from { opacity: 0; transform: translateY(14px); } }
  .hero-dots button { width: 28px; height: 3px; padding: 0; border: 0; border-radius: 3px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; transition: width .3s; }
  .hero-dots button.on { width: 56px; }
  .hero-dots button.on::after { content: ""; position: absolute; inset: 0; background: var(--blue); transform-origin: left; animation: fill 7s linear forwards; }
  @keyframes fill { from { transform: scaleX(0); } }

  /* flechas de los carruseles */
  .rail-wrap { position: relative; }
  .arrow { position: absolute; top: 6px; bottom: 26px; width: var(--gutter); min-width: 44px; border: 0; z-index: 3; display: grid; place-items: center; color: #fff; opacity: 0; transition: opacity .2s; }
  .arrow.l { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
  .arrow.r { right: 0; background: linear-gradient(-90deg, var(--ink), transparent); }
  .rail-wrap:hover .arrow { opacity: 1; }
  .arrow span { width: 40px; height: 40px; border-radius: 50%; background: rgba(11,17,32,.9); border: 1px solid var(--line); display: grid; place-items: center; }
  .arrow:hover span { background: var(--blue); }
  .empty { padding: 0 var(--gutter); color: var(--muted); font-size: 14px; }

  /* catálogo (ver todo) */
  .cat-head { padding: 40px var(--gutter) 6px; }
  .cat-head h1 { font: 700 clamp(26px, 3.4vw, 46px) var(--display); text-transform: uppercase; margin: 14px 0 8px; }
  .cat-head p { color: var(--muted); margin: 0; }
  .chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 22px var(--gutter) 6px; }
  .chips button { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 600; font-size: 13px; }
  .chips button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px 18px; padding: 22px var(--gutter) 0; }
  .grid .tile { width: auto; }

  /* reproductor: estados */
  .screen { cursor: pointer; }
  .screen .big-play { transition: transform .2s, opacity .2s; }
  .screen:hover .big-play { transform: scale(1.06); }
  .screen.playing .big-play { opacity: 0; }
  .screen.playing img { filter: brightness(.9); }
  .screen .pause-ico { display: none; }
  .ctrl .pp { background: none; border: 0; color: #fff; padding: 0; display: grid; }
  .ctrl .track { cursor: pointer; }
  .ctrl .track i { inset: 0 auto 0 0; width: 0; }
  .done-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--ok); background: rgba(62,207,142,.1); margin-left: 10px; vertical-align: middle; }
  .btn[disabled] { opacity: .45; pointer-events: none; }
  .saved { font-size: 12px; color: var(--muted); margin-top: 8px; min-height: 16px; }

  /* mis notas */
  .notes { padding: 10px var(--gutter) 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; }
  .note { padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
  .note small { color: var(--blue-hi); font: 700 10px var(--display); letter-spacing: .12em; text-transform: uppercase; }
  .note b { font-size: 15px; text-transform: uppercase; }
  .note p { margin: 0; color: #C5CDE0; font-size: 14px; line-height: 1.55; white-space: pre-wrap; }
  .note .row-b { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
  .note .row-b a { color: var(--blue-hi); font-weight: 600; font-size: 13px; }
  .note .row-b button { background: none; border: 0; color: var(--muted); font-size: 13px; }
  .note .row-b button:hover { color: #FF8A95; }
  .notes-empty { margin: 30px var(--gutter); padding: 40px; border-radius: 20px; border: 1px dashed var(--line); text-align: center; color: var(--muted); }

  /* buscador */
  .search-modal { position: fixed; inset: 0; z-index: 180; background: rgba(5,7,13,.7); backdrop-filter: blur(10px); display: none; padding: 12vh 16px 16px; }
  .search-modal.open { display: block; }
  .search-box { max-width: 640px; margin: 0 auto; border-radius: 20px; background: var(--card); border: 1px solid rgba(81,123,217,.4); box-shadow: 0 30px 90px -30px rgba(81,123,217,.6); overflow: hidden; animation: fin .2s ease; }
  .search-box .q { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); color: var(--muted); }
  .search-box input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--text); font: 17px var(--body); }
  .search-box kbd { font: 600 11px var(--body); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); }
  .results { max-height: 55vh; overflow: auto; padding: 8px; }
  .result { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; padding: 8px; border-radius: 12px; }
  .result.sel, .result:hover { background: rgba(81,123,217,.14); }
  .result .thumb { aspect-ratio: 16/9; border-radius: 8px; }
  .result b { display: block; font-size: 14px; text-transform: uppercase; }
  .result span { font-size: 12px; color: var(--muted); }
  .results .hint { padding: 22px; text-align: center; color: var(--muted); font-size: 14px; }

  /* login */
  body.auth header, body.auth footer { display: none; }
  .login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); }
  .login .art { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 48px; }
  .login .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) brightness(.5); }
  .login .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,7,13,.95), transparent 60%), linear-gradient(90deg, transparent 60%, var(--ink)); }
  .login .art .in { position: relative; z-index: 2; max-width: 520px; }
  .login .art h2 { font: 700 clamp(26px, 3vw, 42px)/1.08 var(--display); text-transform: uppercase; margin: 14px 0 10px; }
  .login .art p { color: #C5CDE0; margin: 0; line-height: 1.55; }
  .login .form { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 5vw, 72px); }
  .login .form .brand { margin-bottom: 40px; }
  .login .form h1 { font: 700 26px var(--display); text-transform: uppercase; margin: 0 0 8px; }
  .login .form > p { color: var(--muted); margin: 0 0 28px; }
  .login .opts { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 24px; font-size: 14px; }
  .login .opts label { display: flex; gap: 8px; align-items: center; color: #C5CDE0; cursor: pointer; }
  .login .opts input { accent-color: var(--blue); width: 16px; height: 16px; }
  .login .opts a { color: var(--blue-hi); font-weight: 600; }
  .login .btn { width: 100%; justify-content: center; }
  .login .err { color: #FF8A95; font-size: 13px; min-height: 18px; margin: -10px 0 12px; }

/* ---------- biblioteca ---------- */
  .lib-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; padding: 22px var(--gutter) 0; }
  .lib-bar .chips { padding: 0; }
  .lib-tools { display: flex; gap: 10px; align-items: center; }
  .lib-find { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(20,28,47,.6); color: var(--muted); }
  .lib-find input { background: transparent; border: 0; outline: 0; color: var(--text); font: 14px var(--body); width: 190px; }
  .lib-find { height: 42px; box-sizing: border-box; transition: border-color .2s, box-shadow .2s; }
  .lib-find:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(81,123,217,.18); }
  .lib-sort { -webkit-appearance: none; appearance: none; height: 42px; padding: 0 38px 0 14px; border-radius: 12px; border: 1px solid var(--line); color: var(--text); font: 600 14px var(--body); cursor: pointer; outline: none;
    background: rgba(20,28,47,.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A96B3' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
    transition: border-color .2s, box-shadow .2s; }
  .lib-sort:hover { border-color: rgba(81,123,217,.6); }
  .lib-sort:focus-visible { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(81,123,217,.18); }
  .lib-sort option { background: #0B1120; color: var(--text); }
  .lib-count { padding: 14px var(--gutter) 0; color: var(--muted); font-size: 13px; }
  .lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px 20px; padding: 18px var(--gutter) 0; }
  .doc { display: flex; flex-direction: column; gap: 12px; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
  .doc:hover { transform: translateY(-6px); }
  .doc.flash .cover { box-shadow: 0 0 0 3px var(--blue), 0 20px 60px -15px rgba(81,123,217,.9); }
  .cover { position: relative; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; padding: 20px 18px; display: flex; flex-direction: column; justify-content: space-between;
    background: radial-gradient(120% 80% at 100% 0%, var(--c1, rgba(81,123,217,.55)), transparent 60%), linear-gradient(160deg, #0E1730, #05070D 70%); border: 1px solid var(--line); transition: box-shadow .25s, border-color .25s; }
  .doc:hover .cover { border-color: rgba(81,123,217,.6); box-shadow: 0 20px 50px -20px rgba(81,123,217,.7); }
  .cover::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 200px; background: url(../img/logo-onchain.svg) center/contain no-repeat; opacity: .07; }
  .cover .top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
  .cover .top img { width: 20px; height: 22px; }
  .cover .kind { font: 700 9px var(--display); letter-spacing: .14em; padding: 4px 7px; border-radius: 6px; background: rgba(255,92,92,.16); color: #FF9AA4; border: 1px solid rgba(255,92,92,.3); }
  .cover h3 { position: relative; z-index: 1; font: 700 17px/1.2 var(--display); text-transform: uppercase; margin: 0; letter-spacing: .01em; }
  .cover .theme { position: relative; z-index: 1; font: 700 10px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--c2, var(--blue-hi)); }
  .cover .new { position: absolute; z-index: 2; left: 18px; top: 52px; }
  .cover .top .new { position: static; margin-left: auto; margin-right: 6px; }
  .cover .bot { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
  .cover .rt { display: inline-flex; align-items: center; gap: 5px; font: 600 11px var(--body); padding: 4px 8px; border-radius: 7px; background: rgba(5,7,13,.6); border: 1px solid var(--line); color: #F2F5FC; white-space: nowrap; }
  .doc p { margin: 0; color: #AEB8CF; font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .doc .meta2 { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
  .doc .dl { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; border-radius: 11px; background: rgba(81,123,217,.14); border: 1px solid rgba(81,123,217,.4); color: #fff; font-weight: 700; font-size: 13px; transition: background .2s; }
  .doc .dl:hover { background: var(--blue); }
  .lib-empty { margin: 30px var(--gutter); padding: 40px; border-radius: 20px; border: 1px dashed var(--line); text-align: center; color: var(--muted); }
  .result .mini-cover { aspect-ratio: 16/9; border-radius: 8px; display: grid; place-items: center; font: 700 10px var(--display); letter-spacing: .1em; color: #FF9AA4; background: linear-gradient(160deg, #0E1730, #05070D); border: 1px solid var(--line); }
  @media (max-width: 640px) { .lib-tools { width: 100%; } .lib-find { flex: 1; } .lib-find input { width: 100%; } .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; } .cover h3 { font-size: 13px; } .cover { padding: 14px 12px; } }
  .pl-mod { display: flex; justify-content: space-between; padding: 14px 8px 6px; font: 700 10px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-hi); position: sticky; top: 0; background: var(--ink); z-index: 1; }
  .pl-mod span { color: var(--muted); letter-spacing: .05em; }
  .playlist { position: relative; }
/* ---------- herramientas ---------- */
  .tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; padding: 26px var(--gutter) 0; }
  .tool { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 20px; overflow: hidden; background: linear-gradient(160deg, rgba(20,28,47,.85), rgba(11,17,32,.9)); border: 1px solid var(--line); transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .25s; }
  .tool:hover { transform: translateY(-5px); border-color: rgba(81,123,217,.6); box-shadow: 0 22px 60px -25px rgba(81,123,217,.8); }
  .tool::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, var(--tc, rgba(81,123,217,.35)), transparent 70%); }
  .tool .ic { position: relative; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(81,123,217,.16); border: 1px solid rgba(81,123,217,.4); color: var(--blue-hi); }
  .tool h3 { position: relative; margin: 0; font: 700 16px/1.25 var(--display); text-transform: uppercase; }
  .tool p { position: relative; margin: 0; color: #AEB8CF; font-size: 14px; line-height: 1.5; flex: 1; }
  .tool .ft { position: relative; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
  .tool .kind2 { font: 700 10px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .tool .go { color: var(--blue-hi); font-weight: 700; }
  .disc { margin: 26px var(--gutter) 0; font-size: 12.5px; color: var(--muted); }
  .calc { padding: 26px var(--gutter) 0; display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 22px; align-items: start; }
  .calc .panel h2 { margin-bottom: 18px; }
  .calc .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
  .calc .inp input { padding-right: 16px; }
  .calc .unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; pointer-events: none; }
  .calc .inp.u input { padding-right: 46px; }
  .out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpi { padding: 18px; border-radius: 16px; background: rgba(5,7,13,.55); border: 1px solid var(--line); }
  .kpi.big { grid-column: 1 / -1; background: radial-gradient(120% 140% at 0% 0%, rgba(81,123,217,.3), transparent 60%), rgba(5,7,13,.55); border-color: rgba(81,123,217,.45); }
  .kpi span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
  .kpi b { font: 700 22px var(--display); letter-spacing: -.01em; }
  .kpi.big b { font-size: clamp(26px, 3vw, 38px); }
  .kpi small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
  .pos { color: var(--ok); } .neg { color: #FF8A95; }
  .warn { grid-column: 1 / -1; padding: 12px 14px; border-radius: 12px; font-size: 13px; background: rgba(245,165,36,.1); border: 1px solid rgba(245,165,36,.35); color: #F7C873; display: none; }
  .warn.on { display: block; }
  .rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
  .rowx { display: grid; grid-template-columns: 1fr 1fr 36px; gap: 8px; align-items: center; }
  .rowx input { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(5,7,13,.55); color: var(--text); font: 14px var(--body); outline: none; }
  .rowx input:focus { border-color: var(--blue); }
  .rowx button { height: 36px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); }
  .rowx button:hover { color: #FF8A95; border-color: rgba(255,92,92,.4); }
  .rowx.head { font-size: 12px; color: var(--muted); font-weight: 600; }
  .add { width: 100%; padding: 11px; border-radius: 10px; border: 1px dashed rgba(81,123,217,.5); background: transparent; color: var(--blue-hi); font-weight: 700; font-size: 13px; }
  .tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
  .tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px 8px; border-bottom: 1px solid var(--line); }
  .tbl td { padding: 12px 8px; border-bottom: 1px solid rgba(125,158,234,.08); }
  .tbl tr:last-child td { border-bottom: 0; font-weight: 700; }
  .bar2 { height: 10px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; display: flex; margin-top: 14px; }
  .bar2 i { display: block; height: 100%; }
  .back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 14px; margin-bottom: 4px; }
  .back:hover { color: #fff; }
  @media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
  @media (max-width: 480px) { .out { grid-template-columns: 1fr; } .calc .grid2 { grid-template-columns: 1fr; } }
  .notes-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 22px var(--gutter) 6px; }
  .notes-bar .chips { padding: 0; }
  .note .acts { display: flex; gap: 14px; align-items: center; }
  .note .row-b .pdf { color: #C5CDE0; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
  .note .row-b .pdf:hover { color: #fff; }
/* ---------- prompts (próximamente) ---------- */
  .soon-tab { display: inline-flex !important; align-items: center; gap: 7px; }
  .soon-pill { font: 700 8px var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 3px 6px; border-radius: 6px; background: rgba(81,123,217,.18); color: var(--blue-hi); border: 1px solid rgba(81,123,217,.35); }
  .soon-hero { position: relative; padding: 40px var(--gutter) 0; }
  .soon-wrap { position: relative; margin: 26px var(--gutter) 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); display: grid; min-height: 420px; }
  /* rejilla difuminada y aviso en la misma celda: la caja crece con lo que sea más alto, el texto nunca se corta */
  .soon-wrap > .soon-grid, .soon-wrap > .soon-over { grid-area: 1 / 1; }
  .soon-wrap > .soon-grid { max-height: 480px; overflow: hidden; align-self: start; }
  .soon-wrap > .soon-over { position: relative; inset: auto; padding: 40px 24px; }
  .soon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; padding: 22px; filter: blur(5px); opacity: .55; pointer-events: none; user-select: none; }
  .pcard { padding: 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
  .pcard small { font: 700 9px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-hi); }
  .pcard b { font-size: 15px; }
  .pcard code { display: block; padding: 12px; border-radius: 10px; background: rgba(5,7,13,.7); color: #C5CDE0; font: 12.5px/1.5 "SFMono-Regular", Menlo, monospace; white-space: pre-wrap; }
  .soon-over { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; background: radial-gradient(60% 70% at 50% 50%, rgba(5,7,13,.92), rgba(5,7,13,.55)); }
  .soon-over .in { max-width: 520px; }
  .soon-over .lock { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 18px; display: grid; place-items: center; background: rgba(81,123,217,.16); border: 1px solid rgba(81,123,217,.45); color: var(--blue-hi); box-shadow: 0 0 60px -10px rgba(81,123,217,.8); }
  .soon-over h2 { font: 700 clamp(22px, 2.6vw, 34px)/1.1 var(--display); text-transform: uppercase; margin: 10px 0 12px; }
  .soon-over p { color: #C5CDE0; margin: 0 0 22px; line-height: 1.55; }
  .soon-over .btn.on { background: rgba(62,207,142,.14); color: var(--ok); box-shadow: none; border: 1px solid rgba(62,207,142,.45); }
  @media (max-width: 1280px) { .search { width: auto; font-size: 0; gap: 8px; padding: 9px 12px; } }
  @media (max-width: 1500px) { nav.tabs a { padding: 8px 10px; } header { gap: 18px; } }
  @media (max-width: 1100px) { nav.tabs, .search { display: none !important; } .menu-btn { display: grid !important; } }
/* ---------- prompts ---------- */
  .prompt { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; align-items: start; margin: 26px var(--gutter) 0; padding: 32px; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(20,28,47,.7), rgba(11,17,32,.85)); }
  .prompt h2 { font: 700 clamp(22px, 2.4vw, 32px)/1.1 var(--display); text-transform: uppercase; margin: 10px 0 12px; }
  .prompt .lead { color: #C5CDE0; line-height: 1.6; margin: 0 0 18px; max-width: 58ch; }
  .prompt-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
  .prompt-list li { padding: 11px 0; border-bottom: 1px solid var(--line); color: #AEB8CF; font-size: 14px; line-height: 1.5; }
  .prompt-list b { display: block; color: #fff; font-weight: 600; font-size: 14.5px; }
  .prompt-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
  .prompt-steps { margin: 0; padding-left: 20px; color: #AEB8CF; font-size: 13.5px; line-height: 1.65; }
  .prompt-steps code { padding: 1px 6px; border-radius: 6px; background: rgba(5,7,13,.7); color: #fff; font: 12.5px "SFMono-Regular", Menlo, monospace; }
  .prompt-shot { position: relative; display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
  .prompt-shot:hover { border-color: rgba(81,123,217,.6); transform: translateY(-3px); }
  .prompt-shot img, .prompt-shot video { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 760; object-fit: cover; background: #05070D; }
  .prompt-shot span { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; border-radius: 8px; background: rgba(5,7,13,.85); font: 700 9px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-hi); }
  .prompt-src { margin: 16px var(--gutter) 40px; border: 1px solid var(--line); border-radius: 16px; }
  .prompt-src summary { cursor: pointer; padding: 16px 20px; color: #C5CDE0; font-weight: 600; }
  .prompt-src textarea { display: block; width: calc(100% - 40px); height: 420px; margin: 0 20px 20px; padding: 14px; box-sizing: border-box; border-radius: 12px; border: 1px solid var(--line); background: rgba(5,7,13,.7); color: #C5CDE0; font: 12.5px/1.55 "SFMono-Regular", Menlo, monospace; resize: vertical; }
  @media (max-width: 900px) { .prompt { grid-template-columns: minmax(0, 1fr); padding: 22px; gap: 24px; } .prompt-shot { order: -1; } .prompt-acts .btn { flex: 1 1 auto; justify-content: center; } }
  html.peek-soon .soon-wrap > .soon-grid { filter: none; opacity: 1; pointer-events: auto; user-select: auto; max-height: none; }
  html.peek-soon .soon-wrap > .soon-over { display: none; }
/* ---------- plataformas ---------- */
  .plat-bar { display: none; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 22px var(--gutter) 0; }
  html.peek-soon .plat-bar { display: flex; }
  html.peek-soon .soon-wrap { display: block; }
  .plat-bar .chips { padding: 0; }
  .plat-search { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); min-width: 240px; }
  .plat-search input { background: none; border: 0; outline: 0; color: #fff; font: inherit; font-size: 13.5px; width: 100%; }
  .plat-search:focus-within { border-color: rgba(81,123,217,.6); }
  .plat .lg { position: relative; overflow: hidden; }
  .plat .lg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
  /* con logo cargado no hay color de fondo: así no asoma un borde fino en las esquinas */
  .plat .lg:has(img) { background: none; color: transparent; }
  .plat-note { display: none; margin: 0; padding: 18px var(--gutter) 22px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
  html.peek-soon .plat-note { display: block; }
  .plat-empty { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--muted); }
  @media (max-width: 600px) { .plat-search { min-width: 0; width: 100%; } .plat-bar .chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; } .plat-bar .chips button { flex: none; } }
  .plats { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding: 22px var(--gutter) 0; }
  .plat { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 18px; background: linear-gradient(160deg, rgba(20,28,47,.8), rgba(11,17,32,.9)); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
  .plat:hover { border-color: rgba(81,123,217,.55); transform: translateY(-3px); }
  .plat .hd { display: flex; gap: 14px; align-items: center; }
  .plat .lg { width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; font: 700 15px var(--display); color: #fff; background: var(--pc, var(--blue-deep)); }
  .plat h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
  .plat .cat { font: 700 9px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-hi); }
  .plat p { margin: 0; color: #AEB8CF; font-size: 13.5px; line-height: 1.5; flex: 1; }
  .plat .use { font-size: 12.5px; color: var(--muted); padding: 10px 12px; border-radius: 10px; background: rgba(5,7,13,.5); border: 1px solid var(--line); }
  .plat .use b { color: #C5CDE0; font-weight: 600; }
  .plat .ft { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
  .plat .ft a.go { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 700; font-size: 13px; }
  .plat .ft a.go:hover { background: #5f88e6; }
  .plat .les { color: var(--blue-hi); font-size: 12.5px; font-weight: 600; }
  .plat .aff { font-size: 11px; color: var(--muted); }
  /* marca de agua anti-filtraciones en el reproductor */
  .wm { position: absolute; z-index: 3; pointer-events: none; user-select: none; font: 600 12px var(--body); color: rgba(255,255,255,.22); max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0,0,0,.4); white-space: nowrap; transition: top 1.2s ease, left 1.2s ease; }
  .screen { -webkit-user-select: none; user-select: none; }
/* ---------- portadas: 2 versiones para que el texto de la imagen no choque con el título ---------- */
  .hero-card, .c-card { display: none; }
  .hero-card { position: absolute; z-index: 2; right: var(--gutter); top: 52%; transform: translateY(-50%) perspective(1400px) rotateY(-6deg); width: min(44vw, 700px); aspect-ratio: 16/9; border-radius: 22px; overflow: hidden;
    border: 1px solid rgba(125,158,234,.35); box-shadow: 0 40px 120px -30px rgba(81,123,217,.75), 0 0 0 1px rgba(255,255,255,.04) inset; animation: cardin .8s cubic-bezier(.2,.8,.2,1); }
  @keyframes cardin { from { opacity: 0; transform: translateY(-46%) perspective(1400px) rotateY(-12deg); } }
  .hero-card img, .c-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .c-card { aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; border: 1px solid rgba(125,158,234,.35); box-shadow: 0 30px 80px -30px rgba(81,123,217,.7); margin-bottom: 16px; }
  body.hero-a .hero-card, body.hero-a .c-card { display: block; }
  body.hero-a .hero-in { max-width: min(640px, calc(100% - min(44vw, 700px) - var(--gutter) * 3)); }
  /* A · Partida: fondo limpio de marca, la imagen va en una tarjeta aparte */
  body.hero-a .hero-bg, body.hero-a .c-hero .bg { display: none; }
  body.hero-a .hero { height: min(74vh, 700px); overflow: visible; background: radial-gradient(55% 70% at 78% 45%, rgba(81,123,217,.24), transparent 72%); }
  /* sin capa opaca: el fondo ASCII y los brillos siguen por debajo sin corte entre la portada y las filas */
  body.hero-a .hero::after, body.hero-a .c-hero::after { display: none; }
  body.hero-a .c-hero { overflow: visible; background: radial-gradient(50% 70% at 82% 40%, rgba(81,123,217,.2), transparent 72%); min-height: 0; }
  body.hero-a .hero + .row { padding-top: 8px; }
  /* puntos del carrusel: debajo del texto y los botones, fuera de la imagen (antes quedaban encima de la tarjeta y no se veían) */
  body.hero-a .hero-dots { left: var(--gutter); right: auto; bottom: calc(13% - 40px); }
  body.hero-a .hero-dots button { background: rgba(255,255,255,.32); }
  /* B · Ambiente: la misma imagen muy desenfocada de fondo (el texto incrustado no se lee) + tarjeta nítida */
  @media (max-width: 900px) {
    body.hero-a .hero { height: auto; min-height: 0; padding-top: 84px; margin-top: -64px; }
    body.hero-a .hero-card { position: relative; right: auto; top: auto; transform: none; width: auto; margin: 0 var(--gutter) 22px; animation: none; }
    body.hero-a .hero-in { position: relative; left: auto; right: auto; bottom: auto; max-width: none; padding: 0 var(--gutter) 22px; }
    /* los puntos del carrusel van debajo de los botones, nunca encima del texto */
    body.hero-a .hero-dots { display: flex !important; position: relative; left: auto; right: auto; bottom: auto; padding: 0 var(--gutter) 30px; }
    }
/* ---------- capítulos y transcripción ---------- */
  .side-tabs button { padding: 10px 6px; font-size: 12.5px; }
  .chapters { display: flex; flex-direction: column; gap: 4px; max-height: 520px; overflow: auto; }
  .chap { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--text); text-align: left; font: 14px var(--body); }
  .chap:hover { background: var(--card); }
  .chap.on { background: rgba(81,123,217,.14); border-color: rgba(81,123,217,.5); }
  .chap b { font: 700 12px var(--display); color: var(--blue-hi); }
  .tx { display: flex; flex-direction: column; gap: 10px; }
  .tx-find { height: 40px; }
  .tx-find input { width: 100%; }
  .tx-note { font-size: 11.5px; color: var(--muted); }
  .tx-lines { max-height: 460px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
  .txl { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; padding: 9px 10px; border-radius: 10px; border: 0; background: transparent; color: #AEB8CF; text-align: left; font: 13.5px/1.5 var(--body); cursor: pointer; }
  .txl:hover { background: var(--card); color: #fff; }
  .txl.now { background: rgba(81,123,217,.12); color: #fff; }
  .txl b { font: 600 12px var(--body); color: var(--blue-hi); padding-top: 1px; }
  .txl mark, .result mark { background: rgba(81,123,217,.45); color: #fff; border-radius: 3px; padding: 0 2px; }
  .tx-empty { padding: 24px 10px; color: var(--muted); font-size: 13.5px; text-align: center; }
  #chTicks i { position: absolute; top: -2px; width: 2px; height: 8px; border-radius: 1px; background: rgba(255,255,255,.7); }
  .result .ts { color: var(--blue-hi); font-weight: 700; }
/* ---------- app instalable ---------- */
  .install-bar { position: fixed; z-index: 140; left: 12px; right: 12px; bottom: 12px; display: none; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 16px; background: rgba(11,17,32,.96); border: 1px solid rgba(81,123,217,.45); box-shadow: 0 20px 60px -20px rgba(0,0,0,.9); backdrop-filter: blur(14px); }
  .install-bar.on { display: flex; animation: up .4s ease; }
  .install-bar img { width: 40px; height: 40px; border-radius: 10px; }
  .install-bar div { flex: 1; min-width: 0; font-size: 13px; color: #C5CDE0; line-height: 1.35; }
  .install-bar b { display: block; color: #fff; font-size: 14px; }
  .install-bar .btn { padding: 10px 14px; font-size: 13px; }
  .install-bar .x { background: none; border: 0; color: var(--muted); font-size: 18px; padding: 4px 6px; }
  .ios-modal { position: fixed; inset: 0; z-index: 190; display: none; place-items: end center; padding: 16px; background: rgba(5,7,13,.7); backdrop-filter: blur(8px); }
  .ios-modal.on { display: grid; }
  .ios-modal .box { width: 100%; max-width: 420px; padding: 22px; border-radius: 22px; background: var(--card); border: 1px solid rgba(81,123,217,.4); animation: up .3s ease; }
  .ios-modal h3 { font: 700 16px var(--display); text-transform: uppercase; margin: 0 0 14px; }
  .ios-modal ol { margin: 0 0 18px; padding-left: 20px; color: #C5CDE0; line-height: 1.9; font-size: 14px; }
  .ios-modal .btn { width: 100%; justify-content: center; }
  .tile.is-soon { cursor: default; }
  .tile.is-soon:hover { transform: none; }
  .tile.is-soon .thumb img { filter: grayscale(.5) brightness(.65); }
  .tile.is-soon:hover .thumb img { transform: none; }
  .tile.is-soon:hover .thumb { border-color: var(--line); box-shadow: none; }
  .tile.is-soon h3, .tile.is-soon .desc { opacity: .7; }
  /* sin seleccionar texto en toda la web (salvo campos donde se escribe) */
  body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
  input, textarea, [contenteditable] { -webkit-user-select: text; user-select: text; }
  ::selection { background: transparent; }
  input::selection, textarea::selection { background: rgba(81,123,217,.45); }
  /* visto / no visto manual */
  .done-btn.is-done { color: var(--ok); border-color: rgba(62,207,142,.45); background: rgba(62,207,142,.1); }
  .done-btn.pulse { border-color: var(--blue); box-shadow: 0 0 0 0 rgba(81,123,217,.6); animation: pulse 1.6s infinite; }
  .ep { grid-template-columns: 54px 180px minmax(0, 1fr) auto; }
  .chk { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; transition: .2s; }
  .chk svg { opacity: .35; }
  .chk:hover { border-color: rgba(62,207,142,.5); color: var(--text); }
  .chk.on { color: var(--ok); background: rgba(62,207,142,.1); border-color: rgba(62,207,142,.45); }
  .chk.on svg { opacity: 1; }
  @media (max-width: 1100px) { .ep .chk span { display: none; } .ep { grid-template-columns: 40px 120px minmax(0, 1fr) auto; } .ep .n { font-size: 17px; } }
  @media (max-width: 640px) { .ep { grid-template-columns: 110px minmax(0, 1fr) auto; } }
  @media (max-width: 1100px) {
    .menu-btn { display: grid; }
  }
  @media (max-width: 900px) {
    .login { grid-template-columns: 1fr; }
    .login .art { min-height: 260px; padding: 28px; }
    .arrow { display: none; }
  }

  @media (max-width: 1100px) {
    nav.tabs, .search { display: none; }
    .c-in, .player, .modules { grid-template-columns: 1fr; }
    .mod-list { position: static; flex-direction: row; overflow-x: auto; }
    .ep { grid-template-columns: 40px 120px minmax(0, 1fr) auto; }
  }
  @media (max-width: 640px) {
    .hero { height: 78vh; }
    .hero-in { bottom: 10%; right: var(--gutter); }
    .hero-dots { display: none; }
    .count { margin-left: 0; }
    .community .in { padding: 26px; }
    .ep { grid-template-columns: 110px minmax(0, 1fr) auto; }
    .ep .n { display: none; }
  }
  @media (max-width: 640px) {
    .p-title .btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }
    .p-title .btns .res { width: 100%; }
    .p-title .btns > .btn, .p-title .btns .res-btn { width: 100%; justify-content: center; gap: 8px; padding-left: 8px; padding-right: 8px; font-size: 14px; white-space: nowrap; }
  }
  @media (max-width: 360px) {
    .p-title .btns > .btn, .p-title .btns .res-btn { font-size: 13px; white-space: normal; line-height: 1.2; }
  }
  @media (max-width: 640px) { .search-box kbd { display: none; } }
  @media (max-width: 420px) {
    .hero h1 { font-size: 22px; }
    .community .in { padding: 22px 18px; }
    .community h2 { font-size: 20px; }
    .stats { gap: 18px; flex-wrap: wrap; }
    .stats b { font-size: 22px; }
    .ep { grid-template-columns: 92px minmax(0, 1fr) auto; gap: 12px; padding: 10px 8px; }
    .ep h4 { font-size: 13px; }
  }

  /* ---------- tema WordPress: reproductor real de Vimeo ---------- */
  .screen.vimeo { cursor: default; background: #000; }
  .screen.vimeo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
  .screen.vimeo .wm { z-index: 4; }
  .screen.soon { display: grid; place-items: center; text-align: center; color: var(--muted); }
  .resume-toast { position: absolute; left: 16px; bottom: 64px; z-index: 5; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; background: rgba(10,15,28,.88); border: 1px solid rgba(81,123,217,.45); color: #fff; font: 500 14px/1.3 var(--body); backdrop-filter: blur(8px); transition: opacity .5s, transform .5s; }
  .resume-toast b { color: var(--blue-hi); font-variant-numeric: tabular-nums; }
  .resume-toast button { background: none; border: 0; padding: 0; cursor: pointer; color: #9DB8F2; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
  .resume-toast.out { opacity: 0; transform: translateY(6px); }
  @media (max-width: 600px) { .resume-toast { left: 8px; right: 8px; bottom: 56px; font-size: 13px; } }
  .ep.is-soon, .pl.is-soon { opacity: .55; pointer-events: none; }
  .ep .soon-mini { margin-left: 8px; font: 700 9px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-hi); }
  .login .err.ok { color: var(--ok); }
  /* páginas internas que no son la app (SquadOn) */
  body.plain .plain-main { padding: 110px var(--gutter) 60px; min-height: 70vh; }
  body.plain table { width: 100%; border-collapse: collapse; }
  body.plain th, body.plain td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
  /* barra de administración de WordPress (solo la ven los administradores) */
  body.admin-bar header { top: 32px; }
  @media (max-width: 782px) { body.admin-bar header { top: 46px; } #wpadminbar { position: fixed; } }


/* =========================================================================
   2.0.20 · ajustes de diseño tras la revisión (Fable 5.1, 14/10/2026)
   ========================================================================= */

/* 1) el azul vuelve a ser acento: fuera los brillos azules de tarjetas, reproductor, buscador y botones */
  .btn-primary, .btn-primary:hover { box-shadow: 0 12px 30px -16px rgba(0,0,0,.75); }
  .tile:hover .thumb { box-shadow: 0 20px 50px -26px rgba(0,0,0,.75); }
  .screen, .search-box { box-shadow: 0 30px 80px -36px rgba(0,0,0,.85); }
  .doc:hover .cover, .tool:hover { box-shadow: 0 22px 55px -28px rgba(0,0,0,.75); }
  .soon-over .lock { box-shadow: none; }
  .hero-card { box-shadow: 0 40px 100px -40px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.04) inset; }
  .c-card { box-shadow: 0 30px 80px -36px rgba(0,0,0,.85); }
  body.hero-a .hero { background: radial-gradient(55% 70% at 78% 45%, rgba(81,123,217,.12), transparent 72%); }
  body.hero-a .c-hero { background: radial-gradient(50% 70% at 82% 40%, rgba(81,123,217,.1), transparent 72%); }
  .done-btn.pulse { animation-iteration-count: 3; }

/* 3) mayúsculas solo en los títulos grandes (Syncopate); títulos de clases y notas en minúsculas normales */
  .tile h3, .ep h4, .pl b, .result b, .note b { text-transform: none; letter-spacing: 0; font-weight: 600; }

/* 4) nada por debajo de 11 px */
  .soon-pill { font-size: 10px; padding: 3px 7px; }
  .tag, .ep-res, .note small, .cover .kind, .plat .cat, .prompt-shot span { font-size: 11px; letter-spacing: .1em; }
  .by .mini { font-size: 10px; }

/* 5) objetivos táctiles de al menos 44 px en móvil */
  @media (max-width: 900px) {
    .chips button, .chk, .note .row-b button { min-height: 44px; }
    .note .row-b button { padding: 0 10px; }
    .inp .ico { padding: 10px; right: 6px; }
    .install-bar .x { min-width: 44px; min-height: 44px; }
    .hero-dots { gap: 6px; }
    .hero-dots button { height: 27px; padding: 12px 0; background-clip: content-box; }
    body.hero-a .hero-dots button { background-clip: content-box; }
  }

/* foco visible al navegar con teclado (en todo) */
  :focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 2px; }
  .search-box input:focus-visible, .plat-search input:focus-visible { outline: 0; }

/* "Próximamente" legible en la lista de clases */
  .ep.is-soon, .pl.is-soon { opacity: .8; }
  .ep.is-soon img, .pl.is-soon img { filter: grayscale(1) brightness(.7); }

/* mensajes de error en rojo (antes salían en verde como si todo hubiera ido bien) */
  .toast.err { background: rgba(255,92,92,.14); border-color: rgba(255,92,92,.45); color: #FFB3BA; }

/* etiqueta BETA a la derecha del logo, como parte de él (sin mover el logo ni el texto ONCHAIN CAPITAL) */
  header .brand { position: relative; margin-right: 62px; }   /* hueco para la etiqueta, que no pise la primera pestaña */
  .brand .beta { position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); padding: 2px 6px; border-radius: 5px; font: 700 9px/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase;
    color: var(--blue-hi); background: rgba(81,123,217,.14); border: 1px solid rgba(81,123,217,.35); pointer-events: none; }

/* "Próximamente" siempre abajo a la derecha de la portada */
  .tag.soon { top: auto; left: auto; bottom: 10px; right: 10px; }

/* Prompts: el ejemplo dentro de un iPad en vertical (sustituye al vídeo en bucle, que en Chrome/Windows congelaba la página) */
  .ipad { margin: 0; justify-self: center; width: min(100%, 420px); perspective: 1600px; }
  .ipad-body { position: relative; padding: 14px; border-radius: 38px; background: linear-gradient(145deg, #2a2f3a, #0d1017 55%, #1c212b);
    box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 0 0 2px #05070D, 0 50px 90px -40px rgba(0,0,0,.9);
    transform: rotateY(-9deg) rotateX(3deg) translateY(0); transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
  .ipad:hover .ipad-body, .ipad:focus-within .ipad-body { transform: rotateY(0) rotateX(0) translateY(-4px); }
  .ipad-cam { position: absolute; top: 5px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #1b2030; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
  .ipad-screen { aspect-ratio: 3 / 4; border-radius: 24px; overflow-y: auto; overscroll-behavior: contain; background: #05070D; scrollbar-width: thin; scrollbar-color: rgba(157,184,242,.35) transparent; outline: none; }
  .ipad-screen::-webkit-scrollbar { width: 6px; }
  .ipad-screen::-webkit-scrollbar-thumb { background: rgba(157,184,242,.35); border-radius: 6px; }
  .ipad-screen img { display: block; width: 100%; height: auto; }
  .ipad figcaption { margin-top: 18px; text-align: center; font: 700 11px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-hi); }
  .ipad figcaption span { display: block; margin-top: 6px; font: 500 12px var(--body); letter-spacing: 0; text-transform: none; color: var(--muted); }
  @media (max-width: 900px) { .ipad { order: -1; width: min(100%, 340px); } .ipad-body { transform: none; } }
  @media (prefers-reduced-motion: reduce) { .ipad-body { transform: none; transition: none; } }
