/* =========================================================
   LatinAd · Presentaciones comerciales — sistema de diseño
   Stage fijo 1920x1080 escalado a la ventana (igual que OOH Summit 2026).
   Componentes documentados en docs/COMPONENTES.md
   ========================================================= */
:root {
  --grad-text: linear-gradient(100deg, #8fc1ea 0%, #29ebff 32%, #1488ea 68%, #1f6bff 100%);
  --navy-950: #030624;
  --navy-900: #060b36;
  --navy-800: #0a1255;
  --navy-700: #111c7a;
  --royal: #1f2fe0;
  --blue: #2f63ff;
  --latinad: #2196f3;
  --sky: #5fb8ff;
  --cyan: #7fe3ff;
  --violet: #6b4dff;
  --lilac: #b69cff;
  --white: #ffffff;
  --ink-2: rgba(226, 234, 255, .78);
  --ink-3: rgba(200, 214, 255, .5);
  --line: rgba(140, 170, 255, .18);
  --line-2: rgba(140, 170, 255, .32);
  --glass: rgba(20, 34, 120, .38);
  --danger: #ff5b73;
  --warn: #ffcc66;
  --ok: #40e0a0;
  --accent: var(--cyan);
  --accent-2: var(--latinad);
  --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);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
}
body[data-theme="violet"] { --accent: #b69cff; --accent-2: #6b4dff; }
body[data-theme="green"]  { --accent: #6ff5c2; --accent-2: #19c48a; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
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; }
img, video { display: block; }
a { color: inherit; }

/* ---------- Stage ---------- */
#stage {
  /* fixed: el lienzo de 1920 px sin escalar no cuenta para el ancho de la página. Con absolute, el navegador
     del celular agrandaba la página a ~975 px para que entrara, y todo (3D incluido) se dibujaba en resolución de escritorio. */
  position: fixed;
  width: 1920px; height: 1080px;
  left: 50%; top: 50%;
  transform-origin: 0 0;
  overflow: hidden;
  background: var(--navy-900);
  isolation: isolate;
}

/* ---------- Fondo 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%); }
/* Celulares y tablets: fondo liviano. En WebKit (Safari y Chrome de iPhone) las capas animadas, con máscara, blur o
   mix-blend-mode dentro del stage escalado se dibujan a 1920×1080 × la densidad de pantalla, sin importar la escala:
   el fondo completo sumaba ~600 MB de memoria gráfica y el navegador cerraba la página. Aquí la viñeta va dentro del
   fondo base, la grilla queda fija y sin máscara, y se quitan las franjas desenfocadas y el grano. */
@media (pointer: coarse), (max-width: 900px) {
  .bg-streaks, .bg-grain, .bg-vignette { display: none; }
  .slide { filter: none; }  /* transición sin blur: cada slide desenfocada pedía otro búfer de pantalla completa */
  .bg-grid { animation: none; -webkit-mask-image: none; mask-image: none; opacity: .6; }
  .bg-base {
    background:
      radial-gradient(1400px 900px at 50% 50%, transparent 55%, rgba(2, 4, 26, .75) 100%),
      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%);
  }
}

/* Foto de fondo por slide: <div class="slide-bg"><img src="…"></div> */
.slide-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.slide-bg img, .slide-bg video { width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: saturate(1.1) contrast(1.05); }
.slide-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 11, 54, .95) 0%, rgba(6, 11, 54, .7) 45%, rgba(6, 11, 54, .35) 100%); }
.slide-bg.center::after { background: radial-gradient(1100px 700px at 50% 50%, rgba(6, 11, 54, .55), rgba(6, 11, 54, .95)); }
.slide.active .slide-bg img, .slide.active .slide-bg video { animation: kenburns 18s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }

/* 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[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); } }

#latinad3d { 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(--accent); box-shadow: 0 0 14px var(--accent); 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(--accent));
  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; }

/* ---------- Controles visibles (fuera del stage, tamaño real de pantalla) ---------- */
.dk-ui { position: fixed; z-index: 90; display: flex; gap: 8px; transition: opacity .45s var(--ease), transform .45s var(--ease); }
body.idle .dk-ui, body.overview .dk-ui.nav { opacity: 0; pointer-events: none; transform: translateY(8px); }
.dk-ui.top { left: 16px; top: 14px; }
.dk-ui.nav { right: 16px; bottom: 18px; }
.dk-btn {
  height: 42px; min-width: 42px; padding: 0 14px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid rgba(140, 170, 255, .28); background: rgba(6, 11, 54, .62);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: #fff; font: 600 13px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.dk-btn:hover { background: rgba(33, 150, 243, .32); border-color: var(--accent); transform: translateY(-1px); }
.dk-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dk-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dk-btn.round { padding: 0; width: 42px; }
.dk-hint {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); z-index: 95;
  padding: 12px 20px; border-radius: 999px; background: rgba(6, 11, 54, .85); border: 1px solid var(--line-2);
  font: 500 14px/1.2 var(--f-body); color: var(--ink-2); opacity: 0; pointer-events: none; transition: all .6s var(--ease);
  backdrop-filter: blur(12px); white-space: nowrap;
}
.dk-hint.on { opacity: 1; transform: translate(-50%, 0); }
.dk-hint kbd { font: 600 12px/1 var(--f-mono); padding: 3px 7px; border-radius: 6px; background: rgba(255, 255, 255, .12); color: #fff; margin: 0 2px; }

/* Cortina de entrada / salida (continuidad con el portal) */
#curtain {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  background: radial-gradient(900px 600px at 50% 50%, #1b3cff 0%, #070d45 55%, #030624 100%);
  opacity: 1; transition: opacity .9s var(--ease) .15s;
}
#curtain::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; translate: -50% -50%;
  background: url("../img/isotipo-blanco.svg") center/contain no-repeat;
  animation: curtainIso 1.2s var(--ease) both;
}
@keyframes curtainIso { from { scale: .6; opacity: 0; } 50% { opacity: 1; } to { scale: 1.6; opacity: 0; } }
body.ready #curtain { opacity: 0; }
body.leaving #curtain { opacity: 1; transition-delay: 0s; transition-duration: .5s; }

/* Pedir girar el teléfono */
#rotate {
  position: fixed; inset: auto 12px 12px 12px; z-index: 96; display: none;
  padding: 14px 18px; border-radius: 16px; background: rgba(6, 11, 54, .9); border: 1px solid var(--line-2);
  font: 500 14px/1.4 var(--f-body); color: var(--ink-2); align-items: center; gap: 12px;
}
#rotate b { color: #fff; }
#rotate button { margin-left: auto; background: none; border: 0; color: var(--ink-3); font-size: 20px; cursor: pointer; }
@media (orientation: portrait) and (max-width: 900px) { #rotate:not(.dismissed) { display: flex; } }

/* ---------- 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.slide-off { display: none; }
.slide .notes { display: none; }

/* Reveal escalonado: .r + 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; }
.slide.active .r.flip { animation-name: flipIn; transform-origin: 50% 100%; }
.slide.active .r.drop { animation-name: dropIn; animation-timing-function: var(--ease-back); }
.slide.active .r.pop { animation-name: popIn; animation-timing-function: var(--ease-back); }
.slide.active .r.tilt3d { animation-name: tiltIn; animation-duration: 1.3s; }
@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; } }
@keyframes flipIn { from { opacity: 0; transform: perspective(1200px) rotateX(-60deg); } to { opacity: 1; transform: none; } }
@keyframes dropIn { from { opacity: 0; translate: 0 -60px; scale: .9; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes popIn { from { opacity: 0; scale: .4; } to { opacity: 1; scale: 1; } }
@keyframes tiltIn { from { opacity: 0; transform: perspective(1600px) rotateY(-28deg) rotateX(10deg) translateX(80px); } to { opacity: 1; transform: none; } }

/* 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); }
.small { font: 400 20px/1.5 var(--f-body); color: var(--ink-3); }
.mono { font-family: var(--f-mono); }
.lead b, .body b { color: var(--white); font-weight: 500; }
.grad {
  background: var(--grad-text);
  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; } }
.outline { color: transparent; -webkit-text-stroke: 2px rgba(159, 216, 255, .7); }
.muted { color: var(--ink-3); }
.hl { color: var(--accent); }
.bad { color: #ff9aaa; }
.good { color: var(--ok); }
mark.hi { background: none; color: #fff; position: relative; z-index: 0; padding: 0 .12em; }
mark.hi::before { content: ''; position: absolute; inset: 8% 0 4%; z-index: -1; background: linear-gradient(90deg, rgba(33, 150, 243, .55), rgba(127, 227, 255, .35)); border-radius: 6px; transform: scaleX(0); transform-origin: left; }
.slide.active mark.hi::before { animation: markIn .9s var(--ease) both; animation-delay: calc(var(--d, 6) * 110ms + 400ms); }
@keyframes markIn { to { transform: scaleX(1); } }

/* ---------- Superficies ---------- */
.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(--accent) 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; } }
.glass.solid { background: linear-gradient(145deg, #121d78, #0a1152); backdrop-filter: none; }

.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(--accent);
}
.pill .live { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 12px var(--danger); animation: pulse 1.4s infinite; }
.pill .ok { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); animation: pulse 1.6s infinite; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font: 600 14px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; background: rgba(33, 150, 243, .16); border: 1px solid rgba(127, 227, 255, .3); color: var(--accent); }
.tag.ok { color: var(--ok); background: rgba(64, 224, 160, .12); border-color: rgba(64, 224, 160, .4); }
.tag.bad { color: #ff9aaa; background: rgba(255, 91, 115, .12); border-color: rgba(255, 91, 115, .4); }
.tag.warn { color: var(--warn); background: rgba(255, 204, 102, .1); border-color: rgba(255, 204, 102, .4); }
.tag-ai { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; font: 700 14px/1 var(--f-mono); letter-spacing: .06em; color: #fff; background: linear-gradient(135deg, var(--latinad), var(--violet)); box-shadow: 0 0 20px rgba(107, 77, 255, .5); }

.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, .shot video { width: 100%; height: auto; }
.shot.cover img, .shot.cover video { height: 100%; object-fit: cover; }

.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 video, .media-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Ribbons LATINAD ---------- */
.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; }
.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; } }

/* =========================================================
   Layouts
   ========================================================= */
.s-center { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.s-center .lead { margin-left: auto; margin-right: auto; }
.s-vcenter { display: flex; flex-direction: column; justify-content: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; height: 100%; }
.split.l-wide { grid-template-columns: 1.25fr 1fr; }
.split.r-wide { grid-template-columns: 1fr 1.3fr; }
.split.r-xwide { grid-template-columns: 760px 1fr; }
.grid { display: grid; gap: 28px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
.g6 { grid-template-columns: repeat(6, 1fr); }
.row { display: flex; align-items: center; gap: 24px; }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 24px; }
.mt-s { margin-top: 24px; } .mt-m { margin-top: 44px; } .mt-l { margin-top: 70px; } .mt-xl { margin-top: 110px; }
.title-block .h-l, .title-block .h-m, .title-block .h-xl { margin-top: 26px; }
.title-block .lead, .title-block .body { margin-top: 26px; }

/* Statements */
.s-statement { display: flex; flex-direction: column; justify-content: center; }
.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 .6s; }
@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; }
}

/* Separadores de sección */
.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;
}
.slide.active.s-section .num { animation: numIn 1.6s var(--ease) both .2s; }
@keyframes numIn { from { opacity: 0; translate: 120px 0; } to { opacity: 1; translate: 0 0; } }
.s-section .h-xl { max-width: 1200px; margin-top: 30px; }
.s-section .lead { margin-top: 34px; }

/* Portada */
.s-hero { padding: 0; }
.s-hero .copy { position: absolute; left: 140px; top: 190px; width: 1000px; z-index: 4; }
.s-hero .logo { position: absolute; left: 140px; top: 84px; height: 46px; z-index: 4; }
.s-hero .copy .pill { margin-bottom: 36px; }
.s-hero h1 { font: 900 112px/.95 var(--f-display); letter-spacing: -.035em; text-shadow: 0 10px 60px rgba(0, 0, 40, .5); }
.s-hero .sub { margin-top: 34px; font: 300 32px/1.45 var(--f-body); color: var(--ink-2); max-width: 900px; }
.s-hero .sub b { color: var(--white); font-weight: 500; }
.s-hero .scr { display: inline-block; }

/* Cierre / contacto */
.s-close { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 420px; }
.s-close .h-xl { max-width: 1400px; }
.cta { display: inline-flex; align-items: center; gap: 14px; padding: 22px 38px; border-radius: 999px; font: 700 24px/1 var(--f-display); color: #fff; text-decoration: none; background: linear-gradient(135deg, var(--blue), var(--latinad)); box-shadow: 0 20px 60px -15px rgba(33, 150, 243, .8), inset 0 1px 0 rgba(255, 255, 255, .3); position: relative; overflow: hidden; pointer-events: auto; }
.cta::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); translate: -120% 0; animation: shine 3.2s ease-in-out infinite 1.5s; }
@keyframes shine { 60%, 100% { translate: 120% 0; } }
.cta.ghost { background: rgba(33, 150, 243, .12); border: 1px solid rgba(127, 227, 255, .45); box-shadow: none; }
.socials { display: flex; gap: 22px; justify-content: center; }
.socials a { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: rgba(33, 150, 243, .16); border: 1px solid rgba(127, 227, 255, .35); pointer-events: auto; transition: transform .3s var(--ease-back), background .3s; }
.socials a:hover { transform: translateY(-6px) scale(1.06); background: rgba(33, 150, 243, .4); }
.socials svg { width: 32px; height: 32px; color: #fff; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   Componentes
   ========================================================= */

/* Íconos (sprite #i-*) */
.ico { width: 34px; height: 34px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Tarjetas */
.card { padding: 38px 34px; }
.card .ic, .ic-box { width: 68px; height: 68px; border-radius: 18px; display: grid; place-items: center; background: rgba(33, 150, 243, .16); border: 1px solid rgba(127, 227, 255, .3); margin-bottom: 26px; color: var(--accent); flex: none; }
.card .ic svg, .ic-box svg { width: 34px; height: 34px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font: 800 34px/1.12 var(--f-display); margin-bottom: 16px; }
.card p { font: 300 22px/1.5 var(--f-body); color: var(--ink-2); }
.card p b { color: #fff; font-weight: 500; }
.card .num-badge { font: 800 18px/1 var(--f-mono); color: var(--accent); letter-spacing: .1em; margin-bottom: 18px; display: block; }
.card.hl { background: linear-gradient(145deg, rgba(47, 99, 255, .45), rgba(33, 150, 243, .18)); border-color: rgba(127, 227, 255, .5); }

/* Tilt 3D al pasar el mouse (deck.js agrega --rx/--ry) */
.tilt { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0); transition: transform .5s var(--ease), box-shadow .5s; transform-style: preserve-3d; }
.tilt.hover { transition: transform .12s linear; box-shadow: 0 40px 90px -30px rgba(0, 0, 30, .8), 0 0 50px -10px rgba(33, 150, 243, .5); }
.tilt .glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(500px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .14), transparent 45%); opacity: 0; transition: opacity .4s; }
.tilt.hover .glare { opacity: 1; }

/* Íconos en círculo con glow (grillas de features/problemas) */
.orbs { display: grid; gap: 34px 24px; }
.orb { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.orb .o { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); position: relative;
  background: radial-gradient(circle at 50% 35%, rgba(47, 99, 255, .5), rgba(10, 18, 85, .9) 70%);
  border: 2px solid rgba(127, 227, 255, .55); box-shadow: 0 0 30px rgba(33, 150, 243, .45), inset 0 0 20px rgba(127, 227, 255, .25); }
.orb .o svg { width: 46px; height: 46px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.orb .o::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(127, 227, 255, .3); opacity: 0; }
.slide.active .orb .o::after { animation: ripple 3s ease-out infinite; animation-delay: calc(var(--d, 0) * 200ms); }
@keyframes ripple { 0% { opacity: .9; scale: .9; } 100% { opacity: 0; scale: 1.45; } }
.orb b { font: 700 24px/1.25 var(--f-display); }
.orb small { font: 300 19px/1.4 var(--f-body); color: var(--ink-3); }
.orb.bad .o { color: #ff8396; border-color: rgba(255, 91, 115, .6); box-shadow: 0 0 30px rgba(255, 91, 115, .35), inset 0 0 20px rgba(255, 91, 115, .2); background: radial-gradient(circle at 50% 35%, rgba(255, 91, 115, .3), rgba(30, 10, 60, .9) 70%); }
.orb.warn .o { color: var(--warn); border-color: rgba(255, 204, 102, .6); box-shadow: 0 0 30px rgba(255, 204, 102, .3); }
.orb.ok .o { color: var(--ok); border-color: rgba(64, 224, 160, .6); box-shadow: 0 0 30px rgba(64, 224, 160, .3); }

/* Lista con checks animados */
.checks { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.checks li { display: flex; align-items: flex-start; gap: 18px; font: 400 26px/1.4 var(--f-body); color: var(--ink-2); }
.checks li b { color: #fff; font-weight: 600; }
.checks li::before { content: '✓'; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 800 20px/1 var(--f-display); color: #fff; background: linear-gradient(135deg, var(--latinad), var(--blue)); box-shadow: 0 0 18px rgba(33, 150, 243, .6); margin-top: -2px; }
.slide.active .checks li::before { animation: popIn .6s var(--ease-back) both; animation-delay: calc(var(--d, 0) * 110ms + 600ms); }
.checks.x li::before { content: '✕'; background: linear-gradient(135deg, #ff5b73, #b2245a); box-shadow: 0 0 18px rgba(255, 91, 115, .5); }
.checks.dots li::before { content: ''; width: 14px; height: 14px; margin-top: 13px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.checks.sm li { font-size: 21px; gap: 14px; } .checks.sm li::before { width: 30px; height: 30px; font-size: 15px; }

/* KPIs */
.kpis { display: grid; gap: 24px; }
.kpi { padding: 30px 32px; }
.kpi small { display: block; font: 600 15px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.kpi b { display: block; font: 800 64px/1 var(--f-display); letter-spacing: -.02em; }
.kpi b.grad { display: inline-block; }
.kpi em { display: block; font: 400 19px/1.4 var(--f-body); color: var(--ink-2); font-style: normal; margin-top: 12px; }
.kpi.ok b { color: var(--ok); } .kpi.bad b { color: #ff8396; }
.big-num { font: 900 220px/.85 var(--f-display); letter-spacing: -.05em; }

/* Ventana de app / navegador */
.win { border-radius: 20px; overflow: hidden; background: linear-gradient(180deg, #0f1760, #0a1048); border: 1px solid rgba(140, 170, 255, .28); box-shadow: 0 60px 140px -40px rgba(0, 0, 20, .9), 0 0 0 1px rgba(0, 0, 0, .4), 0 0 80px -20px rgba(47, 99, 255, .5); position: relative; }
.win-bar { height: 52px; display: flex; align-items: center; gap: 16px; padding: 0 22px; background: rgba(4, 8, 40, .65); border-bottom: 1px solid var(--line); font: 600 16px/1 var(--f-mono); color: var(--ink-2); letter-spacing: .04em; }
.win-bar .dots { display: flex; gap: 8px; }
.win-bar .dots i { width: 13px; height: 13px; border-radius: 50%; background: #ff5f57; }
.win-bar .dots i:nth-child(2) { background: #febc2e; } .win-bar .dots i:nth-child(3) { background: #28c840; }
.win-bar img { height: 20px; }
.win-bar .sp { margin-left: auto; }
.win-body { padding: 26px; }

/* Indicador "en vivo" */
.live-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(64, 224, 160, .12); border: 1px solid rgba(64, 224, 160, .45); font: 700 14px/1 var(--f-mono); letter-spacing: .1em; color: var(--ok); text-transform: uppercase; }
.live-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: pulse 1.4s infinite; }

/* Pasos horizontales con riel */
.steps { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 30px; }
.steps .rail { position: absolute; left: 40px; right: 40px; top: 40px; height: 3px; background: rgba(255, 255, 255, .1); }
.steps .rail i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--royal), var(--latinad), var(--accent)); box-shadow: 0 0 20px var(--latinad); }
.slide.active .steps .rail i { animation: fillRail 2.6s var(--ease) .9s forwards; }
@keyframes fillRail { to { width: 100%; } }
.steps .st { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.steps .st .node { width: 82px; height: 82px; border-radius: 22px; display: grid; place-items: center; background: var(--navy-800); border: 2px solid rgba(127, 170, 255, .45); color: var(--accent); font: 800 26px var(--f-display); margin-bottom: 26px; position: relative; z-index: 1; box-shadow: 0 0 0 8px rgba(6, 11, 54, .9); }
.steps .st .node svg { width: 38px; height: 38px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.slide.active .steps .st .node { animation: nodeLit .6s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 900ms); }
@keyframes nodeLit { from { border-color: rgba(127, 170, 255, .2); box-shadow: 0 0 0 8px rgba(6, 11, 54, .9); } to { border-color: var(--accent); box-shadow: 0 0 0 8px rgba(6, 11, 54, .9), 0 0 36px rgba(33, 150, 243, .7); } }
.steps .st h4 { font: 800 30px/1.15 var(--f-display); margin-bottom: 12px; }
.steps .st p { font: 300 21px/1.45 var(--f-body); color: var(--ink-2); max-width: 340px; }

/* Ciclo circular: hijos .cy-it posicionados con --a (ángulo); un punto orbita */
.cycle { position: relative; width: 860px; height: 860px; }
.cycle .ring-path { position: absolute; inset: 120px; border-radius: 50%; border: 2px dashed rgba(127, 170, 255, .28); }
.cycle .orbit-dot { position: absolute; left: 50%; top: 50%; width: 0; height: 0; animation: orbit 9s linear infinite; }
.cycle .orbit-dot::before { content: ''; position: absolute; width: 18px; height: 18px; left: -9px; top: calc(-310px - 9px); border-radius: 50%; background: var(--accent); box-shadow: 0 0 24px var(--accent), 0 0 60px var(--latinad); }
@keyframes orbit { to { transform: rotate(360deg); } }
.cycle .cy-core { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 240px; height: 240px; border-radius: 50%; display: grid; place-items: center; text-align: center; padding: 30px; }
.cycle .cy-it { position: absolute; left: 50%; top: 50%; width: 300px; transform: translate(-50%, -50%) rotate(var(--a)) translateY(-310px) rotate(calc(-1 * var(--a))); text-align: center; }
.cycle .cy-it .ic-box { margin: 0 auto 12px; }
.cycle .cy-it b { display: block; font: 700 21px/1.3 var(--f-display); }
.cycle .cy-it.on .ic-box { background: var(--latinad); color: #fff; box-shadow: 0 0 40px var(--latinad); }

/* Timeline vertical */
.tl { position: relative; padding-left: 50px; display: flex; flex-direction: column; gap: 34px; }
.tl::before { content: ''; position: absolute; left: 12px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--latinad), transparent); }
.tl .e { position: relative; }
.tl .e::before { content: ''; position: absolute; left: -46px; top: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--latinad); box-shadow: 0 0 0 6px rgba(33, 150, 243, .2), 0 0 20px var(--latinad); }
.tl .e i { font: 600 15px/1 var(--f-mono); color: var(--accent); letter-spacing: .14em; text-transform: uppercase; font-style: normal; }
.tl .e b { display: block; font: 700 30px/1.2 var(--f-display); margin: 8px 0 6px; }
.tl .e p { font: 300 21px/1.5 var(--f-body); color: var(--ink-2); }

/* Antes / después */
.versus { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: stretch; gap: 0; }
.versus .side { padding: 36px 38px; border-radius: 24px; }
.versus .side.before { background: linear-gradient(145deg, rgba(255, 91, 115, .12), rgba(30, 10, 60, .4)); border: 1px solid rgba(255, 91, 115, .35); }
.versus .side.after { background: linear-gradient(145deg, rgba(64, 224, 160, .12), rgba(10, 40, 80, .4)); border: 1px solid rgba(64, 224, 160, .4); }
.versus .side h4 { font: 700 16px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 22px; }
.versus .before h4 { color: #ff9aaa; } .versus .after h4 { color: var(--ok); }
.versus .mid { display: grid; place-items: center; }
.versus .mid span { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font: 800 30px var(--f-display); background: var(--navy-800); border: 2px solid var(--line-2); box-shadow: 0 0 30px rgba(33, 150, 243, .4); }
.slide.active .versus .mid span { animation: spinIn 1.2s var(--ease-back) both .9s; }
@keyframes spinIn { from { rotate: -180deg; scale: .3; opacity: 0; } to { rotate: 0deg; scale: 1; opacity: 1; } }

/* Barras animadas: .bars > .b[data-v][data-max] > i ; label en small */
.bars { display: flex; align-items: flex-end; gap: 14px; height: 360px; }
.bars .b { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 10px; }
.bars .b i { display: block; width: 100%; height: 0; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--accent), var(--latinad) 40%, var(--royal)); box-shadow: 0 0 24px rgba(33, 150, 243, .4); transition: height 1.4s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); position: relative; }
.bars .b i::after { content: attr(data-label); position: absolute; left: 50%; top: -34px; translate: -50% 0; font: 700 18px/1 var(--f-mono); color: #fff; white-space: nowrap; opacity: 0; transition: opacity .5s; transition-delay: calc(var(--i, 0) * 70ms + 900ms); }
.slide.active .bars .b i::after { opacity: 1; }
.bars .b small { font: 500 15px/1.2 var(--f-mono); color: var(--ink-3); text-align: center; }
.bars .b.hi i { background: linear-gradient(180deg, #fff, var(--accent) 30%, var(--latinad)); }
.bars .b.bad i { background: linear-gradient(180deg, #ff9aaa, var(--danger)); box-shadow: 0 0 24px rgba(255, 91, 115, .4); }

/* Barras horizontales: .hbars > .hb > span(label) + .tr > i[data-v] + b(valor) */
.hbars { display: flex; flex-direction: column; gap: 22px; }
.hb { display: grid; grid-template-columns: 260px 1fr 120px; gap: 20px; align-items: center; }
.hb span { font: 500 21px/1.3 var(--f-body); color: var(--ink-2); }
.hb .tr { height: 18px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.hb .tr i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--royal), var(--latinad), var(--accent)); box-shadow: 0 0 18px rgba(33, 150, 243, .5); transition: width 1.6s var(--ease); transition-delay: calc(var(--i, 0) * 120ms + 300ms); }
.hb b { font: 800 26px/1 var(--f-display); text-align: right; }

/* Gauge circular: .gauge[data-pct] > svg + b */
.gauge { position: relative; width: 220px; height: 220px; display: grid; place-items: center; }
.gauge svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 14; }
.gauge .bgc { stroke: rgba(255, 255, 255, .08); }
.gauge .fgc { stroke: url(#gGauge); stroke-linecap: round; stroke-dasharray: 597; stroke-dashoffset: 597; transition: stroke-dashoffset 1.8s var(--ease) .4s; filter: drop-shadow(0 0 10px rgba(33, 150, 243, .7)); }
.gauge b { font: 800 52px/1 var(--f-display); position: relative; }
.gauge small { position: absolute; bottom: -40px; left: 50%; translate: -50% 0; white-space: nowrap; font: 500 18px/1.3 var(--f-body); color: var(--ink-2); }

/* Dibujo de trazos SVG: agregar class="draw" a path/line/polyline */
.slide .draw { stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); }
.slide.active .draw { animation: drawIn 2.2s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 400ms); }
@keyframes drawIn { to { stroke-dashoffset: 0; } }
.flow-dash { stroke-dasharray: 8 12; animation: dashFlow 1.2s linear infinite; }
@keyframes dashFlow { to { stroke-dashoffset: -40; } }

/* Grilla de calor (deck.js la llena si tiene data-heat) */
.heat { display: grid; gap: 4px; }
.heat i { aspect-ratio: 1; border-radius: 3px; background: rgba(140, 170, 255, .08); transition: background .4s, box-shadow .4s; }
.heat i.on { background: var(--danger); box-shadow: 0 0 10px rgba(255, 91, 115, .7); }
.heat i.ok { background: rgba(64, 224, 160, .7); }

/* Logos */
.logos { display: grid; gap: 22px; align-items: center; }
.logos .lg { height: 120px; display: grid; place-items: center; padding: 20px 26px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.logos .lg img { max-width: 100%; max-height: 70px; object-fit: contain; filter: brightness(0) invert(1); opacity: .88; }
.logos .lg.color img { filter: none; opacity: 1; }
.logos .lg span { font: 800 30px/1 var(--f-display); letter-spacing: -.01em; color: #fff; text-align: center; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .mq { display: flex; gap: 60px; width: max-content; animation: marquee var(--dur, 40s) linear infinite; align-items: center; }
.marquee.rev .mq { animation-direction: reverse; }
.marquee .mq > * { flex: none; }
.marquee img { height: 64px; width: auto; filter: brightness(0) invert(1); opacity: .85; }

/* Tabla */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0 10px; font: 400 21px/1.35 var(--f-body); }
.tbl th { text-align: left; font: 600 14px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding: 0 22px 6px; }
.tbl td { padding: 18px 22px; background: rgba(33, 60, 200, .16); color: var(--ink-2); }
.tbl td:first-child { border-radius: 14px 0 0 14px; color: #fff; font-weight: 600; }
.tbl td:last-child { border-radius: 0 14px 14px 0; }
.tbl .yes { color: var(--ok); font-weight: 700; } .tbl .no { color: var(--ink-3); }
.slide .tbl tbody tr { opacity: 0; }
.slide.active .tbl tbody tr { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 600ms); }

/* Chat */
.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); }
.step { opacity: 0; transform: translateY(8px); transition: all .5s var(--ease); display: flex; gap: 12px; }
.step.on { opacity: 1; transform: none; }
.step .ic { color: var(--sky); width: 22px; flex: none; }
.step.done .ic { color: var(--ok); }
.step.x .ic { color: var(--danger); }
.spin { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pkt { opacity: 0; transform: translateY(10px); transition: all .5s var(--ease); }
.pkt.on { opacity: 1; transform: none; }

/* Mapa con pines: .pins > .pin(style="left:x%;top:y%") */
.pins { position: relative; }
.pin { position: absolute; width: 16px; height: 16px; translate: -50% -50%; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.pin::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: ping 2.4s ease-out infinite; animation-delay: var(--pd, 0s); }
@keyframes ping { 0% { opacity: .9; scale: .4; } 100% { opacity: 0; scale: 2.4; } }
.pin.bad { background: var(--danger); box-shadow: 0 0 14px var(--danger); } .pin.bad::after { border-color: var(--danger); }
.slide .pin { opacity: 0; }
.slide.active .pin { animation: popIn .6s var(--ease-back) both; animation-delay: calc(var(--pi, 0) * 60ms + 700ms); }

/* Cita */
.quote { padding: 34px 40px; font: 300 italic 28px/1.5 var(--f-body); color: var(--ink-2); position: relative; }
.quote::before { content: '“'; position: absolute; left: 20px; top: -30px; font: 900 120px/1 var(--f-display); color: var(--latinad); opacity: .6; }
.quote b { color: #fff; font-style: normal; font-weight: 600; }

/* Precio / tarifas */
.price { padding: 40px 36px; text-align: center; }
.price small { font: 600 15px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.price b { display: block; font: 900 72px/1 var(--f-display); margin: 18px 0 8px; }
.price em { font: 400 19px/1.4 var(--f-body); color: var(--ink-2); font-style: normal; }

/* Dispositivos dibujados en CSS ------------------------------------------- */
/* Tótem / pantalla digital: .dev-totem > .scr > (img|video|contenido) */
.dev-totem { position: relative; width: 420px; padding: 22px 22px 0; }
.dev-totem .frame { position: relative; border-radius: 26px; padding: 18px; background: linear-gradient(160deg, #e9eefc, #9aa3c4 40%, #4a5275); box-shadow: 0 50px 100px -30px rgba(0, 0, 20, .9), inset 0 2px 0 rgba(255, 255, 255, .6); }
.dev-totem .scr { position: relative; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: #050a30; box-shadow: inset 0 0 0 2px #000; }
.dev-totem .scr > img, .dev-totem .scr > video { width: 100%; height: 100%; object-fit: cover; }
.dev-totem .foot { width: 46%; height: 70px; margin: 0 auto; background: linear-gradient(180deg, #3a4165, #1b1f38); clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }
.dev-totem .base { width: 70%; height: 16px; margin: 0 auto; border-radius: 8px; background: #11142a; box-shadow: 0 20px 40px rgba(0, 0, 0, .7); }
.dev-totem.wide { width: 860px; } .dev-totem.wide .scr { aspect-ratio: 16 / 9; }

/* Monitor de escritorio */
.dev-monitor { position: relative; width: 900px; }
.dev-monitor .scr { position: relative; aspect-ratio: 16 / 10; border-radius: 22px 22px 0 0; border: 16px solid #0b0d1c; border-bottom-width: 16px; overflow: hidden; background: #050a30; box-shadow: 0 0 0 2px #2a3050; }
.dev-monitor .scr > img, .dev-monitor .scr > video { width: 100%; height: 100%; object-fit: cover; }
.dev-monitor .chin { height: 54px; border-radius: 0 0 22px 22px; background: linear-gradient(180deg, #e7ebf6, #b9c0d6); box-shadow: 0 2px 0 #2a3050; }
.dev-monitor .neck { width: 150px; height: 90px; margin: 0 auto; background: linear-gradient(90deg, #aab1c8, #e7ebf6, #aab1c8); clip-path: polygon(20% 0, 80% 0, 90% 100%, 10% 100%); }
.dev-monitor .stand { width: 320px; height: 16px; margin: 0 auto; border-radius: 10px; background: linear-gradient(180deg, #e7ebf6, #9aa3c4); box-shadow: 0 24px 50px rgba(0, 0, 0, .6); }

/* Laptop */
.dev-laptop { position: relative; width: 980px; }
.dev-laptop .scr { aspect-ratio: 16 / 10; border-radius: 20px 20px 0 0; border: 14px solid #0b0d1c; overflow: hidden; background: #050a30; box-shadow: 0 0 0 2px #39406a; }
.dev-laptop .scr > img, .dev-laptop .scr > video { width: 100%; height: 100%; object-fit: cover; }
.dev-laptop .kb { height: 26px; margin: 0 -60px; border-radius: 0 0 26px 26px; background: linear-gradient(180deg, #cfd5e6, #7f88a8); box-shadow: 0 30px 60px rgba(0, 0, 0, .6); position: relative; }
.dev-laptop .kb::before { content: ''; position: absolute; left: 50%; top: 0; width: 180px; height: 9px; translate: -50% 0; border-radius: 0 0 10px 10px; background: #8d95b2; }

/* Teléfono */
.dev-phone { position: relative; width: 360px; aspect-ratio: 9 / 19; border-radius: 54px; padding: 14px; background: linear-gradient(160deg, #2b3157, #0b0d1c); box-shadow: 0 60px 120px -30px rgba(0, 0, 20, .9), inset 0 0 0 2px #4a5380; }
.dev-phone .scr { width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: #050a30; position: relative; }
.dev-phone .scr > img, .dev-phone .scr > video { width: 100%; height: 100%; object-fit: cover; }
.dev-phone::before { content: ''; position: absolute; top: 28px; left: 50%; width: 110px; height: 30px; translate: -50% 0; border-radius: 20px; background: #000; z-index: 2; }

/* Cartelera / pantalla LED exterior */
.dev-billboard { position: relative; width: 900px; }
.dev-billboard .scr { aspect-ratio: 16 / 7; border: 14px solid #1a1d33; border-radius: 8px; overflow: hidden; background: #050a30; box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .9), 0 0 0 2px #3a4070; position: relative; }
.dev-billboard .scr > img, .dev-billboard .scr > video { width: 100%; height: 100%; object-fit: cover; }
.dev-billboard .scr::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 2px, transparent 2px 4px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .12) 0 2px, transparent 2px 4px); pointer-events: none; }
.dev-billboard .poles { display: flex; justify-content: space-between; padding: 0 22%; }
.dev-billboard .poles i { width: 34px; height: 180px; background: linear-gradient(90deg, #2a2f50, #4a5280, #2a2f50); }

/* Barrido de escaneo (IA) sobre cualquier contenedor relativo */
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 120px; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(127, 227, 255, .28), transparent); border-bottom: 2px solid rgba(127, 227, 255, .8); animation: scanY 3.2s ease-in-out infinite; mix-blend-mode: screen; }
@keyframes scanY { 0% { translate: 0 -120px; } 100% { translate: 0 calc(var(--h, 600px)); } }

/* Palabras rotativas: .ticker > span (deck.js alterna .on) */
.ticker { display: inline-grid; vertical-align: bottom; }
.ticker > span { grid-area: 1 / 1; opacity: 0; transform: translateY(40%); transition: opacity .5s, transform .6s var(--ease); white-space: nowrap; }
.ticker > span.on { opacity: 1; transform: none; }
.ticker > span.out { opacity: 0; transform: translateY(-40%); }

/* Resaltado secuencial: [data-cycle] marca .on en cada hijo por turno */
[data-cycle] > * { transition: all .5s var(--ease); }
[data-cycle] > .on { border-color: var(--accent) !important; box-shadow: 0 0 0 1px var(--accent), 0 0 50px -6px rgba(33, 150, 243, .7) !important; transform: translateY(-8px); }

/* Notas del orador / ayuda / vista general */
#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; }
#help {
  position: fixed; right: 16px; top: 70px; 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; pointer-events: auto; }
#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; }

#overview {
  position: fixed; inset: 0; z-index: 80; padding: 80px 5vw 40px; overflow: auto;
  background: rgba(3, 6, 36, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
body.overview #overview { opacity: 1; pointer-events: auto; }
#overview h5 { font: 600 13px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--sky); margin-bottom: 22px; }
#overview .ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
#overview button {
  text-align: left; padding: 16px 18px; min-height: 110px; border-radius: 14px; cursor: pointer;
  background: linear-gradient(145deg, rgba(60, 90, 255, .16), rgba(15, 25, 100, .4)); border: 1px solid var(--line);
  color: #fff; font: 600 16px/1.35 var(--f-display); display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s, transform .25s var(--ease);
}
#overview button:hover { border-color: var(--sky); transform: translateY(-3px); }
#overview button.cur { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
#overview button small { font: 600 12px/1 var(--f-mono); letter-spacing: .14em; color: var(--accent); text-transform: uppercase; }
#overview button em { font: 400 12px/1.3 var(--f-mono); color: var(--ink-3); font-style: normal; margin-top: auto; }

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

/* Cursor simulado (ctx.click) */
.dk-cursor { position: absolute; left: 0; top: 0; width: 36px; height: 36px; z-index: 60; pointer-events: none; opacity: 0; transition: transform 1.1s var(--ease-io), opacity .3s, scale .15s; filter: drop-shadow(0 6px 14px rgba(0, 0, 30, .6)); }
.dk-cursor.on { opacity: 1; }
.dk-cursor.press { scale: .82; }
.dk-cursor svg { width: 100%; height: 100%; }
.click { animation: clickPulse .32s var(--ease); }
@keyframes clickPulse { 50% { transform: scale(.94); filter: brightness(1.35); } }

/* Botón de video (abre YouTube en el modal de assets/js/video-modal.js) */
.vid-btn { display: inline-flex; align-items: center; gap: 16px; padding: 10px 26px 10px 10px; border-radius: 999px; text-decoration: none; color: #fff; cursor: pointer; pointer-events: auto;
  background: rgba(6, 11, 54, .62); border: 1px solid rgba(127, 227, 255, .42); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 30, .9); transition: transform .35s var(--ease), border-color .3s, background .3s; }
.vid-btn:hover { transform: translateY(-3px); border-color: var(--accent); background: rgba(33, 150, 243, .26); }
.vid-btn .pl { width: 54px; height: 54px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--latinad) 60%, var(--accent)); animation: vidPulse 2.4s ease-out infinite; }
.vid-btn .pl svg { width: 20px; height: 20px; fill: #fff; stroke: none; margin-left: 3px; }
.vid-btn b { display: block; font: 700 21px/1.1 var(--f-display); letter-spacing: -.01em; }
.vid-btn small { display: block; margin-top: 5px; font: 600 13px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.vid-btn.float { position: absolute; z-index: 6; }
@keyframes vidPulse { 0% { box-shadow: 0 0 0 0 rgba(127, 227, 255, .55); } 100% { box-shadow: 0 0 0 18px rgba(127, 227, 255, 0); } }
