/* New workshop slides use the unmodified commercial deck stage and design tokens. */
.tw-agenda { display:flex; flex-wrap:wrap; gap:12px; margin-top:32px; max-width:1000px; }
.tw-agenda button,.tw-controls button { color:white; border:1px solid var(--line-2); background:rgba(47,99,255,.22); border-radius:12px; padding:16px 22px; font:600 19px var(--f-body); cursor:pointer; }
.tw-agenda button:hover,.tw-controls button:hover { background:rgba(47,99,255,.5); border-color:var(--cyan); }
.tw-controls button:disabled { opacity:.45; cursor:default; }
.tw-controls button:focus-visible,.tw-agenda button:focus-visible,#twCpm:focus-visible { outline:3px solid var(--cyan); outline-offset:4px; }
.tw-bridge { padding-top:140px; }
.tw-bridge .h-l { font-size:66px; }
.tw-lead { font:300 26px/1.4 var(--f-body); color:var(--ink-2); margin-top:16px; }
.tw-lead b { color:white; font-weight:600; }
.tw-pipeline { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-top:26px; padding:19px 26px; background:rgba(33,150,243,.1); border:1px solid var(--line); border-radius:15px; }
.tw-pipeline > div { display:flex; align-items:center; gap:16px; font:600 20px/1.4 var(--f-body); }
.tw-pipeline .ico { width:34px; height:34px; color:var(--cyan); }
.tw-pipeline small { display:block; color:var(--ink-3); font-size:15px; font-weight:400; }
.tw-pipeline > b { color:var(--cyan); font-size:26px; }
.tw-lab { display:grid; grid-template-columns:520px 1fr; gap:28px; margin-top:24px; height:418px; }
.tw-screen-panel { padding:23px 28px; }
.tw-panel-top { display:flex; align-items:center; justify-content:space-between; font:600 16px var(--f-mono); color:var(--sky); }
.tw-panel-top b { font-size:24px; color:white; }
.tw-screen { height:168px; margin:17px auto 18px; border:6px solid #5066cc; border-radius:15px; background:#05082f; padding:9px; box-shadow:0 10px 35px #0005; position:relative; }
.tw-ad { height:100%; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:5px; background:radial-gradient(ellipse at 60% 30%,#5083ff,#1f2fe0 65%,#101750); border-radius:5px; }
.tw-ad .ico { width:45px; height:45px; fill:white; stroke:none; }
.tw-ad span { font:800 21px var(--f-display); letter-spacing:.1em; }
.tw-ad b { font:400 14px var(--f-mono); color:var(--cyan); }
.tw-impact { position:absolute; right:-12px; top:36px; padding:12px 18px; border-radius:10px; background:#40e0a0; color:#051f2a; font:800 22px var(--f-display); opacity:0; transform:translateY(25px); }
.tw-bridge.firing .tw-impact { animation:twImpact 1.2s both; }
.tw-bridge.firing .tw-screen { border-color:var(--cyan); box-shadow:0 0 40px #2f63ff90; }
.tw-multipliers { display:flex; gap:12px; }
.tw-multipliers > div { flex:1; border:1px solid var(--line); border-radius:10px; padding:8px; text-align:center; opacity:.5; transition:.3s; }
.tw-multipliers .on { opacity:1; background:#2f63ff38; border-color:var(--cyan); }
.tw-multipliers small { display:block; color:var(--ink-2); font:14px var(--f-mono); }
.tw-multipliers b { font:800 27px var(--f-display); }
.tw-screen-panel p { margin-top:14px; font:300 16px/1.4 var(--f-body); color:var(--ink-2); }
.tw-screen-panel p b { font-weight:500; color:white; }
.tw-results { padding:22px 28px; }
.tw-equation { display:flex; align-items:center; gap:18px; font:600 22px var(--f-display); }
.tw-equation > b { color:var(--ink-3); }
.tw-equation strong { color:var(--cyan); }
.tw-totals { display:flex; align-items:center; gap:55px; margin-top:17px; }
.tw-totals small { display:block; font:15px var(--f-body); color:var(--ink-2); }
.tw-totals b { font:900 64px/1.1 var(--f-display); }
.tw-totals > span { color:var(--sky); font-size:38px; }
.tw-ledger { margin-top:12px; height:143px; font:14px/1.2 var(--f-mono); }
.tw-ledger > div { display:grid; grid-template-columns:1fr 1.4fr 1fr; gap:16px; padding:4px 10px; }
.tw-ledger-head { color:var(--ink-3); border-bottom:1px solid var(--line); }
.tw-ledger > .tw-empty { display:block; color:var(--ink-3); font:16px var(--f-body); padding:18px 10px; }
.tw-ledger .tw-row { color:var(--ink-2); }
.tw-row:last-child { color:var(--cyan); background:#2f63ff22; }
.tw-ledger span:last-child { text-align:right; }
.tw-cost { margin-top:9px; border-top:1px solid var(--line); padding-top:12px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.tw-cost label { font:15px var(--f-body); color:var(--ink-2); }
#twCpm { width:82px; padding:7px 6px; margin-left:6px; background:#0a1255; border:1px solid #5fb8ff70; color:white; border-radius:7px; font:600 19px var(--f-mono); }
.tw-cost > div { text-align:right; }
.tw-cost span { display:block; color:var(--ink-3); font:13px var(--f-body); }
.tw-cost strong { font:800 29px var(--f-display); color:#40e0a0; }
.tw-controls { margin-top:18px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.tw-controls > div { display:flex; gap:10px; }
.tw-controls button { font-size:16px; padding:10px 17px; }
.tw-controls p { font:14px var(--f-mono); color:var(--ink-3); }
.tw-takeaway { margin-top:18px; font:300 24px var(--f-body); color:var(--ink-2); }
.tw-takeaway b { font-weight:600; color:white; }
.tw-phase-nav { position:fixed; right:18px; top:16px; z-index:110; display:flex; gap:6px; transition:opacity .3s; }
.tw-phase-nav button { cursor:pointer; padding:8px 12px; border-radius:99px; color:#b8c9ff; border:1px solid #6b88dd55; background:#081145df; font:500 11px 'Poppins',sans-serif; }
.tw-phase-nav button[aria-current="step"] { color:white; border-color:#7fe3ff; background:#1f2f99; }
body.idle .tw-phase-nav { opacity:0; pointer-events:none; }
.tw-phase-nav:focus-within { opacity:1!important; pointer-events:auto!important; }
@keyframes twImpact { 15%,65% { opacity:1; transform:translateY(0); } 100% { opacity:0; transform:translateY(-24px); } }
@media(max-width:600px) { .tw-phase-nav { top:58px; right:8px; gap:4px; } .tw-phase-nav button { font-size:9px; padding:7px; } }
@media(prefers-reduced-motion:reduce) { .tw-bridge * { animation:none!important; transition:none!important; } .tw-bridge.firing .tw-impact { opacity:1; transform:none; } }

/* Por qué LatinAd: cada click suma un diferenciador; la palabra NUNCA / NO "estampa" con foco */
.tw-why-list { margin-top: 34px; display: flex; flex-direction: column; gap: 14px; }
.tw-why-row { position: relative; overflow: hidden; display: grid; grid-template-columns: 350px 1fr; align-items: center; gap: 40px; padding: 16px 36px 18px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(100deg, rgba(40, 70, 200, .22), rgba(15, 25, 100, .3)); transform: translateX(-40px); }
.tw-why-row.on { transform: none; border-color: rgba(127, 227, 255, .55); background: linear-gradient(100deg, rgba(47, 99, 255, .38), rgba(20, 34, 120, .4)); box-shadow: 0 0 50px -10px rgba(33, 150, 243, .55), inset 0 1px 0 rgba(255, 255, 255, .08); }
.tw-why-row.on.passed { opacity: .5; border-color: var(--line); background: linear-gradient(100deg, rgba(40, 70, 200, .18), rgba(15, 25, 100, .25)); box-shadow: none; }
.tw-why-row::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(127, 227, 255, .22) 50%, transparent 70%); transform: translateX(-100%); pointer-events: none; }
.tw-why-row.on:not(.passed)::after { animation: twWhySweep 1.3s var(--ease-io) .45s both; }

.tw-why-word { position: relative; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.tw-why-word small { font: 600 15px/1 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.tw-why-word b { position: relative; display: inline-block; font: 900 84px/.9 var(--f-display); letter-spacing: -.02em; background: linear-gradient(180deg, #ffffff 15%, #7fe3ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(127, 227, 255, .55)); }
.tw-why-word b::after { content: ''; position: absolute; left: 4%; right: 4%; bottom: -12px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--royal), var(--latinad), var(--cyan)); box-shadow: 0 0 18px var(--latinad); transform: scaleX(0); transform-origin: right; }
.tw-why-word::before { content: ''; position: absolute; right: 18%; top: 58%; width: 40px; height: 40px; margin: -20px -20px 0 0; border-radius: 50%; border: 3px solid rgba(127, 227, 255, .9); opacity: 0; pointer-events: none; }
.tw-why-row.on .tw-why-word b { animation: twWhyStamp .75s var(--ease) both; }
.tw-why-row.on .tw-why-word b::after { animation: twWhyLine .6s var(--ease) .5s both; }
.tw-why-row.on:not(.passed) .tw-why-word::before { animation: twWhyRing .9s ease-out .32s both; }
.tw-why-row.on.passed .tw-why-word b { filter: none; }

.tw-why-text h3 { margin: 0; font: 800 38px/1.1 var(--f-display); letter-spacing: -.015em; color: var(--white); }
.tw-why-text p { margin: 8px 0 0; font: 300 21px/1.4 var(--f-body); color: var(--ink-2); max-width: 1080px; }
.tw-why-text p strong { font-weight: 600; color: var(--cyan); }
.tw-why-text { opacity: 0; transform: translateX(-16px); transition: opacity .6s var(--ease) .38s, transform .6s var(--ease) .38s; }
.tw-why-row.on .tw-why-text { opacity: 1; transform: none; }

@keyframes twWhyStamp {
  0% { opacity: 0; transform: scale(2.6) rotate(-4deg); letter-spacing: .25em; filter: blur(14px); }
  50% { opacity: 1; transform: scale(.9) rotate(0); letter-spacing: -.02em; filter: blur(0) drop-shadow(0 0 40px rgba(127, 227, 255, .9)); }
  72% { transform: scale(1.07); }
  100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 22px rgba(127, 227, 255, .55)); }
}
@keyframes twWhyRing { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(7); } }
@keyframes twWhyLine { to { transform: scaleX(1); } }
@keyframes twWhySweep { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .tw-why * , .tw-why *::before, .tw-why *::after { animation: none !important; } .tw-why-word b::after { transform: none; } }

/* Ventajas del Programmatic Hub: una ventaja por clic; la última que entra queda destacada */
#phAdv .ph-adv.frag.on:not(.passed) { border-color: rgba(127, 227, 255, .55); box-shadow: 0 0 44px -8px rgba(33, 150, 243, .6), inset 0 1px 0 rgba(255, 255, 255, .08); }
#phAdv .ph-adv.frag.on.passed .ic-box { background: rgba(33, 150, 243, .16); color: var(--accent); box-shadow: none; }
/* Link a las presentaciones comerciales en el cierre */
.tw-why .tw-learn { position: absolute; right: 140px; bottom: 76px; padding: 16px 28px; font-size: 20px; }
