@font-face { font-family: Lato; font-weight: 400; font-display: swap; src: url(/assets/fonts/lato-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Lato; font-weight: 700; font-display: swap; src: url(/assets/fonts/lato-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Lato; font-weight: 900; font-display: swap; src: url(/assets/fonts/lato-latin-900-normal.woff2) format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 500; font-display: swap; src: url(/assets/fonts/geist-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  --y: #FFFF3C;
  --p: #8200C6;
  --o: #FF6B1A;
  --k: #111111;
  --bg: #FFFFFF;
  --bg2: #F5F4EF;
  --ink: #111111;
  --mute: #5F5E5A;
  --line: rgba(17, 17, 17, .12);
  --line2: rgba(17, 17, 17, .22);
  --hi: var(--y);
  --on-hi: #111;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  --top: 58px;
  --tab: 68px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0B0B0C;
  --bg2: #161618;
  --ink: #F3F2EC;
  --mute: #A3A29C;
  --line: rgba(255, 255, 255, .1);
  --line2: rgba(255, 255, 255, .2);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 8px); }
body {
  font-family: Lato, Arial, sans-serif; background: var(--bg); color: var(--ink);
  line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  transition: background .35s, color .35s;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 2.5px solid var(--p); outline-offset: 3px; border-radius: 12px; }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: .02em; }

/* ---------- Entrada ---------- */
.gate {
  position: fixed; inset: 0; z-index: 90; background: var(--y); color: #111;
  display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden;
  transition: transform .8s var(--ease), opacity .5s .3s;
}
.gate.out { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.gate-in { width: 100%; max-width: 560px; margin: auto; padding: max(28px, env(safe-area-inset-top)) 20px 20px; display: grid; gap: 16px; }
.gate-logo { width: 150px; padding: 8px 12px; background: #111; border-radius: 16px; box-sizing: content-box; transform: rotate(-2deg); }
.gate-date { font-family: var(--mono); font-weight: 500; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; display: flex; gap: 10px; align-items: center; }
.gate-date span { background: #111; color: var(--y); padding: 3px 8px; border-radius: 6px; }
.gate-h { font-size: clamp(2.3rem, 11vw, 4.2rem); font-weight: 900; line-height: .96; letter-spacing: -.035em; }
.gate-p { font-size: 1.08rem; max-width: 420px; }
.switch { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid #111; border-radius: 18px; cursor: pointer; background: rgba(255, 255, 255, .45); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.sw { width: 46px; height: 28px; border-radius: 99px; background: rgba(17, 17, 17, .2); position: relative; transition: background .25s; flex: none; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .35s var(--spring); }
.switch input:checked + .sw { background: #111; }
.switch input:checked + .sw::after { transform: translateX(18px); background: var(--y); }
.switch input:focus-visible + .sw { outline: 2.5px solid var(--p); outline-offset: 3px; }
.switch-t { display: grid; font-weight: 900; line-height: 1.2; }
.switch-t small { font-weight: 400; font-size: .82rem; }
.switch > svg { margin-left: auto; width: 26px; height: 26px; }
.btn-go {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  padding: 18px 22px; border-radius: 20px; background: #111; color: var(--y); font-weight: 900; font-size: 1.2rem;
  transition: transform .3s var(--spring);
}
.btn-go svg { transition: transform .3s var(--spring); }
.btn-go:hover svg { transform: translateX(5px); }
.btn-go:active { transform: scale(.97); }
.marquee { overflow: hidden; padding: 6px 0 max(18px, env(safe-area-inset-bottom)); flex: none; }
.marquee-in { display: flex; gap: 10px; width: max-content; animation: slide 38s linear infinite; }
.marquee img { width: 92px; height: 116px; object-fit: cover; border-radius: 16px; border: 2px solid #111; }
.marquee img:nth-child(odd) { transform: rotate(-3deg); }
.marquee img:nth-child(even) { transform: rotate(2.5deg) translateY(6px); }

/* ---------- Barra superior ---------- */
.top {
  position: sticky; top: 0; z-index: 40; height: var(--top); display: flex; align-items: center; gap: 12px;
  padding: 0 max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 66px; padding: 4px 6px; background: #111; border-radius: 10px; box-sizing: content-box; }
.brand span { font-family: var(--mono); font-weight: 500; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.top-nav { display: none; }
.top-act { display: flex; gap: 6px; margin-left: auto; }
.ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line2); transition: background .2s, transform .3s var(--spring), color .2s; }
.ic:hover { background: var(--bg2); }
.ic:active { transform: scale(.9); }
.ic[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: transparent; }
.ic[aria-pressed="true"] svg { animation: beat 1.6s ease-in-out infinite; }

/* ---------- Visor de ponentes ---------- */
.layout { display: block; }
.viewer-col { padding: 10px 12px 6px; }
.viewer {
  position: relative; height: calc(100svh - var(--top) - var(--tab) - 40px - env(safe-area-inset-bottom));
  min-height: 470px; max-height: 860px; display: flex; flex-direction: column; gap: 10px;
}
.bars { display: flex; gap: 4px; flex: none; padding: 0 2px; }
.bars i { flex: 1; height: 4px; border-radius: 4px; background: var(--line2); overflow: hidden; position: relative; cursor: pointer; }
.bars i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.bars i.done::after { transform: scaleX(1); }
.bars i.on::after { transform: scaleX(1); transition-duration: 1.1s; }
.stage { position: relative; flex: 1; min-height: 0; perspective: 1100px; perspective-origin: 50% 50%; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cube { position: absolute; inset: 0; transform-style: preserve-3d; }
.cube.anim { transition: transform .75s var(--ease); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; transform-style: preserve-3d; }

/* Tarjeta holográfica */
.card {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 30%; --c: var(--y); --t: #111;
  position: absolute; inset: 0; border-radius: 28px; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s var(--ease);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45);
}
.card.live { transition: transform .08s linear; }
.card.b2 { --c: var(--p); --t: #fff; }
.card.b3 { --c: #111; --t: var(--y); }
.card.b4 { --c: var(--o); --t: #111; }
:root[data-theme="dark"] .card.b3 { --c: #1d1d20; }
.card-bg { position: absolute; inset: 0; border-radius: inherit; background: var(--c); overflow: hidden; }
.card-ph { position: absolute; left: 0; right: 0; top: 0; height: 58%; overflow: hidden; border-radius: 28px 28px 0 0; }
.card-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transform: scale(1.08) translate(calc(var(--ry) * -.6), calc(var(--rx) * .6)); transition: transform .6s var(--ease); }
.card.live .card-ph img { transition: none; }
.card-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .38) 0%, transparent 22%, transparent 70%, var(--c) 100%); }
.holo {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: color-dodge; opacity: .55;
  background: linear-gradient(115deg, transparent 18%, rgba(255, 0, 200, .5) 32%, rgba(0, 240, 255, .45) 42%, rgba(255, 255, 60, .55) 52%, rgba(130, 0, 198, .45) 62%, transparent 76%);
  background-size: 260% 260%; background-position: var(--gx) var(--gy);
  animation: holo 7s ease-in-out infinite alternate;
}
.card.live .holo { animation: none; opacity: .75; }
.glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: overlay; background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 46%); opacity: 0; transition: opacity .4s; }
.card.live .glare { opacity: 1; }
.card-edge { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; border: 1.5px solid rgba(255, 255, 255, .35); }
.card-top { position: absolute; top: 14px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; color: #fff; font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; transform: translateZ(30px); }
.card-top b { font-weight: 500; background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px); padding: 4px 9px; border-radius: 8px; }
.card-num { position: absolute; right: 12px; top: 40%; font-family: var(--mono); font-size: clamp(4.5rem, 24vw, 7.5rem); line-height: 1; font-weight: 500; color: var(--c); -webkit-text-stroke: 1.5px rgba(255, 255, 255, .85); color: transparent; transform: translateZ(55px); letter-spacing: -.06em; pointer-events: none; }
.card-body { position: absolute; left: 0; right: 0; bottom: 0; top: 52%; padding: 0 18px 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; color: var(--t); transform: translateZ(40px); }
.card-name { font-size: clamp(2rem, 10.5vw, 3rem); font-weight: 900; line-height: .92; letter-spacing: -.035em; overflow: hidden; }
.card-name span { display: block; }
.card-meta { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.card-talk { font-weight: 700; font-size: clamp(.95rem, 3.9vw, 1.08rem); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-acts { display: flex; gap: 8px; }
.face.front .card-name span, .face.front .card-talk, .face.front .card-acts, .face.front .card-meta { animation: up .7s var(--ease) both; }
.face.front .card-name span:nth-child(2) { animation-delay: .06s; }
.face.front .card-meta { animation-delay: .1s; }
.face.front .card-talk { animation-delay: .14s; }
.face.front .card-acts { animation-delay: .2s; }

/* Botones */
.b {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 16px; border-radius: 14px; font-weight: 900; font-size: .95rem; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--spring), background .2s, color .2s;
}
.b:active { transform: scale(.95); }
.b svg { width: 20px; height: 20px; position: relative; }
.b span { position: relative; }
.b-main { background: var(--t); color: var(--c); flex: 1; }
.b-ghost { border: 1.5px solid currentColor; color: var(--t); }
.b-icon { width: 46px; padding: 0; border: 1.5px solid currentColor; color: var(--t); flex: none; }
.b-dl::before { content: ""; position: absolute; inset: 0; background: currentColor; opacity: .22; transform: scaleX(var(--pr, 0)); transform-origin: left; transition: transform .2s linear; }
.b-dl.busy { pointer-events: none; }
.b-dl.ok svg { animation: pop .5s var(--spring); }
.b-off { opacity: .55; cursor: default; }

.ctl { display: none; }
.hint { text-align: center; font-family: var(--mono); font-size: .72rem; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; padding-top: 8px; transition: opacity .5s; }
.hint.gone { opacity: 0; }

/* ---------- Secciones ---------- */
.side { padding: 0 16px; }
.sec { padding: 44px 0 8px; }
.h2 { font-size: clamp(2.2rem, 10vw, 3.6rem); font-weight: 900; line-height: .95; letter-spacing: -.04em; }
.sub { color: var(--mute); margin-top: 8px; max-width: 560px; }

.blk { margin-top: 22px; }
.blk-h { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); padding-bottom: 8px; border-bottom: 1px solid var(--line2); }
.blk-h i { width: 12px; height: 12px; border-radius: 4px; background: var(--y); border: 1px solid var(--line2); }
.blk-h i.b2 { background: var(--p); } .blk-h i.b3 { background: #111; } .blk-h i.b4 { background: var(--o); }
.row {
  --c: var(--y); --t: #111;
  position: relative; width: 100%; display: grid; grid-template-columns: 50px 1fr auto; gap: 12px; align-items: center;
  padding: 14px 4px; text-align: left; border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: color .3s, transform .35s var(--spring);
}
.row.b2 { --c: var(--p); --t: #fff; } .row.b3 { --c: #111; --t: var(--y); } .row.b4 { --c: var(--o); --t: #111; }
.row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); border-radius: 14px; }
.row:hover::before, .row.cur::before { transform: scaleX(1); }
.row:hover, .row.cur { color: var(--t); padding-left: 12px; padding-right: 12px; }
.row:active { transform: scale(.98); }
.row-n { font-family: var(--mono); font-size: 1.6rem; letter-spacing: -.05em; }
.row b { display: block; font-weight: 900; font-size: 1.06rem; line-height: 1.2; }
.row span { display: block; font-size: .88rem; opacity: .8; line-height: 1.35; }
.row em { font-style: normal; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; padding: 4px 8px; border-radius: 7px; border: 1px solid currentColor; opacity: .85; }
.lunch { display: flex; gap: 10px; align-items: center; padding: 14px 4px; color: var(--mute); font-size: .92rem; border-bottom: 1px dashed var(--line2); }

.mats { list-style: none; padding: 0; margin-top: 20px; display: grid; gap: 10px; }
.mat { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg2); transition: transform .35s var(--spring), border-color .3s; }
.mat:hover { transform: translateY(-2px); border-color: var(--line2); }
.mat img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; }
.mat b { display: block; font-weight: 900; line-height: 1.2; }
.mat small { display: block; font-family: var(--mono); font-size: .72rem; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.mat .b { grid-column: 1 / -1; }
.mat .b-main { background: var(--ink); color: var(--bg); }
.mat .b-off { border: 1.5px dashed var(--line2); color: var(--mute); }

.facts { margin-top: 18px; display: grid; }
.facts div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); padding-top: 3px; }
.facts dd { font-size: .98rem; }
.facts a { font-weight: 900; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--y); }
:root[data-theme="dark"] .facts a { color: var(--y); }
.foot { padding: 40px 0 calc(var(--tab) + 40px + env(safe-area-inset-bottom)); color: var(--mute); font-size: .86rem; }
.foot a { font-weight: 900; color: var(--ink); }
.aviso { max-width: 640px; line-height: 1.55; }
.aviso b { color: var(--ink); }

/* ---------- Ficha con la síntesis ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .35s; }
.sheet-bg.show { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; height: 94svh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink); border-radius: 28px 28px 0 0; transform: translateY(105%);
  transition: transform .55s var(--ease); box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .4);
}
.sheet.show { transform: none; }
.sheet.drag { transition: none; }
.sheet-grab { flex: none; height: 26px; display: grid; place-items: center; touch-action: none; cursor: grab; }
.sheet-grab i { width: 44px; height: 5px; border-radius: 9px; background: var(--line2); }
.sheet-sc { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 18px calc(26px + env(safe-area-inset-bottom)); }
.sh-head { --c: var(--y); --t: #111; display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 22px; background: var(--c); color: var(--t); }
.sh-head.b2 { --c: var(--p); --t: #fff; } .sh-head.b3 { --c: #111; --t: var(--y); } .sh-head.b4 { --c: var(--o); --t: #111; }
.sh-head img { width: 76px; height: 76px; border-radius: 18px; object-fit: cover; }
.sh-head small { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.sh-head h2 { font-size: 1.6rem; font-weight: 900; line-height: 1; letter-spacing: -.03em; margin-top: 3px; }
.sh-talk { font-size: 1.25rem; font-weight: 900; line-height: 1.2; letter-spacing: -.015em; margin-top: 18px; }
.sh-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sh-acts .b { --c: var(--bg); --t: var(--ink); }
.sh-acts .b-main { background: var(--ink); color: var(--bg); flex: 1 1 100%; }
.syn, .sh-talk, .facts dd { overflow-wrap: anywhere; }
.sh-acts .b-ghost { color: var(--ink); }
.sh-x { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg2); z-index: 2; }
.player { margin-top: 16px; padding: 14px; border-radius: 20px; background: var(--ink); color: var(--bg); }
.player-bar { height: 4px; border-radius: 4px; background: rgba(127, 127, 127, .35); overflow: hidden; position: relative; }
.player-bar::after { content: ""; position: absolute; inset: 0; background: var(--y); transform: scaleX(var(--pr, 0)); transform-origin: left; transition: transform .25s linear; }
.player-t { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: .86rem; }
.player-t span { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; padding-top: 2px; }
.player-t b { text-align: right; }
.chaps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chap { font-size: .78rem; font-weight: 700; padding: 7px 11px; border-radius: 10px; border: 1px solid rgba(127, 127, 127, .45); text-align: left; max-width: 100%; transition: background .2s, color .2s; }
.chap.on { background: var(--y); color: #111; border-color: transparent; }
.syn { margin-top: 24px; }
.syn-idea { font-size: 1.12rem; line-height: 1.45; padding: 16px 18px; border-left: 5px solid var(--y); background: var(--bg2); border-radius: 0 16px 16px 0; }
.syn-idea b { display: block; font-family: var(--mono); font-weight: 500; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin-bottom: 4px; }
.syn-sec { margin-top: 30px; }
.syn-sec > h3 { display: flex; gap: 10px; align-items: baseline; font-size: 1.35rem; font-weight: 900; line-height: 1.15; letter-spacing: -.02em; }
.syn-sec > h3 i { font-style: normal; font-family: var(--mono); font-weight: 500; font-size: .8rem; background: var(--ink); color: var(--bg); padding: 2px 7px; border-radius: 6px; flex: none; transform: translateY(-3px); }
.syn-sec h4 { font-size: 1rem; font-weight: 900; margin-top: 18px; }
.syn-sec p { margin-top: 8px; color: var(--ink); }
.syn-sec ul, .syn-sec ol { margin-top: 8px; padding-left: 20px; display: grid; gap: 6px; }
.syn-sec li::marker { color: var(--p); font-weight: 900; }
.syn-q { margin-top: 14px; font-size: 1.15rem; font-weight: 900; line-height: 1.3; padding-left: 14px; border-left: 3px solid var(--p); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.stat { padding: 12px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--mono); font-weight: 500; font-size: 1.15rem; letter-spacing: -.04em; line-height: 1.1; }
.stat span { font-size: .82rem; color: var(--mute); line-height: 1.3; display: block; margin-top: 3px; }
.stat.hl { background: var(--y); color: #111; border-color: transparent; }
.stat.hl span { color: #333; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.vs div { padding: 12px; border-radius: 16px; border: 1px solid var(--line); }
.vs div:last-child { background: var(--ink); color: var(--bg); border-color: transparent; }
.vs small { font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; opacity: .7; display: block; }
.vs b { display: block; font-size: 1.05rem; font-weight: 900; margin-top: 4px; line-height: 1.2; }
.vs span { display: block; font-size: .84rem; opacity: .8; margin-top: 4px; }
.ladder { display: grid; gap: 6px; margin-top: 12px; }
.ladder div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--bg2); align-items: center; }
.ladder div:nth-child(2) { margin-left: 4%; } .ladder div:nth-child(3) { margin-left: 8%; } .ladder div:nth-child(4) { margin-left: 12%; background: var(--y); color: #111; }
.ladder b { font-weight: 900; }
.ladder span { font-size: .88rem; }
.pending { margin-top: 24px; padding: 22px; border-radius: 22px; border: 1.5px dashed var(--line2); }
.pending h3 { font-size: 1.15rem; font-weight: 900; }
.pending p { color: var(--mute); margin-top: 6px; }
.pending a { font-weight: 900; color: var(--ink); }
.syn-src { margin-top: 26px; font-family: var(--mono); font-size: .72rem; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Barra inferior tipo app ---------- */
.tabbar {
  position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 50; height: 58px;
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 5px; border-radius: 20px;
  background: color-mix(in srgb, var(--ink) 94%, transparent); color: var(--bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5);
}
.tabbar a { display: grid; justify-items: center; align-content: center; gap: 1px; border-radius: 15px; text-decoration: none; font-size: .66rem; font-weight: 700; opacity: .65; transition: opacity .2s, background .3s, color .3s; }
.tabbar a svg { width: 21px; height: 21px; }
.tabbar a.on { opacity: 1; background: var(--y); color: #111; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tab) + 22px + env(safe-area-inset-bottom)); transform: translate(-50%, 16px); opacity: 0; z-index: 95; padding: 11px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: .88rem; transition: all .35s var(--ease); pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

@keyframes slide { to { transform: translateX(-50%); } }
@keyframes holo { from { background-position: 0% 30%; } to { background-position: 100% 70%; } }
@keyframes up { from { opacity: 0; transform: translateY(18px); } }
@keyframes pop { 50% { transform: scale(1.35); } }
@keyframes beat { 50% { transform: scale(1.12); } }

/* ---------- Pantallas grandes ---------- */
@media (min-width: 700px) {
  .viewer-col { padding: 16px 24px 6px; }
  .viewer { max-width: 480px; margin: 0 auto; }
  .side { padding: 0 24px; max-width: 760px; margin: 0 auto; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .sheet { left: auto; top: 0; height: auto; width: min(560px, 100%); border-radius: 28px 0 0 28px; transform: translateX(105%); }
  .sheet-grab { display: none; }
  .sheet-sc { padding-top: 18px; }
}
@media (min-width: 1000px) {
  :root { --tab: 0px; }
  .top { padding: 0 32px; }
  .top-nav { display: flex; gap: 2px; margin-left: 24px; }
  .top-nav a { text-decoration: none; font-weight: 700; font-size: .92rem; padding: 8px 14px; border-radius: 12px; color: var(--mute); transition: color .2s, background .2s; }
  .top-nav a:hover, .top-nav a.on { color: var(--ink); background: var(--bg2); }
  .tabbar { display: none; }
  .layout { display: grid; grid-template-columns: minmax(400px, 470px) minmax(0, 1fr); gap: 56px; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
  .viewer-col { position: sticky; top: var(--top); height: calc(100vh - var(--top)); padding: 20px 0; display: flex; flex-direction: column; }
  .viewer { height: auto; flex: 1; max-height: none; width: 100%; }
  .ctl { display: flex; justify-content: center; gap: 10px; flex: none; }
  .ctl button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line2); display: grid; place-items: center; transition: background .2s, transform .35s var(--spring); }
  .ctl button:hover { background: var(--ink); color: var(--bg); transform: scale(1.08); }
  .side { max-width: none; padding: 0; }
  .sec { padding-top: 56px; }
  .foot { padding-bottom: 48px; }
  .toast { bottom: 28px; }
}
@media (max-height: 640px) and (max-width: 699px) {
  .card-talk { -webkit-line-clamp: 2; }
  .card-name { font-size: 1.9rem; }
  .viewer { min-height: 430px; }
}
@media (max-width: 359px) { .brand span { display: none; } }
@media (max-height: 700px) and (max-width: 999px) { .hint { display: none; } }
@media (max-width: 389px) {
  .card-acts { gap: 6px; }
  .card-acts .b { padding: 0 11px; font-size: .88rem; gap: 6px; min-height: 44px; }
  .card-acts .b-icon { width: 44px; padding: 0; }
  .card-acts .b-main svg { display: none; }
  .card-body { padding: 0 14px 14px; }
  .sh-acts .b { padding: 0 12px; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
}
