/* =========================================================
   OOH SUMMIT 2026 — LatinAd
   Stage fijo 1920x1080 escalado a la ventana.
   ========================================================= */
:root {
  --navy-950: #030624;
  --navy-900: #060b36;
  --navy-800: #0a1255;
  --navy-700: #111c7a;
  --royal: #1f2fe0;
  --blue: #2f63ff;
  --latinad: #2196f3;      /* azul del isotipo */
  --sky: #5fb8ff;
  --cyan: #7fe3ff;
  --violet: #6b4dff;
  --white: #ffffff;
  --ink-2: rgba(226, 234, 255, .78);
  --ink-3: rgba(200, 214, 255, .5);
  --line: rgba(140, 170, 255, .18);
  --glass: rgba(20, 34, 120, .38);
  --glass-2: rgba(40, 70, 200, .16);
  --danger: #ff5b73;
  --ok: #40e0a0;
  --f-display: 'Montserrat', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Poppins', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body {
  background: var(--navy-950);
  color: var(--white);
  font-family: var(--f-body);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: default;
}
body.idle { cursor: none; }

/* ---------- Stage ---------- */
#stage {
  position: fixed;
  width: 1920px; height: 1080px;
  left: 50%; top: 50%;
  transform-origin: 0 0;
  overflow: hidden;
  background: var(--navy-900);
  isolation: isolate;
}

/* ---------- Backdrop global ---------- */
.bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.bg-base {
  background:
    radial-gradient(1200px 800px at 78% 30%, rgba(47, 99, 255, .55), transparent 60%),
    radial-gradient(900px 700px at 12% 85%, rgba(107, 77, 255, .35), transparent 60%),
    radial-gradient(1400px 900px at 50% 120%, rgba(31, 47, 224, .6), transparent 60%),
    linear-gradient(160deg, #0b1566 0%, #070d45 45%, #040831 100%);
  transition: filter 1.2s var(--ease);
}
.bg-streaks { overflow: hidden; }
.bg-streaks i {
  position: absolute;
  width: 2600px; height: 180px;
  left: -300px;
  background: linear-gradient(90deg, transparent, rgba(120, 150, 255, .22) 40%, rgba(170, 140, 255, .28) 55%, transparent);
  filter: blur(38px);
  transform: rotate(-24deg);
  animation: streak 16s var(--ease-io) infinite alternate;
  mix-blend-mode: screen;
}
.bg-streaks i:nth-child(1) { top: 60px; }
.bg-streaks i:nth-child(2) { top: 300px; height: 90px; animation-duration: 21s; animation-delay: -6s; opacity: .7; }
.bg-streaks i:nth-child(3) { top: 520px; height: 260px; animation-duration: 25s; animation-delay: -12s; opacity: .45; }
@keyframes streak {
  0% { transform: rotate(-24deg) translateX(-140px); opacity: .25; }
  100% { transform: rotate(-22deg) translateX(160px); opacity: .9; }
}
.bg-grid {
  background-image:
    linear-gradient(rgba(130, 160, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 160, 255, .07) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(900px 600px at 50% 50%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(900px 600px at 50% 50%, #000 0%, transparent 75%);
  animation: gridDrift 40s linear infinite;
}
@keyframes gridDrift { to { background-position: 80px 80px, 80px 80px; } }
#particles { position: absolute; inset: 0; width: 1920px; height: 1080px; }
.bg-grain {
  opacity: .09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.bg-vignette { background: radial-gradient(1400px 900px at 50% 50%, transparent 55%, rgba(2, 4, 26, .75) 100%); }

/* Decoración flotante: cruces y cuadrados de la gráfica LatinAd */
.decor { position: absolute; inset: 0; z-index: 1; pointer-events: none; transition: opacity 1s; }
#stage:not([data-chrome]) .decor, #stage[data-chrome=""] .decor { opacity: .45; }
.decor span {
  position: absolute;
  transform: translate3d(calc(var(--px, 0) * 1px), calc(var(--py, 0) * 1px), 0);
  transition: transform 1.2s var(--ease), opacity 1.2s;
}
.decor .plus { width: var(--s); height: var(--s); opacity: var(--o, .8); animation: floaty var(--dur, 9s) ease-in-out infinite alternate; }
.decor .plus::before, .decor .plus::after {
  content: ''; position: absolute; background: var(--c, var(--blue)); border-radius: 1px;
}
.decor .plus::before { left: 35%; width: 30%; top: 0; bottom: 0; }
.decor .plus::after { top: 35%; height: 30%; left: 0; right: 0; }
.decor .sq {
  width: var(--s); height: var(--s); background: var(--c, var(--latinad)); opacity: var(--o, .7);
  animation: floaty var(--dur, 11s) ease-in-out infinite alternate, blink 5s steps(1) infinite;
  animation-delay: var(--dl, 0s);
}
@keyframes floaty { from { translate: 0 -10px; } to { translate: 0 12px; } }
@keyframes blink { 0%, 92% { filter: none; } 93% { filter: brightness(2.2); } }

/* 3D canvas */
#hero3d {
  position: absolute; inset: 0; width: 1920px; height: 1080px;
  z-index: 2; pointer-events: none; opacity: 0;
}

/* ---------- Chrome ---------- */
.chrome { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.chrome .brand { position: absolute; left: 72px; top: 54px; height: 28px; opacity: .92; transition: opacity .6s; }
.chrome .event {
  position: absolute; right: 72px; top: 56px;
  font: 600 16px/1 var(--f-display); letter-spacing: .32em; text-transform: uppercase; color: var(--ink-2);
  display: flex; align-items: center; gap: 14px;
}
.chrome .event b { color: var(--white); font-weight: 800; }
.chrome .event .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .3; transform: scale(.7); } }
.chrome .section {
  position: absolute; left: 72px; bottom: 50px;
  font: 500 15px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
  transition: opacity .5s;
}
.chrome .counter { position: absolute; right: 72px; bottom: 48px; font: 600 16px/1 var(--f-mono); color: var(--ink-3); letter-spacing: .1em; }
.chrome .counter b { color: var(--white); }
.chrome .progress { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: rgba(255, 255, 255, .06); }
.chrome .progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--royal), var(--latinad), var(--cyan));
  box-shadow: 0 0 18px var(--latinad);
  transition: width .8s var(--ease);
}
#stage[data-chrome="min"] .chrome .brand,
#stage[data-chrome="min"] .chrome .section,
#stage[data-chrome="none"] .chrome .brand,
#stage[data-chrome="none"] .chrome .section,
#stage[data-chrome="none"] .chrome .event,
#stage[data-chrome="none"] .chrome .counter { opacity: 0; }
.chrome .event, .chrome .counter { transition: opacity .6s; }

/* ---------- Slides ---------- */
.slides { position: absolute; inset: 0; z-index: 10; }
.slide {
  position: absolute; inset: 0;
  padding: 150px 140px 130px;
  opacity: 0; visibility: hidden;
  transform: scale(1.03);
  filter: blur(14px);
  transition: opacity .8s var(--ease), transform 1s var(--ease), filter .8s var(--ease), visibility 0s linear 1s;
}
.slide.active { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: .12s, .12s, .12s, 0s; }
.slide.past { transform: scale(.97); }
.slide .notes { display: none; }

/* Reveal escalonado: agrega .r y style="--d:n" */
.slide .r { opacity: 0; }
.slide.active .r {
  animation: rise 1s var(--ease) both;
  animation-delay: calc(var(--d, 0) * 110ms + 350ms);
}
.slide.active .r.blur { animation-name: blurIn; }
.slide.active .r.left { animation-name: fromLeft; }
.slide.active .r.right { animation-name: fromRight; }
.slide.active .r.zoom { animation-name: zoomIn; }
.slide.active .r.fade { animation-name: fadeIn; }
@keyframes rise { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
@keyframes blurIn { from { opacity: 0; filter: blur(20px); scale: 1.06; } to { opacity: 1; filter: none; scale: 1; } }
@keyframes fromLeft { from { opacity: 0; translate: -70px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes fromRight { from { opacity: 0; translate: 70px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes zoomIn { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Palabras con máscara (títulos) */
.words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.words .w > span { display: inline-block; transform: translateY(110%); }
.slide.active .words .w > span {
  animation: wordUp 1.1s var(--ease) both;
  animation-delay: calc(var(--wi) * 70ms + var(--d, 0) * 110ms + 300ms);
}
@keyframes wordUp { to { transform: none; } }

/* Fragmentos (se revelan con → antes de avanzar) */
.frag { opacity: .0; transform: translateY(24px); filter: blur(8px); transition: all .8s var(--ease); }
.frag.on { opacity: 1; transform: none; filter: none; }
.frag.dim-after.on.passed { opacity: .28; filter: blur(1px); }

/* ---------- Tipografía ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font: 600 18px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--sky);
}
.kicker::before { content: ''; width: 14px; height: 14px; background: var(--latinad); box-shadow: 0 0 16px var(--latinad); }
.h-xxl { font: 900 150px/.92 var(--f-display); letter-spacing: -.035em; }
.h-xl { font: 800 104px/.98 var(--f-display); letter-spacing: -.03em; }
.h-l { font: 800 76px/1.02 var(--f-display); letter-spacing: -.025em; }
.h-m { font: 700 52px/1.1 var(--f-display); letter-spacing: -.02em; }
.h-s { font: 700 34px/1.2 var(--f-display); letter-spacing: -.01em; }
.light { font-weight: 300; }
.lead { font: 300 34px/1.45 var(--f-body); color: var(--ink-2); max-width: 1100px; }
.body { font: 300 26px/1.55 var(--f-body); color: var(--ink-2); }
.mono { font-family: var(--f-mono); }
.grad {
  background: linear-gradient(100deg, #9fd8ff 0%, var(--latinad) 35%, #6f8bff 65%, #b69cff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradShift 8s ease-in-out infinite alternate;
}
@keyframes gradShift { to { background-position: 100% 0; } }
.muted { color: var(--ink-3); }
.hl { color: var(--cyan); }

/* ---------- Componentes ---------- */
.glass {
  background: linear-gradient(145deg, rgba(60, 90, 255, .18), rgba(15, 25, 100, .35));
  border: 1px solid var(--line);
  border-radius: 24px;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 30, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
  position: relative;
}
.glass.glow::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, var(--cyan) 80%, var(--latinad) 88%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spinBorder 6s linear infinite;
}
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spinBorder { to { --ang: 360deg; } }

.pill {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px; border-radius: 999px;
  border: 1px solid rgba(127, 227, 255, .35);
  background: rgba(33, 150, 243, .12);
  font: 600 17px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan);
}
.pill .live { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 12px var(--danger); animation: pulse 1.4s infinite; }

.shot {
  border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(160, 190, 255, .25);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .3), 0 0 60px -10px rgba(47, 99, 255, .45);
  background: #0a0f3a;
}
.shot img { display: block; width: 100%; height: auto; }

/* Slot para videos / imágenes pendientes */
.media-slot {
  position: relative; border-radius: 22px; overflow: hidden;
  border: 1.5px dashed rgba(127, 227, 255, .45);
  background:
    repeating-linear-gradient(135deg, rgba(47, 99, 255, .07) 0 14px, transparent 14px 28px),
    rgba(10, 20, 90, .35);
  display: grid; place-items: center; text-align: center;
}
.media-slot .ph { font: 600 20px/1.5 var(--f-mono); color: var(--sky); letter-spacing: .08em; text-transform: uppercase; }
.media-slot .ph small { display: block; font: 400 16px/1.5 var(--f-mono); color: var(--ink-3); text-transform: none; letter-spacing: 0; margin-top: 8px; }
.media-slot .play {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 22px;
  display: grid; place-items: center; background: rgba(33, 150, 243, .2); border: 1px solid rgba(127, 227, 255, .5);
  animation: pulseRing 2.4s infinite;
}
.media-slot .play::after { content: ''; border-left: 28px solid var(--white); border-top: 17px solid transparent; border-bottom: 17px solid transparent; margin-left: 8px; }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(127, 227, 255, .45); } 100% { box-shadow: 0 0 0 36px rgba(127, 227, 255, 0); } }
.media-slot video, .media-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-slot:has(video), .media-slot:has(img) { border-style: solid; }

/* ---------- Ribbons LATINAD (cintas animadas) ---------- */
.ribbons { position: absolute; left: -200px; right: -200px; bottom: -70px; height: 330px; pointer-events: none; z-index: 3; }
.ribbon {
  position: absolute; left: 0; right: 0; height: 84px; overflow: hidden;
  display: flex; align-items: center;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 40, .8);
}
.ribbon.a { top: 60px; transform: rotate(2.4deg); background: linear-gradient(90deg, #2d6cf0, #4c8dff 50%, #2d6cf0); }
.ribbon.b { top: 170px; transform: rotate(-3deg); background: linear-gradient(90deg, #1a2fb0, #2748d6 50%, #1a2fb0); opacity: .96; }
.ribbon .track { display: flex; align-items: center; gap: 90px; white-space: nowrap; padding-left: 70px; animation: marquee 38s linear infinite; will-change: transform; }
.ribbon.b .track { animation-direction: reverse; animation-duration: 44s; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ribbon-logo { height: 44px; width: auto; flex: none; opacity: .95; }
.wordmark { display: inline-flex; align-items: center; gap: 16px; font: 300 50px/1 var(--f-display); letter-spacing: .02em; color: rgba(255, 255, 255, .92); }
.wordmark b { font-weight: 800; }
.wordmark svg { height: 46px; width: 46px; }
.slide.active .ribbons { animation: ribbonsIn 1.6s var(--ease) .4s both; }
@keyframes ribbonsIn { from { translate: 0 200px; rotate: -2deg; opacity: 0; } to { translate: 0 0; rotate: 0deg; opacity: 1; } }

/* =========================================================
   Slides específicas
   ========================================================= */

/* S1 — Hero */
.s-hero { padding: 0; }
.s-hero .copy { position: absolute; left: 140px; top: 150px; width: 1080px; z-index: 4; }
.s-hero .logo { position: absolute; left: 140px; top: 64px; height: 42px; z-index: 4; }
.s-hero .copy .pill { margin-bottom: 36px; }
.s-hero h1 { font: 900 98px/.96 var(--f-display); letter-spacing: -.035em; text-shadow: 0 10px 60px rgba(0, 0, 40, .5); }
.s-hero h1 .scr { display: inline-block; min-width: 5.2ch; }
.s-hero .sub { margin-top: 32px; font: 300 30px/1.45 var(--f-body); color: var(--ink-2); max-width: 900px; }
.s-hero .sub b { color: var(--white); font-weight: 500; }
.s-hero .speaker { margin-top: 30px; display: flex; align-items: center; gap: 18px; font: 500 20px/1.3 var(--f-body); color: var(--ink-2); }
.s-hero .speaker::before { content: ''; width: 46px; height: 2px; background: var(--latinad); }
.hud {
  position: absolute; right: 120px; top: 150px; width: 460px; z-index: 4;
  padding: 20px 24px; font: 400 15px/1.7 var(--f-mono); color: var(--ink-2);
}
.hud .hd { display: flex; justify-content: space-between; color: var(--sky); font-weight: 600; margin-bottom: 8px; letter-spacing: .08em; }
.hud .hd i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); display: inline-block; margin-right: 8px; animation: pulse 1.6s infinite; }
.hud .ln { white-space: nowrap; overflow: hidden; }
.hud .ln .ok { color: var(--ok); }
.hud .ln .warn { color: #ffcc66; }
.caret::after { content: '▍'; color: var(--cyan); animation: pulse 1s steps(1) infinite; }

/* Statements */
.s-statement { display: flex; flex-direction: column; justify-content: center; }
.s-statement .stack { position: relative; }
.s-statement .line { font: 800 110px/1 var(--f-display); letter-spacing: -.035em; }
.s-statement .line + .line { margin-top: 30px; }
.glitch { position: relative; display: inline-block; }
.frag.on .glitch, .slide.active .glitch.auto { animation: glitch 2.6s steps(1) 1 .2s; }
@keyframes glitch {
  0% { text-shadow: 4px 0 #ff2bd6, -4px 0 #00e1ff; transform: translateX(2px) skewX(-6deg); }
  6% { text-shadow: -3px 0 #ff2bd6, 3px 0 #00e1ff; transform: translateX(-3px); clip-path: inset(10% 0 55% 0); }
  12% { text-shadow: 2px 0 #ff2bd6, -2px 0 #00e1ff; transform: none; clip-path: inset(50% 0 10% 0); }
  18% { text-shadow: none; clip-path: none; transform: none; }
  100% { text-shadow: none; }
}

/* Chat / simulación */
.s-sim { display: grid; grid-template-columns: 1fr 980px; gap: 90px; align-items: center; }
.chat { padding: 34px 36px; display: flex; flex-direction: column; gap: 20px; }
.chat .top { display: flex; align-items: center; gap: 14px; font: 600 18px/1 var(--f-mono); color: var(--sky); letter-spacing: .08em; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.chat .top .av { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--latinad), var(--violet)); }
.chat .msg { max-width: 82%; padding: 18px 22px; border-radius: 20px; font: 400 23px/1.45 var(--f-body); }
.chat .msg.user { align-self: flex-end; background: linear-gradient(135deg, #2f63ff, #2196f3); border-bottom-right-radius: 6px; }
.chat .msg.bot { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-bottom-left-radius: 6px; font-family: var(--f-mono); font-size: 19px; line-height: 1.75; color: var(--ink-2); }
.chat .step { opacity: 0; transform: translateY(8px); transition: all .5s var(--ease); display: flex; gap: 12px; }
.chat .step.on { opacity: 1; transform: none; }
.chat .step .ic { color: var(--sky); width: 22px; flex: none; }
.chat .step.done .ic { color: var(--ok); }
.chat .step.x .ic { color: var(--danger); }
.chat .step.x b { color: #ff9aaa; font-weight: 600; }
.chat .final { color: var(--white); font-weight: 600; }
.spin { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Section dividers */
.s-section { display: flex; flex-direction: column; justify-content: center; }
.s-section .num {
  position: absolute; right: 90px; bottom: 20px;
  font: 900 620px/.8 var(--f-display); letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 2px rgba(127, 170, 255, .22);
  z-index: -1;
}
.s-section .h-xl { max-width: 1200px; margin-top: 30px; }
.s-section .lead { margin-top: 34px; }

/* Grids de tarjetas */
.cards { display: grid; gap: 28px; }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.card { padding: 38px 34px; }
.card .ic { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(33, 150, 243, .16); border: 1px solid rgba(127, 227, 255, .3); margin-bottom: 28px; }
.card .ic svg { width: 34px; height: 34px; stroke: var(--cyan); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font: 800 38px/1.1 var(--f-display); margin-bottom: 26px; }
.card .was { font: 400 21px/1.5 var(--f-body); color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(255, 91, 115, .6); margin-bottom: 18px; }
.card .now { font: 400 23px/1.5 var(--f-body); color: var(--ink-2); }
.card .now b { color: var(--white); font-weight: 600; }
.card .lbl { font: 600 13px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; display: block; }
.card .lbl.a { color: var(--ink-3); }
.card .lbl.b { color: var(--cyan); }

/* Evolución */
.evo { position: relative; margin-top: 200px; display: grid; grid-template-columns: repeat(4, 1fr); }
.evo .rail { position: absolute; left: 0; right: 0; top: 30px; height: 3px; background: rgba(255, 255, 255, .1); }
.evo .rail i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--royal), var(--latinad), var(--cyan)); box-shadow: 0 0 20px var(--latinad); }
.slide.active .evo .rail i { animation: fillRail 3.2s var(--ease) .8s forwards; }
@keyframes fillRail { to { width: 78%; } }
.evo .st { position: relative; padding-right: 40px; }
.evo .st .node { width: 62px; height: 62px; border-radius: 16px; background: var(--navy-800); border: 2px solid rgba(127, 170, 255, .4); display: grid; place-items: center; font: 800 22px var(--f-display); margin-bottom: 36px; }
.evo .st.now .node { background: var(--latinad); border-color: var(--cyan); box-shadow: 0 0 0 10px rgba(33, 150, 243, .18), 0 0 50px var(--latinad); }
.evo .st.next .node { border-style: dashed; color: var(--cyan); animation: pulseRing 2.4s infinite; }
.evo .st h4 { font: 800 40px/1.1 var(--f-display); margin-bottom: 16px; }
.evo .st p { font: 300 23px/1.5 var(--f-body); color: var(--ink-2); }
.evo .here { position: absolute; top: -70px; left: 70%; transform: translateX(-50%); font: 600 16px/1 var(--f-mono); letter-spacing: .14em; color: var(--cyan); text-transform: uppercase; white-space: nowrap; }
.evo .here::after { content: ''; display: block; width: 2px; height: 34px; background: var(--cyan); margin: 10px auto 0; }

/* Oportunidad vs riesgo */
.vs { display: grid; grid-template-columns: 1fr 140px 1fr; row-gap: 26px; margin-top: 70px; align-items: center; }
.vs .o, .vs .k { padding: 26px 34px; font: 700 36px/1.2 var(--f-display); border-radius: 18px; }
.vs .o { text-align: right; background: linear-gradient(270deg, rgba(33, 150, 243, .22), transparent); border-right: 3px solid var(--latinad); }
.vs .k { background: linear-gradient(90deg, rgba(255, 91, 115, .14), transparent); border-left: 3px solid var(--danger); }
.vs .o small, .vs .k small { display: block; font: 300 20px/1.4 var(--f-body); color: var(--ink-3); margin-top: 6px; }
.vs .mid { height: 2px; background: linear-gradient(90deg, var(--latinad), var(--danger)); position: relative; }
.vs .mid::after { content: '⇄'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -55%); font-size: 30px; color: var(--white); background: var(--navy-800); padding: 0 10px; }
.vs .hd { font: 600 16px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; }

/* QR */
.s-qr { display: grid; grid-template-columns: 1fr 560px; gap: 100px; align-items: center; }
.qr { width: 560px; height: 560px; padding: 36px; position: relative; }
.qr .box { width: 100%; height: 100%; border-radius: 16px; background: #fff; padding: 10px; display: grid; place-items: center; color: #0a1255; font: 600 22px/1.4 var(--f-mono); text-align: center; position: relative; overflow: hidden; }
.qr .box img { width: 100%; height: 100%; object-fit: contain; }
.qr .scan { opacity: .55; position: absolute; left: 36px; right: 36px; height: 4px; top: 36px; background: var(--cyan); box-shadow: 0 0 30px 6px rgba(127, 227, 255, .7); animation: scan 2.6s var(--ease-io) infinite alternate; border-radius: 2px; }
@keyframes scan { to { top: calc(100% - 40px); } }
.qr .corner { position: absolute; width: 60px; height: 60px; border: 5px solid var(--latinad); }
.qr .corner.tl { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 20px; }
.qr .corner.tr { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 20px; }
.qr .corner.bl { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 20px; }
.qr .corner.br { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 20px; }

/* Pipeline de campaña */
.pipe { position: relative; margin-top: 80px; height: 560px; }
.pipe svg.path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pipe .p-bg { fill: none; stroke: rgba(127, 170, 255, .18); stroke-width: 3; }
.pipe .p-fg { fill: none; stroke: url(#pipeGrad); stroke-width: 4; stroke-dasharray: 3300; stroke-dashoffset: 3300; filter: drop-shadow(0 0 8px #2196f3); }
.slide.active .pipe .p-fg { animation: draw 3.4s var(--ease-io) .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pipe .p-dot { fill: var(--cyan); filter: drop-shadow(0 0 10px var(--cyan)); opacity: 0; transition: fill .4s, opacity .6s; }
.pipe .p-dot.run { opacity: 1; }
.pipe .p-dot.learning { fill: #d6c8ff; filter: drop-shadow(0 0 14px #b69cff); }
.pipe .p-learn { fill: none; stroke: url(#learnGrad); stroke-width: 4; stroke-dasharray: 10 10; opacity: 0; filter: drop-shadow(0 0 8px #b69cff); }
.slide.active .pipe .p-learn { animation: fadeIn .8s ease 3.6s forwards, dash 1.2s linear infinite; }
.pipe .stp .n { transition: box-shadow .4s, transform .4s; }
.pipe .stp .n.hit { transform: scale(1.12); box-shadow: 0 0 0 10px rgba(127, 227, 255, .25), 0 0 50px rgba(127, 227, 255, .8); }
.pipe .stp .n.reborn { animation: reborn 1.4s var(--ease); }
@keyframes reborn { 0% { box-shadow: 0 0 0 0 rgba(182, 156, 255, .9); } 100% { box-shadow: 0 0 0 40px rgba(182, 156, 255, 0); } }
#briefLabel b { color: var(--cyan); font-family: var(--f-mono); font-size: 20px; margin-left: 6px; }
.learn {
  position: absolute; left: 70px; top: 208px; width: 340px; padding: 16px 20px; border-radius: 16px;
  border-color: rgba(182, 156, 255, .45); opacity: 0; translate: -20px 0; transition: opacity .6s, translate .6s var(--ease);
}
.learn.on { opacity: 1; translate: 0 0; }
.learn .lh { font: 600 14px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #cbbcff; display: flex; align-items: center; gap: 8px; }
.learn.busy .lic { display: inline-block; animation: spin 1.2s linear infinite; }
.learn .lt { font: 500 19px/1.35 var(--f-body); margin: 10px 0 8px; min-height: 52px; }
.learn .lt.ok { color: var(--ok); }
.learn .lm { font: 500 14px/1 var(--f-mono); color: var(--ink-3); letter-spacing: .06em; }
.learn .lm b { color: var(--cyan); font-weight: 600; }
.pipe .stp { position: absolute; width: 330px; margin-left: -165px; text-align: center; }
.pipe .stp .n {
  width: 88px; height: 88px; margin: 0 auto 18px; border-radius: 22px;
  display: grid; place-items: center; font: 800 30px var(--f-display);
  background: linear-gradient(145deg, #2f63ff, #1a2fb0); border: 1px solid rgba(160, 200, 255, .5);
  box-shadow: 0 0 0 8px rgba(33, 150, 243, .12), 0 20px 40px -10px rgba(0, 0, 40, .7);
}
.pipe .stp .n.ia::after { content: 'IA'; position: absolute; margin: -70px 0 0 76px; font: 700 12px/1 var(--f-mono); background: var(--cyan); color: var(--navy-900); padding: 5px 7px; border-radius: 6px; }
.pipe .stp p { font: 600 24px/1.3 var(--f-display); }

/* Caso real */
.case-logos { display: flex; align-items: center; justify-content: center; gap: 0; margin-top: 80px; }
.case-card { width: 420px; height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px; }
.case-card img { width: auto; max-width: 320px; object-fit: contain; filter: drop-shadow(0 0 30px rgba(127, 227, 255, .35)); }
.case-card span { font: 600 16px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sky); text-align: center; }
.case-link { width: 130px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.case-link i { flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); background-size: 200% 100%; animation: linkFlow 1.6s linear infinite; }
.case-link b { font: 300 34px/1 var(--f-display); color: var(--ink-2); }
@keyframes linkFlow { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.case-steps { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; margin-top: 90px; }
.case-steps .step {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 16px; min-height: 120px;
  border-radius: 14px; border: 1px solid var(--line); background: rgba(20, 34, 120, .3);
  font: 600 19px/1.25 var(--f-display); color: var(--ink-3); transition: all .5s var(--ease);
}
.case-steps .step .ic { font: 700 20px/1 var(--f-mono); color: var(--ink-3); }
.case-steps .step.on { color: var(--white); border-color: rgba(127, 227, 255, .5); background: rgba(33, 150, 243, .18); }
.case-steps .step.done { background: linear-gradient(145deg, rgba(47, 99, 255, .55), rgba(31, 47, 224, .35)); box-shadow: 0 0 30px -8px var(--latinad); }
.case-steps .step.done .ic { color: var(--ok); }

/* Planificación: estrategia → propuestas → mapa */
.pf-sub { font: 300 25px/1.4 var(--f-body); color: var(--ink-2); margin-top: 14px; }
.pf-stage { position: absolute; left: 140px; right: 140px; top: 330px; bottom: 76px; }
.pf-strat { position: absolute; left: 50%; top: 40px; width: 1180px; translate: -50% 0; padding: 40px 56px; text-align: center; border-radius: 24px; border: 1.5px solid rgba(90, 140, 255, .55); background: radial-gradient(600px 300px at 50% 0%, rgba(33, 90, 243, .3), transparent 70%), #05070f; box-shadow: 0 0 60px -10px rgba(47, 99, 255, .7), inset 0 0 40px rgba(47, 99, 255, .15); opacity: 0; scale: .94; filter: blur(10px); transition: all .8s var(--ease); }
#planFlow.s1 .pf-strat { opacity: 1; scale: 1; filter: none; }
#planFlow.s2 .pf-strat { opacity: 0; scale: .9; translate: -50% -60px; filter: blur(8px); }
.pf-iso { position: relative; width: 70px; height: 70px; margin: 0 auto 16px; }
.pf-iso svg { width: 70px; height: 70px; fill: #4c8dff; filter: drop-shadow(0 0 16px #2f8dff); }
.pf-iso i { position: absolute; font-style: normal; color: #7fc4ff; animation: pulse 1.4s infinite; }
.pf-iso i:nth-of-type(1) { right: -26px; top: -6px; font-size: 22px; }
.pf-iso i:nth-of-type(2) { right: -12px; top: 30px; font-size: 14px; animation-delay: .5s; }
.pf-strat h5 { font: 600 30px/1 var(--f-body); margin-bottom: 20px; }
.pf-strat p { font: 400 24px/1.6 var(--f-body); color: #5fa8ff; }
.pf-strat .bf-words .wd { opacity: 0; }
#planFlow.s1 .pf-strat .bf-words .wd { animation: fadeIn .25s ease both; animation-delay: calc(var(--i) * 12ms + 300ms); }
.pf-strat.lit .bf-words mark { background: rgba(33, 150, 243, .22); box-shadow: 0 0 0 1px rgba(127, 227, 255, .25); color: #fff; }
.pf-strat.lit .bf-words mark::before { opacity: 1; }
.pf-strip { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 18px; font: 500 20px/1 var(--f-body); color: var(--ink-2); opacity: 0; translate: 0 -10px; transition: all .6s var(--ease); }
#planFlow.s2 .pf-strip { opacity: 1; translate: 0 0; transition-delay: .3s; }
#planFlow.s4 .pf-strip { opacity: 0; }

.pf-cards { position: absolute; left: 0; right: 0; top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.pf-card { background: #03050c; border: 2px solid #2f6dff; box-shadow: 0 0 24px -4px rgba(47, 109, 255, .8), inset 0 0 20px rgba(47, 109, 255, .2); padding: 18px 20px 20px; text-align: center; opacity: 0; translate: 0 40px; transition: opacity .6s var(--ease), translate .6s var(--ease), filter .5s, scale .5s, box-shadow .5s; }
#planFlow.s2 .pf-card { opacity: 1; translate: 0 0; transition-delay: calc(var(--k) * 140ms + 300ms), calc(var(--k) * 140ms + 300ms), 0s, 0s, 0s; }
#planFlow.s3 .pf-card:not(#pickCard) { opacity: .28; filter: grayscale(.6) blur(1px); transition-delay: 0s; }
#planFlow.s3 #pickCard { scale: 1.04; box-shadow: 0 0 0 3px var(--cyan), 0 0 60px rgba(127, 227, 255, .6); }
#planFlow.s4 .pf-card { opacity: 0 !important; translate: -80px 0; transition-delay: 0s !important; }
.pf-ct { font: 500 24px/1 var(--f-body); padding-bottom: 12px; border-bottom: 1px solid rgba(90, 140, 255, .5); }
.pf-ct span { color: #cfe0ff; margin-left: 6px; }
.pf-cs { font: 500 17px/1.3 var(--f-body); color: #4c9dff; margin: 12px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-card img { width: 100%; height: 118px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(90, 140, 255, .5); }
.pf-ce { margin-top: 12px; padding: 14px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); min-height: 150px; }
.pf-ce b { display: block; font: 500 18px/1 var(--f-body); margin-bottom: 10px; }
.pf-ce p { font: 400 15.5px/1.45 var(--f-body); color: #4c9dff; }
.pf-ce small { display: block; margin-top: 10px; font: 400 14px/1.3 var(--f-body); color: #dfe7ff; }
.pf-cm { display: flex; justify-content: space-between; margin: 14px 4px; font: 400 13.5px/1.2 var(--f-body); }
.pf-cm span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pf-cm i { font-style: normal; color: #4c9dff; font-size: 16px; }
.pf-btn { display: inline-block; padding: 10px 22px; border-radius: 6px; background: #4c8dff; font: 500 17px/1 var(--f-body); transition: transform .15s, background .3s; }
.pf-btn.click { transform: scale(.9); background: var(--cyan); color: var(--navy-900); }

.pf-map { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; border: 1px solid rgba(90, 140, 255, .35); background: #0f1320; box-shadow: 0 40px 100px -30px #000, 0 0 60px -20px rgba(47, 99, 255, .6); clip-path: inset(0 0 0 100%); transition: clip-path 1.3s var(--ease-io); }
#planFlow.s4 .pf-map { clip-path: inset(0 0 0 0); }
.pf-planner { font: 700 11px/1 var(--f-mono); letter-spacing: .2em; color: var(--ink-2); font-style: normal; margin-left: -8px; }
.pf-agency { margin-left: auto; }
.pf-svg { position: absolute; left: 0; right: 0; top: 48px; width: 100%; height: calc(100% - 48px); }
.pf-roads path { fill: none; stroke-linecap: round; stroke-dasharray: 2400; stroke-dashoffset: 2400; }
.pf-roads.minor path { stroke: #262c3c; stroke-width: 3; }
.pf-roads.major path { stroke: #39425a; stroke-width: 9; }
#planFlow.s4 .pf-roads path { animation: draw 1.8s var(--ease-io) .5s forwards; }
#planFlow.s4 .pf-roads.minor path { animation-delay: .9s; }
.pf-labels text { font: 600 15px var(--f-display); letter-spacing: .08em; fill: #7c859c; opacity: 0; transition: opacity .8s 1.6s; }
#planFlow.s4 .pf-labels text { opacity: 1; }
.pf-airport { fill: rgba(47, 109, 255, 0); stroke: #4c8dff; stroke-width: 3; stroke-dasharray: 1500; stroke-dashoffset: 1500; transition: fill 1s; }
#planFlow.s5 .pf-airport { animation: draw 1.4s var(--ease-io) forwards; fill: rgba(47, 109, 255, .38); transition-delay: 1s; }
.pf-airlabel text { font: 600 17px var(--f-body); fill: #fff; text-anchor: middle; paint-order: stroke; stroke: #0f1320; stroke-width: 6px; stroke-linejoin: round; opacity: 0; transition: opacity .6s 1.4s; }
#planFlow.s5 .pf-airlabel text { opacity: 1; }
.pf-pin { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; transform: translateY(-40px) scale(.6); }
#planFlow.s6 .pf-pin { animation: pinDrop .55s cubic-bezier(.3, 1.6, .5, 1) forwards; animation-delay: var(--dl); }
@keyframes pinDrop { to { opacity: 1; transform: none; } }
.pf-pin.sel { fill: #4c9dff; filter: drop-shadow(0 0 6px rgba(127, 227, 255, .9)); }
.pf-pin.off { fill: #3a4a7a; }
.pf-scan { position: absolute; inset: 48px 0 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(127, 227, 255, .07) 0 1px, transparent 1px 6px); opacity: 0; }
.pf-scan::after { content: ''; position: absolute; top: 0; bottom: 0; width: 3px; left: 100%; background: var(--cyan); box-shadow: 0 0 30px 10px rgba(127, 227, 255, .5); }
#planFlow.s4 .pf-scan { animation: scanFade 2.4s ease forwards; }
#planFlow.s4 .pf-scan::after { animation: sweep 1.3s var(--ease-io) forwards; }
@keyframes scanFade { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sweep { from { left: 100%; } to { left: 0%; opacity: 0; } }
.pf-search { position: absolute; left: 340px; top: 66px; display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-radius: 10px; background: #141826; border: 1px solid #2a3144; font: 400 16px/1 var(--f-body); color: #dfe7ff; opacity: 0; transition: opacity .6s 1.2s; }
.pf-search .tg { display: flex; margin-left: 30px; border-radius: 8px; overflow: hidden; font-size: 15px; }
.pf-search .tg b { background: #4c8dff; padding: 6px 12px; font-weight: 500; }
.pf-search .tg i { font-style: normal; padding: 6px 12px; background: #1e2433; }
.pf-side { position: absolute; left: 18px; top: 66px; bottom: 18px; width: 300px; padding: 18px; border-radius: 16px; background: rgba(20, 24, 38, .96); border: 1px solid #2a3144; opacity: 0; translate: -30px 0; transition: all .7s var(--ease) 1.2s; }
#planFlow.s4 .pf-search, #planFlow.s4 .pf-side { opacity: 1; translate: 0 0; }
.pf-side small { font: 600 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.pf-side > b { display: block; font: 600 20px/1.25 var(--f-body); margin: 10px 0 14px; }
.pf-count { font: 500 26px/1 var(--f-body); color: #4c9dff; padding: 12px 0 16px; border-bottom: 1px solid #2a3144; margin-bottom: 14px; }
.pf-item { display: flex; gap: 12px; padding: 10px; border-radius: 12px; background: #1b2031; margin-bottom: 10px; }
.pf-item img { width: 90px; height: 60px; object-fit: cover; border-radius: 8px; }
.pf-item strong { display: block; font: 500 14px/1.3 var(--f-body); }
.pf-item em { font: 400 13px/1.3 var(--f-body); color: #4c9dff; font-style: normal; }
.pf-panels { position: absolute; right: 22px; top: 70px; width: 330px; display: flex; flex-direction: column; gap: 14px; opacity: 0; translate: 30px 0; transition: all .7s var(--ease); }
#planFlow.s7 .pf-panels { opacity: 1; translate: 0 0; }
.pf-sel, .pf-aud { background: #3d7cf0; border-radius: 12px; padding: 16px 20px; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .6); }
.pf-sel small { display: block; font: 500 18px/1 var(--f-body); margin-bottom: 10px; }
.pf-sel b { font: 600 28px/1 var(--f-body); }
.pf-aud h6 { font: 500 26px/1 var(--f-body); margin-bottom: 14px; }
.pf-aud p { font: 500 18px/1.8 var(--f-body); }
.pf-aud i { font-style: normal; font-weight: 400; opacity: .85; }

/* Análisis inteligente en tiempo real */
.an-body { grid-template-columns: 1fr 590px; }
.an-left { padding: 20px 26px; display: flex; flex-direction: column; gap: 16px; }
.an-kpis { display: grid; grid-template-columns: .8fr 1fr 1.2fr; gap: 12px; }
.an-kpis > div { padding: 14px 18px; border-radius: 14px; background: rgba(47, 99, 255, .12); border: 1px solid rgba(127, 170, 255, .22); }
.an-kpis small { display: block; font: 600 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
.an-kpis b { display: block; font: 700 30px/1.1 var(--f-display); margin-top: 8px; }
.an-prog { height: 6px; border-radius: 4px; background: #1b2136; margin-top: 8px; overflow: hidden; }
.an-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2f8dff, var(--ok)); transition: width .4s; }
.an-chart { position: relative; flex: 1; display: grid; grid-template-columns: 56px 1fr; grid-template-rows: 30px 1fr 26px; }
.an-leg { grid-column: 2; display: flex; align-items: center; gap: 8px; font: 400 14px/1 var(--f-body); color: var(--ink-2); }
.an-leg .c { width: 26px; height: 12px; border-radius: 3px; background: #4c9dff; }
.an-leg .p { width: 26px; height: 0; border-top: 2px dashed rgba(255, 255, 255, .6); margin-left: 16px; }
.an-y { grid-row: 2; display: flex; flex-direction: column; justify-content: space-between; font: 400 12px/1 var(--f-mono); color: var(--ink-3); padding-right: 8px; text-align: right; }
.an-plot { grid-row: 2; grid-column: 2; position: relative; border-left: 1px solid #2a3144; border-bottom: 1px solid #2a3144; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 100% 33.33%; }
.an-proj { position: absolute; left: 0; right: 0; bottom: calc(3650 / 9000 * 100%); border-top: 2px dashed rgba(255, 255, 255, .5); }
.an-bars { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(17, 1fr); gap: 10px; padding: 0 8px; align-items: end; }
.an-b { position: relative; height: 100%; display: flex; align-items: flex-end; }
.an-b i { display: block; width: 100%; height: 0; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #6fb4ff, #2f63ff); transition: height .5s var(--ease); box-shadow: 0 0 16px -4px rgba(76, 157, 255, .7); }
.an-b.after i { background: linear-gradient(180deg, var(--cyan), #2f8dff); }
.an-b small { position: absolute; left: 0; right: 0; bottom: -22px; text-align: center; font: 400 12px/1 var(--f-mono); color: var(--ink-3); }
.an-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); left: 0; opacity: 0; transition: left .4s linear, opacity .4s; }
.an-mark { position: absolute; top: -6px; bottom: 0; width: 0; border-left: 2px dashed #ffb547; left: calc(8 / 17 * 100%); opacity: 0; transition: opacity .5s; }
.an-mark em { position: absolute; left: 6px; top: 0; white-space: nowrap; font: 600 12px/1 var(--f-mono); font-style: normal; padding: 5px 8px; border-radius: 6px; background: #ffb547; color: #2a1800; }
#anFlow.mid .an-mark { opacity: 1; }
.an-x { grid-row: 3; grid-column: 2; text-align: right; font: 500 12px/1 var(--f-mono); color: var(--ink-3); padding-top: 12px; letter-spacing: .1em; text-transform: uppercase; }

.an-side { padding: 22px 26px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.an-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid #262c40; }
.an-head .sp { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #2f63ff, #6b4dff); font-size: 22px; box-shadow: 0 0 24px rgba(107, 77, 255, .6); }
.an-head b { display: block; font: 600 21px/1.2 var(--f-body); }
.an-head small { font: 400 14px/1.3 var(--f-body); color: var(--ink-2); }
.an-feed { display: flex; flex-direction: column; gap: 10px; transition: opacity .5s; }
.an-ev { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid #2a3144; font: 400 15px/1.4 var(--f-body); color: var(--ink-2); opacity: 0; translate: 16px 0; transition: all .45s var(--ease); }
.an-ev.in { opacity: 1; translate: 0 0; }
.an-ev b { color: #fff; font-weight: 600; }
.an-ev .d { font: 600 12px/1 var(--f-mono); color: var(--sky); letter-spacing: .1em; display: block; margin-bottom: 6px; }
.an-ev.warn { border-color: rgba(255, 181, 71, .5); background: rgba(255, 181, 71, .08); }
.an-ev.warn .d { color: #ffcf85; }
.an-ev.good { border-color: rgba(64, 224, 160, .45); background: rgba(64, 224, 160, .07); }
.an-ev.good .d { color: var(--ok); }
.an-ev .rec { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(47, 99, 255, .18); border: 1px solid rgba(127, 170, 255, .3); color: #dfe7ff; font-size: 14.5px; }
.an-ev .rec u { text-decoration: none; color: #ff9aaa; } .an-ev .rec s { text-decoration: none; color: var(--cyan); }
.an-ev .apl { display: inline-block; margin-top: 10px; font: 600 14px/1 var(--f-body); padding: 8px 12px; border-radius: 8px; background: #3d7cf0; transition: all .3s; }
.an-ev .apl.ok { background: rgba(64, 224, 160, .15); color: var(--ok); }
#anFlow.fin .an-feed { opacity: 0; }
.an-load { position: absolute; left: 26px; right: 26px; top: 110px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0; transition: opacity .4s; pointer-events: none; }
.an-load .spin { font-size: 34px; color: var(--sky); }
.an-load b { font: 600 20px/1.2 var(--f-body); }
.an-load small { font: 400 15px/1.4 var(--f-body); color: var(--ink-2); }
#anFlow.load .an-load { opacity: 1; }
.an-final { position: absolute; left: 26px; right: 26px; top: 96px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; opacity: 0; translate: 0 16px; transition: all .6s var(--ease); }
#anFlow.done .an-final { opacity: 1; translate: 0 0; }
.an-score { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-radius: 14px; background: rgba(64, 224, 160, .1); border: 1px solid rgba(64, 224, 160, .45); }
.an-score > b { font: 800 44px/1 var(--f-display); color: var(--ok); }
.an-score strong { display: block; font: 600 19px/1.2 var(--f-body); }
.an-score small { font: 400 13.5px/1.3 var(--f-body); color: var(--ink-2); }
.an-final p { font: 400 15.5px/1.5 var(--f-body); color: var(--ink-2); }
.an-final mark { background: rgba(33, 150, 243, .2); color: #9fd0ff; border-radius: 5px; padding: 0 3px; font-weight: 500; }
.an-final h6 { font: 600 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-top: 2px; }
.an-final ol { list-style: none; counter-reset: rc; display: flex; flex-direction: column; gap: 7px; }
.an-final li { counter-increment: rc; display: flex; gap: 10px; font: 400 14.5px/1.35 var(--f-body); opacity: 0; translate: 12px 0; transition: all .45s var(--ease); }
.an-final li::before { content: counter(rc); flex: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font: 700 12px/1 var(--f-mono); background: #3d7cf0; }
#anFlow.done .an-final li { opacity: 1; translate: 0 0; }
#anFlow.done .an-final li:nth-child(1) { transition-delay: 1s; } #anFlow.done .an-final li:nth-child(2) { transition-delay: 1.4s; }
#anFlow.done .an-final li:nth-child(3) { transition-delay: 1.8s; } #anFlow.done .an-final li:nth-child(4) { transition-delay: 2.2s; }

/* Categorización y aprobación: escaneo por fotogramas */
.cz-3d { position: absolute; left: 0; top: 0; width: 1080px; height: 674px; perspective: 1800px; }
.cz-plane { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(16deg) rotateX(9deg) rotateZ(-4deg); transition: transform 1.4s var(--ease-io); }
#catFlow.c2 .cz-plane { transform: rotateY(12deg) rotateX(14deg) rotateZ(-5deg); }
.cz-card { position: absolute; left: 40px; top: 90px; width: 1000px; height: 429px; border-radius: 12px; overflow: hidden; box-shadow: 0 50px 120px -30px #000, 0 0 70px -10px rgba(47, 99, 255, .7); opacity: 0; scale: .9; transition: opacity .7s, scale .9s var(--ease), filter .6s; }
.cz-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cz-pause { position: absolute; left: 16px; bottom: 16px; font: 600 15px/1 var(--f-mono); padding: 8px 12px; border-radius: 8px; background: rgba(0, 0, 0, .7); color: #fff; }
#catFlow.c1 .cz-card { opacity: 1; scale: 1; }
#catFlow.c2 .cz-card { opacity: 0; scale: 1.04; filter: blur(8px); }
.cz-grid { position: absolute; inset: 0; }
.cz-fr { position: absolute; width: 196px; height: 84px; border-radius: 6px; overflow: visible; opacity: 0;
  left: calc(40px + (var(--i) % 5) * 12px + 400px); top: calc(90px + 170px);
  transition: left .9s var(--ease-io), top .9s var(--ease-io), opacity .5s; transition-delay: calc(var(--i) * 55ms); }
.cz-fr img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 6px; border: 2px solid rgba(160, 190, 255, .35); box-shadow: 0 16px 30px -10px #000; transition: border-color .3s, box-shadow .3s; }
#catFlow.c2 .cz-fr { opacity: 1; }
#catFlow.c2 .cz-fr:nth-child(-n+5) { top: 120px; }
#catFlow.c2 .cz-fr:nth-child(n+6) { top: 330px; }
#catFlow.c2 .cz-fr:nth-child(5n+1) { left: 0px; } #catFlow.c2 .cz-fr:nth-child(5n+2) { left: 216px; } #catFlow.c2 .cz-fr:nth-child(5n+3) { left: 432px; }
#catFlow.c2 .cz-fr:nth-child(5n+4) { left: 648px; } #catFlow.c2 .cz-fr:nth-child(5n+5) { left: 864px; }
.cz-fr small { position: absolute; left: 0; top: calc(100% + 8px); font: 500 12px/1 var(--f-mono); color: var(--ink-3); }
.cz-fr .scanl { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--cyan); box-shadow: 0 0 14px 4px rgba(127, 227, 255, .7); opacity: 0; border-radius: 2px; }
.cz-fr.scan img { border-color: var(--cyan); box-shadow: 0 0 24px rgba(127, 227, 255, .6); }
.cz-fr.scan .scanl { opacity: 1; animation: czScan .5s linear 1; }
@keyframes czScan { from { top: 0; } to { top: calc(100% - 3px); } }
.cz-fr .tg { position: absolute; left: 0; bottom: calc(100% + 6px); white-space: nowrap; font: 600 11.5px/1 var(--f-mono); font-style: normal; padding: 5px 7px; border-radius: 5px; background: var(--cyan); color: var(--navy-900); opacity: 0; translate: 0 6px; transition: all .35s var(--ease); }
.cz-fr .ck { position: absolute; right: -8px; top: -8px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--f-body); background: var(--ok); color: #03220f; box-shadow: 0 0 12px rgba(64, 224, 160, .7); opacity: 0; scale: .5; transition: all .35s var(--ease); }
.cz-fr.done .tg { opacity: 1; translate: 0 0; }
.cz-fr.done .ck { opacity: 1; scale: 1; }
.cz-fr.done img { border-color: rgba(64, 224, 160, .6); }

.cz-panel { position: absolute; right: 0; top: 0; width: 500px; bottom: 0; padding: 24px 28px; border-radius: 22px; background: rgba(8, 12, 40, .82); border: 1px solid var(--line); backdrop-filter: blur(12px); box-shadow: 0 40px 100px -30px #000; opacity: 0; translate: 30px 0; transition: all .7s var(--ease); overflow: hidden; }
#catFlow.c2 .cz-panel { opacity: 1; translate: 0 0; }
.cz-h { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid #262c40; }
.cz-h .pf-iso { width: 44px; height: 44px; margin: 0; }
.cz-h .pf-iso svg { width: 44px; height: 44px; }
.cz-h b { display: block; font: 600 21px/1.2 var(--f-body); }
.cz-h small { font: 400 14px/1.3 var(--f-mono); color: var(--ink-3); }
.cz-prog { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; font: 500 15px/1 var(--f-body); color: var(--ink-2); }
.cz-prog b { font: 700 24px/1 var(--f-display); color: #fff; }
.cz-bar { height: 6px; border-radius: 4px; background: #1b2136; margin: 10px 0 14px; overflow: hidden; }
.cz-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2f8dff, var(--cyan)); transition: width .45s; }
.cz-rows { display: flex; flex-direction: column; gap: 10px; }
.cz-row { opacity: 0; translate: 16px 0; transition: all .45s var(--ease); }
.cz-row.in { opacity: 1; translate: 0 0; }
.cz-row small { display: block; font: 600 11.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sky); margin-bottom: 6px; }
.cz-row div { display: flex; flex-wrap: wrap; gap: 6px; }
.cz-row span { font: 500 14.5px/1 var(--f-body); padding: 7px 10px; border-radius: 8px; background: rgba(47, 99, 255, .18); border: 1px solid rgba(127, 170, 255, .3); }
.cz-row span.ok { background: rgba(64, 224, 160, .12); border-color: rgba(64, 224, 160, .4); color: var(--ok); }
.cz-res { position: absolute; left: 28px; right: 28px; bottom: 24px; padding: 18px 20px; border-radius: 16px; background: linear-gradient(145deg, rgba(47, 99, 255, .45), rgba(107, 77, 255, .3)); border: 1px solid rgba(160, 200, 255, .5); opacity: 0; translate: 0 20px; transition: all .6s var(--ease); }
#catFlow.c3 .cz-res { opacity: 1; translate: 0 0; }
.cz-res > small { font: 600 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.cz-cat { display: flex; align-items: center; gap: 12px; margin: 10px 0 14px; }
.cz-cat .ic { font-size: 30px; }
.cz-cat b { font: 700 28px/1.1 var(--f-display); }
.cz-badges { display: flex; gap: 10px; }
.cz-badges span { font: 600 17px/1 var(--f-body); padding: 10px 16px; border-radius: 10px; background: rgba(64, 224, 160, .16); border: 1px solid rgba(64, 224, 160, .5); color: var(--ok); opacity: 0; scale: .7; transition: all .4s var(--ease); }
#catFlow.c4 .cz-badges span { opacity: 1; scale: 1; }
#catFlow.c4 .cz-badges span:nth-child(2) { transition-delay: .25s; }
.cz-big { position: absolute; right: 44px; bottom: 44px; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; font: 800 46px/1 var(--f-display); color: #03220f; background: var(--ok); box-shadow: 0 0 0 10px rgba(64, 224, 160, .2), 0 0 50px rgba(64, 224, 160, .8); opacity: 0; scale: 0; transition: all .6s cubic-bezier(.3, 1.6, .5, 1); }
#catFlow.c5 .cz-big { opacity: 1; scale: 1; }

/* Creatividades: una pieza → todas las resoluciones */
.ad-card { position: absolute; transition: left 1.1s var(--ease-io), top 1.1s var(--ease-io), width 1.1s var(--ease-io), height 1.1s var(--ease-io), opacity .6s, filter .9s; }
.ad-media { position: absolute; inset: 0; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px -25px #000, 0 0 0 1px rgba(160, 190, 255, .3), 0 0 50px -12px rgba(47, 99, 255, .6); }
.ad-media video, .ad-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad-orig { left: 270px; top: 20px; width: 1100px; height: 471px; opacity: 0; }
#adaptFlow.a1 .ad-orig { opacity: 1; }
#adaptFlow.a3 .ad-orig { left: 0; top: 165px; width: 560px; height: 240px; }
.ad-spec { position: absolute; left: 0; top: calc(100% + 12px); white-space: nowrap; font: 500 14px/1 var(--f-mono); color: var(--ink-2); letter-spacing: .04em; opacity: 0; transition: opacity .5s .6s; }
.ad-spec b { color: var(--navy-900); background: var(--cyan); padding: 4px 7px; border-radius: 5px; margin-right: 8px; font-weight: 700; }
.ad-spec i { font-style: normal; color: #ffcf85; }
.ad-orig .ad-spec { font-size: 16px; }
#adaptFlow.a1 .ad-orig .ad-spec, .ad-out.on .ad-spec { opacity: 1; }
.ad-det { position: absolute; border: 2px solid var(--cyan); border-radius: 6px; box-shadow: 0 0 16px rgba(127, 227, 255, .6); opacity: 0; scale: 1.1; transition: opacity .4s, scale .4s var(--ease); }
.ad-det em { position: absolute; left: -2px; top: -26px; font: 600 12px/1 var(--f-mono); font-style: normal; padding: 6px 8px; border-radius: 5px 5px 5px 0; background: var(--cyan); color: var(--navy-900); white-space: nowrap; }
.ad-det.on { opacity: 1; scale: 1; }
.ad-scan { position: absolute; top: 0; bottom: 0; width: 16%; left: -18%; background: linear-gradient(90deg, transparent, rgba(127, 227, 255, .5), transparent); }
#adaptFlow.a2 .ad-scan { animation: fxSweep 1.4s var(--ease-io) 1; }
.ad-out { opacity: 0; filter: blur(14px) saturate(1.4); }
.ad-out.on { opacity: 1; filter: none; }
.ad-out .ghost { transition: opacity 1s .35s, transform 1.1s var(--ease-io); }
.ad-out .final { opacity: 0; transform: scale(1.12); transition: opacity 1s .35s, transform 1.3s var(--ease); }
.ad-out.on .ghost { opacity: 0; transform: scale(1.3); }
.ad-out.on .final { opacity: 1; transform: none; }
.ad-sum { position: absolute; left: 0; right: 0; top: 520px; display: flex; align-items: center; gap: 14px; justify-content: center; padding: 16px; border-radius: 14px; background: rgba(10, 18, 70, .6); border: 1px solid var(--line); font: 500 20px/1.3 var(--f-body); opacity: 0; translate: 0 14px; transition: all .6s var(--ease); }
#adaptFlow.a4 .ad-sum { opacity: 1; translate: 0 0; }

/* Detección de fallas y autorecuperación (video real HP) */
#failFlow { padding: 0; }
.fx-cam { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.fx-cam video { width: 100%; height: 100%; object-fit: cover; opacity: .78; filter: saturate(.85) contrast(1.05) blur(1px); transform: scale(1.2); transform-origin: 56% 42%; }
.fx-cam::after { content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 8, 40, .95) 0%, rgba(4, 8, 40, .45) 12%, rgba(4, 8, 40, 0) 26%, rgba(4, 8, 40, 0) 78%, rgba(4, 8, 40, .92) 96%),
    linear-gradient(90deg, rgba(4, 8, 40, .95) 0%, rgba(4, 8, 40, .75) 30%, rgba(4, 8, 40, 0) 55%, rgba(4, 8, 40, .25) 100%),
    radial-gradient(1400px 800px at 70% 50%, transparent 55%, rgba(4, 8, 40, .5) 100%);
}
.fx-left { position: absolute; left: 140px; top: 150px; width: 720px; z-index: 2; }
.fx-left .h-l { font-size: 70px; }
.fx-log { margin-top: 28px; display: flex; flex-direction: column; gap: 8px; }
.fx-it { display: flex; gap: 14px; align-items: center; padding: 9px 16px; border-radius: 14px; background: rgba(10, 18, 70, .7); border: 1px solid rgba(255, 91, 115, .45); backdrop-filter: blur(10px); opacity: 0; translate: -30px 0; transition: all .5s var(--ease); }
.fx-it.in { opacity: 1; translate: 0 0; }
.fx-it .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; background: rgba(255, 91, 115, .15); color: #ff8a9c; flex: none; transition: all .4s; }
.fx-it b { display: block; font: 600 17px/1.2 var(--f-body); }
.fx-it small { font: 400 13.5px/1.25 var(--f-body); color: var(--ink-2); }
.fx-it .t { margin-left: auto; font: 600 13px/1.2 var(--f-mono); color: #ff8a9c; text-align: right; white-space: nowrap; }
.fx-it.fixing { border-color: rgba(255, 181, 71, .5); }
.fx-it.fixing .ic { background: rgba(255, 181, 71, .15); color: #ffcf85; }
.fx-it.fixing .t { color: #ffcf85; }
.fx-it.done { border-color: rgba(64, 224, 160, .45); }
.fx-it.done .ic { background: rgba(64, 224, 160, .15); color: var(--ok); }
.fx-it.done .t { color: var(--ok); }
.fx-sum { padding: 12px 18px; border-radius: 12px; font: 500 16px/1.3 var(--f-body); color: var(--ok); border: 1px solid rgba(64, 224, 160, .4); background: rgba(64, 224, 160, .1); opacity: 0; transition: opacity .6s; }
.fx-sum.in { opacity: 1; }

.fx-right { position: absolute; left: 930px; right: 110px; top: 235px; z-index: 2; }
.fx-hud { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.fx-live { font: 600 14px/1 var(--f-mono); letter-spacing: .12em; color: #ff8a9c; }
.fx-badge { font: 600 15px/1 var(--f-mono); letter-spacing: .08em; padding: 10px 14px; border-radius: 9px; transition: all .35s; }
.fx-badge.ok { background: var(--ok); color: #03220f; }
.fx-badge.err { background: var(--danger); color: #fff; animation: pulse 1s infinite; }
.fx-badge.fix { background: #ffb547; color: #2a1800; }
.fx-screen { position: relative; aspect-ratio: 2912 / 1248; border: 12px solid #10142b; border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 50px 120px -30px #000, 0 0 90px -10px rgba(47, 99, 255, .55), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.fx-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fx-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(90deg, rgba(0, 0, 0, .35) 1px, transparent 1px), linear-gradient(rgba(0, 0, 0, .35) 1px, transparent 1px); background-size: calc(100% / 8) calc(100% / 3); }
.fx-black { position: absolute; inset: 0; background: #000; display: grid; place-items: center; opacity: 0; transition: opacity .5s; }
.fx-black span { font: 600 20px/1 var(--f-mono); letter-spacing: .3em; color: #444; }
#failFlow.f-black .fx-black { opacity: 1; animation: flick .6s steps(1) 1; }
@keyframes flick { 0% { opacity: 1; } 20% { opacity: .2; } 40% { opacity: 1; } 60% { opacity: .4; } 80% { opacity: 1; } }
.fx-mod i { position: absolute; top: 33.34%; height: 33.33%; width: 12.5%; background: #000; opacity: 0; transition: opacity .5s; }
.fx-mod i:nth-child(1) { left: 50%; }
.fx-mod i:nth-child(2) { left: 62.5%; }
#failFlow.f-mod .fx-mod i { opacity: 1; animation: flick .6s steps(1) 1; }
.fx-pix { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .8s; }
.fx-pix span { position: absolute; width: 6px; height: 6px; }
#failFlow.f-pix .fx-pix { opacity: 1; }
.fx-sys { position: absolute; left: 3%; top: 8%; width: 40%; display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; background: rgba(6, 10, 40, .88); border: 1px solid rgba(255, 91, 115, .5); backdrop-filter: blur(8px); box-shadow: 0 20px 50px -10px #000; opacity: 0; translate: 0 -10px; transition: opacity .45s, translate .45s var(--ease), border-color .4s; }
.fx-sys.on { opacity: 1; translate: 0 0; }
.fx-sys.fix { border-color: rgba(255, 181, 71, .6); }
.fx-sys.ok { border-color: rgba(64, 224, 160, .55); }
.fx-sys .g { position: relative; width: 78px; height: 78px; flex: none; }
.fx-sys svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.fx-sys circle { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 5; }
.fx-sys circle.fg { stroke: var(--danger); stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 113.1; transition: stroke-dashoffset 1.2s var(--ease-io), stroke .4s; }
.fx-sys.fix circle.fg { stroke: #ffb547; }
.fx-sys.ok circle.fg { stroke: var(--ok); }
.fx-sys .g b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 19px/1 var(--f-display); }
.fx-sys small { display: block; font: 600 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
.fx-sys strong { display: block; font: 600 20px/1.2 var(--f-body); margin: 6px 0 3px; }
.fx-sys em { font: 400 14px/1.3 var(--f-body); font-style: normal; color: #ffb3bf; }
.fx-sys.ok em { color: var(--ok); }
#failFlow.f-ram .fx-screen video { filter: saturate(.7) brightness(.85); animation: lag .9s steps(2) infinite; }
@keyframes lag { 50% { transform: translateX(3px); filter: saturate(.6) brightness(.7) blur(1px); } }
#failFlow.f-disk .fx-screen video { filter: grayscale(.5) brightness(.75); }
.fx-box { position: absolute; border: 2px solid var(--danger); border-radius: 6px; box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0), 0 0 20px rgba(255, 91, 115, .7); opacity: 0; transition: all .45s var(--ease); pointer-events: none; }
.fx-box.on { opacity: 1; }
.fx-box.fix { border-color: #ffb547; box-shadow: 0 0 20px rgba(255, 181, 71, .7); }
.fx-box em { position: absolute; left: -2px; top: -30px; font: 600 13px/1 var(--f-mono); font-style: normal; padding: 7px 9px; border-radius: 6px 6px 6px 0; background: var(--danger); color: #fff; white-space: nowrap; transition: background .3s; }
.fx-box.fix em { background: #ffb547; color: #2a1800; }
.fx-sweep { position: absolute; top: 0; bottom: 0; width: 18%; left: -20%; background: linear-gradient(90deg, transparent, rgba(127, 227, 255, .45), transparent); pointer-events: none; }
.fx-sweep.go { animation: fxSweep 1s var(--ease-io) 1; }
@keyframes fxSweep { to { left: 102%; } }
.fx-stand { width: 22%; height: 26px; margin: 0 auto; background: linear-gradient(#1a1f3a, #0b0f24); clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%); }
.fx-status { margin-top: 18px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: rgba(10, 18, 70, .75); border: 1px solid var(--line); backdrop-filter: blur(10px); font: 500 18px/1.3 var(--f-body); }
.fx-status .ai { font: 700 14px/1 var(--f-mono); padding: 7px 9px; border-radius: 7px; background: var(--cyan); color: var(--navy-900); }

/* Control de performance: IA de monitoreo */
.pm-left { padding: 20px 26px; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.pm-kpis { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; }
.pm-kpis div { padding: 14px 18px; border-radius: 14px; background: rgba(47, 99, 255, .12); border: 1px solid rgba(127, 170, 255, .22); transition: border-color .4s, background .4s; }
.pm-kpis small { display: block; font: 600 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
.pm-kpis b { display: block; font: 700 30px/1.1 var(--f-display); margin: 8px 0 4px; transition: color .4s; }
.pm-kpis em { font: 400 13px/1.2 var(--f-body); color: var(--ink-3); font-style: normal; }
#perfFlow.m1 .pm-kpis div:nth-child(2), #perfFlow.m1 .pm-kpis div:nth-child(3) { border-color: rgba(255, 91, 115, .5); background: rgba(255, 91, 115, .08); }
#perfFlow.m1 .pm-kpis div:nth-child(2) b, #perfFlow.m1 .pm-kpis div:nth-child(3) b { color: #ff8a9c; }
#perfFlow.m3 .pm-kpis div:nth-child(2), #perfFlow.m3 .pm-kpis div:nth-child(3) { border-color: rgba(64, 224, 160, .45); background: rgba(64, 224, 160, .08); }
#perfFlow.m3 .pm-kpis div:nth-child(2) b, #perfFlow.m3 .pm-kpis div:nth-child(3) b { color: var(--ok); }
.pm-list { position: relative; display: flex; flex-direction: column; gap: 6px; }
.pm-scan { position: absolute; left: 0; right: 0; height: 52px; border-radius: 10px; background: linear-gradient(90deg, transparent, rgba(127, 227, 255, .12), transparent); border-top: 1px solid rgba(127, 227, 255, .35); border-bottom: 1px solid rgba(127, 227, 255, .35); animation: pmScan 3.2s var(--ease-io) infinite; pointer-events: none; }
@keyframes pmScan { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: calc(100% - 52px); opacity: 0; } }
.pm-row { display: grid; grid-template-columns: 14px 380px 1fr 60px 130px; gap: 14px; align-items: center; height: 52px; padding: 0 14px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid transparent; transition: background .4s, border-color .4s; }
.pm-row .st { width: 11px; height: 11px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); transition: all .4s; }
.pm-name { white-space: nowrap; }
.pm-name b { font: 500 16px/1.2 var(--f-body); transition: opacity .3s; }
.pm-name em { margin-left: 10px; font: 500 12px/1 var(--f-mono); font-style: normal; padding: 3px 7px; border-radius: 6px; background: rgba(76, 141, 255, .25); color: #9fd0ff; }
.pm-bar { height: 8px; border-radius: 5px; background: #1b2136; overflow: hidden; }
.pm-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #2f63ff, #4c9dff); transition: width 1.4s var(--ease-io), background .4s; }
.pm-pct { font: 600 15px/1 var(--f-mono); text-align: right; color: var(--ink-2); }
.pm-msg { font: 500 13px/1.2 var(--f-body); color: var(--ok); }
.pm-row.bad { background: rgba(255, 91, 115, .1); border-color: rgba(255, 91, 115, .45); }
.pm-row.bad .st { background: var(--danger); box-shadow: 0 0 12px var(--danger); animation: pulse 1s infinite; }
.pm-row.bad .pm-bar i { background: linear-gradient(90deg, #a8324a, var(--danger)); }
.pm-row.bad .pm-pct, .pm-row.bad .pm-msg { color: #ff8a9c; }
.pm-row.fixing { background: rgba(255, 181, 71, .1); border-color: rgba(255, 181, 71, .45); }
.pm-row.fixing .st { background: #ffb547; box-shadow: 0 0 12px #ffb547; }
.pm-row.fixing .pm-msg { color: #ffcf85; }
.pm-row.fixed { background: rgba(64, 224, 160, .1); border-color: rgba(64, 224, 160, .45); }
.pm-row.fixed .pm-msg { color: var(--ok); }
.pm-row.swap .pm-name b { animation: swapIn .7s var(--ease); }
@keyframes swapIn { 0% { opacity: 0; translate: 0 10px; } 100% { opacity: 1; translate: 0 0; } }
.pm-side { padding: 22px 26px; display: flex; flex-direction: column; gap: 12px; }
.pm-ai { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid #262c40; }
.pm-ai .ring { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(47, 99, 255, .2); animation: pulseRing 2s infinite; }
.pm-ai svg { width: 28px; height: 28px; fill: #4c9dff; }
.pm-ai b { display: block; font: 600 20px/1.2 var(--f-body); }
.pm-ai small { font: 400 14px/1.3 var(--f-body); color: var(--ok); transition: color .3s; }
#perfFlow.m1 .pm-ai small { color: #ff8a9c; }
#perfFlow.m3 .pm-ai small { color: var(--ok); }
.pm-feed { display: flex; flex-direction: column; gap: 6px; }
.pm-log { font: 400 14px/1.3 var(--f-mono); color: var(--ink-3); }
.pm-log.new { animation: fadeIn .4s both; }
.pm-log.warn { color: #ff8a9c; }
.pm-alert { padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255, 91, 115, .45); background: rgba(255, 91, 115, .08); opacity: 0; translate: 30px 0; transition: all .55s var(--ease); display: none; }
.pm-alert.show { display: block; }
.pm-alert.in { opacity: 1; translate: 0 0; }
.pm-alert.done { border-color: rgba(64, 224, 160, .45); background: rgba(64, 224, 160, .07); }
.pm-ah { display: flex; gap: 12px; }
.pm-ah .bad { font-size: 22px; color: var(--danger); line-height: 1; }
.pm-alert.done .pm-ah .bad { color: var(--ok); }
.pm-ah b { display: block; font: 600 16px/1.25 var(--f-body); }
.pm-ah small { font: 400 13.5px/1.35 var(--f-body); color: #ffb3bf; }
.pm-alert.done .pm-ah small { color: var(--ink-3); }
.pm-rec { margin: 10px 0 10px 34px; padding: 10px 12px; border-radius: 10px; background: rgba(47, 99, 255, .15); border: 1px solid rgba(127, 170, 255, .3); }
.pm-rec span { display: block; font: 600 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 6px; }
.pm-rec b { font: 600 15.5px/1.3 var(--f-body); }
.pm-rec u { text-decoration: none; color: #9fd0ff; }
.pm-rec small { display: block; margin-top: 4px; font: 400 13px/1.3 var(--f-body); color: var(--ink-2); }
.pm-act { margin-left: 34px; display: inline-block; padding: 9px 16px; border-radius: 9px; background: #3d7cf0; font: 500 15px/1 var(--f-body); transition: transform .15s, background .3s; }
.pm-act.click { transform: scale(.92); background: var(--cyan); color: var(--navy-900); }
.pm-act.busy { background: rgba(255, 181, 71, .2); color: #ffcf85; }
.pm-act.ok { background: rgba(64, 224, 160, .15); color: var(--ok); }
.pm-ok { margin-top: auto; text-align: center; padding: 12px; border-radius: 10px; font: 500 16px/1 var(--f-body); color: var(--ok); border: 1px solid rgba(64, 224, 160, .4); background: rgba(64, 224, 160, .1); opacity: 0; transition: opacity .6s; }
#perfFlow.m3 .pm-ok { opacity: 1; }

/* Optimización de inversión */
.op-app { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; border: 1px solid rgba(90, 140, 255, .35); background: radial-gradient(900px 400px at 70% 0%, rgba(33, 90, 243, .18), transparent 70%), #0d1122; box-shadow: 0 40px 100px -30px #000, 0 0 60px -20px rgba(47, 99, 255, .6); }
.op-body { position: absolute; inset: 48px 0 0; display: grid; grid-template-columns: 1fr 560px; }
.op-table { padding: 22px 28px; }
.op-th, .op-row { display: grid; grid-template-columns: 290px 60px 1fr 130px 110px; align-items: center; gap: 16px; }
.op-th { font: 600 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: 0 14px 12px; border-bottom: 1px solid #262c40; }
.op-row { padding: 13px 14px; border-radius: 12px; margin-top: 8px; background: rgba(255, 255, 255, .025); border: 1px solid transparent; transition: background .3s, border-color .3s; position: relative; }
.op-row.scan { background: rgba(47, 141, 255, .14); border-color: rgba(127, 227, 255, .4); }
.op-name b { display: block; font: 600 18px/1.2 var(--f-body); }
.op-name small { font: 400 14px/1.3 var(--f-body); color: var(--ink-3); }
.op-n { font: 500 17px/1 var(--f-mono); color: var(--ink-2); text-align: center; }
.op-bar { height: 14px; border-radius: 8px; background: #1b2136; overflow: hidden; }
.op-bar i { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, #2f63ff, #4c9dff); transition: width 1.6s var(--ease-io), background .6s; }
.op-row.up .op-bar i { background: linear-gradient(90deg, #2f63ff, var(--cyan)); box-shadow: 0 0 14px rgba(127, 227, 255, .6); }
.op-row.down .op-bar i { background: linear-gradient(90deg, #3a4a7a, #5a6a9a); }
.op-amt { font: 600 18px/1 var(--f-body); text-align: right; }
.op-delta { font: 600 15px/1 var(--f-mono); justify-self: start; padding: 7px 10px; border-radius: 8px; opacity: 0; scale: .8; transition: all .5s var(--ease); }
.op-row.up .op-delta { background: rgba(64, 224, 160, .14); color: var(--ok); opacity: 1; scale: 1; }
.op-row.down .op-delta { background: rgba(255, 91, 115, .14); color: #ff8a9c; opacity: 1; scale: 1; }
.op-total { display: flex; justify-content: space-between; margin-top: 14px; padding: 14px 14px 0; border-top: 1px solid #262c40; font: 500 17px/1 var(--f-body); color: var(--ink-2); }
.op-total b { font: 600 20px/1 var(--f-body); color: #fff; margin-right: 126px; }
.op-side { position: relative; border-left: 1px solid #262c40; background: rgba(5, 8, 25, .5); }
.op-start, .op-load, .op-res { position: absolute; inset: 0; padding: 30px 34px; transition: opacity .6s var(--ease), translate .6s var(--ease); }
.op-start { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.op-start small { font: 600 13px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.op-start > b { font: 700 58px/1.1 var(--f-display); margin: 12px 0 8px; }
.op-start p { font: 400 18px/1.4 var(--f-body); color: var(--ink-2); margin-bottom: 40px; }
.op-go { padding: 26px 44px; border-radius: 18px; font: 700 28px/1 var(--f-display); background: linear-gradient(135deg, #2f8dff, #6b4dff); box-shadow: 0 20px 50px -10px rgba(47, 99, 255, .9); animation: pulseRing 1.8s infinite; transition: transform .15s; }
.op-go.click { transform: scale(.92); }
.op-load, .op-res { opacity: 0; pointer-events: none; translate: 30px 0; }
#optFlow.o1 .op-start { opacity: 0; translate: -30px 0; }
#optFlow.o1 .op-load { opacity: 1; translate: 0 0; }
#optFlow.o2 .op-load { opacity: 0; translate: -30px 0; }
#optFlow.o2 .op-res { opacity: 1; translate: 0 0; }
.op-load { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(400px 300px at 50% 40%, rgba(47, 99, 255, .35), transparent 70%); }
.op-load h5 { font: 500 26px/1 var(--f-body); color: #7fc4ff; margin: 10px 0 22px; }
.op-prog { width: 360px; height: 6px; border-radius: 4px; background: #1b2136; overflow: hidden; }
.op-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2f8dff, var(--cyan)); box-shadow: 0 0 12px var(--cyan); }
#optFlow.o1 .op-prog i { animation: prog 4s var(--ease-io) forwards; }
@keyframes prog { to { width: 100%; } }
.op-steps { margin-top: 26px; text-align: left; font: 400 17px/1 var(--f-body); color: var(--ink-3); display: flex; flex-direction: column; gap: 14px; }
.op-steps div { opacity: .35; transition: all .4s; }
.op-steps div::before { content: '◌'; display: inline-block; width: 26px; color: var(--sky); }
.op-steps div.on { opacity: 1; color: #dfe7ff; }
.op-steps div.on::before { content: '✓'; color: var(--ok); }
.op-res h5 { font: 600 24px/1 var(--f-body); margin-bottom: 18px; }
.op-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.op-stats div { padding: 14px 10px; border-radius: 12px; background: rgba(47, 99, 255, .14); border: 1px solid rgba(127, 170, 255, .25); text-align: center; }
.op-stats b { display: block; font: 700 26px/1 var(--f-display); }
.op-stats small { font: 400 13px/1.3 var(--f-body); color: var(--ink-2); }
.op-res h6 { font: 600 13px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin: 20px 0 10px; }
.op-rule { display: flex; gap: 12px; align-items: flex-start; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); margin-bottom: 7px; opacity: 0; translate: 20px 0; transition: all .5s var(--ease); }
#optFlow.o2 .op-rule { opacity: 1; translate: 0 0; transition-delay: calc(var(--k) * 450ms + 900ms); }
.op-rule .ck { font-size: 18px; }
.op-rule b { font: 600 15.5px/1.2 var(--f-body); }
.op-rule em { font: 500 14px/1.2 var(--f-mono); color: #9fd0ff; font-style: normal; margin-left: 8px; }
.op-rule small { display: block; font: 400 13px/1.3 var(--f-body); color: var(--ink-3); }
.op-apply { margin-top: 10px; text-align: center; padding: 11px; border-radius: 10px; font: 500 16px/1 var(--f-body); color: var(--ok); border: 1px solid rgba(64, 224, 160, .4); background: rgba(64, 224, 160, .1); opacity: 0; transition: opacity .5s 3.1s; }
#optFlow.o2 .op-apply { opacity: 1; }
.op-coins { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.op-coin { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

/* Afinamiento: copiloto sobre el mapa (mapa ya dibujado) */
.pf-map.done { clip-path: none; }
.pf-map.done .pf-roads path { stroke-dashoffset: 0; }
.pf-map.done .pf-labels text, .pf-map.done .pf-airlabel text { opacity: 1; }
.pf-map.done .pf-airport { stroke-dashoffset: 0; fill: rgba(47, 109, 255, .38); }
.pf-map.done .pf-pin { opacity: 1; transform: none; transition: opacity .6s, transform .6s; }
.pf-map.done .pf-pin.gone { opacity: 0; transform: scale(.3); }
.pf-map.done .pf-pin.drop { opacity: 0; transform: translateY(-40px) scale(.6); animation: pinDrop .55s cubic-bezier(.3, 1.6, .5, 1) forwards; animation-delay: var(--dl); }
.pf-map.done .pf-pin.drop.sel { fill: #7fe3ff; filter: drop-shadow(0 0 8px rgba(127, 227, 255, 1)); }
.cp-samara text { font: 600 15px var(--f-display); letter-spacing: .08em; fill: #7c859c; text-anchor: middle; transition: fill .6s; }
.cp-ring { fill: rgba(127, 227, 255, 0); stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 8 8; opacity: 0; transition: opacity .6s, fill .6s; }
#copilotFlow.samara .cp-ring { opacity: 1; fill: rgba(127, 227, 255, .1); animation: dash 1.2s linear infinite; }
#copilotFlow.samara .cp-samara text { fill: var(--cyan); }
.cp-panels { position: absolute; left: 18px; top: 66px; width: 310px; display: flex; flex-direction: column; gap: 12px; }
.cp-panels .pf-sel em { display: block; margin-top: 8px; font: 500 17px/1 var(--f-body); font-style: normal; opacity: .9; }
.cp-panels .bump { animation: bump .9s var(--ease); }
@keyframes bump { 30% { color: var(--cyan); text-shadow: 0 0 16px rgba(127, 227, 255, .9); } }

.cp-chat { position: absolute; right: 18px; top: 62px; bottom: 16px; width: 560px; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; border: 1px solid rgba(120, 160, 255, .35); background: linear-gradient(170deg, #22357e, #182665 55%, #111a4a); box-shadow: 0 30px 80px -20px #000, 0 0 50px -10px rgba(47, 99, 255, .6); opacity: 0; scale: .6; transform-origin: 100% 100%; transition: opacity .6s var(--ease), scale .7s var(--ease); }
.cp-chat.on { opacity: 1; scale: 1; }
.cp-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.cp-av { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #3aa0ff, #2f63ff); }
.cp-av svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 1.8; }
.cp-head b { display: block; font: 600 21px/1.1 var(--f-body); }
.cp-head small { font: 400 15px/1.3 var(--f-body); color: var(--ink-2); }
.cp-ic { margin-left: auto; width: 36px; height: 36px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .2); display: grid; place-items: center; font-size: 16px; color: var(--ink-2); }
.cp-ic + .cp-ic { margin-left: 8px; }
.cp-msgs { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 16px 20px; overflow: hidden; }
.cp-m { max-width: 88%; padding: 12px 16px; border-radius: 16px; font: 400 17px/1.45 var(--f-body); opacity: 0; translate: 0 14px; transition: all .45s var(--ease); flex: none; }
.cp-m.in, .cp-prop.in { opacity: 1; translate: 0 0; }
.cp-m.user { align-self: flex-end; background: linear-gradient(135deg, #3d7cf0, #2f63ff); border-bottom-right-radius: 5px; }
.cp-m.bot { align-self: flex-start; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-bottom-left-radius: 5px; }
.cp-m.bot b { color: #9fd0ff; font-weight: 600; }
.cp-m.dots { display: flex; gap: 6px; padding: 16px 18px; }
.cp-m.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-2); animation: pulse 1s infinite; }
.cp-m.dots i:nth-child(2) { animation-delay: .2s; } .cp-m.dots i:nth-child(3) { animation-delay: .4s; }
.cp-prop { flex: none; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(8, 14, 50, .45); opacity: 0; translate: 0 14px; transition: all .45s var(--ease); }
.cp-prop > small { display: block; font: 400 14px/1 var(--f-body); color: var(--ink-2); margin-bottom: 10px; }
.cp-it { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.cp-it .cb { width: 20px; height: 20px; border-radius: 5px; background: #3d7cf0; display: grid; place-items: center; font-size: 13px; flex: none; }
.cp-it img, .cp-sign { width: 46px; height: 34px; border-radius: 7px; object-fit: cover; flex: none; }
.cp-sign { display: grid; place-items: center; font: 700 20px/1 var(--f-display); background: rgba(64, 224, 160, .16); color: var(--ok); }
.cp-sign.neg { background: rgba(255, 91, 115, .16); color: #ff8a9c; }
.cp-it b { display: block; font: 500 15.5px/1.25 var(--f-body); }
.cp-it small { font: 400 13px/1.3 var(--f-body); color: #9fd0ff; }
.cp-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.cp-btns span { text-align: center; padding: 10px; border-radius: 9px; font: 500 16px/1 var(--f-body); }
.cp-no { color: #ff8a9c; border: 1px solid rgba(255, 91, 115, .35); background: rgba(255, 91, 115, .08); }
.cp-ok { background: #3d7cf0; transition: transform .15s, background .3s; }
.cp-ok.click { transform: scale(.92); background: var(--cyan); color: var(--navy-900); }
.cp-done { grid-column: 1 / -1; color: var(--ok); border: 1px solid rgba(64, 224, 160, .4); background: rgba(64, 224, 160, .1); }
.cp-prop.applied { border-color: rgba(64, 224, 160, .4); }
.cp-input { display: flex; align-items: center; gap: 10px; margin: 0 16px 16px; padding: 12px 16px; border-radius: 12px; background: rgba(5, 10, 40, .6); border: 1px solid rgba(255, 255, 255, .14); font: 400 17px/1.3 var(--f-body); }
.cp-input .ph { color: var(--ink-3); }
.cp-input b { margin-left: auto; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--ink-2); font-weight: 400; }

/* Brief: del mail al brief profesional */
.bf-row { display: grid; grid-template-columns: 680px 1fr; gap: 60px; margin-top: 44px; height: 650px; }
.bf-bar { display: flex; align-items: center; gap: 16px; height: 48px; padding: 0 20px; border-bottom: 1px solid var(--line); font: 500 15px/1 var(--f-mono); color: var(--ink-3); letter-spacing: .06em; }
.bf-bar .dots { display: flex; gap: 7px; }
.bf-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.bf-bar img { height: 20px; opacity: .9; }
.bf-mail { overflow: hidden; display: flex; flex-direction: column; }
.bf-toast {
  position: absolute; right: 20px; top: 64px; z-index: 2; display: flex; gap: 14px; align-items: center;
  padding: 14px 18px; border-radius: 14px; background: rgba(33, 150, 243, .95); box-shadow: 0 20px 40px -10px rgba(0, 0, 40, .8);
  opacity: 0; translate: 40px 0; transition: all .6s var(--ease);
}
.bf-toast b { font-size: 26px; }
.bf-toast strong { display: block; font: 600 17px/1.2 var(--f-body); }
.bf-toast small { font: 400 15px/1.3 var(--f-body); opacity: .85; }
.bf-toast.on { opacity: 1; translate: 0 0; }
.bf-toast.gone { opacity: 0; translate: 0 -20px; }
.bf-msg { padding: 26px 30px; opacity: 0; translate: 0 20px; transition: all .7s var(--ease); position: relative; flex: 1; }
.bf-msg.on { opacity: 1; translate: 0 0; }
.bf-head { display: flex; align-items: center; gap: 14px; }
.bf-head .av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #ff8a5b, #ff5b73); font: 700 20px var(--f-display); }
.bf-head strong { display: block; font: 600 19px/1.2 var(--f-body); }
.bf-head small { font: 400 15px/1.3 var(--f-body); color: var(--ink-3); }
.bf-head em { margin-left: auto; font: 400 14px var(--f-mono); color: var(--ink-3); font-style: normal; }
.bf-subj { font: 700 24px/1.3 var(--f-display); margin: 22px 0 16px; }
.bf-body { font: 400 19px/1.6 'Times New Roman', Georgia, serif; color: #e6ecff; }
.bf-body p + p { margin-top: 4px; }
.bf-body p { display: inline; background: linear-gradient(rgba(33, 150, 243, .45), rgba(33, 150, 243, .45)) no-repeat 0 0 / 0% 100%; transition: background-size 1s var(--ease-io); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.bf-body p::after { content: ''; display: block; height: 4px; }
.bf-body.sel p { background-size: 100% 100%; }
.bf-copied { position: absolute; right: 30px; bottom: 24px; font: 600 15px/1 var(--f-mono); padding: 9px 12px; border-radius: 8px; background: var(--cyan); color: var(--navy-900); opacity: 0; scale: .8; transition: all .4s var(--ease); }
.bf-copied.on { opacity: 1; scale: 1; }

.bf-app { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid rgba(90, 140, 255, .35); background: radial-gradient(700px 400px at 50% 0%, rgba(33, 90, 243, .25), transparent 70%), #0b0e1f; box-shadow: 0 40px 100px -30px #000, 0 0 60px -20px rgba(47, 99, 255, .6); }
.bf-app-body { padding: 38px 48px; text-align: center; }
.bf-app h4 { font: 500 50px/1.1 var(--f-body); color: #2f8dff; letter-spacing: -.01em; }
.bf-app .q { font: 400 22px/1.4 var(--f-body); color: #5fa8ff; margin-top: 8px; }
.bf-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 30px 0 18px; border: 1px solid rgba(90, 140, 255, .3); border-radius: 12px; overflow: hidden; font: 500 16px/1 var(--f-body); color: var(--ink-3); }
.bf-tabs span { padding: 14px; }
.bf-tabs .on { color: #7fc4ff; border: 1.5px solid #2f8dff; border-radius: 12px; background: rgba(47, 141, 255, .08); }
.bf-input { position: relative; text-align: left; height: 225px; border-radius: 14px; border: 1.5px solid rgba(90, 140, 255, .35); background: rgba(255, 255, 255, .03); padding: 16px 18px 56px; transition: border-color .4s, box-shadow .4s; }
.bf-input.focus { border-color: #2f8dff; box-shadow: 0 0 0 4px rgba(47, 141, 255, .18); }
.bf-text { height: 100%; overflow: hidden; font: 400 15.5px/1.55 var(--f-body); color: #e6ecff; white-space: pre-line; display: flex; flex-direction: column; justify-content: flex-end; }
.bf-text .ph { color: var(--ink-3); align-self: flex-start; margin-bottom: auto; }
.bf-ia { position: absolute; right: 14px; bottom: 12px; border: 0; cursor: pointer; font: 600 16px/1 var(--f-mono); color: #fff; padding: 11px 16px; border-radius: 999px; background: linear-gradient(135deg, #2f8dff, #6b4dff); box-shadow: 0 0 0 0 rgba(127, 227, 255, .6); transition: transform .2s; }
.bf-ia.ready { animation: pulseRing 1.4s infinite; }
.bf-ia.click { transform: scale(.9); }
.bf-fields { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 12px; margin-top: 16px; }
.bf-fields span { display: flex; justify-content: space-between; padding: 13px 16px; border-radius: 12px; border: 1px solid rgba(90, 140, 255, .28); font: 400 15px/1 var(--f-body); color: var(--ink-2); text-align: left; }
.bf-fields i { font-style: normal; color: var(--ink-3); }
.bf-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 18px; }
.bf-actions span { font: 500 15px/1 var(--f-body); padding: 12px 18px; border-radius: 10px; }
.bf-actions .ghost { border: 1px solid rgba(255, 255, 255, .5); }
.bf-actions .solid { background: #1d4ed8; }
.bf-loading { position: absolute; inset: 48px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; background: radial-gradient(500px 300px at 50% 45%, rgba(47, 99, 255, .45), rgba(8, 12, 40, .96)); opacity: 0; pointer-events: none; transition: opacity .5s; }
.bf-loading svg { width: 90px; height: 90px; fill: #4c8dff; filter: drop-shadow(0 0 20px #2f8dff); animation: pulse 1.2s infinite; }
.bf-loading span { font: 500 22px/1 var(--f-body); color: #7fc4ff; }
.bf-app.loading .bf-loading { opacity: 1; }

.fly-ch { position: absolute; z-index: 30; pointer-events: none; font: 600 18px/1 var(--f-mono); color: var(--cyan); text-shadow: 0 0 10px var(--latinad); }
.bf-cursor { position: absolute; z-index: 31; width: 34px; height: 34px; left: 0; top: 0; opacity: 0; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); transition: transform 1.1s var(--ease-io), opacity .4s; }
.bf-cursor.on { opacity: 1; }

.bf-result { position: absolute; left: 140px; right: 140px; top: 290px; bottom: 80px; z-index: 25; padding: 30px 38px; opacity: 0; visibility: hidden; scale: .96; filter: blur(12px); transition: opacity .7s var(--ease), scale .7s var(--ease), filter .7s var(--ease), visibility 0s .7s; background: linear-gradient(145deg, rgba(30, 55, 190, .92), rgba(10, 18, 85, .95)); }
.bf-result.on { opacity: 1; visibility: visible; scale: 1; filter: none; transition-delay: 0s; }
.bf-res-head { display: flex; align-items: center; gap: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.bf-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.bf-chips span { padding: 9px 14px; border-radius: 10px; background: rgba(33, 150, 243, .16); border: 1px solid rgba(127, 227, 255, .3); font: 600 16px/1.2 var(--f-body); }
.bf-chips small { display: block; font: 600 11px/1 var(--f-mono); color: var(--sky); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 5px; }
.bf-res-cols { display: grid; grid-template-columns: 1.75fr 1fr; gap: 44px; margin-top: 22px; }
.bf-res-cols h5 { font: 600 14px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }
.bf-new p { font: 300 21.5px/1.62 var(--f-body); color: #eaf0ff; }
.bf-just { padding-left: 34px; border-left: 1px solid var(--line); }
.bf-just p { font: 300 17px/1.6 var(--f-body); color: var(--ink-2); }
.bf-words .wd { opacity: 0; }
.bf-result.on .bf-words .wd { animation: fadeIn .25s ease both; animation-delay: calc(var(--i) * 7ms + 250ms); }
.bf-words mark { background: transparent; color: #7fc4ff; font-weight: 500; border-radius: 6px; padding: 0 3px; transition: background .6s, box-shadow .6s; }
.bf-words mark::before { content: '✦\00a0'; color: var(--cyan); font-size: .8em; opacity: 0; transition: opacity .4s; }
.bf-result.lit .bf-words mark { background: rgba(33, 150, 243, .22); box-shadow: 0 0 0 1px rgba(127, 227, 255, .25); }
.bf-result.lit .bf-words mark::before { opacity: 1; }

/* Brief */
.s-brief { display: grid; grid-template-columns: 720px 1fr; gap: 70px; align-items: start; }
.good { padding: 38px 40px; margin-top: 34px; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.chip { padding: 16px 18px; border-radius: 14px; background: rgba(33, 150, 243, .12); border: 1px solid rgba(127, 227, 255, .28); }
.chip small { display: block; font: 600 13px/1 var(--f-mono); color: var(--sky); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.chip b { font: 600 21px/1.3 var(--f-body); }
.typed { font: 300 21px/1.62 var(--f-body); color: var(--ink-2); min-height: 250px; }
.tag-ai { display: inline-flex; gap: 8px; align-items: center; font: 600 15px/1 var(--f-mono); color: var(--navy-900); background: var(--cyan); padding: 8px 12px; border-radius: 8px; letter-spacing: .1em; }

/* Split con capturas */
.s-split { display: grid; grid-template-columns: 700px 1fr; gap: 80px; align-items: center; }
.s-split.rev { grid-template-columns: 1fr 720px; }
.s-split .txt .h-l { margin: 26px 0 30px; }
.stack3d { position: relative; height: 760px; perspective: 1800px; }
.stack3d .shot { position: absolute; transition: transform 1.2s var(--ease); }
.stat { margin-top: 40px; display: flex; gap: 60px; }
.stat .v { font: 800 72px/1 var(--f-display); letter-spacing: -.03em; }
.stat .k { font: 500 17px/1.3 var(--f-mono); color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; margin-top: 10px; }
.callout { margin-top: 40px; padding: 22px 26px; border-radius: 16px; border-left: 4px solid #ffb547; background: rgba(255, 181, 71, .1); font: 400 22px/1.5 var(--f-body); color: #ffe3b8; }
.callout b { color: #fff; }

/* Pantalla que se cae y se recupera */
.screen-fail { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 10px solid #151a3a; box-shadow: 0 40px 100px -30px #000, 0 0 60px -10px rgba(47, 99, 255, .5); background: #000; }
.screen-fail .ad { position: absolute; inset: 0; background: linear-gradient(135deg, #2f63ff, #6b4dff 60%, #2196f3); display: grid; place-items: center; }
.screen-fail .ad .wordmark { font-size: 64px; }
.screen-fail .ad .wordmark svg { width: 60px; height: 60px; }
.screen-fail .black { position: absolute; inset: 0; background: #000; opacity: 0; animation: fail 7s infinite; }
.screen-fail .black::after { content: 'SIN SEÑAL'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 600 22px/1 var(--f-mono); color: #444; letter-spacing: .3em; }
.screen-fail .badge { position: absolute; left: 20px; top: 20px; font: 600 15px/1 var(--f-mono); padding: 9px 12px; border-radius: 8px; letter-spacing: .08em; animation: badge 7s infinite; z-index: 2; }
@keyframes fail { 0%, 30% { opacity: 0; } 31%, 33% { opacity: 1; } 34% { opacity: .2; } 35%, 62% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes badge {
  0%, 30% { background: var(--ok); color: #03220f; }
  31%, 48% { background: var(--danger); color: #fff; }
  49%, 64% { background: #ffb547; color: #2a1800; }
  65%, 100% { background: var(--ok); color: #03220f; }
}
.screen-fail .badge { display: grid; }
.screen-fail .badge span { grid-area: 1 / 1; opacity: 0; }
.screen-fail .badge span:nth-child(1) { animation: s1 7s infinite; }
.screen-fail .badge span:nth-child(2) { animation: s2 7s infinite; }
.screen-fail .badge span:nth-child(3) { animation: s3 7s infinite; }
@keyframes s1 { 0%, 30% { opacity: 1; } 31%, 64% { opacity: 0; } 65%, 100% { opacity: 1; } }
@keyframes s2 { 0%, 30% { opacity: 0; } 31%, 48% { opacity: 1; } 49%, 100% { opacity: 0; } }
@keyframes s3 { 0%, 48% { opacity: 0; } 49%, 64% { opacity: 1; } 65%, 100% { opacity: 0; } }

/* Hoy / Mañana */
.flow { margin-top: 70px; display: flex; flex-direction: column; gap: 46px; }
.flow .row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.flow .row .lab { width: 190px; font: 800 44px/1 var(--f-display); }
.flow .row .lab small { display: block; font: 500 15px/1.4 var(--f-mono); color: var(--ink-3); letter-spacing: .14em; text-transform: uppercase; margin-top: 8px; }
.flow .node { padding: 20px 28px; border-radius: 16px; font: 600 27px/1 var(--f-display); }
.flow .today .node { background: linear-gradient(135deg, #2f63ff, #1f3bd0); box-shadow: 0 16px 40px -14px rgba(47, 99, 255, .9); }
.flow .tomorrow .node { border: 1.5px solid rgba(127, 227, 255, .6); color: var(--cyan); background: rgba(127, 227, 255, .06); box-shadow: inset 0 0 30px rgba(127, 227, 255, .08); }
.flow .arr { color: var(--ink-3); font-size: 30px; }
/* Hoy vs mañana: cada fila en una sola línea, las dos filas del mismo ancho */
.s-today .flow { margin-top: 90px; gap: 70px; }
.s-today .flow .row { display: grid; grid-template-columns: 230px 1fr; align-items: center; gap: 0; }
.s-today .flow .row .lab { width: auto; }
.s-today .flow .nodes { display: flex; align-items: center; gap: 14px; }
.s-today .flow .node { flex: 1 1 auto; text-align: center; white-space: nowrap; padding: 26px 18px; font-size: 25px; }
.s-today .flow .arr { flex: none; font-size: 26px; }
.s-today .flow .tomorrow .node:last-child { border-color: var(--cyan); background: rgba(127, 227, 255, .14); box-shadow: 0 0 36px rgba(127, 227, 255, .35), inset 0 0 30px rgba(127, 227, 255, .1); color: var(--white); }
.two-ideas { margin-top: 90px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.two-ideas div { padding: 30px 36px; font: 700 40px/1.2 var(--f-display); }
.two-ideas span { font: 800 22px/1 var(--f-mono); color: var(--cyan); display: block; margin-bottom: 14px; }

/* Red de agentes */
.s-agents { display: grid; grid-template-columns: 640px 1fr; gap: 40px; align-items: center; }
.net { position: relative; height: 820px; }
.net > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.net .ln { stroke: rgba(127, 170, 255, .28); stroke-width: 2; stroke-dasharray: 6 8; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.net .agent {
  position: absolute; transform: translate(-50%, -50%);
  width: 210px; padding: 18px 16px; text-align: center; border-radius: 20px;
}
.net .agent .av { width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; background: rgba(33, 150, 243, .2); border: 1px solid rgba(127, 227, 255, .45); position: relative; }
.net .agent .av svg { width: 30px; height: 30px; stroke: var(--cyan); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.net .agent .av::after { content: ''; position: absolute; right: -4px; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: pulse 1.8s infinite; animation-delay: var(--pd, 0s); }
.net .agent b { display: block; font: 700 21px/1.2 var(--f-display); }
.net .agent small { display: block; margin-top: 6px; font: 400 14px/1.35 var(--f-mono); color: var(--ink-3); }
.net .agent.core { width: 270px; padding: 26px; background: linear-gradient(145deg, rgba(47, 99, 255, .55), rgba(107, 77, 255, .4)); border-color: rgba(160, 200, 255, .6); }
.net .agent.core .av { width: 76px; height: 76px; background: var(--latinad); }
.net .agent.core .av svg { stroke: #fff; }
.net .agent.core b { font-size: 26px; }

/* M2M */
.m2m { display: grid; grid-template-columns: 420px 1fr 420px; gap: 30px; margin-top: 70px; align-items: stretch; }
.m2m .side { padding: 36px 32px; text-align: center; }
.m2m .side .av { width: 110px; height: 110px; margin: 0 auto 22px; border-radius: 28px; display: grid; place-items: center; background: linear-gradient(135deg, var(--latinad), var(--violet)); box-shadow: 0 0 60px -10px var(--latinad); }
.m2m .side .av svg { width: 56px; height: 56px; stroke: #fff; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.m2m .side h4 { font: 800 34px/1.1 var(--f-display); }
.m2m .side p { font: 300 21px/1.5 var(--f-body); color: var(--ink-2); margin-top: 12px; }
.m2m .wire { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 0 10px; }
.m2m .pkt { padding: 16px 20px; border-radius: 14px; font: 400 18px/1.45 var(--f-mono); opacity: 0; transition: all .6s var(--ease); }
.m2m .pkt.pb { align-self: flex-start; background: rgba(33, 150, 243, .16); border: 1px solid rgba(127, 227, 255, .35); transform: translateX(-60px); }
.m2m .pkt.ps { align-self: flex-end; text-align: right; background: rgba(107, 77, 255, .18); border: 1px solid rgba(180, 160, 255, .35); transform: translateX(60px); }
.m2m .pkt.on { opacity: 1; transform: none; }
.m2m .pkt .t { color: var(--ink-3); font-size: 14px; display: block; }
.protocols-row { display: flex; justify-content: center; gap: 14px; margin-top: 40px; }
.protocols-row span { font: 600 17px/1 var(--f-mono); padding: 12px 18px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink-2); letter-spacing: .06em; }

/* Checklist preparados */
.check { margin-top: 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 40px; }
.check .it { display: flex; gap: 24px; align-items: flex-start; padding: 26px 30px; }
.check .it .bx { flex: none; width: 46px; height: 46px; border-radius: 12px; border: 2px solid rgba(127, 227, 255, .5); display: grid; place-items: center; font: 800 20px var(--f-display); color: var(--cyan); }
.check .it.on .bx { background: var(--latinad); border-color: var(--cyan); color: #fff; box-shadow: 0 0 24px var(--latinad); }
.check .it h5 { font: 700 29px/1.2 var(--f-display); margin-bottom: 6px; }
.check .it p { font: 300 20px/1.45 var(--f-body); color: var(--ink-2); }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 60px; }
.skills .sk { padding: 30px 28px; min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; }
.skills .sk i { font: 600 15px/1 var(--f-mono); color: var(--sky); font-style: normal; letter-spacing: .12em; }
.skills .sk b { font: 700 30px/1.15 var(--f-display); }
.skills .sk.hi { background: linear-gradient(145deg, rgba(47, 99, 255, .6), rgba(107, 77, 255, .45)); }
.from-to { display: flex; align-items: center; gap: 28px; font: 800 72px/1 var(--f-display); letter-spacing: -.03em; margin-top: 24px; }
.from-to s { color: var(--ink-3); text-decoration-thickness: 5px; text-decoration-color: var(--danger); font-weight: 300; }

/* Experiencia LatinAd */
.s-exp { display: grid; grid-template-columns: 760px 1fr; gap: 80px; align-items: center; }
.s-exp .tl { margin-top: 50px; border-left: 2px solid var(--line); padding-left: 40px; display: flex; flex-direction: column; gap: 36px; }
.s-exp .tl .e { position: relative; }
.s-exp .tl .e::before { content: ''; position: absolute; left: -50px; top: 8px; width: 18px; height: 18px; background: var(--latinad); box-shadow: 0 0 16px var(--latinad); }
.s-exp .tl .e i { font: 600 16px/1 var(--f-mono); color: var(--sky); font-style: normal; letter-spacing: .12em; }
.s-exp .tl .e b { display: block; font: 700 32px/1.2 var(--f-display); margin: 8px 0 6px; }
.s-exp .tl .e p { font: 300 21px/1.5 var(--f-body); color: var(--ink-2); }

/* Cierre */
.s-close { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 170px; }
.s-close .ideas { display: flex; gap: 70px; align-items: baseline; }
.s-close .ideas div { font: 800 58px/1.1 var(--f-display); letter-spacing: -.02em; }
.s-close .ideas span { font: 800 26px/1 var(--f-mono); color: var(--cyan); margin-right: 12px; vertical-align: 8px; }
.s-close .thanks { margin-top: 44px; font: 300 26px/1.4 var(--f-mono); letter-spacing: .4em; text-transform: uppercase; color: var(--ink-2); }
.s-close { padding-bottom: 110px; }
.s-close .handoff { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.s-close .handoff .pill .live { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.s-close .handoff .who { margin: 0; font: 300 40px/1.1 var(--f-body); color: var(--ink-2); }
.s-close .handoff .who .grad { font: 800 72px/1.05 var(--f-display); letter-spacing: -.02em; margin-left: 14px; }

/* Panel */
.panel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 70px; }
.panel .pp { padding: 30px; text-align: left; }
.panel .pp .ph { aspect-ratio: 1; border-radius: 18px; margin-bottom: 24px; background: linear-gradient(145deg, rgba(47, 99, 255, .35), rgba(10, 20, 90, .5)); border: 1px dashed rgba(127, 227, 255, .35); display: grid; place-items: center; font: 500 15px/1.4 var(--f-mono); color: var(--ink-3); text-align: center; overflow: hidden; }
.panel .pp .ph img { width: 100%; height: 100%; object-fit: cover; }
.panel .pp i { font: 600 14px/1 var(--f-mono); color: var(--sky); letter-spacing: .14em; text-transform: uppercase; font-style: normal; }
.panel .pp b { display: block; font: 800 32px/1.15 var(--f-display); margin: 10px 0 8px; }
.panel .pp p { font: 300 19px/1.45 var(--f-body); color: var(--ink-2); }
.panel .pp.mod { background: linear-gradient(145deg, rgba(47, 99, 255, .5), rgba(107, 77, 255, .35)); }

/* ---------- Overlays: notas / ayuda ---------- */
#notes {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%);
  width: min(1100px, 92vw); max-height: 42vh; overflow: auto;
  background: rgba(4, 8, 40, .94); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 28px; font: 400 17px/1.6 var(--f-body); color: var(--ink-2);
  z-index: 100; transition: transform .5s var(--ease); backdrop-filter: blur(10px);
}
#notes.open { transform: translate(-50%, 0); }
#notes h6 { font: 600 13px/1 var(--f-mono); letter-spacing: .16em; color: var(--sky); text-transform: uppercase; margin-bottom: 12px; }
#notes ul { padding-left: 20px; }
#help {
  position: fixed; right: 20px; top: 20px; z-index: 100;
  background: rgba(4, 8, 40, .94); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 22px; font: 400 14px/1.9 var(--f-mono); color: var(--ink-2);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
#help.open { opacity: 1; }
#help kbd { display: inline-block; min-width: 26px; text-align: center; padding: 0 6px; margin-right: 8px; border-radius: 6px; background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- Brief por WhatsApp (#waFlow) ---------- */
.s-wa { --wa-bg: #0b141a; --wa-in: #202c33; --wa-head: #1f2c34; --wa-ink: #e9edef; --wa-meta: #8696a0; }
.s-wa .wa-copy { position: absolute; left: 1000px; top: 290px; width: 800px; display: flex; flex-direction: column; align-items: flex-start; opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.s-wa .wa-copy.in { opacity: 1; transform: none; }
.s-wa .wa-title { font: 800 118px/1.02 var(--f-display); letter-spacing: -3px; margin-top: 26px; }
.s-wa .wa-copy .lead { font-size: 30px; margin-top: 34px; max-width: 680px; }
.s-wa .wa-copy .lead b { color: var(--white); font-weight: 600; }
.s-wa .wa-phone { position: absolute; left: 250px; top: 140px; width: 520px; height: 830px; border-radius: 60px; background: #02030f; padding: 16px; box-shadow: 0 0 0 2px rgba(140, 170, 255, .28), 0 40px 120px rgba(0, 0, 30, .7), 0 0 140px rgba(33, 150, 243, .35); transition: transform .9s var(--ease); }
.s-wa .wa-phone.agent { transform: translateX(-130px) scale(.88); }
.s-wa .wa-screen { width: 100%; height: 100%; border-radius: 46px; overflow: hidden; background: var(--wa-bg); display: flex; flex-direction: column; font-family: -apple-system, BlinkMacSystemFont, var(--f-body); }
.s-wa .wa-status { height: 44px; display: flex; justify-content: space-between; align-items: center; padding: 0 32px; font-size: 17px; font-weight: 600; color: var(--wa-ink); background: var(--wa-head); }
.s-wa .wa-head { background: var(--wa-head); display: flex; align-items: center; gap: 14px; padding: 10px 18px 14px; }
.s-wa .wa-back { color: var(--wa-ink); font-size: 30px; line-height: 1; }
.s-wa .wa-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #f5a524, #e2557a); display: grid; place-items: center; font-weight: 700; font-size: 20px; color: #fff; }
.s-wa .wa-name { color: var(--wa-ink); font-size: 21px; font-weight: 600; }
.s-wa .wa-sub { color: var(--wa-meta); font-size: 15px; }
.s-wa .wa-body { flex: 1; padding: 20px 18px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; background-image: radial-gradient(rgba(255, 255, 255, .035) 1.5px, transparent 1.5px); background-size: 26px 26px; }
.s-wa .wa-day { align-self: center; background: #182229; color: var(--wa-meta); font-size: 15px; padding: 6px 14px; border-radius: 10px; margin-bottom: 6px; }
.s-wa .wa-msg { align-self: flex-start; max-width: 84%; background: var(--wa-in); color: var(--wa-ink); font-size: 23px; line-height: 1.3; padding: 9px 15px 8px; border-radius: 4px 16px 16px 16px; opacity: 0; transform: translateY(14px) scale(.96); transform-origin: left bottom; transition: opacity .35s var(--ease), transform .35s var(--ease), box-shadow .35s, filter .35s; }
.s-wa .wa-msg.in { opacity: 1; transform: none; }
.s-wa .wa-msg.big { font-size: 29px; font-weight: 600; }
.s-wa .wa-phone.agent .wa-msg.in { filter: brightness(.5) saturate(.5); }
.s-wa .wa-phone.agent .wa-msg.in.done { filter: brightness(.78) saturate(.7); }
.s-wa .wa-phone.agent .wa-msg.in.hot { filter: none; box-shadow: 0 0 0 3px var(--cyan), 0 0 36px rgba(127, 227, 255, .6); }
.s-wa .wa-typing { align-self: flex-start; background: var(--wa-in); border-radius: 4px 16px 16px 16px; padding: 15px 17px; display: none; gap: 7px; }
.s-wa .wa-typing.on { display: flex; }
.s-wa .wa-typing i { width: 10px; height: 10px; border-radius: 50%; background: var(--wa-meta); animation: waDot 1s infinite; }
.s-wa .wa-typing i:nth-child(2) { animation-delay: .15s; }
.s-wa .wa-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes waDot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-5px); } }
.s-wa .wa-input { background: var(--wa-head); padding: 12px 16px; }
.s-wa .wa-input div { background: #2a3942; border-radius: 24px; height: 46px; color: var(--wa-meta); font-size: 19px; display: flex; align-items: center; padding: 0 20px; }

.s-wa .wa-agent { position: absolute; left: 720px; top: 140px; width: 1060px; height: 830px; display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: translateX(60px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.s-wa .wa-agent.in { opacity: 1; transform: none; }
.s-wa .pill .live { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.s-wa .ap-bar { display: flex; align-items: center; gap: 16px; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.s-wa .ap-bar .src { font: 500 16px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.s-wa .ap-bar .right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.s-wa .ap-bar .elapsed { font: 600 22px/1 var(--f-mono); color: var(--white); font-variant-numeric: tabular-nums; }
.s-wa #waState.done { border-color: rgba(127, 227, 255, .6); background: rgba(33, 150, 243, .3); color: var(--white); }
.s-wa #waState.done .live { animation: none; }
.s-wa .ap-stats { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; border-bottom: 1px solid var(--line); }
.s-wa .ap-stat { padding: 20px 28px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--line); }
.s-wa .ap-stat:first-child { border-left: 0; }
.s-wa .ap-stat .k { font: 600 14px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--sky); }
.s-wa .ap-stat .v { font: 800 50px/1 var(--f-display); letter-spacing: -1px; font-variant-numeric: tabular-nums; color: var(--white); transition: color .4s, text-shadow .4s; }
.s-wa .ap-stat .v.bump { color: var(--cyan); text-shadow: 0 0 24px rgba(127, 227, 255, .6); }
.s-wa .ap-stat .s { font: 400 14px/1.2 var(--f-mono); color: var(--ink-3); min-height: 18px; }
.s-wa .ap-stream { flex: 1; overflow: hidden; padding: 18px 28px 26px; display: flex; flex-direction: column; gap: 9px; font: 400 20px/1.45 var(--f-mono); scroll-behavior: smooth; }
.s-wa .ln { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--ink-2); opacity: 0; transform: translateY(8px); animation: waLnIn .35s var(--ease) forwards; }
@keyframes waLnIn { to { opacity: 1; transform: none; } }
.s-wa .ln .ic { text-align: center; color: var(--sky); }
.s-wa .ln.ok .ic { color: var(--cyan); }
.s-wa .ln.warn .ic { color: var(--danger); }
.s-wa .ln.mail .ic { color: #b69cff; }
.s-wa .ln.run .ic { color: var(--cyan); animation: waSpin 1s linear infinite; display: inline-block; }
@keyframes waSpin { to { transform: rotate(360deg); } }
.s-wa .ln.sub { padding-left: 40px; grid-template-columns: 1fr; color: var(--ink-3); }
.s-wa .ln.sub b { color: var(--white); font-weight: 600; }
.s-wa .ln.head { margin-top: 10px; color: var(--white); font-weight: 600; }
.s-wa .ln.head .ic { color: var(--latinad); text-shadow: 0 0 12px var(--latinad); }
.s-wa .ln mark { background: rgba(33, 150, 243, .2); color: var(--cyan); padding: 0 6px; border-radius: 5px; border: 1px solid rgba(127, 227, 255, .25); }
.s-wa .ln em { font-style: normal; color: var(--white); }
.s-wa .ap-bar-p { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 8px; }
.s-wa .ap-bar-p i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--royal), var(--latinad), var(--cyan)); box-shadow: 0 0 14px var(--latinad); transition: width linear; }
.s-wa .ap-final { margin-top: 14px; align-self: flex-start; font: 600 22px/1 var(--f-mono); letter-spacing: .06em; color: var(--white); background: linear-gradient(90deg, var(--royal), var(--latinad)); padding: 16px 24px; border-radius: 14px; box-shadow: 0 0 40px rgba(33, 150, 243, .55); opacity: 0; animation: waLnIn .5s var(--ease) forwards; }

/* ---------- ¿Qué es un agente? (#agFlow) ---------- */
.s-ag .ag-head { position: absolute; left: 140px; top: 150px; display: flex; flex-direction: column; align-items: flex-start; }
.s-ag .ag-title { font: 800 74px/1.02 var(--f-display); letter-spacing: -1.8px; margin-top: 26px; }
.s-ag .ag-obj { position: absolute; left: 140px; top: 490px; width: 440px; padding: 32px 34px; display: flex; flex-direction: column; gap: 14px; }
.s-ag .ag-obj .lbl { font: 600 14px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); display: flex; align-items: center; gap: 10px; }
.s-ag .ag-obj .lbl::before { content: ''; width: 10px; height: 10px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.s-ag .ag-obj h3 { font: 800 34px/1.15 var(--f-display); margin: 0; }
.s-ag .chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.s-ag .chip { font: 600 15px/1 var(--f-mono); letter-spacing: .08em; color: var(--ink-2); border: 1px solid var(--line); background: rgba(33, 150, 243, .1); padding: 10px 14px; border-radius: 999px; }
.s-ag .ag-obj .note { font: 300 19px/1.45 var(--f-body); color: var(--ink-3); margin: 6px 0 0; }
.s-ag .ag-cycle { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease); }
.s-ag .ag-cycle.in { opacity: 1; }
.s-ag .ag-svg { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; pointer-events: none; overflow: visible; }
.s-ag .track { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 3; }
.s-ag .track-fg { fill: none; stroke: url(#agLg); stroke-width: 3; filter: drop-shadow(0 0 8px #2196f3); }
.s-ag .feed { fill: none; stroke: rgba(127, 227, 255, .55); stroke-width: 2; stroke-dasharray: 6 8; animation: agDash 1.2s linear infinite; }
@keyframes agDash { to { stroke-dashoffset: -14; } }
.s-ag #agDot { fill: var(--cyan); filter: drop-shadow(0 0 12px #7fe3ff); }
.s-ag .center { font: 600 15px var(--f-mono); letter-spacing: .16em; fill: rgba(200, 214, 255, .55); text-anchor: middle; }
.s-ag .center.big { font: 800 26px var(--f-display); letter-spacing: 0; fill: #fff; }
.s-ag .node { position: absolute; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 17px; background: #0a1255; border: 2px solid rgba(127, 170, 255, .4); display: grid; place-items: center; transition: all .45s var(--ease); }
.s-ag .node svg { width: 30px; height: 30px; stroke: var(--sky); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: stroke .45s; }
.s-ag .node.now { background: var(--latinad); border-color: var(--cyan); box-shadow: 0 0 0 10px rgba(33, 150, 243, .18), 0 0 50px var(--latinad); }
.s-ag .node.now svg { stroke: #fff; }
.s-ag .txt { position: absolute; width: 370px; margin-left: -185px; text-align: center; display: flex; flex-direction: column; gap: 8px; }
.s-ag .txt.up { transform: translateY(-100%); }
.s-ag .txt h4 { font: 800 32px/1 var(--f-display); margin: 0; transition: color .45s; }
.s-ag .txt p { margin: 0; font: 300 19px/1.4 var(--f-body); color: var(--ink-2); }
.s-ag .txt .n { font: 600 13px/1 var(--f-mono); letter-spacing: .18em; color: var(--sky); }
.s-ag .txt.now h4 { color: var(--cyan); }
.s-ag .ag-vs { position: absolute; left: 140px; right: 140px; top: 918px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.s-ag .ag-vs.in { opacity: 1; transform: none; }
.s-ag .ag-vs .glass { padding: 16px 28px; display: flex; align-items: center; gap: 20px; border-radius: 18px; }
.s-ag .ag-vs .lbl { font: 600 14px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.s-ag .ag-vs .a .lbl { color: var(--ink-3); }
.s-ag .ag-vs .b .lbl { color: var(--cyan); }
.s-ag .ag-vs p { margin: 0; font: 400 23px/1.3 var(--f-body); color: var(--ink-3); }
.s-ag .ag-vs .b p { color: var(--white); }
.s-ag .ag-vs .b p b { font-weight: 600; color: var(--cyan); }
.s-ag .ag-vs .b { border-color: rgba(127, 227, 255, .4); box-shadow: 0 0 40px rgba(33, 150, 243, .25); }

/* ---------- Pantalla azul (#bsodFlow) ---------- */
.s-bsod .bs-scene { position: absolute; inset: 0; overflow: hidden; }
.s-bsod .photo { position: absolute; inset: 0; background-size: cover; background-position: center; transform-origin: 55% 25%; transition: opacity 1.2s var(--ease), transform 9s linear; }
.s-bsod .photo.a { background-image: url('../img/pantalla-azul-falla.jpg'); transform: scale(1.02); }
.s-bsod .bs-scene.kb .photo.a { transform: scale(1.08); }
.s-bsod .photo.b { background-image: url('../img/pantalla-azul-recuperada.jpg'); opacity: 0; }
.s-bsod .bs-scene.recovered .photo.a { opacity: 0; }
.s-bsod .bs-scene.recovered .photo.b { opacity: 1; }
.s-bsod .bs-tint {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 11, 54, .92) 0%, rgba(6, 11, 54, .55) 30%, rgba(6, 11, 54, 0) 55%), linear-gradient(0deg, rgba(4, 8, 49, .85) 0%, rgba(4, 8, 49, 0) 38%), linear-gradient(180deg, rgba(4, 8, 49, .75) 0%, rgba(4, 8, 49, 0) 22%), radial-gradient(1400px 900px, transparent 55%, rgba(2, 4, 26, .75) 100%);
}
.s-bsod .bs-top { position: absolute; left: 140px; top: 150px; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.s-bsod .bs-clock { font: 800 96px/1 var(--f-display); letter-spacing: -2px; font-variant-numeric: tabular-nums; color: var(--white); text-shadow: 0 6px 40px rgba(0, 0, 30, .6); }
.s-bsod .pill .live { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.s-bsod .pill.red { border-color: rgba(255, 91, 115, .45); background: rgba(255, 91, 115, .12); color: var(--danger); }
.s-bsod .pill.red .live { background: var(--danger); box-shadow: 0 0 12px var(--danger); }
.s-bsod .lead { font-size: 30px; margin: 0; }
.s-bsod .lead b { color: var(--white); font-weight: 600; }
.s-bsod .bs-who { position: absolute; left: 140px; bottom: 140px; display: flex; flex-direction: column; align-items: flex-start; opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.s-bsod .bs-who.in { opacity: 1; transform: none; }
.s-bsod .bs-title { font: 800 140px/1.02 var(--f-display); letter-spacing: -3.5px; margin-top: 26px; text-shadow: 0 8px 50px rgba(0, 0, 30, .5); }
.s-bsod .bs-who .lead { margin-top: 18px; font-size: 34px; }
.s-bsod .bs-log { position: absolute; right: 140px; bottom: 140px; width: 780px; padding: 26px 30px; display: flex; flex-direction: column; gap: 12px; font: 400 20px/1.4 var(--f-mono); opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.s-bsod .bs-log.in { opacity: 1; transform: none; }
.s-bsod .bs-log .hd { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.s-bsod .bs-log .hd > span:last-child { font: 600 14px/1 var(--f-mono); letter-spacing: .16em; color: var(--ink-3); text-transform: uppercase; }
.s-bsod .ln { display: grid; grid-template-columns: 110px 30px 1fr; gap: 10px; opacity: 0; transform: translateX(-10px); transition: opacity .35s, transform .35s; color: var(--ink-2); }
.s-bsod .ln.in { opacity: 1; transform: none; }
.s-bsod .ln .ts { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.s-bsod .ln .ic.w { color: var(--sky); }
.s-bsod .ln .ic.e { color: var(--danger); }
.s-bsod .ln .ic.k { color: var(--cyan); }
.s-bsod .ln.final { color: var(--white); font-weight: 600; }
.s-bsod .bs-result { position: absolute; left: 140px; bottom: 140px; display: flex; flex-direction: column; align-items: flex-start; opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.s-bsod .bs-result.in { opacity: 1; transform: none; }
.s-bsod .bs-result .n { font: 800 220px/.9 var(--f-display); letter-spacing: -6px; }
.s-bsod .bs-result .lead { margin-top: 14px; max-width: 620px; }

/* ---------- Pasaporte digital (#passFlow) ---------- */
.s-pass .ps-head { position: absolute; left: 140px; right: 140px; top: 140px; display: flex; flex-direction: column; align-items: flex-start; }
.s-pass .ps-title { font: 800 70px/1.02 var(--f-display); letter-spacing: -1.7px; margin-top: 22px; }
.s-pass .ps-head .lead { font-size: 26px; margin: 14px 0 0; max-width: none; }
.s-pass .ps-head .lead b { color: var(--white); font-weight: 600; }
.s-pass .ps-geo { margin-top: 18px; display: flex; align-items: flex-start; gap: 14px; max-width: 1500px; }
.s-pass .ps-geo .tag { flex: none; font: 600 14px/1 var(--f-mono); letter-spacing: .16em; color: var(--cyan); border: 1px solid rgba(127, 227, 255, .35); background: rgba(33, 150, 243, .12); padding: 8px 12px; border-radius: 8px; }
.s-pass .ps-geo p { margin: 0; font: 300 18px/1.5 var(--f-body); color: var(--ink-3); }
.s-pass .ps-geo p b { font-weight: 500; color: var(--ink-2); }

.s-pass .ps-card { position: absolute; left: 140px; top: 430px; width: 372px; height: 350px; padding: 24px 26px; display: flex; flex-direction: column; gap: 14px; }
.s-pass .ps-card .top { display: flex; justify-content: space-between; align-items: center; }
.s-pass .ps-card .lbl { font: 600 13px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--sky); }
.s-pass .ps-card .live { display: flex; align-items: center; gap: 8px; font: 600 12px/1 var(--f-mono); letter-spacing: .14em; color: var(--cyan); }
.s-pass .ps-card .live i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 1.4s infinite; }
.s-pass .ps-card .id { display: flex; gap: 14px; align-items: center; }
.s-pass .ps-card .scr { width: 64px; height: 42px; border-radius: 6px; background: linear-gradient(135deg, #2f63ff, #6b4dff 60%, #7fe3ff); box-shadow: 0 0 18px rgba(47, 99, 255, .6); flex: none; position: relative; }
.s-pass .ps-card .scr::after { content: ''; position: absolute; left: 50%; top: 100%; width: 4px; height: 10px; background: rgba(200, 214, 255, .4); transform: translateX(-50%); }
.s-pass .ps-card .code { font: 600 17px/1.2 var(--f-mono); color: var(--white); }
.s-pass .ps-card .code small { display: block; font: 400 13px/1.3 var(--f-mono); color: var(--ink-3); margin-top: 4px; }
.s-pass .ps-card .fields { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 2px; }
.s-pass .ps-card .f { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font: 400 15px/1.2 var(--f-mono); }
.s-pass .ps-card .f span:first-child { color: var(--ink-3); }
.s-pass .ps-card .f span:last-child { color: var(--white); font-variant-numeric: tabular-nums; transition: color .4s, text-shadow .4s; }
.s-pass .ps-card .f span.flash { color: var(--cyan); text-shadow: 0 0 12px rgba(127, 227, 255, .7); }
.s-pass .ps-card .sync { font: 500 13px/1 var(--f-mono); letter-spacing: .08em; color: var(--ink-3); display: flex; justify-content: space-between; }
.s-pass .ps-card .sync b { color: var(--cyan); font-weight: 600; }

.s-pass .ps-svg { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; pointer-events: none; }
.s-pass .wire { stroke: rgba(255, 255, 255, .1); stroke-width: 3; fill: none; }
.s-pass .wire-fg { stroke: url(#psWg); stroke-width: 3; fill: none; filter: drop-shadow(0 0 8px #2196f3); stroke-dasharray: 1268; stroke-dashoffset: 1268; transition: stroke-dashoffset 2.6s var(--ease-io); }
.s-pass .wire-fg.on { stroke-dashoffset: 0; }
.s-pass .pulse { fill: var(--cyan); filter: drop-shadow(0 0 10px #7fe3ff); opacity: 0; }
.s-pass .ps-mods { position: absolute; left: 560px; right: 140px; top: 430px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.s-pass .ps-mod { height: 350px; padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; opacity: .22; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease), border-color .7s, box-shadow .7s; }
.s-pass .ps-mod.in { opacity: 1; transform: none; }
.s-pass .ps-mod.hot { border-color: rgba(127, 227, 255, .55); box-shadow: 0 30px 80px -30px rgba(0, 0, 30, .7), 0 0 40px rgba(33, 150, 243, .28), inset 0 1px 0 rgba(255, 255, 255, .08); }
.s-pass .ps-mod .row { display: flex; justify-content: space-between; align-items: center; }
.s-pass .ps-mod .ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: rgba(33, 150, 243, .16); border: 1px solid rgba(127, 227, 255, .3); }
.s-pass .ps-mod .ic svg { width: 28px; height: 28px; stroke: var(--cyan); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.s-pass .ps-mod .n { font: 600 14px/1 var(--f-mono); letter-spacing: .16em; color: var(--sky); }
.s-pass .ps-mod h4 { font: 800 27px/1.05 var(--f-display); letter-spacing: -.3px; margin: 4px 0 0; }
.s-pass .ps-mod .v { font: 300 17px/1.3 var(--f-body); color: var(--ink-2); margin: 0; }
.s-pass .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.s-pass .chip { font: 500 13.5px/1 var(--f-body); color: var(--ink-2); border: 1px solid var(--line); background: rgba(33, 150, 243, .09); padding: 6px 9px; border-radius: 999px; white-space: nowrap; }

.s-pass .ps-pipe { position: absolute; left: 140px; right: 140px; top: 812px; display: flex; align-items: center; justify-content: space-between; gap: 10px; opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.s-pass .ps-pipe.in { opacity: 1; transform: none; }
.s-pass .ps-pipe .p { display: flex; align-items: center; gap: 10px; font: 600 15px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line); background: rgba(20, 34, 120, .38); padding: 13px 16px; border-radius: 999px; white-space: nowrap; transition: all .35s var(--ease); }
.s-pass .ps-pipe .p svg { width: 18px; height: 18px; stroke: var(--sky); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.s-pass .ps-pipe .p.on { color: var(--white); border-color: rgba(127, 227, 255, .6); background: rgba(33, 150, 243, .28); box-shadow: 0 0 26px rgba(33, 150, 243, .45); }
.s-pass .ps-pipe .p.last { color: var(--cyan); border-color: rgba(127, 227, 255, .45); }
.s-pass .ps-pipe .ar { flex: 1; height: 2px; min-width: 20px; background: linear-gradient(90deg, rgba(127, 227, 255, .1), rgba(127, 227, 255, .6)); position: relative; }
.s-pass .ps-pipe .ar::after { content: ''; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid rgba(127, 227, 255, .7); border-right: 0; }

.s-pass .ps-close { position: absolute; left: 140px; right: 140px; top: 890px; opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.s-pass .ps-close.in { opacity: 1; transform: none; }
.s-pass .ps-close p { margin: 0; font: 800 42px/1.2 var(--f-display); letter-spacing: -.8px; }
.s-pass .ps-close em { font-style: normal; color: var(--cyan); text-shadow: 0 0 28px rgba(127, 227, 255, .45); }

/* ---------- Agentic Yield Management (#yieldFlow) ---------- */
.s-yield .yd-head { position: absolute; left: 140px; right: 140px; top: 132px; display: flex; flex-direction: column; align-items: flex-start; }
.s-yield .yd-title { font: 800 62px/1.02 var(--f-display); letter-spacing: -1.5px; margin-top: 18px; }
.s-yield .yd-head .lead { font-size: 24px; margin: 10px 0 0; }
.s-yield .lead b { color: var(--white); font-weight: 600; }
.s-yield .yd-soon { position: absolute; right: 140px; top: 132px; font: 600 14px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--sky); border: 1px dashed rgba(127, 227, 255, .45); padding: 10px 16px; border-radius: 999px; }

.s-yield .yd-card { position: absolute; left: 140px; top: 318px; width: 930px; height: 640px; padding: 28px 32px; display: flex; flex-direction: column; gap: 16px; }
.s-yield .yd-card .top { display: flex; align-items: center; gap: 16px; }
.s-yield .scr { width: 58px; height: 38px; border-radius: 6px; background: linear-gradient(135deg, #2f63ff, #6b4dff 60%, #7fe3ff); box-shadow: 0 0 16px rgba(47, 99, 255, .6); flex: none; }
.s-yield .name { font: 800 24px/1.1 var(--f-display); }
.s-yield .name small { display: block; font: 400 14px/1.3 var(--f-mono); color: var(--ink-3); margin-top: 4px; letter-spacing: .04em; }
.s-yield .tag { margin-left: auto; font: 600 13px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--line); padding: 8px 12px; border-radius: 999px; }
.s-yield .ctitle { display: flex; justify-content: space-between; font: 600 14px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.s-yield .ctitle .lg { display: flex; gap: 18px; color: var(--ink-3); letter-spacing: .08em; }
.s-yield .ctitle .lg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.s-yield .chart { position: relative; height: 200px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 22px; align-items: end; padding: 0 6px; border-bottom: 1px solid var(--line); }
.s-yield .chart .cap { position: absolute; left: 0; right: 0; top: 0; border-top: 1px dashed rgba(200, 214, 255, .18); }
.s-yield .col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.s-yield .bar { position: relative; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, rgba(95, 184, 255, .55), rgba(33, 150, 243, .25)); transition: background .6s, box-shadow .6s; }
.s-yield .col.low .bar { background: linear-gradient(180deg, rgba(255, 91, 115, .45), rgba(255, 91, 115, .14)); box-shadow: 0 0 0 1.5px rgba(255, 91, 115, .55) inset; }
.s-yield .fill { position: absolute; left: 0; right: 0; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, #7fe3ff, #2196f3); box-shadow: 0 0 18px rgba(127, 227, 255, .55); height: 0; transition: height 1.2s var(--ease), bottom 1.2s var(--ease); }
.s-yield .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 22px; padding: 0 6px; margin-top: -6px; }
.s-yield .days span { text-align: center; font: 600 14px/1 var(--f-mono); letter-spacing: .12em; color: var(--ink-3); }
.s-yield .days span.low { color: var(--danger); }
.s-yield .flag { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(100% + 8px); white-space: nowrap; font: 600 12px/1 var(--f-mono); letter-spacing: .1em; color: var(--danger); opacity: 0; transition: opacity .5s; }
.s-yield .col.low .flag { opacity: 1; }
.s-yield .col.up .flag { opacity: 0; }
.s-yield .sig { display: flex; flex-wrap: wrap; gap: 10px; min-height: 36px; }
.s-yield .sig span { font: 500 15px/1 var(--f-body); color: var(--ink-2); border: 1px solid var(--line); background: rgba(33, 150, 243, .09); padding: 9px 13px; border-radius: 999px; opacity: 0; transform: translateY(6px); transition: all .4s var(--ease); }
.s-yield .sig span.in { opacity: 1; transform: none; }
.s-yield .sig span.hot { color: var(--white); border-color: rgba(127, 227, 255, .55); background: rgba(33, 150, 243, .26); }
.s-yield .panel { position: relative; flex: 1; border-top: 1px solid var(--line); padding-top: 16px; }
.s-yield .pv { position: absolute; inset: 16px 0 0; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.s-yield .pv.in { opacity: 1; transform: none; }
.s-yield .pv .k { font: 600 13px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--sky); margin-bottom: 12px; display: block; }
.s-yield .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.s-yield .opt { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: rgba(20, 34, 120, .3); transition: all .5s; }
.s-yield .opt b { display: block; font: 800 19px/1.2 var(--f-display); margin-bottom: 4px; }
.s-yield .opt p { margin: 0; font: 300 16px/1.4 var(--f-body); color: var(--ink-2); }
.s-yield .opt.ok { border-color: rgba(182, 156, 255, .6); background: rgba(107, 77, 255, .18); box-shadow: 0 0 26px rgba(182, 156, 255, .25); }
.s-yield .opt .appr { display: none; font: 600 12px/1 var(--f-mono); letter-spacing: .14em; color: #b69cff; margin-top: 10px; }
.s-yield .opt.ok .appr { display: block; }
.s-yield .chan { display: flex; gap: 12px; flex-wrap: wrap; }
.s-yield .chan span { font: 600 15px/1 var(--f-mono); letter-spacing: .06em; color: var(--white); border: 1px solid rgba(127, 227, 255, .5); background: rgba(33, 150, 243, .22); padding: 12px 16px; border-radius: 12px; }
.s-yield .chan span.m { color: var(--ink-2); border-color: var(--line); background: transparent; }
.s-yield .spark { display: flex; align-items: center; gap: 22px; }
.s-yield .spark svg { width: 420px; height: 80px; }
.s-yield .spark .sl { fill: none; stroke: url(#ydSg); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px #2196f3); stroke-dasharray: 520; stroke-dashoffset: 520; transition: stroke-dashoffset 2.4s var(--ease); }
.s-yield .spark .sl.on { stroke-dashoffset: 0; }
.s-yield .spark p { margin: 0; font: 300 17px/1.45 var(--f-body); color: var(--ink-2); max-width: 360px; }
.s-yield .spark p b { color: var(--white); font-weight: 600; }
.s-yield .exp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.s-yield .exp div { border: 1px solid rgba(127, 227, 255, .35); border-radius: 14px; padding: 12px 14px; background: rgba(33, 150, 243, .12); }
.s-yield .exp span { display: block; font: 600 12px/1 var(--f-mono); letter-spacing: .16em; color: var(--cyan); margin-bottom: 8px; }
.s-yield .exp p { margin: 0; font: 300 15px/1.4 var(--f-body); color: var(--ink-2); }
.s-yield .pv.idle p { margin: 0; font: 300 19px/1.5 var(--f-body); color: var(--ink-3); }

.s-yield .yd-tl { position: absolute; left: 1120px; right: 140px; top: 318px; height: 640px; display: flex; flex-direction: column; justify-content: space-between; }
.s-yield .yd-tl::before { content: ''; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: rgba(255, 255, 255, .1); }
.s-yield .fill-line { position: absolute; left: 23px; top: 24px; width: 2px; height: 0; background: linear-gradient(180deg, var(--royal), var(--latinad), var(--cyan)); box-shadow: 0 0 12px var(--latinad); transition: height .8s var(--ease); }
.s-yield .st { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: center; opacity: .32; transition: opacity .5s; }
.s-yield .st.past { opacity: .7; }
.s-yield .st.now { opacity: 1; }
.s-yield .st .n { width: 48px; height: 48px; border-radius: 14px; background: #0a1255; border: 2px solid rgba(127, 170, 255, .4); display: grid; place-items: center; font: 800 18px var(--f-display); transition: all .45s var(--ease); position: relative; z-index: 1; }
.s-yield .st.now .n { background: var(--latinad); border-color: var(--cyan); box-shadow: 0 0 0 8px rgba(33, 150, 243, .18), 0 0 40px var(--latinad); }
.s-yield .st.past .n { border-color: rgba(127, 227, 255, .6); color: var(--cyan); }
.s-yield .st h4 { font: 800 22px/1.1 var(--f-display); margin: 0; }
.s-yield .st p { margin: 3px 0 0; font: 300 16px/1.35 var(--f-body); color: var(--ink-2); }
.s-yield .st.h .n { border-color: rgba(182, 156, 255, .55); background: rgba(107, 77, 255, .25); }
.s-yield .st.h .n svg { width: 22px; height: 22px; stroke: #b69cff; fill: none; stroke-width: 2; stroke-linecap: round; }
.s-yield .st.h h4 { color: #b69cff; }
.s-yield .st.h.now .n { background: rgba(107, 77, 255, .55); border-color: #b69cff; box-shadow: 0 0 0 8px rgba(182, 156, 255, .16), 0 0 40px rgba(182, 156, 255, .6); }
.s-yield .st.h.now .n svg { stroke: #fff; }

.s-yield .yd-final { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 140px; background: rgba(6, 11, 54, .84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; pointer-events: none; transition: opacity .9s var(--ease); z-index: 5; }
.s-yield .yd-final.in { opacity: 1; }
.s-yield .yd-final .inner { display: flex; flex-direction: column; align-items: flex-start; max-width: 1560px; }
.s-yield .yd-final .a { font: 300 46px/1.3 var(--f-body); color: var(--ink-2); margin: 30px 0 0; }
.s-yield .yd-final-title { font: 800 90px/1.05 var(--f-display); letter-spacing: -2.4px; margin-top: 16px; }

/* Vista general (tecla O) */
body.overview #stage { transition: transform .5s var(--ease); }
body.overview .slides { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; padding: 40px; overflow: auto; z-index: 30; background: rgba(3, 6, 36, .92); }
body.overview .slide { position: relative; inset: auto; opacity: 1; visibility: visible; filter: none; transform: none; height: 165px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; padding: 14px; cursor: pointer; transition: border-color .2s; background: rgba(20, 34, 120, .3); }
body.overview .slide > * { display: none; }
body.overview .slide::before { content: attr(data-n) '  ' attr(data-title); font: 600 16px/1.4 var(--f-display); color: #fff; white-space: pre-wrap; }
body.overview .slide.active { border-color: var(--cyan); box-shadow: 0 0 0 2px var(--cyan); }
body.overview .slide:hover { border-color: var(--sky); }
body.overview #hero3d { opacity: 0 !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Cierre: link a las presentaciones comerciales */
.s-close .learn-link { position: absolute; left: 50%; top: 44px; transform: translateX(-50%); white-space: nowrap; display: inline-flex; align-items: center; gap: 14px; padding: 14px 24px; border-radius: 999px; font: 700 20px/1 var(--f-display); color: #fff; text-decoration: none; background: rgba(33, 150, 243, .16); border: 1px solid rgba(127, 227, 255, .5); box-shadow: 0 0 30px -8px rgba(33, 150, 243, .7); }
.s-close .learn-link span { font: 500 14px/1 var(--f-mono); letter-spacing: .04em; color: var(--cyan); }
.s-close .learn-link:hover { background: rgba(33, 150, 243, .32); }

/* ---------- Human in the loop (#hilFlow) ---------- */
.s-hil .hl-head { position: absolute; left: 140px; top: 150px; right: 140px; display: flex; flex-direction: column; align-items: flex-start; }
.s-hil .hl-title { font: 800 72px/1.02 var(--f-display); letter-spacing: -1.8px; margin-top: 26px; }
.s-hil .row { display: flex; justify-content: space-between; align-items: flex-end; width: 100%; margin-top: 22px; gap: 40px; }
.s-hil .lead { font-size: 28px; margin: 0; max-width: none; }
.s-hil .lead b { color: var(--white); font-weight: 600; }
.s-hil .legend { display: flex; gap: 28px; font: 500 15px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.s-hil .legend span { display: flex; align-items: center; gap: 10px; }
.s-hil .legend .ia { width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.s-hil .legend .hu { width: 14px; height: 14px; border-radius: 4px; background: #b69cff; box-shadow: 0 0 12px #b69cff; }
.s-hil .hl-svg { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: visible; pointer-events: none; }
.s-hil .rail { stroke: rgba(255, 255, 255, .1); stroke-width: 3; }
.s-hil .rail-fg { stroke: url(#hlRailGrad); stroke-width: 3; filter: drop-shadow(0 0 8px #2196f3); }
.s-hil .node rect { fill: #0a1255; stroke: rgba(127, 170, 255, .45); stroke-width: 2; }
.s-hil .node text { font: 800 18px var(--f-display); fill: #fff; text-anchor: middle; dominant-baseline: central; }
.s-hil .node .tag { font: 600 10px var(--f-mono); fill: #060b36; }
.s-hil .node .tagbg { fill: var(--cyan); }
.s-hil .gate rect { fill: rgba(182, 156, 255, .08); stroke: rgba(182, 156, 255, .35); stroke-width: 2; transition: all .6s var(--ease); }
.s-hil .gate path, .s-hil .gate circle { fill: none; stroke: rgba(182, 156, 255, .45); stroke-width: 2.2; stroke-linecap: round; transition: stroke .6s; }
.s-hil .gate.on rect { fill: rgba(182, 156, 255, .22); stroke: #b69cff; filter: drop-shadow(0 0 18px rgba(182, 156, 255, .7)); }
.s-hil .gate.on path, .s-hil .gate.on circle { stroke: #fff; }
.s-hil .gate.ping rect { animation: hlPing .9s var(--ease); }
@keyframes hlPing { 40% { filter: drop-shadow(0 0 34px #b69cff); } }
.s-hil .gate .ok { font: 600 15px var(--f-mono); letter-spacing: .08em; fill: #b69cff; text-anchor: middle; opacity: 0; transition: opacity .3s; }
.s-hil .gate.ping .ok { opacity: 1; }
.s-hil .phase { font: 600 15px var(--f-mono); letter-spacing: .2em; fill: rgba(200, 214, 255, .45); text-anchor: middle; transition: fill .6s; }
.s-hil .phase.on { fill: #b69cff; }
.s-hil #hlDot { fill: var(--cyan); filter: drop-shadow(0 0 10px #7fe3ff); }
.s-hil .loop { fill: none; stroke: var(--sky); stroke-width: 2; stroke-dasharray: 8 10; opacity: 0; transition: opacity .8s; }
.s-hil .loop.on { opacity: .85; animation: hlDash 1.2s linear infinite; }
@keyframes hlDash { to { stroke-dashoffset: -18; } }
.s-hil .looplab { font: 600 15px var(--f-mono); letter-spacing: .16em; fill: var(--sky); text-anchor: middle; opacity: 0; transition: opacity .8s; }
.s-hil .looplab.on { opacity: 1; }
.s-hil .hl-cards { position: absolute; left: 140px; right: 140px; top: 612px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.s-hil .hl-card { padding: 30px 32px; display: flex; flex-direction: column; gap: 20px; opacity: .28; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .8s; }
.s-hil .hl-card.on { opacity: 1; transform: none; border-color: rgba(182, 156, 255, .45); }
.s-hil .hl-card .top { display: flex; align-items: center; gap: 18px; }
.s-hil .hl-card .ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: rgba(182, 156, 255, .14); border: 1px solid rgba(182, 156, 255, .4); flex: none; }
.s-hil .hl-card .ic svg { width: 30px; height: 30px; stroke: #b69cff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.s-hil .hl-card .lbl { font: 600 13px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: #b69cff; display: block; margin-bottom: 8px; }
.s-hil .hl-card h3 { font: 800 38px/1.05 var(--f-display); margin: 0; }
.s-hil .hl-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.s-hil .hl-card li { font: 300 21px/1.4 var(--f-body); color: var(--ink-2); display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.s-hil .hl-card li::before { content: ''; width: 7px; height: 7px; background: var(--latinad); box-shadow: 0 0 8px var(--latinad); margin-top: 12px; }
.s-hil .hl-quote { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 140px; background: rgba(6, 11, 54, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; pointer-events: none; transition: opacity .9s var(--ease); z-index: 5; }
.s-hil .hl-quote.on { opacity: 1; }
.s-hil .hl-quote .inner { display: flex; flex-direction: column; align-items: flex-start; max-width: 1500px; }
.s-hil .hl-quote .a { font: 300 44px/1.3 var(--f-body); color: var(--ink-2); margin: 30px 0 0; }
.s-hil .hl-qtitle { font: 800 96px/1.04 var(--f-display); letter-spacing: -2.6px; margin-top: 18px; }

/* Qué está cambiando: cada cuadrante se activa con un clic */
.s-change .card.frag { opacity: .28; transform: none; filter: saturate(.5); transition: opacity .7s var(--ease), filter .7s var(--ease), border-color .7s, box-shadow .7s, translate .7s var(--ease); }
.s-change .card.frag.on { opacity: 1; filter: none; }
.s-change .card.frag.on:not(.passed) { translate: 0 -8px; border-color: rgba(127, 227, 255, .55); box-shadow: 0 30px 80px -30px rgba(0, 0, 30, .7), 0 0 50px -10px rgba(33, 150, 243, .7); }
.s-change .card.frag.on:not(.passed) .ic { background: var(--latinad); box-shadow: 0 0 26px var(--latinad); }
.s-change .card.frag.on:not(.passed) .ic svg { stroke: #fff; }

/* Del copiloto al piloto automático: una etapa por clic; la línea avanza con cada una */
.s-evo .evo .rail i { animation: none !important; width: 0; transition: width .9s var(--ease); }
.s-evo .evo:has(> .st:nth-child(3).on) .rail i { width: 3%; }
.s-evo .evo:has(> .st:nth-child(4).on) .rail i { width: 28%; }
.s-evo .evo:has(> .st:nth-child(5).on) .rail i { width: 53%; }
.s-evo .evo:has(> .st:nth-child(6).on) .rail i { width: 78%; }
.s-evo .evo .here { opacity: 0; transition: opacity .6s var(--ease) .3s; }
.s-evo .evo:has(> .st.now.on) .here { opacity: 1; }

/* Oportunidad vs riesgo: un bloque por clic (oportunidad → su riesgo) */
.s-vs .o.frag { transform: translateX(-50px); }
.s-vs .k.frag { transform: translateX(50px); }
.s-vs .o.frag.on, .s-vs .k.frag.on { transform: none; }
.s-vs .mid { opacity: 0; transition: opacity .6s var(--ease); }
.s-vs .mid:has(+ .k.on) { opacity: 1; }

/* ---------- Modo liviano en celulares (html.lite, ver <head>) ---------- */
html.lite #hero3d, html.lite #latinad3d, html.lite #particles, html.lite .bg-streaks, html.lite .bg-grain { display: none !important; }
html.lite .bg-grid { animation: none !important; }
html.lite *, html.lite *::before, html.lite *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html.lite .slide { filter: none !important; }
html.lite .glass { background: rgba(14, 24, 96, .92); }

/* ---------- Controles en pantalla: pantalla completa + flechas (abajo a la derecha) ---------- */
.dk-nav { position: fixed; right: 16px; bottom: 18px; z-index: 1000; display: flex; gap: 8px; transition: opacity .45s var(--ease), transform .45s var(--ease); }
body.idle .dk-nav, body.overview .dk-nav { opacity: 0; pointer-events: none; transform: translateY(8px); }
.dk-nbtn { width: 42px; height: 42px; border-radius: 999px; display: inline-grid; place-items: center; padding: 0; border: 1px solid rgba(140, 170, 255, .28); background: rgba(6, 11, 54, .72); color: #fff; cursor: pointer; transition: background .25s, border-color .25s, transform .25s var(--ease); }
.dk-nbtn[hidden] { display: none; }
.dk-nbtn:hover, .dk-nbtn.on { background: rgba(33, 150, 243, .32); border-color: var(--cyan); transform: translateY(-1px); }
.dk-nbtn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.dk-nbtn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
