/* Portada de revsignlab.com en una sola pantalla (apps/demo/docs/017). Tokens en /tokens.css. La tarjeta, el
   transporte, el buscador y el pie salen del CSS de la portada anterior (apps/os/demo-client/index.html), recortados
   a lo que esta página usa. Arriba lo compartido, abajo la grilla de cuatro franjas y su versión de celular. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-sans); font-size: 1rem; line-height: 1.6;
  color: var(--foreground); -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; background: #000;
}
::selection { background: var(--brand-2); color: var(--background); }
a { color: inherit; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

.rs-wordmark { font-family:var(--font-wordmark); font-weight:700; font-size:26px; letter-spacing:-0.3px; line-height:1; }
.rs-wordmark__dot { color:var(--brand-2); }

/* ── Botones en pastilla ───────────────────────────────────────────────── */
.pt-pill {
  display:inline-flex; align-items:center; justify-content:center; gap:8px; height:40px; padding:0 20px;
  border:1px solid var(--border-strong); border-radius:999px; background:transparent; color:var(--foreground);
  font:600 14px/1 var(--font-sans); text-decoration:none; white-space:nowrap; cursor:pointer; transition:background .15s;
}
.pt-pill:hover { background:var(--accent); }
.pt-pill:focus-visible, .pt-select:focus-visible, .pt-link:focus-visible { outline:2px solid var(--ring); outline-offset:2px; }
.pt-pill--solid { background:var(--primary); color:var(--primary-foreground); border-color:var(--primary); }
.pt-pill--solid:hover { background:var(--primary); opacity:.88; }
.pt-link { color:var(--muted-foreground); text-decoration:underline; text-underline-offset:3px; font-size:14px; white-space:nowrap; }
.pt-link:hover { color:var(--foreground); }
button.pt-link { background:none; border:0; padding:0; font:inherit; font-size:14px; cursor:pointer; }

/* ── Grilla de cuatro franjas (escritorio, 768px o más) ─────────────────── */
.pt-shell {
  display:grid; grid-template-rows:60px minmax(0,1fr) auto 38px; grid-template-columns:minmax(0,1fr);
  height:100vh; height:100svh; height:100dvh; overflow:hidden; background:#000;
}

/* 1. Encabezado */
.pt-head {
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:16px;
  padding:0 24px; border-bottom:1px solid var(--border); min-width:0;
}
.pt-head-left { display:flex; align-items:center; gap:24px; min-width:0; }
.pt-brand { display:inline-flex; align-items:center; gap:10px; text-decoration:none; color:var(--foreground); }
.pt-brand svg { width:18px; height:21px; flex:none; }
.pt-filters { display:flex; align-items:center; gap:10px; min-width:0; }
.pt-head-right { display:flex; justify-content:flex-end; }
.pt-select {
  appearance:none; -webkit-appearance:none; color-scheme:dark; height:40px; max-width:260px; padding:0 38px 0 18px;
  border:1px solid var(--border-strong); border-radius:999px; background-color:transparent; color:var(--foreground);
  font:500 14px/1 var(--font-sans); cursor:pointer; text-overflow:ellipsis;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 16px center;
}
.pt-select:hover { background-color:var(--accent); }
.pt-select option { background:var(--card); color:var(--foreground); }

/* 2. Escenario: la tarjeta centrada en los dos ejes, el transporte debajo. */
.pt-stage { min-height:0; display:flex; padding:16px 24px 8px; }
.rp {
  position:relative; flex:1; min-height:0; display:flex; flex-direction:column; justify-content:center;
  overflow:hidden; outline-offset:6px; color:var(--foreground);
  --rp-sheet-fg: var(--foreground); --rp-sheet-fg-muted: var(--muted-foreground); --rp-sheet-surface: var(--card);
}
.rp:focus-visible { outline:2px solid var(--ring); }
.rp-deck { display:contents; }
.rp .dash-feed-empty, .rp .dash-feed-loading { margin:auto; text-align:center; padding:48px 20px; color:var(--muted-foreground); font-size:14px; }

/* La tarjeta de hecho auditable (apps/demo/docs/005 B1), de 640px como máximo. Nunca tiene scroll: rpFitCard
   (radar-player.js) le pone las clases rp-fit-1 a rp-fit-10 hasta que entra. */
.rp-now {
  flex:0 1 auto; min-height:0; display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center;
  width:100%; max-width:640px; margin:0 auto; overflow:hidden; touch-action:pan-y;
  background:var(--card); color:var(--foreground); border:1px solid var(--border); border-radius:var(--radius-card);
  padding:22px 26px;
}
.rp-help { margin:0; }
.rp-kicker {
  display:inline-flex; align-items:center; gap:6px; cursor:pointer; list-style:none;
  font-family:var(--font-sans); font-size:var(--size-eyebrow); font-weight:800; letter-spacing:.08em;
  text-transform:uppercase; color:var(--brand-soft); margin:0;
}
.rp-kicker::-webkit-details-marker { display:none; }
.rp-kicker:hover { color:var(--foreground); }
.rp-help-icon {
  display:inline-flex; align-items:center; justify-content:center; width:14px; height:14px;
  border:1.5px solid var(--brand); border-radius:50%; font-size:var(--size-eyebrow); line-height:1; color:var(--brand-soft);
}
.rp-help-text { margin:6px auto 0; font-size:12px; line-height:1.4; color:var(--muted-foreground); max-width:44ch; }
.rp-title { font-family:var(--font-heading); font-weight:500; letter-spacing:-.035em; font-size:clamp(1.9rem,3.4vw,2.8rem); line-height:1.05; margin:0; overflow-wrap:anywhere; }
.rp-artist { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px; margin:0; font-size:13px; color:var(--muted-foreground); }
.rp-artist-chip {
  font-family:var(--font-sans); font-weight:600; font-size:13px; padding:2px 10px; cursor:pointer;
  background:transparent; border:1px solid var(--border-strong); border-radius:999px; color:var(--foreground);
}
.rp-artist-chip:hover { background:var(--accent); }
.rp-now-text {
  display:flex; flex-direction:column; align-items:stretch; gap:8px; margin-top:4px; text-align:left;
  width:100%; flex:0 1 auto; min-height:0; overflow:hidden;
}
.rp-now-text > * { flex-shrink:0; }
.rp-now-text .rp-headline, .rp-now-text .rp-quote, .rp-now-text .rp-summary { display:-webkit-box; -webkit-box-orient:vertical; overflow:hidden; max-width:none; }
.rp-now-text .rp-headline { -webkit-line-clamp:4; line-clamp:4; }
.rp-now-text .rp-quote, .rp-now-text .rp-summary { -webkit-line-clamp:4; line-clamp:4; }
.rp-now-text .rp-headline.rp-headline--update { -webkit-line-clamp:2; line-clamp:2; }
.rp-now-label { margin:0; font-family:var(--font-sans); font-weight:700; font-size:var(--size-eyebrow); letter-spacing:.06em; text-transform:uppercase; color:var(--muted-foreground); }
.rp-headline { font-family:var(--font-heading); font-weight:600; font-size:clamp(1.1rem,1.9vw,1.45rem); line-height:1.32; margin:0; }
.rp-headline.rp-headline--update { font-weight:700; font-size:1.05rem; color:var(--muted-foreground); }
.rp-quote { margin:0; padding:0; border:0; font-size:16px; line-height:1.5; font-style:italic; }
.rp-summary { margin:0; font-size:15px; line-height:1.5; }
.rp-fact-kind { font-weight:800; color:var(--foreground); }
.rp-provenance { margin:-4px 0 0; font-size:13px; line-height:1.35; color:var(--muted-foreground); }
.rp-frame-label { margin-top:2px; }
.rp-frame-host { font-family:var(--font-mono); font-weight:400; letter-spacing:0; text-transform:none; }
.rp-cite { margin:0; display:flex; flex-direction:column; gap:4px; }
.rp-cite-cap { display:flex; flex-wrap:wrap; align-items:baseline; column-gap:4px; row-gap:1px; margin:0; }
.rp-cite-cap cite { font-style:normal; }
.rp-cite-link { font-family:var(--font-sans); font-size:13px; color:var(--foreground); overflow-wrap:anywhere; }
.rp-cite-meta { flex-basis:100%; font-family:var(--font-sans); font-size:13px; line-height:1.4; color:var(--muted-foreground); }
.rp-cite-meta span[title] { font-family:var(--font-mono); font-size:12px; } /* la huella: el único dato en mono (docs/22) */
.rp-source-box { flex:none; width:100%; }
.rp-source-line { display:flex; flex-direction:column; align-items:center; gap:10px; width:100%; margin:4px 0 0; font-family:var(--font-sans); font-size:13px; }
.rp-reads { list-style:none; margin:0; padding:0; width:100%; display:flex; flex-direction:column; gap:3px; }
.rp-read {
  display:flex; align-items:baseline; gap:8px; width:100%; padding:2px 0; margin:0; cursor:pointer;
  background:none; border:0; text-align:left; font-family:var(--font-sans); font-size:13px; line-height:1.35; color:var(--foreground);
}
.rp-read:hover .rp-read-judge { text-decoration:underline; }
.rp-read:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.rp-read-icon { flex:none; width:12px; text-align:center; font-weight:700; }
.rp-read-judge { flex:1 1 auto; min-width:0; }
.rp-read-state { flex:none; font-weight:600; font-size:13px; }
.rp-read--ok .rp-read-icon, .rp-read--ok .rp-read-state { color:var(--ok); }
.rp-read--flag .rp-read-icon, .rp-read--flag .rp-read-state { color:var(--brand-soft); }
.rp-read--pending .rp-read-icon, .rp-read--pending .rp-read-state { color:var(--muted-foreground); }
.rp-nosign { margin:0; font-family:var(--font-sans); font-size:13px; line-height:1.4; color:var(--muted-foreground); }
.rp-source-actions { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px 12px; width:100%; margin-top:6px; }
/* apps/demo/docs/017: el lore de la narrativa se lee en la página de la señal (lecturas, exposición, hilo y motivos). */
.rp-lore-btn {
  display:inline-flex; align-items:center; height:32px; padding:0 16px; border-radius:999px; text-decoration:none; white-space:nowrap;
  background:var(--primary); color:var(--primary-foreground); font-family:var(--font-sans); font-weight:600; font-size:13px;
}
.rp-lore-btn:hover { opacity:.88; }
.rp-lore-btn:focus-visible { outline:2px solid var(--ring); outline-offset:2px; }
.rp-badges { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.rp-audit-badge {
  display:inline-flex; align-items:center; gap:5px; cursor:pointer; padding:3px 10px;
  border-radius:999px; border:1px solid var(--border-strong); background:transparent;
  font-family:var(--font-sans); font-weight:600; font-size:13px; letter-spacing:0; color:var(--foreground); height:32px; padding:0 14px;
}
.rp-audit-badge:hover { background:var(--accent); }
.rp-audit-badge--ok { background:var(--primary); color:var(--primary-foreground); border-color:var(--primary); }
.rp-audit-badge--pending { border-style:dashed; color:var(--muted-foreground); }
.rp-audit-badge--flag { border-color:var(--brand-soft); color:var(--brand-soft); }
.rp-repeated-chip {
  display:inline-flex; align-items:center; cursor:pointer; padding:3px 10px; border-radius:999px;
  border:1px dashed var(--border-strong); background:transparent; font-family:var(--font-sans); font-weight:600; font-size:13px; color:var(--foreground); height:32px; padding:0 14px;
}
.rp-repeated-chip:hover { background:var(--accent); }
.signal-card-signature { font-family:var(--font-sans); font-size:13px; color:var(--muted-foreground); margin:0; display:flex; align-items:center; justify-content:center; gap:10px; flex-wrap:wrap; }
.signal-card-signature strong { color:var(--foreground); font-weight:700; font-family:var(--font-mono); font-size:12px; } /* el prefijo de la firma, mono (docs/22) */
.verify-btn {
  font-family:var(--font-sans); font-size:13px; font-weight:600; letter-spacing:0; text-transform:none;
  color:var(--foreground); background:none; border:1px solid var(--border-strong); border-radius:999px; padding:3px 10px; cursor:pointer;
}
.verify-btn:hover { border-color:var(--brand-soft); color:var(--brand-soft); }
.verify-result { font-size:13px; }

/* Recortes de rpFitCard, en orden: se aplican hasta que la tarjeta entra en su franja. */
.rp-now.rp-fit-1 .rp-provenance { display:none; }
.rp-now.rp-fit-2 :is(.rp-nosign, .rp-repeated-chip) { display:none; }
.rp-now.rp-fit-3 .rp-now-text :is(.rp-headline, .rp-quote, .rp-summary) { -webkit-line-clamp:3; line-clamp:3; }
.rp-now.rp-fit-4 .rp-now-text :is(.rp-quote, .rp-summary) { -webkit-line-clamp:2; line-clamp:2; }
.rp-now.rp-fit-5 .rp-title { font-size:1.6rem; }
.rp-now.rp-fit-6 .rp-now-text .rp-headline { -webkit-line-clamp:2; line-clamp:2; }
.rp-now.rp-fit-7 .rp-cite-meta { display:none; }
.rp-now.rp-fit-8 .rp-now-text :is(.rp-quote, .rp-summary) { -webkit-line-clamp:1; line-clamp:1; }
.rp-now.rp-fit-9 .rp-artist { display:none; }
.rp-now.rp-fit-10 .rp-now-text :is(.rp-quote, .rp-summary) { display:none; }

/* Transporte: barra de progreso del audio (o del temporizador) y los tres botones circulares. */
.rp-transport { flex:none; width:100%; max-width:640px; margin:12px auto 0; }
.rp-scrub { display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.rp-scrub-elapsed, .rp-scrub-remaining { flex:none; font-family:var(--font-mono); font-size:var(--size-eyebrow); color:var(--muted-foreground); font-variant-numeric:tabular-nums; }
.rp-scrub-track { flex:1; height:3px; background:var(--border); border-radius:2px; overflow:hidden; }
.rp-scrub-fill { display:block; height:100%; background:var(--foreground); transition:width .25s linear; }
.rp-controls { display:flex; align-items:center; justify-content:center; gap:24px; }
.rp-btn {
  display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; cursor:pointer;
  background:transparent; color:var(--foreground); border:1px solid var(--border-strong); border-radius:50%; padding:0;
}
.rp-btn:hover:not(:disabled) { background:var(--accent); }
.rp-btn:disabled { opacity:.35; cursor:default; }
.rp-btn--main { width:60px; height:60px; background:var(--primary); color:var(--primary-foreground); border-color:var(--primary); }
.rp-btn--main svg { width:24px; height:24px; }
.rp-btn--main:hover:not(:disabled) { opacity:.88; background:var(--primary); }
.rp-btn:focus-visible { outline:2px solid var(--ring); outline-offset:2px; }
.rp-pos { margin:8px 0 0; text-align:center; font-family:var(--font-mono); font-size:var(--size-eyebrow); color:var(--muted-foreground); }
.rp-now.rp-swipe-in-next { animation:rpSwipeInNext .22s ease-out; }
.rp-now.rp-swipe-in-prev { animation:rpSwipeInPrev .22s ease-out; }
@keyframes rpSwipeInNext { from { opacity:0; transform:translateX(40px); } to { opacity:1; transform:none; } }
@keyframes rpSwipeInPrev { from { opacity:0; transform:translateX(-40px); } to { opacity:1; transform:none; } }

/* 3. Dock de cifras en embudo */
.pt-dock-wrap { padding:0 24px 12px; display:flex; justify-content:center; }
.pt-dock {
  width:100%; max-width:820px; display:flex; align-items:center; gap:12px; flex-wrap:nowrap;
  border:1px solid var(--border); border-radius:16px; padding:12px 24px;
}
.pt-dock-head { display:flex; flex-direction:column; gap:0; }
.pt-dock-title { margin:0; font-weight:600; font-size:15px; line-height:1.3; white-space:nowrap; }
.pt-dock-sep { width:1px; align-self:stretch; background:var(--border); }
.pt-funnel { list-style:none; margin:0; padding:0; display:flex; align-items:center; gap:6px; flex:1 1 auto; min-width:0; justify-content:space-between; }
.pt-funnel[hidden] { display:none; }
.pt-funnel li { display:flex; flex-direction:column; gap:0; min-width:0; }
.pt-funnel li + li::before { content:none; }
.pt-arrow { color:var(--muted-foreground); font-size:14px; }
.pt-num { font-family:var(--font-heading); font-weight:500; font-size:22px; line-height:1.1; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.pt-lbl { font-size:var(--size-eyebrow); color:var(--muted-foreground); white-space:nowrap; }
.pt-dock-side { margin-left:auto; }
.pt-dock-window { margin:0; font-size:var(--size-eyebrow); color:var(--muted-foreground); white-space:nowrap; }
.pt-dock-more { color:var(--brand-soft); font-weight:700; font-size:13px; text-decoration:none; background:none; border:0; padding:0; cursor:pointer; white-space:nowrap; font-family:var(--font-sans); }
.pt-dock-more:hover { text-decoration:underline; }

/* 4. Pie de 38px */
.pt-foot {
  display:flex; align-items:center; justify-content:space-between; gap:16px; padding:0 24px;
  border-top:1px solid var(--border); font-size:12px; color:var(--muted-foreground); min-width:0;
}
.pt-foot-left, .pt-foot-right { display:flex; align-items:center; gap:12px; white-space:nowrap; }
.pt-foot nav { display:flex; align-items:center; gap:6px; white-space:nowrap; overflow:hidden; }
.pt-foot a { color:var(--muted-foreground); text-decoration:none; }
.pt-foot a:hover { color:var(--foreground); }
.pt-dot { opacity:.6; }
.pt-social { display:flex; gap:6px; list-style:none; margin:0; padding:0; }
.pt-social a { display:flex; align-items:center; justify-content:center; width:24px; height:24px; border:1px solid var(--border); border-radius:6px; }
.pt-social a:hover { border-color:var(--foreground); }
.pt-social svg { width:12px; height:12px; }
.pt-info-btn { height:28px; padding:0 14px; font-size:12px; background:var(--primary); color:var(--primary-foreground); border-color:var(--primary); }
.pt-info-btn:hover { background:var(--primary); opacity:.88; }

/* ── Capas: el buscador (#buscar) y el cajón institucional (#info) ─────── */
.shell-overlay:not(.shell-overlay--open) { display:none; }
.shell-overlay--open {
  position:fixed; inset:0; z-index:100; overflow-y:auto; -webkit-overflow-scrolling:touch;
  background:var(--background); display:flex; align-items:flex-start; justify-content:center;
  padding:56px 20px 40px; animation:rsFadeIn .18s ease;
}
body.shell-lock-scroll { overflow:hidden; }
.shell-overlay-close {
  display:none; position:fixed; top:16px; right:16px; z-index:101; width:44px; height:44px;
  align-items:center; justify-content:center; cursor:pointer; background:var(--card);
  border:1px solid var(--border-strong); border-radius:999px; color:var(--foreground);
}
.shell-overlay--open .shell-overlay-close { display:flex; }
@keyframes rsFadeIn { from { opacity:0; } to { opacity:1; } }

/* El cajón sube desde abajo. Su fondo propio (#050505) y un velo que cierra al tocarlo. */
#info.shell-overlay--open {
  inset:auto 0 0 0; z-index:50; display:block; max-height:88vh; max-height:88dvh; padding:28px 24px 0;
  background:#050505; border-top:1px solid var(--border); animation:ptDrawerUp .28s var(--ease-out);
}
.pt-scrim { display:none; position:fixed; inset:0; z-index:49; background:var(--scrim, rgba(0,0,0,.6)); border:0; padding:0; cursor:pointer; }
body:has(#info.shell-overlay--open) .pt-scrim { display:block; }
@keyframes ptDrawerUp { from { transform:translateY(100%); } to { transform:none; } }
.pt-drawer-inner { max-width:1080px; margin:0 auto; position:relative; }
.pt-drawer-close { position:absolute; top:0; right:0; }
.footer-main {
  display:grid; grid-template-columns:1.1fr 0.8fr 1.4fr 0.8fr 1.4fr; gap:40px; padding:56px 0 40px;
}
.rs-footer__brand { display:flex; flex-direction:column; gap:20px; }
.rs-footer__logo { display:flex; align-items:center; gap:6px; text-decoration:none; color:var(--foreground); }
.footer-social { list-style:none; padding:0; margin:0; display:flex; gap:12px; }
.footer-social a {
  width:36px; height:36px; border:1.5px solid var(--border); border-radius:6px;
  display:flex; align-items:center; justify-content:center; color:var(--muted-foreground); text-decoration:none;
}
.footer-social a:hover { border-color:var(--foreground); color:var(--foreground); }
.footer-col-heading { font-size:var(--size-eyebrow); font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--brand-2); margin:0 0 18px; }
.footer-links { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:11px; }
.footer-links a { color:var(--muted-foreground); text-decoration:none; font-size:14px; }
.footer-links a:hover { color:var(--foreground); }
.footer-input {
  width:100%; background:var(--card); border:1.5px solid var(--border); border-radius:var(--radius);
  padding:12px 14px; color:var(--foreground); font-family:var(--font-sans); font-size:14px; margin-bottom:10px; outline:none;
}
.footer-input:focus { border-color:var(--brand-2); }
.footer-input::placeholder { color:var(--muted-foreground); }
.footer-textarea { height:96px; resize:vertical; }
.footer-submit {
  display:inline-block; background:var(--primary); color:var(--primary-foreground); border:0; border-radius:999px;
  padding:12px 22px; font-family:var(--font-sans); font-size:14px; font-weight:700; cursor:pointer;
}
.footer-submit:hover { opacity:.88; }
.footer-submit:disabled { opacity:.6; cursor:default; }
.footer-bottom {
  border-top:1px solid var(--border); padding:18px 0; display:flex; align-items:center; justify-content:space-between;
  font-size:12px; color:var(--muted-foreground); gap:16px; flex-wrap:wrap;
}
.footer-bottom-links { display:flex; gap:24px; }
.footer-bottom-links a { color:var(--muted-foreground); text-decoration:none; }
.footer-bottom-links a:hover { color:var(--foreground); }
.pt-hp { position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }

/* Buscador de cuentas (#buscar), igual que en la portada anterior. */
.lp-section-inner { max-width:1080px; margin:0 auto; width:100%; min-width:0; }
.lp-section-title { font-family:var(--font-heading); font-weight:500; font-size:clamp(1.9rem,4.4vw,2.75rem); line-height:1.04; letter-spacing:-.035em; margin:0 0 12px; }
.lp-section-lead { color:var(--muted-foreground); font-size:16px; line-height:1.6; margin:0 0 28px; max-width:62ch; }
.lp-url-form { display:flex; gap:14px; flex-wrap:wrap; max-width:620px; }
.lp-url-form .lp-input { flex:1 1 220px; }
.lp-input {
  width:100%; background:transparent; border:1.5px solid var(--border); border-radius:var(--radius);
  padding:12px 14px; color:var(--foreground); font-family:inherit; font-size:14px; margin-bottom:14px; outline:none;
}
.lp-input:focus { border-color:var(--brand); }
.lp-input::placeholder { color:var(--muted-foreground); }
select.lp-input { color-scheme:dark; }
select.lp-input option { background:var(--card); color:var(--foreground); }
.lp-url-note { font-size:13px; color:var(--muted-foreground); margin:20px 0 14px; max-width:620px; }
.lp-consent { flex:1 1 100%; display:flex; align-items:flex-start; gap:10px; margin:-4px 0 4px; font-size:13px; line-height:1.5; color:var(--muted-foreground); }
.lp-consent input { flex:0 0 auto; width:16px; height:16px; margin:2px 0 0; accent-color:var(--brand); cursor:pointer; }
.lp-consent a { color:var(--foreground); font-weight:600; text-decoration:underline; }
.lp-turnstile { flex:1 1 100%; margin:2px 0 4px; }

/* Diálogos nativos: el aviso del buscador y "Qué queda afuera". */
.lp-done {
  border:1px solid var(--border-strong); border-radius:16px; background:var(--card); color:var(--foreground);
  padding:32px 28px; width:min(520px, calc(100vw - 32px)); margin:auto;
}
.lp-done::backdrop { background:rgba(0,0,0,.6); }
.lp-done-title { font-size:22px; line-height:1.25; margin:0 0 12px; font-weight:600; }
.lp-done-text { font-size:15px; line-height:1.55; color:var(--muted-foreground); margin:0 0 12px; }
.lp-done-text strong { color:var(--foreground); overflow-wrap:anywhere; }
.lp-done ul { margin:0 0 16px; padding-left:18px; display:flex; flex-direction:column; gap:10px; font-size:14px; line-height:1.5; color:var(--muted-foreground); }
.lp-done ul strong { color:var(--foreground); }
.lp-done-actions { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.lp-done .footer-submit { margin-top:4px; }

.toast {
  position:fixed; bottom:56px; left:50%; transform:translateX(-50%) translateY(12px);
  background:var(--card); color:var(--foreground); border:1px solid var(--border-strong);
  border-radius:999px; padding:12px 24px; font-size:14px; font-weight:600; z-index:1100; opacity:0; pointer-events:none;
  transition:opacity .2s var(--ease-out), transform .2s var(--ease-out); white-space:nowrap; max-width:calc(100vw - 32px);
}
.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }

/* Pantallas bajas: el título, el transporte y el dock se aprietan antes de que rpFitCard recorte. */
@media (min-width:768px) and (max-height:820px) {
  .pt-stage { padding-top:10px; }
  .rp-now { padding:16px 22px; gap:6px; }
  .rp-title { font-size:clamp(1.7rem,3vw,2.3rem); }
  .rp-btn--main { width:52px; height:52px; }
  .rp-btn { width:40px; height:40px; }
  .rp-pos { display:none; }
  .pt-dock { padding:8px 20px; }
  .pt-num { font-size:19px; }
  .pt-dock-wrap { padding-bottom:8px; }
}

/* Escritorio angosto: el pie suelta la navegación del centro (queda en el cajón). */
@media (min-width:768px) and (max-width:1180px) {
  .pt-foot nav { display:none; }
  .pt-head-left .pt-link { display:none; }
  .footer-main { grid-template-columns:1fr 1fr 1fr; }
  .pt-dock { flex-wrap:wrap; }
  .pt-dock-sep { display:none; }
  .pt-funnel { flex:1 1 100%; order:2; }
}

/* ── Celular (menos de 768px) y pantallas muy bajas (menos de 640px): scroll natural, el reproductor en el primer
   pantallazo. Con menos de 640px de alto la tarjeta ya no entra entera en una sola pantalla. ── */
@media (max-width:767px), (max-height:639px) {
  .pt-shell { display:block; height:auto; overflow:visible; }
  .pt-head {
    position:sticky; top:0; z-index:20; background:#000;
    grid-template-columns:1fr auto; grid-template-areas:"brand invite" "filters filters"; row-gap:10px; padding:10px 16px;
  }
  .pt-head-left { grid-area:brand; }
  .pt-head-left .pt-link { display:none; }
  .pt-head-right { grid-area:invite; }
  .pt-filters { grid-area:filters; }
  .pt-filters .pt-select { flex:1 1 0; min-width:0; max-width:none; height:36px; font-size:13px; padding:0 32px 0 14px; background-position:right 12px center; }
  .rs-wordmark { font-size:22px; }
  .pt-pill { height:36px; padding:0 14px; font-size:13px; }
  .pt-stage { padding:10px 12px 8px; height:calc(100vh - 106px); height:calc(100svh - 106px); }
  .rp-now { padding:14px 16px; gap:6px; }
  .rp-read { font-size:var(--size-eyebrow); padding:0; }
  .rp-read-state { display:none; }
  .rp-nosign-why { display:none; }
  .rp-controls { gap:28px; }
  .pt-dock-wrap { padding:8px 12px 16px; }
  .pt-dock { padding:12px 16px; gap:12px; flex-wrap:wrap; }
  .pt-funnel { flex-wrap:wrap; }
  .pt-dock-sep { display:none; }
  .pt-funnel { gap:6px 10px; }
  .pt-dock-side { margin-left:0; align-items:flex-start; width:100%; }
  .pt-foot { flex-direction:column; align-items:flex-start; gap:10px; padding:16px; }
  .pt-foot nav { flex-wrap:wrap; white-space:normal; }
  .pt-foot-right { flex-wrap:wrap; }
  #info.shell-overlay--open { padding:20px 16px 0; }
  .footer-main { grid-template-columns:1fr 1fr; gap:28px; padding-top:48px; }
  .shell-overlay--open { padding:56px 16px 32px; }
}
@media (max-width:420px) { .footer-main { grid-template-columns:1fr; } }

@media (prefers-reduced-motion: reduce) {
  .shell-overlay--open, #info.shell-overlay--open { animation:none; }
  .rp-now.rp-swipe-in-next, .rp-now.rp-swipe-in-prev { animation:none; }
  .rp-scrub-fill { transition:none; }
}
