:root {
 --ink: #071018;
 --ink-2: #0d1a26;
 --foam: #e8f1f4;
 --muted: #8aa0b0;
 --line: rgba(232, 241, 244, 0.12);
 --accent: #1ec8b0;
 --accent-2: #3d9cff;
 --warn: #ffb020;
 --danger: #ff5c7a;
 --radius: 18px;
 --safe-top: env(safe-area-inset-top, 0px);
 --safe-bottom: env(safe-area-inset-bottom, 0px);
 --font-display: "Syne", system-ui, sans-serif;
 --font-body: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
 margin: 0;
 min-height: 100%;
 background: var(--ink);
 color: var(--foam);
 font-family: var(--font-body);
 -webkit-font-smoothing: antialiased;
 text-rendering: optimizeLegibility;
 /* Reduce CLS al intercambiar system → Manrope/Outfit. */
 font-size-adjust: 0.52;
}

body {
 min-height: 100dvh;
 background:
 radial-gradient(ellipse 90% 60% at 10% -10%, rgba(30, 200, 176, 0.22), transparent 55%),
 radial-gradient(ellipse 70% 50% at 100% 0%, rgba(61, 156, 255, 0.16), transparent 50%),
 radial-gradient(ellipse 80% 40% at 50% 100%, rgba(255, 176, 32, 0.08), transparent 45%),
 linear-gradient(165deg, #071018 0%, #0a1520 45%, #0c1c24 100%);
 overflow-x: hidden;
}

button, a { color: inherit; }

a { text-decoration: none; }

.hidden { display: none !important; }

/* —— Shell —— */
.app {
 width: min(480px, 100%);
 max-width: 100%;
 min-width: 0;
 margin: 0 auto;
 min-height: 100dvh;
 padding: calc(0.75rem + var(--safe-top)) 1rem calc(1.25rem + var(--safe-bottom));
 display: flex;
 flex-direction: column;
 gap: 1rem;
}

#pulse-main {
 min-width: 0;
 max-width: 100%;
}

.topbar {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 0.75rem;
 animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand {
 font-family: var(--font-display);
 font-weight: 800;
 font-size: 1.35rem;
 letter-spacing: -0.04em;
 line-height: 1;
}

.brand-home {
 appearance: none;
 border: 0;
 background: transparent;
 padding: 0;
 cursor: pointer;
 text-align: left;
 color: inherit;
 text-decoration: none;
}

.brand-home:focus-visible {
 outline: 2px solid var(--accent);
 outline-offset: 4px;
 border-radius: 4px;
}

.brand span { color: var(--accent); }

.brand-home-wrap {
 display: inline-flex;
 align-items: baseline;
 gap: 0.28rem;
}

.brand-parent {
 color: inherit;
 text-decoration: none;
}

.brand-parent:hover {
 color: var(--accent);
}

.brand-tagline {
 margin: 0.35rem 0 0;
 font-size: 0.92rem;
 color: var(--muted);
 line-height: 1.45;
}

.brand-tagline a {
 color: rgba(232, 241, 244, 0.85);
 text-decoration: underline;
 text-underline-offset: 3px;
}

.brand-tagline a:hover { color: var(--accent); }

.top-actions {
 display: flex;
 gap: 0.45rem;
 align-items: center;
}

.chip-btn {
 border: 1px solid var(--line);
 background: rgba(255, 255, 255, 0.04);
 border-radius: 999px;
 padding: 0.45rem 0.8rem;
 font-size: 0.78rem;
 font-weight: 600;
 letter-spacing: 0.01em;
 cursor: pointer;
 transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.chip-btn:hover { background: rgba(255, 255, 255, 0.08); }
.chip-btn:active { transform: scale(0.97); }
.chip-btn.pro {
 border-color: rgba(30, 200, 176, 0.45);
 color: var(--accent);
}
.chip-btn.pro.is-on {
 background: rgba(30, 200, 176, 0.15);
}

/* —— Hero brief —— */
.brief {
 position: relative;
 padding: 1.25rem 1.2rem 1.35rem;
 border-radius: calc(var(--radius) + 4px);
 background:
 linear-gradient(145deg, rgba(30, 200, 176, 0.14), transparent 42%),
 linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
 border: 1px solid var(--line);
 overflow: hidden;
 isolation: isolate;
 animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.brief-visual {
 position: relative;
 height: clamp(12rem, 44vw, 15.25rem);
 margin: -1.25rem -1.2rem 0.95rem;
 overflow: hidden;
 border-radius: calc(var(--radius) + 4px) calc(var(--radius) + 4px) 0 0;
 background: #02080f;
 contain: layout paint;
}

.brief-visual-stage {
 position: absolute;
 inset: -10% -8%;
 transform: translate3d(0, var(--parallax, 0px), 0);
}

.brief-visual-img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 object-position: 45% 55%;
 display: block;
 transform-origin: 42% 62%;
 transform: scale(1.08);
 /* Solo transform tras LCP: evita trabajo en paint del candidato LCP. */
 filter: saturate(1.12) contrast(1.05) brightness(0.92);
}

.brief-visual.is-lively .brief-visual-img {
 animation: ken-deep 22s cubic-bezier(0.37, 0.01, 0.28, 1) infinite alternate;
 will-change: transform;
}

.brief-chroma {
 position: absolute;
 inset: -2%;
 pointer-events: none;
 mix-blend-mode: screen;
 opacity: 0.42;
 background:
 linear-gradient(95deg, rgba(255, 70, 90, 0.18) 0%, transparent 28%, transparent 72%, rgba(0, 210, 255, 0.2) 100%),
 radial-gradient(ellipse 60% 50% at 30% 70%, rgba(255, 90, 120, 0.12), transparent 55%),
 radial-gradient(ellipse 55% 45% at 75% 40%, rgba(40, 220, 255, 0.14), transparent 58%);
 animation: chroma-breathe 7.5s ease-in-out infinite alternate;
 filter: blur(0.4px);
}

.brief-chroma::before,
.brief-chroma::after {
 content: "";
 position: absolute;
 inset: 0;
 mix-blend-mode: color-dodge;
 opacity: 0.35;
 pointer-events: none;
}

.brief-chroma::before {
 background: linear-gradient(0deg, transparent 55%, rgba(255, 80, 110, 0.22) 100%);
 transform: translate3d(-1.2px, 0, 0);
 animation: chroma-shift-r 5.5s ease-in-out infinite alternate;
}

.brief-chroma::after {
 background: linear-gradient(0deg, transparent 50%, rgba(30, 220, 255, 0.2) 100%);
 transform: translate3d(1.2px, 0, 0);
 animation: chroma-shift-b 5.5s ease-in-out infinite alternate-reverse;
}

.brief-hue {
 position: absolute;
 inset: -20%;
 pointer-events: none;
 mix-blend-mode: soft-light;
 opacity: 0.55;
 background:
 conic-gradient(
 from 120deg at 50% 70%,
 rgba(30, 200, 176, 0.35),
 rgba(61, 156, 255, 0.22),
 rgba(255, 176, 32, 0.28),
 rgba(46, 240, 209, 0.2),
 rgba(30, 200, 176, 0.35)
 );
 animation: hue-spin 28s linear infinite;
}

.brief-rays {
 position: absolute;
 inset: -40%;
 pointer-events: none;
 mix-blend-mode: screen;
 opacity: 0.28;
 background: repeating-conic-gradient(
 from 0deg at 52% 78%,
 rgba(46, 240, 209, 0.14) 0deg 2deg,
 transparent 2deg 14deg,
 rgba(255, 176, 32, 0.08) 14deg 16deg,
 transparent 16deg 28deg
 );
 mask-image: radial-gradient(ellipse 70% 55% at 50% 75%, #000 0%, transparent 72%);
 -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 75%, #000 0%, transparent 72%);
 animation: rays-turn 48s linear infinite;
}

.brief-aurora {
 position: absolute;
 inset: -30%;
 background:
 radial-gradient(ellipse 55% 40% at 18% 72%, rgba(30, 200, 176, 0.42), transparent 62%),
 radial-gradient(ellipse 50% 45% at 82% 28%, rgba(61, 156, 255, 0.26), transparent 60%),
 radial-gradient(ellipse 45% 35% at 55% 88%, rgba(255, 176, 32, 0.2), transparent 58%);
 mix-blend-mode: screen;
 opacity: 0.9;
 animation: aurora-drift 16s ease-in-out infinite alternate;
 pointer-events: none;
}

.brief-orb {
 position: absolute;
 border-radius: 50%;
 filter: blur(18px);
 mix-blend-mode: screen;
 pointer-events: none;
 opacity: 0.58;
}

.brief-orb-a {
 width: 42%;
 height: 55%;
 left: -8%;
 bottom: -18%;
 background: radial-gradient(circle, rgba(46, 240, 209, 0.58), transparent 68%);
 animation: orb-float-a 14s ease-in-out infinite alternate;
}

.brief-orb-b {
 width: 36%;
 height: 48%;
 right: -10%;
 top: -12%;
 background: radial-gradient(circle, rgba(61, 156, 255, 0.44), transparent 70%);
 animation: orb-float-b 18s ease-in-out infinite alternate;
}

.brief-orb-c {
 width: 28%;
 height: 34%;
 left: 48%;
 top: 18%;
 background: radial-gradient(circle, rgba(255, 176, 32, 0.32), transparent 72%);
 animation: orb-float-c 12s ease-in-out infinite alternate;
}

.brief-network {
 position: absolute;
 inset: 0;
 width: 100%;
 height: 100%;
 pointer-events: none;
 z-index: 1;
 opacity: 0.92;
 overflow: visible;
 will-change: transform;
}

.brief-arcs {
 filter: drop-shadow(0 0 2px rgba(46, 240, 209, 0.55));
}

.brief-arc {
 stroke-dasharray: 14 220;
 animation: arc-travel 5.8s linear infinite;
 opacity: 0.85;
}

.brief-arc-a { animation-duration: 5.2s; animation-delay: 0s; }
.brief-arc-b { animation-duration: 6.4s; animation-delay: -1.6s; }
.brief-arc-c { animation-duration: 5.6s; animation-delay: -3.1s; }
.brief-arc-d { animation-duration: 7s; animation-delay: -2.2s; }
.brief-arc-e { animation-duration: 6.1s; animation-delay: -4s; }
.brief-arc-orbit {
 stroke-dasharray: 8 28;
 animation: orbit-dash 14s linear infinite;
 opacity: 0.55;
}

.brief-arc-desktop { display: none; }

@media (min-width: 420px) {
 .brief-arc-desktop { display: block; }
}

.brief-node {
 fill: #2af0d1;
 stroke: rgba(255, 176, 32, 0.75);
 stroke-width: 0.8;
 filter: drop-shadow(0 0 3px rgba(46, 240, 209, 0.9));
 animation: node-breathe 2.8s ease-in-out infinite;
 transform-origin: center;
 transform-box: fill-box;
}

.brief-node.n2,
.brief-node.n5 { fill: #ffb020; animation-delay: -0.7s; }
.brief-node.n3,
.brief-node.n6 { animation-delay: -1.3s; }
.brief-node.n4,
.brief-node.n7 { fill: #3d9cff; animation-delay: -1.9s; }
.brief-node.n8 { animation-delay: -2.4s; }

.brief-pulse {
 stroke: rgba(46, 240, 209, 0.85);
 stroke-width: 1.2;
 animation: node-ring 2.6s ease-out infinite;
 transform-origin: center;
 transform-box: fill-box;
}

.brief-pulse.p2 {
 stroke: rgba(255, 176, 32, 0.8);
 animation-delay: -0.85s;
 animation-duration: 3s;
}

.brief-pulse.p3 {
 stroke: rgba(61, 156, 255, 0.75);
 animation-delay: -1.5s;
}

.brief-pulse.p4 {
 stroke: rgba(46, 240, 209, 0.7);
 animation-delay: -2.1s;
 animation-duration: 2.9s;
}

.brief-network-glow {
 position: absolute;
 inset: 0;
 pointer-events: none;
 z-index: 1;
 mix-blend-mode: screen;
 opacity: 0.55;
 background:
 radial-gradient(circle at 12% 67%, rgba(46, 240, 209, 0.35), transparent 14%),
 radial-gradient(circle at 41% 73%, rgba(255, 176, 32, 0.28), transparent 12%),
 radial-gradient(circle at 72% 56%, rgba(61, 156, 255, 0.32), transparent 13%),
 radial-gradient(circle at 84% 61%, rgba(46, 240, 209, 0.22), transparent 11%),
 radial-gradient(ellipse 80% 40% at 50% 88%, rgba(30, 200, 176, 0.18), transparent 60%);
 animation: network-glow-pulse 4.8s ease-in-out infinite alternate;
}

.brief-shimmer {
 position: absolute;
 inset: 0;
 z-index: 2;
 background: linear-gradient(
 115deg,
 transparent 0%,
 transparent 38%,
 rgba(232, 241, 244, 0.12) 48%,
 rgba(30, 200, 176, 0.18) 52%,
 transparent 62%,
 transparent 100%
 );
 background-size: 220% 100%;
 background-position: 50% 0;
 animation: shimmer-sweep 9.5s ease-in-out infinite;
 mix-blend-mode: soft-light;
 pointer-events: none;
 will-change: transform, opacity;
}

.brief-grain {
 position: absolute;
 inset: -40%;
 z-index: 2;
 opacity: 0.24;
 mix-blend-mode: overlay;
 pointer-events: none;
 background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
 background-size: 180px 180px;
 animation: grain-drift 1.2s steps(3) infinite;
}

.brief-visual-fade {
 position: absolute;
 inset: 0;
 background:
 linear-gradient(180deg, rgba(7, 16, 24, 0.22) 0%, transparent 22%, rgba(7, 16, 24, 0.45) 58%, rgba(7, 16, 24, 0.88) 82%, rgba(7, 16, 24, 0.97) 100%),
 linear-gradient(90deg, rgba(7, 16, 24, 0.42) 0%, transparent 20%, transparent 80%, rgba(7, 16, 24, 0.35) 100%),
 radial-gradient(ellipse 90% 55% at 50% 100%, rgba(7, 16, 24, 0.75), transparent 70%);
 pointer-events: none;
 z-index: 3;
}

.brief-copy {
 position: relative;
 z-index: 2;
 padding-top: 0.15rem;
}

.brief-copy::before {
 content: "";
 position: absolute;
 left: -0.35rem;
 right: -0.35rem;
 top: -0.55rem;
 bottom: -0.25rem;
 border-radius: 12px;
 background:
 linear-gradient(180deg, rgba(7, 16, 24, 0.55) 0%, rgba(7, 16, 24, 0.28) 55%, transparent 100%);
 pointer-events: none;
 z-index: -1;
}

.brief::after {
 content: "";
 position: absolute;
 inset: auto -20% -40% 40%;
 height: 70%;
 background: radial-gradient(circle, rgba(61, 156, 255, 0.22), transparent 65%);
 pointer-events: none;
 z-index: 0;
}

.eyebrow {
 position: relative;
 z-index: 1;
 display: inline-flex;
 align-items: center;
 gap: 0.4rem;
 font-size: 0.72rem;
 font-weight: 700;
 text-transform: uppercase;
 letter-spacing: 0.12em;
 color: var(--accent);
 margin-bottom: 0.65rem;
 text-shadow: 0 1px 12px rgba(7, 16, 24, 0.65);
}

.live-dot {
 width: 0.45rem;
 height: 0.45rem;
 border-radius: 50%;
 background: var(--accent);
 position: relative;
 flex-shrink: 0;
}

.live-dot::after {
 content: "";
 position: absolute;
 inset: 0;
 border-radius: 50%;
 background: var(--accent);
 opacity: 0.55;
 animation: pulse-dot 1.8s ease-out infinite;
}

.brief h1 {
 position: relative;
 z-index: 1;
 font-family: "Outfit", var(--font-body);
 font-size: clamp(1.55rem, 6.2vw, 1.95rem);
 font-weight: 800;
 letter-spacing: -0.02em;
 line-height: 1.12;
 margin: 0 0 0.35rem;
 text-shadow: 0 2px 18px rgba(7, 16, 24, 0.75);
}

.brief .when {
 position: relative;
 z-index: 1;
 margin: 0 0 0.85rem;
 color: var(--muted);
 font-size: 0.86rem;
 font-weight: 500;
}

.brief .text {
 position: relative;
 z-index: 1;
 margin: 0;
 font-size: 0.98rem;
 line-height: 1.55;
 color: rgba(232, 241, 244, 0.94);
 max-width: 38ch;
 text-shadow: 0 1px 10px rgba(7, 16, 24, 0.55);
}

/* —— Lo que se movió (delta vs ayer / 7d) —— */
.pulse-moved {
 position: relative;
 z-index: 2;
 margin: 0.35rem 0 0.85rem;
 padding: 0.85rem 0.9rem 0.75rem;
 border-radius: 14px;
 border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
 background:
  linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%),
  rgba(10, 21, 32, 0.78);
 animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.pulse-moved[hidden] { display: none; }

.pulse-moved-kicker {
 margin: 0 0 0.28rem;
 color: rgba(232, 241, 244, 0.72);
 font-size: 0.68rem;
 font-weight: 700;
 letter-spacing: 0.07em;
 text-transform: uppercase;
}

.pulse-moved-kicker a {
 color: var(--accent);
}

.pulse-moved-head h2 {
 margin: 0 0 0.3rem;
 font-family: "Outfit", var(--font-body);
 font-weight: 800;
 font-size: clamp(1.15rem, 4.5vw, 1.4rem);
 letter-spacing: -0.02em;
 color: var(--foam);
}

.pulse-moved-lead {
 margin: 0 0 0.7rem;
 color: rgba(232, 241, 244, 0.82);
 font-size: 0.84rem;
 font-weight: 500;
 line-height: 1.4;
}

.pulse-moved-list {
 list-style: none;
 margin: 0;
 padding: 0;
 display: flex;
 flex-direction: column;
 gap: 0.45rem;
}

.pulse-moved-item {
 display: grid;
 grid-template-columns: auto 1fr;
 gap: 0.55rem 0.7rem;
 align-items: start;
 padding: 0.45rem 0.5rem;
 border-radius: 10px;
 background: rgba(7, 16, 24, 0.45);
}

.pulse-moved-kind {
 display: inline-flex;
 align-items: center;
 min-height: 1.45rem;
 padding: 0.12rem 0.45rem;
 border-radius: 5px;
 font-size: 0.66rem;
 font-weight: 800;
 letter-spacing: 0.05em;
 text-transform: uppercase;
 white-space: nowrap;
}

.pulse-moved-item.is-new .pulse-moved-kind,
.signal-stamp.signal-first {
 color: #d8fff8;
 background: color-mix(in srgb, var(--accent) 22%, transparent);
 border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
}

.pulse-moved-item.is-repeat .pulse-moved-kind,
.signal-stamp.signal-repeat {
 color: #d6e8ff;
 background: color-mix(in srgb, #3d9cff 22%, transparent);
 border: 1px solid color-mix(in srgb, #3d9cff 50%, transparent);
}

.pulse-moved-item.is-up .pulse-moved-kind {
 color: #e8ffd6;
 background: color-mix(in srgb, #22c55e 22%, transparent);
 border: 1px solid color-mix(in srgb, #22c55e 50%, transparent);
}

.pulse-moved-item.is-gone .pulse-moved-kind {
 color: rgba(232, 241, 244, 0.78);
 background: rgba(255, 255, 255, 0.06);
 border: 1px solid var(--line);
}

.pulse-moved-item.is-confirm .pulse-moved-kind,
.signal-stamp.signal-confirm {
 color: #ffe8b5;
 background: color-mix(in srgb, var(--warn) 20%, transparent);
 border: 1px solid color-mix(in srgb, var(--warn) 50%, transparent);
}

.pulse-moved-item.is-contradict .pulse-moved-kind,
.signal-stamp.signal-contradict {
 color: #ffd0e4;
 background: color-mix(in srgb, #ff5c9a 22%, transparent);
 border: 1px solid color-mix(in srgb, #ff5c9a 50%, transparent);
}

.pulse-moved-hook {
 margin: 0;
 font-size: 0.9rem;
 font-weight: 700;
 line-height: 1.3;
 color: #f7fcfd;
}

.pulse-moved-detail {
 margin: 0.15rem 0 0;
 font-size: 0.75rem;
 font-weight: 500;
 color: rgba(232, 241, 244, 0.7);
}

.signal-stamp {
 display: inline-flex;
 align-items: center;
 min-height: 1.4rem;
 padding: 0.1rem 0.4rem;
 border-radius: 5px;
 font-size: 0.64rem;
 font-weight: 800;
 letter-spacing: 0.03em;
 line-height: 1;
}

.story-card .signal-stamp {
 position: relative;
 z-index: 2;
 align-self: flex-start;
}

.seo-delta {
 margin: 0 0 1.15rem;
}

/* —— CTA play —— */
.play-row {
 display: flex;
 align-items: center;
 justify-content: flex-end;
 flex-wrap: wrap;
 gap: 0.55rem;
 animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.btn-primary {
 appearance: none;
 border: 0;
 cursor: pointer;
 border-radius: 999px;
 padding: 0.75rem 1.15rem;
 min-height: 44px;
 font-family: var(--font-body);
 font-weight: 700;
 font-size: 0.92rem;
 letter-spacing: 0.01em;
 color: var(--ink);
 background: linear-gradient(118deg, #2af0d1 0%, #1ec8b0 52%, #3d9cff 125%);
 box-shadow: 0 6px 18px rgba(30, 200, 176, 0.22);
 transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
 filter: brightness(1.06);
 box-shadow: 0 8px 22px rgba(30, 200, 176, 0.3);
}
.btn-primary:active { transform: scale(0.97); }

/* CTA principal del feed: compacto, no full-width */
.play-row .btn-primary {
 position: relative;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 0.42rem;
 flex: 0 1 auto;
 width: max-content;
 max-width: min(100%, 14.5rem);
 padding: 0.65rem 1.15rem 0.65rem 1.05rem;
 overflow: hidden;
 isolation: isolate;
 box-shadow:
  0 4px 14px rgba(30, 200, 176, 0.26),
  inset 0 1px 0 rgba(255, 255, 255, 0.28);
 animation: cta-breathe 2.8s ease-in-out infinite;
}

.play-row .btn-primary .play-ico,
.play-row .btn-primary .btn-label {
 position: relative;
 z-index: 1;
}

.play-row .btn-primary .play-ico {
 font-size: 0.62em;
 line-height: 1;
 opacity: 0.9;
 transform: translateY(0.5px);
}

.play-row .btn-primary::after {
 content: "";
 position: absolute;
 inset: 0;
 z-index: 0;
 background: linear-gradient(
  105deg,
  transparent 38%,
  rgba(255, 255, 255, 0.32) 50%,
  transparent 62%
 );
 transform: translateX(-130%);
 pointer-events: none;
}

.play-row .btn-primary:hover {
 transform: translateY(-1px);
 filter: brightness(1.07);
 animation-play-state: paused;
 box-shadow:
  0 8px 22px rgba(30, 200, 176, 0.38),
  inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.play-row .btn-primary:hover::after {
 transition: transform 0.55s ease;
 transform: translateX(130%);
}

.play-row .btn-primary:active {
 transform: translateY(0) scale(0.97);
 animation-play-state: paused;
}

.btn-ghost {
 appearance: none;
 border: 1px solid var(--line);
 background: rgba(255, 255, 255, 0.04);
 border-radius: 999px;
 padding: 0.95rem 1rem;
 font-family: var(--font-body);
 font-weight: 650;
 font-size: 0.9rem;
 cursor: pointer;
 transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.play-row .btn-ghost {
 flex: 0 0 auto;
 min-height: 44px;
 padding: 0.5rem 0.85rem;
 font-size: 0.78rem;
 font-weight: 600;
 letter-spacing: 0.01em;
 color: rgba(232, 241, 244, 0.88);
}

.play-row .btn-ghost:hover {
 background: rgba(255, 255, 255, 0.08);
 border-color: rgba(232, 241, 244, 0.28);
 color: var(--foam);
}

.play-row .btn-ghost:active { transform: scale(0.97); }

/* —— Story rail —— */
.section-label {
 display: flex;
 justify-content: space-between;
 align-items: baseline;
 margin-top: 0.7rem;
 animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.section-label h2 {
 margin: 0;
 font-family: "Outfit", var(--font-body);
 font-weight: 800;
 font-size: 1.05rem;
 letter-spacing: -0.02em;
}

.section-label span {
 color: var(--muted);
 font-size: 0.78rem;
 font-weight: 600;
}

/* —— Alto impacto traders: ticker landscape (≠ portrait de Hoy) —— */
.traders-impact {
  --traders-green: #3dd68c;
  --traders-amber: #f0b429;
  --traders-panel: #07141c;
  --traders-line: color-mix(in srgb, var(--traders-green) 48%, #1a2e38);
  margin-top: 0.35rem;
  padding: 0.5rem 0.1rem 0.1rem;
  border-radius: calc(var(--radius) + 2px);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--traders-green) 7%, transparent), transparent 70%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 11px,
      color-mix(in srgb, var(--traders-green) 4%, transparent) 11px,
      color-mix(in srgb, var(--traders-green) 4%, transparent) 12px
    );
}

.traders-impact[hidden] { display: none !important; }

.traders-impact.is-collapsed[hidden] { display: none !important; }

/* Móvil: reservar hueco del bloque traders antes del JSON (evita CLS al unhide). */
@media (max-width: 480px) {
  .traders-impact[hidden]:not(.is-collapsed) {
    display: block !important;
    visibility: hidden;
    pointer-events: none;
    /* Ticker landscape ~88px alto (no portrait 3/4) */
    min-height: calc(3.2rem + 88px + 0.75rem);
    margin-top: 0.35rem;
    padding: 0.5rem 0.1rem 0.1rem;
    overflow: hidden;
  }
}

.traders-impact-head {
  align-items: flex-end;
  margin-top: 0.1rem;
}

.traders-impact-titles {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.traders-impact-kicker {
  margin: 0;
  font-family: "Manrope", var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--traders-green) 78%, var(--foam));
}

.traders-impact-head h2 {
  font-family: "Outfit", var(--font-body);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--foam);
}

.traders-impact-head [data-traders-impact-count] {
  font-family: "Manrope", var(--font-body);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--traders-green) 70%, var(--muted));
}

/* Rail traders: landscape ticker (swipe propio). Spec .rail.traders-impact-rail
   para no heredar min-height portrait / grid-auto-columns de .rail. */
.rail.traders-impact-rail {
  grid-auto-columns: minmax(248px, 78%);
  gap: 0.45rem;
  /* Desktop: colapsa al contenido (1–N tickers ~88px). Móvil reserva abajo. */
  min-height: auto;
  padding: 0.12rem 0 0.35rem;
  align-items: stretch;
}

.traders-impact-rail .story-card.traders-ticker {
  aspect-ratio: auto;
  height: 88px;
  min-height: 88px;
  max-height: 88px;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--traders-line);
  border-left: 3px solid var(--traders-green);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--traders-green) 10%, var(--traders-panel)) 0%, var(--traders-panel) 42%),
    var(--traders-panel);
  box-shadow: none;
  animation: none;
  overflow: hidden;
  touch-action: pan-y;
}

.traders-impact-rail .story-card.traders-ticker:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--traders-green) 72%, #fff);
}

.traders-impact-rail .story-card.traders-ticker::before {
  display: none;
}

.traders-impact-rail .story-card.traders-ticker .impact-streak {
  display: none !important;
}

.traders-impact-rail .story-card.traders-ticker .thumb {
  position: relative;
  inset: auto;
  flex: 0 0 72px;
  width: 72px;
  height: 88px;
  aspect-ratio: auto;
  object-fit: cover;
  transform: none;
  border-right: 1px solid color-mix(in srgb, var(--traders-green) 22%, transparent);
  filter: saturate(1.05) contrast(1.06);
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.traders-impact-rail .story-card.traders-ticker:hover .thumb {
  transform: none;
}

.traders-ticker-body {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  padding: 0.45rem 0.65rem 0.45rem 0.7rem;
}

.traders-ticker-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.traders-impact-rail .story-card.traders-ticker .impact-badge {
  flex: 0 0 auto;
  align-self: center;
  font-family: "Manrope", var(--font-body);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  padding: 0.22rem 0.48rem;
  border-radius: 3px;
  color: #04140c;
  background: linear-gradient(105deg, var(--traders-green), color-mix(in srgb, var(--traders-amber) 55%, var(--traders-green)));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--traders-green) 40%, transparent);
  animation: none;
}

.traders-ticker-live {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--traders-green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--traders-green) 22%, transparent);
  animation: traders-live-blink 1.6s ease-in-out infinite;
}

.traders-ticker-dur {
  margin-left: auto;
  font-family: "Manrope", var(--font-body);
  font-size: 0.58rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--traders-green) 55%, var(--muted));
}

.traders-impact-rail .story-card.traders-ticker .fav-mark {
  font-size: 0.7rem;
  line-height: 1;
}

.traders-impact-rail .story-card.traders-ticker .hook {
  margin: 0;
  font-family: "Manrope", var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.28;
  -webkit-line-clamp: 2;
  color: #e8f6ef;
  text-shadow: none;
  animation: none;
}

.traders-impact-rail .story-card.traders-ticker.is-impact {
  border-color: var(--traders-line);
  border-left-color: var(--traders-green);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--traders-green) 12%, transparent);
  animation: none;
}

@keyframes traders-live-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.rail {
 display: grid;
 grid-auto-flow: column;
 grid-auto-columns: minmax(168px, 52%);
 gap: 0.7rem;
 width: 100%;
 max-width: 100%;
 min-width: 0; /* flex hijo: overflow queda DENTRO del rail, no en body */
 overflow-x: auto;
 overflow-y: hidden;
 padding: 0.15rem 0 0.5rem;
 /* proximity en desktop; móvil sin snap (ver media 480) */
 scroll-snap-type: x proximity;
 -webkit-overflow-scrolling: touch;
 /* pan-y: vertical nativo hasta que JS axis-lock tome el eje X. */
 touch-action: pan-y;
 overscroll-behavior-x: contain;
 scrollbar-width: none;
 /* Reserva altura antes de inyectar cards (evita CLS ~0.9 al hidratar). */
 min-height: calc(168px * 4 / 3 + 0.65rem);
 animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

/* Tras .rail: fuerza colapso traders (misma especificidad 0,2,0 gana por orden). */
.rail.traders-impact-rail {
  min-height: auto;
  grid-auto-columns: minmax(248px, 78%);
}

.rail::-webkit-scrollbar { display: none; }

.story-card {
 scroll-snap-align: start;
 aspect-ratio: 3 / 4;
 border-radius: var(--radius);
 border: 1px solid var(--line);
 padding: 0.75rem 0.8rem 0.7rem;
 display: flex;
 flex-direction: column;
 justify-content: space-between;
 gap: 0.55rem;
 cursor: pointer;
 position: relative;
 overflow: hidden;
 background: #0a1520;
 transition: transform 0.25s ease, border-color 0.25s ease;
 touch-action: pan-y;
}

.story-card .thumb {
 position: absolute;
 inset: 0;
 width: 100%;
 height: 100%;
 aspect-ratio: 3 / 4;
 object-fit: cover;
 z-index: 0;
 transform: scale(1.02);
 transition: transform 0.45s ease;
 /* Evita drag nativo de <img> que roba el swipe horizontal del rail */
 pointer-events: none;
 -webkit-user-drag: none;
 user-select: none;
}

.story-card:hover .thumb { transform: scale(1.08); }

.story-card::before {
 content: "";
 position: absolute;
 inset: 0;
 z-index: 1;
 background:
 linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.12) 32%, rgba(0, 0, 0, 0.72) 68%, rgba(0, 0, 0, 0.92) 100%),
 linear-gradient(120deg, color-mix(in srgb, var(--accent, #1ec8b0) 32%, transparent), transparent 58%);
 pointer-events: none;
}

.story-card:hover { transform: translateY(-3px); }

.story-card .cat {
 position: relative;
 z-index: 2;
 align-self: flex-start;
 font-size: 0.68rem;
 font-weight: 700;
 letter-spacing: 0.08em;
 text-transform: uppercase;
 padding: 0.28rem 0.5rem;
 border-radius: 999px;
 background: rgba(0, 0, 0, 0.35);
 border: 1px solid rgba(255, 255, 255, 0.12);
}

.story-card .hook {
 position: relative;
 z-index: 2;
 margin: 0;
 margin-top: auto;
 font-family: var(--font-body);
 font-weight: 700;
 font-size: 0.92rem;
 letter-spacing: 0;
 line-height: 1.38;
 color: #f7fcfd;
 text-wrap: pretty;
 overflow-wrap: anywhere;
 display: -webkit-box;
 -webkit-box-orient: vertical;
 -webkit-line-clamp: 5;
 overflow: hidden;
 text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75), 0 8px 20px rgba(0, 0, 0, 0.55);
}

.story-card .meta-row {
 position: relative;
 z-index: 2;
 display: flex;
 justify-content: space-between;
 align-items: center;
 font-size: 0.7rem;
 color: rgba(232, 241, 244, 0.7);
}

.fav-mark {
 color: var(--warn);
 opacity: 0;
 transition: opacity 0.2s;
}
.story-card.is-fav .fav-mark { opacity: 1; }

/* —— High-impact motion —— */
.impact-badge,
.player-impact-badge {
 position: relative;
 z-index: 3;
 align-self: flex-start;
 font-family: var(--font-display);
 font-size: 0.62rem;
 font-weight: 800;
 letter-spacing: 0.14em;
 text-transform: uppercase;
 padding: 0.28rem 0.55rem;
 border-radius: 6px;
 color: #071018;
 background: linear-gradient(110deg, var(--accent), #5eead4 55%, var(--accent-2));
 box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 18px rgba(30, 200, 176, 0.35);
 animation: impact-badge-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.story-card.is-impact {
 border-color: color-mix(in srgb, var(--accent, #1ec8b0) 55%, transparent);
 box-shadow:
 0 0 0 1px color-mix(in srgb, var(--accent, #1ec8b0) 35%, transparent),
 0 0 28px color-mix(in srgb, var(--accent, #1ec8b0) 22%, transparent);
 animation: impact-glow 2.4s ease-in-out infinite;
}

.story-card.is-impact .hook {
 animation: impact-hook-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.story-card .impact-streak {
 display: none;
}

.story-card.is-impact .impact-streak {
 display: block;
 position: absolute;
 z-index: 2;
 top: 18%;
 left: -40%;
 width: 55%;
 height: 2px;
 border-radius: 99px;
 background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), var(--accent, #1ec8b0), transparent);
 filter: blur(0.2px);
 box-shadow: 0 0 12px color-mix(in srgb, var(--accent, #1ec8b0) 70%, transparent);
 animation: impact-streak 1.15s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
 pointer-events: none;
}

.player-stage.is-impact {
 animation: impact-stage-pulse 2.8s ease-in-out infinite;
}

.player-stage.is-impact .player-bg::after {
 background:
 linear-gradient(180deg, rgba(2, 8, 13, 0.28) 0%, transparent 28%, rgba(2, 8, 13, 0.88) 72%, rgba(2, 8, 13, 0.96) 100%),
 linear-gradient(120deg, color-mix(in srgb, var(--story-accent, #1ec8b0) 48%, transparent), transparent 55%),
 radial-gradient(ellipse 70% 40% at 80% 20%, rgba(255, 92, 122, 0.18), transparent 60%);
}

.player-impact-badge {
 margin-right: auto;
 animation: impact-badge-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both, impact-badge-pulse 1.8s ease-in-out 0.4s infinite;
}

.player-top:has(.player-impact-badge) {
 gap: 0.45rem;
}

.player-top:has(.player-impact-badge) .player-cat {
 margin-right: auto;
}

.impact-comet {
 position: absolute;
 z-index: 3;
 top: 22%;
 left: -30%;
 width: 42%;
 height: 3px;
 border-radius: 99px;
 pointer-events: none;
 background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), var(--story-accent, #1ec8b0), transparent);
 box-shadow:
 0 0 16px color-mix(in srgb, var(--story-accent, #1ec8b0) 80%, transparent),
 0 0 28px rgba(255, 255, 255, 0.25);
 animation: impact-comet 0.85s cubic-bezier(0.15, 0.75, 0.2, 1) both;
}

.player-body.impact-fly {
 animation: impact-fly-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.player-body.impact-fly h2 {
 animation: impact-shake 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes impact-streak {
 from { transform: translate3d(0, 0, 0) rotate(-12deg); opacity: 0; }
 18% { opacity: 1; }
 to { transform: translate3d(280%, -40%, 0) rotate(-12deg); opacity: 0; }
}

@keyframes impact-comet {
 from { transform: translate3d(0, 0, 0) rotate(-8deg) scaleX(0.4); opacity: 0; }
 12% { opacity: 1; }
 to { transform: translate3d(320%, -55%, 0) rotate(-8deg) scaleX(1.1); opacity: 0; }
}

@keyframes impact-glow {
 0%, 100% {
 box-shadow:
 0 0 0 1px color-mix(in srgb, var(--accent, #1ec8b0) 35%, transparent),
 0 0 22px color-mix(in srgb, var(--accent, #1ec8b0) 18%, transparent);
 }
 50% {
 box-shadow:
 0 0 0 1px color-mix(in srgb, var(--accent, #1ec8b0) 55%, transparent),
 0 0 36px color-mix(in srgb, var(--accent, #1ec8b0) 32%, transparent);
 }
}

@keyframes impact-stage-pulse {
 0%, 100% { filter: brightness(1); }
 50% { filter: brightness(1.06); }
}

@keyframes impact-badge-in {
 from { opacity: 0; transform: translateY(-8px) scale(0.92); }
 to { opacity: 1; transform: none; }
}

@keyframes impact-badge-pulse {
 0%, 100% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 14px rgba(30, 200, 176, 0.3); }
 50% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 0 22px rgba(30, 200, 176, 0.55); }
}

@keyframes impact-hook-in {
 from { opacity: 0; transform: translate3d(-10px, 8px, 0); }
 to { opacity: 1; transform: none; }
}

@keyframes impact-fly-in {
 from { opacity: 0; transform: translate3d(0, 28px, 0) scale(0.98); }
 to { opacity: 1; transform: none; }
}

@keyframes impact-shake {
 0% { transform: translate3d(-6px, 12px, 0); }
 35% { transform: translate3d(3px, -2px, 0); }
 60% { transform: translate3d(-2px, 1px, 0); }
 100% { transform: none; }
}

/* —— Ad slot —— */
.ad-slot {
 min-height: 90px;
 border: 1px dashed rgba(255, 255, 255, 0.14);
 border-radius: 12px;
 display: grid;
 place-items: center;
 color: var(--muted);
 font-size: 0.75rem;
 background: rgba(0, 0, 0, 0.2);
 animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.34s both;
}

.ad-slot.pro-hidden { display: none; }

/* —— Directorio vivo —— */
.directory {
 display: flex;
 flex-direction: column;
 gap: 0.85rem;
 margin-top: 0.35rem;
 animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
 touch-action: pan-y;
}

.directory-head {
 display: flex;
 align-items: flex-start;
 justify-content: space-between;
 gap: 0.75rem;
}

.directory-head h2 {
  margin: 0.15rem 0 0.25rem;
  font-family: "Outfit", var(--font-body);
  font-weight: 800;
  font-size: clamp(1.25rem, 5vw, 1.55rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.directory-sub {
 margin: 0;
 color: var(--muted);
 font-size: 0.82rem;
 font-weight: 500;
}

.directory-filters {
 display: flex;
 gap: 0.45rem;
 overflow-x: auto;
 -webkit-overflow-scrolling: touch;
 touch-action: pan-x pan-y;
 overscroll-behavior-x: contain;
 scrollbar-width: none;
 padding-bottom: 0.1rem;
}
.directory-filters::-webkit-scrollbar { display: none; }

.hot-strip {
 display: grid;
 grid-auto-flow: column;
 grid-auto-columns: minmax(148px, 42%);
 gap: 0.55rem;
 overflow-x: auto;
 -webkit-overflow-scrolling: touch;
 touch-action: pan-y;
 overscroll-behavior-x: contain;
 scroll-snap-type: x proximity;
 scrollbar-width: none;
 padding: 0.1rem 0 0.25rem;
}
.hot-strip::-webkit-scrollbar { display: none; }

.hot-pill {
 scroll-snap-align: start;
 display: flex;
 align-items: center;
 gap: 0.55rem;
 padding: 0.65rem 0.75rem;
 border-radius: 14px;
 border: 1px solid color-mix(in srgb, var(--accent, var(--accent)) 35%, transparent);
 background:
 linear-gradient(135deg, color-mix(in srgb, var(--accent, #1ec8b0) 18%, transparent), transparent 60%),
 rgba(255, 255, 255, 0.03);
 text-decoration: none;
 min-height: 3.4rem;
 transition: transform 0.2s ease, border-color 0.2s ease;
 touch-action: pan-y;
}
.hot-pill:hover { transform: translateY(-2px); }
.hot-pill:active { transform: scale(0.98); }

.hot-pill img {
 width: 1.85rem;
 height: 1.85rem;
 border-radius: 8px;
 background: rgba(255, 255, 255, 0.08);
 flex-shrink: 0;
 pointer-events: none;
 -webkit-user-drag: none;
}

.hot-pill .hp-text {
 min-width: 0;
 display: grid;
 gap: 0.12rem;
}

.hot-pill .hp-name {
 font-family: var(--font-body);
 font-weight: 700;
 font-size: 0.86rem;
 letter-spacing: 0;
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
}

.hot-pill .hp-meta {
 font-size: 0.68rem;
 color: var(--muted);
 font-weight: 600;
}

.directory-feed {
 display: grid;
 gap: 0.55rem;
 touch-action: pan-y;
}

.dir-row {
 display: grid;
 grid-template-columns: 1.2rem auto 1fr auto;
 gap: 0.55rem;
 align-items: center;
 padding: 0.75rem 0.8rem;
 border-radius: 16px;
 border: 1px solid var(--line);
 background:
 linear-gradient(120deg, color-mix(in srgb, var(--accent, #1ec8b0) 10%, transparent), transparent 48%),
 rgba(255, 255, 255, 0.03);
 text-decoration: none;
 transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
 animation: rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
 animation-delay: calc(var(--i, 0) * 35ms);
 touch-action: pan-y;
}
.dir-row:hover {
 transform: translateX(2px);
 border-color: color-mix(in srgb, var(--accent, #1ec8b0) 40%, transparent);
}
.dir-row:active { transform: scale(0.99); }

.dir-rank {
 width: 1.35rem;
 font-family: var(--font-body);
 font-weight: 800;
 font-size: 0.85rem;
 color: var(--muted);
 text-align: center;
}

.dir-logo {
 width: 2.35rem;
 height: 2.35rem;
 border-radius: 11px;
 background: rgba(255, 255, 255, 0.06);
 border: 1px solid rgba(255, 255, 255, 0.1);
 object-fit: contain;
 padding: 0.2rem;
 pointer-events: none;
 -webkit-user-drag: none;
}

.dir-main {
 min-width: 0;
 display: grid;
 gap: 0.18rem;
}

.dir-title-row {
 display: flex;
 align-items: baseline;
 gap: 0.45rem;
 min-width: 0;
}

.dir-name {
 font-family: var(--font-body);
 font-weight: 700;
 font-size: 0.98rem;
 letter-spacing: 0;
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
}

.dir-region {
 flex-shrink: 0;
 font-size: 0.68rem;
 color: var(--muted);
 font-weight: 600;
}

.dir-why {
 margin: 0;
 font-size: 0.78rem;
 line-height: 1.35;
 color: rgba(232, 241, 244, 0.78);
 display: -webkit-box;
 -webkit-line-clamp: 2;
 -webkit-box-orient: vertical;
 overflow: hidden;
}

.dir-side {
 display: grid;
 justify-items: end;
 gap: 0.35rem;
 flex-shrink: 0;
}

.dir-score {
 font-family: var(--font-body);
 font-weight: 800;
 font-size: 0.95rem;
 letter-spacing: 0;
 color: var(--accent);
}

.dir-signal {
 font-size: 0.62rem;
 font-weight: 700;
 letter-spacing: 0.04em;
 text-transform: uppercase;
 padding: 0.22rem 0.45rem;
 border-radius: 999px;
 border: 1px solid rgba(255, 255, 255, 0.12);
 background: rgba(0, 0, 0, 0.25);
 color: rgba(232, 241, 244, 0.85);
 white-space: nowrap;
}
.dir-signal.trending {
 color: var(--ink);
 background: linear-gradient(120deg, #2af0d1, #1ec8b0);
 border-color: transparent;
}
.dir-signal.radar {
 color: var(--accent);
 border-color: rgba(30, 200, 176, 0.4);
}

.directory-note {
 margin: 0.15rem 0 0;
 font-size: 0.7rem;
 color: var(--muted);
 line-height: 1.4;
}

.dir-empty {
 color: var(--muted);
 font-size: 0.9rem;
 padding: 0.75rem 0;
}

/* —— Filters —— */
/* Scroll horizontal nativo (sin bindHScroll): taps fiables en chips. */
.filters {
 display: flex;
 gap: 0.45rem;
 overflow-x: auto;
 -webkit-overflow-scrolling: touch;
 touch-action: pan-x pan-y;
 overscroll-behavior-x: contain;
 scrollbar-width: none;
 margin-top: 0.35rem;
 padding-block: 0.15rem;
 min-height: 2.35rem;
 animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
.filters::-webkit-scrollbar { display: none; }

.filter {
 flex: 0 0 auto;
 border: 1px solid rgba(232, 241, 244, 0.18);
 background: rgba(255, 255, 255, 0.04);
 color: rgba(232, 241, 244, 0.82);
 border-radius: 999px;
 padding: 0.4rem 0.75rem;
 font-size: 0.78rem;
 font-weight: 650;
 cursor: pointer;
 transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
 touch-action: manipulation;
}
.filter:hover {
 color: var(--foam);
 background: rgba(255, 255, 255, 0.08);
}
.filter.active {
 color: var(--ink);
 background: var(--foam);
 border-color: var(--foam);
}

/* —— Footer —— */
.foot {
 margin-top: auto;
 padding-top: 0.5rem;
 color: var(--muted);
 font-size: 0.75rem;
 display: flex;
 justify-content: space-between;
 gap: 1rem;
 flex-wrap: wrap;
 animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.foot a { color: rgba(232, 241, 244, 0.75); text-decoration: underline; text-underline-offset: 3px; }

.foot-nav {
 display: flex;
 flex-wrap: wrap;
 gap: 0.65rem 0.9rem;
 width: 100%;
 margin-bottom: 0.35rem;
 font-size: 0.8rem;
}

.foot-nav a {
 text-decoration: none;
 color: rgba(232, 241, 244, 0.82);
}

.foot-nav a:hover { color: var(--accent); }

/* —— Páginas SEO satélite —— */
.seo-body .seo-app {
 width: min(720px, 100%);
 margin: 0 auto;
 min-height: 100dvh;
 padding: calc(0.85rem + var(--safe-top)) 1.15rem calc(1.5rem + var(--safe-bottom));
 display: flex;
 flex-direction: column;
 gap: 1rem;
}

.seo-top {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 justify-content: space-between;
 gap: 0.75rem;
}

.seo-top .brand {
 display: inline-flex;
 align-items: baseline;
 gap: 0.28rem;
 text-decoration: none;
}

.seo-top .brand-parent {
 color: inherit;
 text-decoration: none;
}

.seo-top .brand-parent:hover { color: var(--accent); }

.seo-nav {
 display: flex;
 flex-wrap: wrap;
 gap: 0.45rem 0.75rem;
 font-size: 0.82rem;
}

.seo-nav a {
 color: var(--muted);
 text-decoration: none;
 padding: 0.2rem 0;
}

.seo-nav a:hover,
.seo-nav a.is-active {
 color: var(--foam);
}

.seo-nav a.is-active {
 color: var(--accent);
 font-weight: 600;
}

.seo-crumbs {
 display: flex;
 flex-wrap: wrap;
 gap: 0.35rem;
 align-items: center;
 font-size: 0.78rem;
 color: var(--muted);
}

.seo-crumbs a {
 color: rgba(232, 241, 244, 0.75);
 text-decoration: none;
}

.seo-crumbs a:hover { color: var(--accent); }
.seo-crumbs .sep { opacity: 0.45; }

.seo-main h1 {
 font-family: "Outfit", var(--font-body);
 font-weight: 800;
 font-size: clamp(1.75rem, 4vw, 2.35rem);
 letter-spacing: -0.02em;
 line-height: 1.12;
 margin: 0.25rem 0 0;
}

.seo-when {
 margin: 0.35rem 0 0;
 color: var(--accent);
 font-size: 0.88rem;
 font-weight: 600;
}

.seo-lead {
 margin: 0.65rem 0 0;
 color: var(--muted);
 font-size: 1.02rem;
 line-height: 1.55;
}

.seo-brief,
.seo-block,
.seo-prose {
 margin-top: 1.35rem;
}

.seo-brief h2,
.seo-block h2,
.seo-prose h2,
.seo-story h2 {
 font-family: "Outfit", var(--font-body);
 font-weight: 800;
 letter-spacing: -0.02em;
 margin: 0 0 0.55rem;
 font-size: 1.15rem;
}

.seo-brief p,
.seo-prose p,
.seo-story p {
 margin: 0;
 line-height: 1.55;
 color: rgba(232, 241, 244, 0.9);
}

.seo-prose ul {
 margin: 0.5rem 0 1rem;
 padding-left: 1.15rem;
 color: rgba(232, 241, 244, 0.88);
 line-height: 1.55;
}

.seo-chips {
 display: flex;
 flex-wrap: wrap;
 gap: 0.5rem;
}

.seo-chip {
 display: inline-flex;
 align-items: center;
 padding: 0.35rem 0.7rem;
 border-radius: 999px;
 border: 1px solid var(--line);
 background: rgba(13, 26, 38, 0.65);
 color: var(--foam);
 font-size: 0.82rem;
 text-decoration: none;
}

.seo-chip:hover {
 border-color: color-mix(in srgb, var(--accent) 45%, transparent);
 color: var(--accent);
}

.seo-grid {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
 gap: 0.85rem;
}

.seo-card {
 display: flex;
 flex-direction: column;
 gap: 0.35rem;
 padding: 1rem;
 border-radius: var(--radius);
 border: 1px solid var(--line);
 background:
 linear-gradient(135deg, color-mix(in srgb, var(--cat, var(--accent)) 16%, transparent), transparent 55%),
 rgba(13, 26, 38, 0.55);
 text-decoration: none;
 color: inherit;
 transition: border-color 0.2s ease, transform 0.2s ease;
}

.seo-card:hover {
 border-color: color-mix(in srgb, var(--cat, var(--accent)) 50%, transparent);
 transform: translateY(-2px);
}

.seo-card strong {
 font-family: var(--font-display);
 font-size: 1.1rem;
}

.seo-card span {
 color: var(--accent);
 font-size: 0.78rem;
 font-weight: 600;
}

.seo-card p {
 margin: 0.2rem 0 0;
 color: var(--muted);
 font-size: 0.84rem;
 line-height: 1.4;
}

.seo-stories {
 display: flex;
 flex-direction: column;
 gap: 1rem;
 list-style: none;
 margin: 0;
 padding: 0;
}

.seo-story {
 display: grid;
 grid-template-columns: 5.5rem 1fr;
 gap: 0.75rem 0.9rem;
 align-items: start;
 padding: 0.9rem 1rem;
 border-radius: var(--radius);
 border: 1px solid var(--line);
 background: rgba(13, 26, 38, 0.45);
}

.seo-story-thumb-wrap {
 width: 5.5rem;
 height: 5.5rem;
 border-radius: 12px;
 overflow: hidden;
 background: rgba(7, 16, 24, 0.85);
 flex-shrink: 0;
}

.seo-story-thumb {
 display: block;
 width: 5.5rem;
 height: 5.5rem;
 aspect-ratio: 1 / 1;
 object-fit: cover;
}

.seo-story-copy {
 min-width: 0;
}

.seo-story-meta {
 display: flex;
 flex-wrap: wrap;
 gap: 0.45rem 0.75rem;
 align-items: center;
 font-size: 0.75rem;
 color: var(--muted);
 margin-bottom: 0.45rem;
}

.seo-badge {
 color: #071018;
 background: var(--warn);
 font-weight: 700;
 font-size: 0.68rem;
 letter-spacing: 0.04em;
 padding: 0.12rem 0.4rem;
 border-radius: 4px;
}

.seo-source {
 display: inline-block;
 margin-top: 0.65rem;
 color: var(--accent);
 font-size: 0.88rem;
 font-weight: 600;
 text-decoration: none;
}

.seo-source:hover { text-decoration: underline; }

.seo-dir {
 margin: 0;
 padding-left: 1.1rem;
 display: flex;
 flex-direction: column;
 gap: 0.75rem;
}

.seo-dir li { line-height: 1.4; }
.seo-dir a {
 color: var(--foam);
 font-family: "Outfit", var(--font-body);
 font-weight: 800;
 letter-spacing: -0.02em;
 text-decoration: none;
}
.seo-dir a:hover { color: var(--accent); }

.seo-muted { color: var(--muted); font-size: 0.86rem; }
.seo-note { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.seo-empty { color: var(--muted); }

.seo-cta {
 margin-top: 1.5rem;
 display: flex;
 flex-wrap: wrap;
 gap: 0.75rem;
 align-items: center;
}

.seo-cta a:not(.seo-btn) {
 color: rgba(232, 241, 244, 0.8);
 text-decoration: underline;
 text-underline-offset: 3px;
}

.seo-btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 padding: 0.7rem 1.15rem;
 border-radius: 999px;
 background: linear-gradient(110deg, var(--accent), #5eead4 55%, var(--accent-2));
 color: #071018 !important;
 font-weight: 700;
 text-decoration: none !important;
}

.seo-foot {
 margin-top: auto;
 padding-top: 1.5rem;
 border-top: 1px solid var(--line);
 color: var(--muted);
 font-size: 0.78rem;
}

.seo-foot .foot-nav { margin-bottom: 0.65rem; }
.seo-foot a { color: rgba(232, 241, 244, 0.75); }

/* Home SSR-lite snapshot + about */
.seo-home-snap,
.seo-about-lite {
 margin-top: 0.35rem;
 padding: 1rem 0 0.25rem;
 border-top: 1px solid var(--line);
}

.seo-about-lite h2 {
 font-family: var(--font-display);
 font-size: 1.15rem;
 letter-spacing: -0.03em;
 margin: 0 0 0.45rem;
}

.seo-about-lite p {
 margin: 0 0 0.75rem;
 color: rgba(232, 241, 244, 0.82);
 font-size: 0.9rem;
 line-height: 1.45;
}

.seo-about-lite a {
 color: var(--accent);
 text-decoration: underline;
 text-underline-offset: 3px;
}

/* —— Radar de hoy (feed visual accesible) —— */
.seo-home-snap {
 position: relative;
 padding: 1.15rem 0 0.4rem;
 animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.seo-home-snap::before {
 content: "";
 position: absolute;
 inset: 0.65rem -0.55rem auto;
 height: 3.6rem;
 border-radius: 1.1rem;
 background:
 radial-gradient(ellipse 70% 120% at 12% 40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
 radial-gradient(ellipse 55% 100% at 88% 20%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 68%);
 pointer-events: none;
 z-index: 0;
}

.seo-home-snap-head {
 position: relative;
 z-index: 1;
 margin-bottom: 0.95rem;
}

.seo-home-snap-kicker {
 display: inline-flex;
 align-items: center;
 gap: 0.45rem;
 margin: 0 0 0.4rem;
 color: rgba(232, 241, 244, 0.78);
 font-size: 0.72rem;
 font-weight: 700;
 letter-spacing: 0.06em;
 text-transform: uppercase;
}

.seo-home-snap-live {
 width: 0.55rem;
 height: 0.55rem;
 border-radius: 50%;
 background: var(--accent);
 position: relative;
 flex-shrink: 0;
}

.seo-home-snap-live::after {
 content: "";
 position: absolute;
 inset: 0;
 border-radius: 50%;
 background: var(--accent);
 opacity: 0.55;
 animation: pulse-dot 1.8s ease-out infinite;
}

.seo-home-snap-head h2 {
 margin: 0 0 0.4rem;
 font-family: "Outfit", var(--font-body);
 font-weight: 800;
 font-size: clamp(1.35rem, 5.5vw, 1.65rem);
 letter-spacing: -0.02em;
 line-height: 1.12;
 color: var(--foam);
}

.seo-home-snap-lead {
 margin: 0;
 max-width: 36ch;
 color: rgba(232, 241, 244, 0.84);
 font-size: 0.92rem;
 font-weight: 500;
 line-height: 1.45;
}

.seo-home-snap-list {
 --radar-rail: color-mix(in srgb, var(--accent) 28%, var(--line));
 position: relative;
 z-index: 1;
 list-style: none;
 margin: 0 0 1.05rem;
 padding: 0 0 0 1.15rem;
 display: flex;
 flex-direction: column;
 gap: 0.7rem;
}

.seo-home-snap-list::before {
 content: "";
 position: absolute;
 left: 0.28rem;
 top: 0.35rem;
 bottom: 0.35rem;
 width: 2px;
 border-radius: 2px;
 background: linear-gradient(
  180deg,
  color-mix(in srgb, var(--accent) 55%, transparent),
  var(--radar-rail) 35%,
  transparent
 );
 pointer-events: none;
}

.seo-radar-item {
 position: relative;
 animation: radar-item-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
 animation-delay: var(--radar-delay, 0ms);
}

.seo-radar-item::before {
 content: "";
 position: absolute;
 left: -1.02rem;
 top: 1.15rem;
 width: 0.55rem;
 height: 0.55rem;
 border-radius: 50%;
 background: var(--cat, var(--accent));
 border: 2px solid #071018;
 box-shadow: 0 0 0 1px color-mix(in srgb, var(--cat, var(--accent)) 55%, transparent);
 z-index: 1;
}

.seo-radar-card {
 display: grid;
 grid-template-columns: 4.5rem 1fr;
 gap: 0.65rem 0.75rem;
 align-items: start;
 padding: 0.75rem 0.8rem 0.75rem 0.75rem;
 border-radius: 14px;
 border: 1px solid var(--line);
 background:
 linear-gradient(
  135deg,
  color-mix(in srgb, var(--cat, var(--accent)) 14%, transparent),
  transparent 52%
 ),
 rgba(10, 21, 32, 0.72);
 transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.seo-radar-thumb-wrap {
 width: 4.5rem;
 height: 4.5rem;
 border-radius: 10px;
 overflow: hidden;
 background: color-mix(in srgb, var(--cat, var(--accent)) 22%, #071018);
 flex-shrink: 0;
}

.seo-radar-thumb {
 display: block;
 width: 4.5rem;
 height: 4.5rem;
 aspect-ratio: 1 / 1;
 object-fit: cover;
}

.seo-radar-copy {
 display: flex;
 flex-direction: column;
 gap: 0.4rem;
 min-width: 0;
}

.seo-radar-item:hover .seo-radar-card,
.seo-radar-item:focus-within .seo-radar-card {
 border-color: color-mix(in srgb, var(--cat, var(--accent)) 48%, var(--line));
 transform: translateY(-1px);
}

.seo-radar-top {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 justify-content: space-between;
 gap: 0.4rem 0.65rem;
}

.seo-radar-cat {
 display: inline-flex;
 align-items: center;
 min-height: 1.55rem;
 padding: 0.18rem 0.55rem;
 border-radius: 6px;
 border: 1px solid color-mix(in srgb, var(--cat, var(--accent)) 42%, transparent);
 background: color-mix(in srgb, var(--cat, var(--accent)) 18%, rgba(7, 16, 24, 0.85));
 color: #f2fafb;
 font-size: 0.68rem;
 font-weight: 800;
 letter-spacing: 0.07em;
 text-transform: uppercase;
 line-height: 1;
}

.seo-radar-meta {
 display: inline-flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 0.4rem 0.55rem;
 color: rgba(232, 241, 244, 0.72);
 font-size: 0.75rem;
 font-weight: 600;
}

.seo-radar-time {
 font-variant-numeric: tabular-nums;
 color: rgba(232, 241, 244, 0.78);
}

.seo-radar-impact {
 display: inline-flex;
 align-items: center;
 gap: 0.28rem;
 min-height: 1.45rem;
 padding: 0.12rem 0.45rem;
 border-radius: 5px;
 background: color-mix(in srgb, var(--warn) 22%, transparent);
 border: 1px solid color-mix(in srgb, var(--warn) 55%, transparent);
 color: #ffe8b5;
 font-size: 0.68rem;
 font-weight: 800;
 letter-spacing: 0.04em;
 text-transform: uppercase;
}

.seo-radar-impact-mark {
 color: var(--warn);
 font-size: 0.62rem;
 line-height: 1;
}

.seo-radar-hook {
 margin: 0;
 font-family: var(--font-body);
 font-size: 0.98rem;
 font-weight: 700;
 letter-spacing: -0.01em;
 line-height: 1.32;
 color: #f7fcfd;
 text-wrap: pretty;
 overflow-wrap: anywhere;
}

.seo-radar-body {
 margin: 0;
 color: rgba(232, 241, 244, 0.78);
 font-size: 0.84rem;
 font-weight: 500;
 line-height: 1.42;
 display: -webkit-box;
 -webkit-line-clamp: 2;
 -webkit-box-orient: vertical;
 overflow: hidden;
}

.seo-radar-source {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 0.35rem;
 align-self: flex-start;
 min-height: 44px;
 min-width: 44px;
 margin-top: 0.15rem;
 padding: 0.45rem 0.85rem;
 border-radius: 10px;
 border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
 background: color-mix(in srgb, var(--accent) 12%, transparent);
 color: #9ff3e6;
 font-size: 0.84rem;
 font-weight: 700;
 text-decoration: none;
 transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.seo-radar-source:hover {
 background: color-mix(in srgb, var(--accent) 22%, transparent);
 border-color: color-mix(in srgb, var(--accent) 65%, transparent);
 color: #d8fff8;
}

.seo-radar-source:focus-visible,
.seo-home-snap-link:focus-visible,
.seo-home-snap .seo-btn:focus-visible {
 outline: 2px solid var(--accent);
 outline-offset: 3px;
}

.seo-home-snap-nav {
 position: relative;
 z-index: 1;
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 0.55rem 0.75rem;
}

.seo-home-snap-nav .seo-btn {
 min-height: 44px;
}

.seo-home-snap-link {
 display: inline-flex;
 align-items: center;
 min-height: 44px;
 padding: 0.25rem 0.15rem;
 color: rgba(232, 241, 244, 0.88);
 font-size: 0.88rem;
 font-weight: 600;
 text-decoration: underline;
 text-underline-offset: 3px;
 text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.seo-home-snap-link:hover {
 color: var(--accent);
}

.seo-home-snap noscript p {
 margin: 0.75rem 0 0;
 color: var(--muted);
 font-size: 0.82rem;
}

.seo-home-snap noscript a {
 color: var(--accent);
}

@keyframes radar-item-in {
 from {
  opacity: 0;
  transform: translateY(10px);
 }
 to {
  opacity: 1;
  transform: none;
 }
}

@media (min-width: 420px) {
 .seo-home-snap-list {
  padding-left: 1.25rem;
  gap: 0.8rem;
 }

 .seo-radar-card {
  grid-template-columns: 5.5rem 1fr;
  padding: 0.9rem 1rem 0.85rem;
 }

 .seo-radar-thumb-wrap,
 .seo-radar-thumb {
  width: 5.5rem;
  height: 5.5rem;
 }

 .seo-radar-hook {
  font-size: 1.02rem;
 }

 .seo-story {
  grid-template-columns: 6.5rem 1fr;
 }

 .seo-story-thumb-wrap,
 .seo-story-thumb {
  width: 6.5rem;
  height: 6.5rem;
 }
}

/* —— Player —— */
.player {
 position: fixed;
 inset: 0;
 z-index: 50;
 background: #02080d;
 display: flex;
 flex-direction: column;
 opacity: 0;
 pointer-events: none;
 transform: translateY(12px) scale(0.985);
 transition: opacity 0.28s ease, transform 0.28s ease;
}

.player.open {
 opacity: 1;
 pointer-events: auto;
 transform: none;
}

.player-stage {
 flex: 1;
 position: relative;
 display: flex;
 flex-direction: column;
 padding: calc(0.65rem + var(--safe-top)) 0.75rem calc(1rem + var(--safe-bottom));
 background: #050d14;
 overflow: hidden;
 user-select: none;
 touch-action: none;
}

.player-bg {
 position: absolute;
 inset: 0;
 z-index: 0;
 overflow: hidden;
}

.player-bg img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 transform: scale(1.08);
 animation: ken 18s ease-in-out infinite alternate;
 filter: saturate(1.02) brightness(0.58);
}

.player-bg::after {
 content: "";
 position: absolute;
 inset: 0;
 background:
 linear-gradient(180deg, rgba(2, 8, 13, 0.55) 0%, rgba(2, 8, 13, 0.18) 26%, rgba(2, 8, 13, 0.78) 62%, rgba(2, 8, 13, 0.96) 100%),
 linear-gradient(120deg, color-mix(in srgb, var(--story-accent, #1ec8b0) 38%, transparent), transparent 55%);
}

.progress-row {
 display: flex;
 gap: 0.28rem;
 margin-bottom: 0.85rem;
 position: relative;
 z-index: 4;
}

.progress-row i {
 flex: 1;
 height: 2.5px;
 border-radius: 99px;
 background: rgba(255, 255, 255, 0.22);
 overflow: hidden;
}

.progress-row i b {
 display: block;
 height: 100%;
 width: 0%;
 background: #fff;
 border-radius: inherit;
 transform-origin: left center;
 transition: width 40ms linear;
}

.player-top {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 0.75rem;
 margin-bottom: 1.25rem;
 position: relative;
 z-index: 4;
}

.player-cat {
 font-size: 0.72rem;
 font-weight: 700;
 letter-spacing: 0.1em;
 text-transform: uppercase;
 padding: 0.35rem 0.65rem;
 border-radius: 999px;
 background: rgba(0, 0, 0, 0.35);
 border: 1px solid rgba(255, 255, 255, 0.14);
}

.player-tools {
 display: flex;
 gap: 0.35rem;
}

.icon-btn {
 width: 2.35rem;
 height: 2.35rem;
 border-radius: 50%;
 border: 1px solid rgba(255, 255, 255, 0.14);
 background: rgba(0, 0, 0, 0.28);
 color: #fff;
 display: grid;
 place-items: center;
 cursor: pointer;
 font-size: 1rem;
}

.icon-btn.active { color: var(--warn); border-color: rgba(255, 176, 32, 0.5); }

.player-body {
 margin-top: auto;
 padding: 0 0.35rem 1.1rem;
 max-width: 28rem;
 position: relative;
 z-index: 4;
 animation: story-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.player-body h2 {
 font-family: var(--font-body);
 font-weight: 700;
 font-size: clamp(1.55rem, 6.4vw, 2.15rem);
 letter-spacing: 0;
 line-height: 1.14;
 margin: 0 0 0.85rem;
 color: #f7fcfd;
 text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 10px 28px rgba(0, 0, 0, 0.35);
}

.player-body p {
 margin: 0 0 1.1rem;
 font-size: clamp(1.02rem, 3.8vw, 1.12rem);
 line-height: 1.55;
 color: rgba(244, 250, 252, 0.94);
 text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
 max-width: 36em;
}

.player-actions {
 display: flex;
 gap: 0.55rem;
 flex-wrap: wrap;
}

.player-actions a,
.player-actions button {
 border-radius: 999px;
 padding: 0.7rem 1rem;
 font-size: 0.86rem;
 font-weight: 650;
 border: 1px solid rgba(255, 255, 255, 0.16);
 background: rgba(255, 255, 255, 0.08);
 cursor: pointer;
}

.tap-zones {
 position: absolute;
 inset: 3.5rem 0 5.5rem;
 display: grid;
 grid-template-columns: 1fr 1fr;
 z-index: 2;
}

.hint {
 position: absolute;
 left: 50%;
 bottom: calc(1.4rem + var(--safe-bottom));
 transform: translateX(-50%);
 font-size: 0.72rem;
 color: rgba(255, 255, 255, 0.45);
 letter-spacing: 0.04em;
 z-index: 3;
 pointer-events: none;
}

/* —— Modal Pro —— */
.modal-backdrop {
 position: fixed;
 inset: 0;
 z-index: 60;
 background: rgba(2, 8, 13, 0.72);
 backdrop-filter: blur(8px);
 display: grid;
 place-items: end center;
 padding: 1rem;
 opacity: 0;
 pointer-events: none;
 transition: opacity 0.25s ease;
}

.modal-backdrop.open {
 opacity: 1;
 pointer-events: auto;
}

.modal {
 width: min(420px, 100%);
 background:
 linear-gradient(160deg, rgba(30, 200, 176, 0.12), transparent 40%),
 #0d1822;
 border: 1px solid var(--line);
 border-radius: 22px 22px 18px 18px;
 padding: 1.35rem 1.25rem calc(1.25rem + var(--safe-bottom));
 transform: translateY(24px);
 transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-backdrop.open .modal { transform: none; }

.modal h3 {
 font-family: var(--font-display);
 font-size: 1.45rem;
 letter-spacing: -0.04em;
 margin: 0 0 0.35rem;
}

.modal .price {
 font-size: 1.85rem;
 font-family: var(--font-display);
 font-weight: 800;
 letter-spacing: -0.04em;
 margin: 0.75rem 0 0.25rem;
}

.modal .price small {
 font-size: 0.95rem;
 font-weight: 600;
 color: var(--muted);
}

.modal ul {
 margin: 0.9rem 0 1.2rem;
 padding: 0;
 list-style: none;
 display: grid;
 gap: 0.45rem;
}

.modal li {
 display: flex;
 gap: 0.55rem;
 align-items: flex-start;
 font-size: 0.92rem;
 color: rgba(232, 241, 244, 0.9);
}

.modal li::before {
 content: "✓";
 color: var(--accent);
 font-weight: 800;
}

.modal .row {
 display: grid;
 gap: 0.55rem;
}

.modal .fine {
 margin: 0.75rem 0 0;
 font-size: 0.72rem;
 color: var(--muted);
 line-height: 1.4;
}

@keyframes ken {
 from { transform: scale(1.04) translate3d(0, 0, 0); }
 to { transform: scale(1.12) translate3d(-2%, -1%, 0); }
}

@keyframes ken-deep {
 0% { transform: scale(1.08) translate3d(0, 0, 0); }
 35% { transform: scale(1.16) translate3d(-3.2%, -1.4%, 0); }
 70% { transform: scale(1.2) translate3d(1.6%, -2.6%, 0); }
 100% { transform: scale(1.14) translate3d(-1.2%, 1.1%, 0); }
}

@keyframes psyche-hue {
 0% { filter: saturate(1.18) contrast(1.08) brightness(0.9) hue-rotate(-6deg); }
 40% { filter: saturate(1.28) contrast(1.1) brightness(0.93) hue-rotate(8deg); }
 70% { filter: saturate(1.22) contrast(1.12) brightness(0.88) hue-rotate(14deg); }
 100% { filter: saturate(1.15) contrast(1.06) brightness(0.91) hue-rotate(-4deg); }
}

@keyframes chroma-breathe {
 from { opacity: 0.28; transform: scale(1); }
 to { opacity: 0.55; transform: scale(1.03); }
}

@keyframes chroma-shift-r {
 from { transform: translate3d(-0.6px, 0.4px, 0); opacity: 0.25; }
 to { transform: translate3d(-2px, -0.6px, 0); opacity: 0.45; }
}

@keyframes chroma-shift-b {
 from { transform: translate3d(0.6px, -0.3px, 0); opacity: 0.22; }
 to { transform: translate3d(2.1px, 0.5px, 0); opacity: 0.42; }
}

@keyframes hue-spin {
 from { transform: rotate(0deg) scale(1.05); }
 to { transform: rotate(360deg) scale(1.05); }
}

@keyframes rays-turn {
 from { transform: rotate(0deg); }
 to { transform: rotate(360deg); }
}

@keyframes arc-travel {
 from { stroke-dashoffset: 0; }
 to { stroke-dashoffset: -234; }
}

@keyframes orbit-dash {
 from { stroke-dashoffset: 0; opacity: 0.35; }
 50% { opacity: 0.7; }
 to { stroke-dashoffset: -72; opacity: 0.4; }
}

@keyframes node-breathe {
 0%, 100% { opacity: 0.7; transform: scale(0.92); }
 50% { opacity: 1; transform: scale(1.18); }
}

@keyframes node-ring {
 0% { opacity: 0.85; transform: scale(0.55); }
 70% { opacity: 0; transform: scale(2.6); }
 100% { opacity: 0; transform: scale(2.8); }
}

@keyframes network-glow-pulse {
 from { opacity: 0.35; }
 to { opacity: 0.72; }
}

@keyframes aurora-drift {
 from { transform: translate3d(-2%, 1%, 0) scale(1) rotate(0deg); opacity: 0.72; }
 to { transform: translate3d(3%, -2%, 0) scale(1.08) rotate(4deg); opacity: 0.95; }
}

@keyframes orb-float-a {
 from { transform: translate3d(0, 0, 0) scale(1); }
 to { transform: translate3d(18%, -22%, 0) scale(1.18); }
}

@keyframes orb-float-b {
 from { transform: translate3d(0, 0, 0) scale(1); }
 to { transform: translate3d(-16%, 20%, 0) scale(1.22); }
}

@keyframes orb-float-c {
 from { transform: translate3d(0, 0, 0) scale(0.9); opacity: 0.35; }
 to { transform: translate3d(-10%, 14%, 0) scale(1.25); opacity: 0.65; }
}

@keyframes shimmer-sweep {
 0%, 18% { transform: translate3d(28%, 0, 0); opacity: 0; }
 35% { opacity: 0.85; }
 55% { transform: translate3d(-32%, 0, 0); opacity: 0.5; }
 70%, 100% { transform: translate3d(-40%, 0, 0); opacity: 0; }
}

@keyframes grain-drift {
 0% { transform: translate3d(0, 0, 0); }
 33% { transform: translate3d(-2%, 1.5%, 0); }
 66% { transform: translate3d(1.5%, -2%, 0); }
 100% { transform: translate3d(0, 0, 0); }
}

/* Solo translateY: opacity 0 + fill-mode both ocultaba el hero al load → NO_LCP / LCP tardío. */
@keyframes rise {
 from { transform: translateY(14px); }
 to { transform: translateY(0); }
}

@keyframes story-in {
 from { opacity: 0; transform: translateY(18px); }
 to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-dot {
 0% { transform: scale(1); opacity: 0.55; }
 70% { transform: scale(2.35); opacity: 0; }
 100% { transform: scale(1); opacity: 0; }
}

@keyframes cta-breathe {
 0%, 100% {
  box-shadow:
   0 4px 14px rgba(30, 200, 176, 0.22),
   inset 0 1px 0 rgba(255, 255, 255, 0.28);
 }
 50% {
  box-shadow:
   0 6px 20px rgba(30, 200, 176, 0.4),
   inset 0 1px 0 rgba(255, 255, 255, 0.34);
 }
}

@media (max-width: 380px) {
 .brief-rays { opacity: 0.16; }
 .brief-chroma { opacity: 0.28; }
 .brief-hue { opacity: 0.35; }
 .brief-pulses { display: none; }
}

@media (max-width: 480px) {
  /* Contenido visible ya: sin rise above-the-fold (mejora Speed Index + CLS). */
  .brief,
  .play-row,
  .filters,
  .section-label,
  .rail,
  .topbar,
  .directory,
  .seo-home-snap {
    animation: none !important;
  }
  .rail {
    /* ~52% del ancho app (480) → card ~250px → alto 3:4 */
    min-height: calc(min(52vw, 250px) * 4 / 3 + 0.65rem);
    /* Móvil: sin snap → swipe continuo tipo Instagram */
    scroll-snap-type: none;
  }
  .rail.traders-impact-rail {
    /* Reserva CLS ~alto real del ticker landscape, no portrait 3/4. */
    min-height: calc(88px + 0.45rem);
    grid-auto-columns: minmax(232px, 86%);
  }
  /* Overlays pesados off en early paint móvil — desktop intacto. */
  .brief-chroma,
  .brief-hue,
  .brief-rays,
  .brief-orb,
  .brief-network,
  .brief-network-glow,
  .brief-shimmer,
  .brief-grain,
  .brief-pulses {
    display: none !important;
  }
  .brief-aurora {
    animation: none !important;
    opacity: 0.55;
  }
  /* LCP más barato: sin filter en el candidato. */
  .brief-visual-img {
    filter: none;
    transform: scale(1.04);
  }
  .brief-visual.is-lively .brief-visual-img {
    animation: none !important;
  }
  /* Estimación más cercana al contenido real (evita salto al paint). */
  .directory {
    content-visibility: auto;
    contain-intrinsic-size: 1px 1100px;
  }
  .seo-home-snap {
    content-visibility: auto;
    contain-intrinsic-size: 1px 1100px;
  }
  .ad-slot {
    content-visibility: auto;
    contain-intrinsic-size: 1px 90px;
  }
}

@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after {
 animation: none !important;
 transition: none !important;
 }
 .story-card.is-impact,
 .player-stage.is-impact {
 filter: none !important;
 }
 .story-card .impact-streak,
 .impact-comet {
 display: none !important;
 }
 .brief-visual-img {
 transform: scale(1.06) !important;
 filter: saturate(1.08) contrast(1.04) brightness(0.92) !important;
 animation: none !important;
 }
 .brief-visual.is-lively .brief-visual-img {
 animation: none !important;
 }
 .brief-visual-stage {
 transform: none !important;
 }
 .brief-aurora,
 .brief-orb,
 .brief-shimmer,
 .brief-chroma,
 .brief-hue,
 .brief-rays,
 .brief-network-glow {
 animation: none !important;
 }
 .brief-aurora { opacity: 0.45; }
 .brief-orb { opacity: 0.35; }
 .brief-shimmer { opacity: 0.25; }
 .brief-chroma { opacity: 0.18; }
 .brief-hue { opacity: 0.22; transform: none; }
 .brief-rays { opacity: 0.12; transform: none; }
 .brief-network-glow { opacity: 0.28; }
 .brief-grain {
 opacity: 0.1;
 animation: none !important;
 }
 .brief-arc,
 .brief-arc-orbit,
 .brief-node,
 .brief-pulse {
 animation: none !important;
 }
 .brief-arc {
 stroke-dasharray: none;
 opacity: 0.45;
 }
 .brief-arc-orbit {
 stroke-dasharray: 4 18;
 opacity: 0.3;
 }
 .brief-pulse { display: none; }
 .brief-node { opacity: 0.75; }
}

@media (min-width: 900px) {
 .app { padding-top: 1.5rem; }
 .rail { grid-auto-columns: minmax(188px, 22%); }
 .story-card .hook { font-size: 0.95rem; }
 .rail.traders-impact-rail { grid-auto-columns: minmax(280px, 32%); min-height: auto; }
 .traders-impact-rail .story-card.traders-ticker .hook { font-size: 0.8rem; }
}

/* —— Toast bars: instalar / continuar (no bloquean el brief) —— */
.toast-bar {
  position: fixed;
  left: 50%;
  bottom: calc(0.85rem + var(--safe-bottom));
  transform: translateX(-50%) translateY(12px);
  width: min(440px, calc(100% - 1.25rem));
  z-index: 45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast-bar:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.toast-bar[hidden] {
  display: block !important;
  opacity: 0;
  pointer-events: none;
}

.toast-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(30, 200, 176, 0.1), transparent 42%),
    rgba(10, 20, 30, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.toast-copy {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.toast-copy strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.toast-copy span {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.toast-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.toast-cta {
  padding: 0.55rem 0.85rem !important;
  font-size: 0.82rem !important;
  box-shadow: 0 6px 18px rgba(30, 200, 176, 0.25) !important;
}

.toast-later {
  padding: 0.5rem 0.7rem !important;
  font-size: 0.78rem !important;
}

.toast-dismiss {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  padding: 0.35rem;
  cursor: pointer;
  border-radius: 8px;
}

.toast-dismiss:hover { color: var(--foam); }

.install-bar .install-ios-tip {
  margin-top: 0.55rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(10, 20, 30, 0.94);
  display: grid;
  gap: 0.65rem;
}

.install-bar .install-ios-tip[hidden] {
  display: none !important;
}

.install-bar .install-ios-tip p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(232, 241, 244, 0.88);
  line-height: 1.45;
}

.install-bar .install-ios-tip .chip-btn {
  justify-self: start;
}

body.has-toast-bar {
  /* Toast es position:fixed — no añadir padding (provoca CLS en .brief). */
}

body.has-toast-bar .home-fab {
  bottom: calc(5.75rem + var(--safe-bottom));
}

.home-fab {
  position: fixed;
  right: max(0.85rem, calc(50% - 220px));
  bottom: calc(1rem + var(--safe-bottom));
  z-index: 40;
  appearance: none;
  border: 1px solid rgba(30, 200, 176, 0.4);
  background: rgba(8, 18, 28, 0.9);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: -0.02em;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.home-fab:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
}

.home-fab[hidden] {
  display: block !important;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.home-fab:active { transform: scale(0.97); }

.player.open ~ .toast-bar,
.player.open ~ .home-fab,
body:has(.player.open) .toast-bar,
body:has(.player.open) .home-fab {
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 420px) {
  .toast-bar-inner {
    flex-wrap: wrap;
  }
  .toast-actions {
    width: 100%;
    justify-content: stretch;
  }
  .toast-cta,
  .toast-later {
    flex: 1;
  }
  .toast-dismiss {
    margin-left: auto;
  }
}
