@font-face { font-family: "Bai Jamjuree"; font-weight: 300; font-display: swap; src: url("assets/BaiJamjuree-Light.ttf") format("truetype"); }
@font-face { font-family: "Bai Jamjuree"; font-weight: 400 600; font-display: swap; src: url("assets/BaiJamjuree-Regular.ttf") format("truetype"); }

:root {
  --bg: #01050f;
  --bg-2: #061226;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, .68);
  --faint: rgba(255, 255, 255, .14);
  --cyan: #0092fa;
  --cyan-soft: #5cc2ff;
  --royal: #2438f0;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --top: 64px;
  --bottom: 72px;
  --pad: clamp(16px, 5vw, 88px);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 300 16px/1.5 "Bai Jamjuree", system-ui, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-style: normal; color: var(--cyan-soft); }

/* ---------- Marco fijo ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 20; height: var(--top);
  display: flex; align-items: center; gap: 14px; padding: 0 var(--pad);
  background: linear-gradient(var(--bg) 20%, transparent);
}
.topbar-logo { height: 18px; width: auto; }
.topbar-sep { width: 1px; height: 18px; background: var(--faint); }
.topbar-name { letter-spacing: .02em; font-size: 14px; color: var(--muted); }
.topbar-count { margin-left: auto; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.topbar-count b { color: var(--ink); font-weight: 400; }

.stage { position: fixed; inset: 0; }
.scene {
  position: absolute; inset: 0;
  padding: calc(var(--top) + 8px) var(--pad) calc(var(--bottom) + 8px);
  opacity: 0; visibility: hidden;
  transition: opacity .9s ease, visibility 0s linear .9s;
}
.scene.on { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; }

/* Animación de entrada: se reproduce cada vez que la escena se activa. */
.a { opacity: 0; }
.scene.on .a, .scene.leaving .a { animation: rise 1s var(--d, 0s) var(--ease) both; }
.scene.on .a.pop, .scene.leaving .a.pop { animation-name: pop; }
.scene.on .a.slide-l, .scene.leaving .a.slide-l { animation-name: slideL; animation-duration: 1.3s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
@keyframes slideL { from { opacity: 0; transform: translateX(60px) scale(.97); } to { opacity: 1; transform: none; } }
body.paused .scene * { animation-play-state: paused !important; }

/* ---------- Tipografía común ---------- */
.kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; letter-spacing: .02em; color: var(--cyan-soft);
  margin-bottom: 18px;
}
h2 {
  font-weight: 300; font-size: clamp(30px, 4.4vw, 64px); line-height: 1.06; letter-spacing: -.01em;
  text-wrap: balance;
}
.lead { margin-top: 24px; max-width: 46ch; font-size: clamp(16px, 1.45vw, 21px); color: var(--muted); }
.note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ---------- 1 · Apertura ----------
   0-2 s enlace (HUD) · 2 s destello · 2-6 s el dron aparece centrado y la marca brilla
   6-7,5 s todo se coloca · 8-10,5 s lema y herramientas · 9 s encuadre sobre el dron. */
.s-intro { overflow: hidden; display: grid; align-items: center; --ix: -16%; }
.intro-dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.intro-img, .intro-lock { position: absolute; top: 9vh; right: 0; bottom: 0; width: 74%; }
.intro-img {
  background: url("assets/centinela-dron.webp") 50% 0 / cover;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%), linear-gradient(transparent 0, #000 22%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 38%), linear-gradient(transparent 0, #000 22%);
  mask-composite: intersect; opacity: 0;
}
.scene.on .intro-img { animation: droneIn 14.5s linear both; }
@keyframes droneIn {
  0%, 13.5% { opacity: 0; transform: translateX(var(--ix)) scale(1.5); filter: blur(16px) brightness(2.6); animation-timing-function: cubic-bezier(.1, .7, .2, 1); }
  15% { opacity: 1; }
  34% { transform: translateX(var(--ix)) scale(1.13); filter: blur(0) brightness(.45) saturate(.8); }
  42% { transform: translateX(var(--ix)) scale(1.1); filter: blur(0) brightness(.45) saturate(.8); animation-timing-function: cubic-bezier(.7, 0, .2, 1); }
  52%, 100% { opacity: 1; transform: none; filter: none; }
}
.intro-halo {
  position: absolute; left: 50%; top: 6%; width: 80%; aspect-ratio: 2.2; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(170, 215, 255, .7), rgba(36, 56, 240, .3) 55%, transparent);
  opacity: 0;
}
.scene.on .intro-halo { animation: halo 8s 2s ease-in-out both, breathe 4s 10s ease-in-out infinite; }
@keyframes halo { 25% { opacity: 1; } to { opacity: .6; } }
@keyframes breathe { 50% { opacity: .35; } }
.intro-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--cyan-soft) 30%, #fff 50%, var(--cyan-soft) 70%, transparent);
  box-shadow: 0 0 24px 6px rgba(0, 146, 250, .55);
}
.scene.on .intro-scan { animation: scanDown 1.6s 7.4s ease-in-out both; }
@keyframes scanDown { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* HUD de enlace */
.hud { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.scene.on .hud { animation: hudOut .35s 1.85s ease-in both; }
@keyframes hudOut { to { opacity: 0; transform: scale(.6); } }
.hud > * { grid-area: 1 / 1; }
.hud-h { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan-soft), transparent); box-shadow: 0 0 12px var(--cyan); transform: scaleX(0); }
.hud-v { width: 1px; height: 100%; background: linear-gradient(transparent, var(--cyan-soft), transparent); box-shadow: 0 0 12px var(--cyan); transform: scaleY(0); }
.scene.on .hud-h { animation: grow .9s .2s cubic-bezier(.2, .8, .2, 1) both; }
.scene.on .hud-v { animation: grow .9s .35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes grow { to { transform: none; } }
.hud-ret { width: min(42vh, 60vw); overflow: visible; }
.hud-ret circle, .hud-ret path { fill: none; stroke: var(--cyan-soft); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.hud-ret .r1 { stroke-dasharray: .06 .02; stroke-dashoffset: 1; opacity: .8; }
.hud-ret .r2 { stroke-dasharray: 1; stroke-dashoffset: 1; stroke-width: 2; filter: drop-shadow(0 0 6px var(--cyan)); }
.hud-ret .tk { opacity: 0; }
.scene.on .hud-ret { animation: spin 2.2s linear both, collapse .3s 1.6s ease-in both; }
.scene.on .hud-ret .r1 { animation: draw 1s .4s ease-out forwards; }
.scene.on .hud-ret .r2 { animation: draw .9s .7s ease-out forwards; }
.scene.on .hud-ret .tk { animation: blink .2s 1s steps(2) 3 both; }
@keyframes spin { to { rotate: 120deg; } }
@keyframes collapse { to { scale: .05; } }
@keyframes blink { to { opacity: 1; } }

/* Destello y reflejo horizontal */
.flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 45%, #fff, rgba(120, 190, 255, .8) 30%, rgba(0, 60, 200, 0) 75%); }
.scene.on .flash { animation: flash .9s 1.95s ease-out both; }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
.flare {
  position: absolute; left: 0; right: 0; top: 45%; height: 3px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(92, 194, 255, .9) 30%, #fff 50%, rgba(92, 194, 255, .9) 70%, transparent);
  box-shadow: 0 0 30px 10px rgba(0, 146, 250, .55); transform: scaleX(0);
}
.scene.on .flare { animation: flare 1.4s 1.95s cubic-bezier(.1, .8, .2, 1) both; }
@keyframes flare { 0% { opacity: 1; transform: scaleX(0); } 40% { opacity: 1; transform: scaleX(1.2) scaleY(1.4); } 100% { opacity: 0; transform: scaleX(1.6) scaleY(.4); } }

/* Marca: aparece grande en el centro y vuela a su sitio (--fx, --fy y --fs los calcula app.js). */
.intro-text { position: relative; max-width: 620px; }
.intro-brand { width: fit-content; }
.scene.on .intro-brand { animation: brandFly 14.5s linear both; }
@keyframes brandFly {
  0%, 42% { transform: translate(var(--fx, 0), var(--fy, 0)) scale(var(--fs, 1)); animation-timing-function: cubic-bezier(.7, 0, .2, 1); }
  52%, 100% { transform: none; }
}
.intro-logo-wrap { position: relative; width: clamp(220px, 27vw, 400px); }
.intro-logo { width: 100%; clip-path: inset(-50px 100% -50px -50px); filter: drop-shadow(0 0 28px rgba(0, 146, 250, .6)) drop-shadow(0 4px 18px rgba(0, 0, 0, .8)); }
.scene.on .intro-logo { animation: reveal 1.3s 2.6s cubic-bezier(.6, 0, .2, 1) both; }
@keyframes reveal { to { clip-path: inset(-50px -50px -50px -50px); } }
.glint {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url("assets/aerobur-blanco.svg") center / 100% 100% no-repeat; mask: url("assets/aerobur-blanco.svg") center / 100% 100% no-repeat;
  background: linear-gradient(100deg, transparent 40%, #bfe6ff 48%, #fff 50%, #bfe6ff 52%, transparent 60%) 120% 0 / 300% 100% no-repeat;
}
.scene.on .glint { animation: glint 1.3s 4.3s ease-in-out both; }
@keyframes glint { to { background-position: -20% 0; } }
.intro-name { margin-top: clamp(14px, 2.4vh, 24px); font-size: clamp(16px, 1.9vw, 28px); letter-spacing: .62em; opacity: 0; text-shadow: 0 2px 14px rgba(0, 0, 0, .9); }
.scene.on .intro-name { animation: spread 1.8s 3.4s var(--ease) both; }
@keyframes spread { from { opacity: 0; letter-spacing: 1.6em; filter: blur(6px); } to { opacity: 1; letter-spacing: .62em; filter: none; } }
.intro-tag { margin-top: 8px; font-size: clamp(13px, 1.1vw, 16px); letter-spacing: .16em; color: var(--muted); }
.intro-rule {
  display: block; width: 180px; height: 1px; margin: clamp(18px, 3.4vh, 34px) 0;
  background: linear-gradient(90deg, var(--cyan-soft), transparent); box-shadow: 0 0 10px var(--cyan);
  transform: scaleX(0); transform-origin: left;
}
.scene.on .intro-rule { animation: underline 1s 7.7s var(--ease) both; }
.intro-claim { font-weight: 300; font-size: clamp(34px, 4.6vw, 70px); line-height: 1.05; display: flex; flex-wrap: wrap; gap: 0 .28em; }
.slam { display: inline-block; opacity: 0; }
.scene.on .slam { animation: slam .7s var(--d) cubic-bezier(.2, .9, .25, 1.15) both; }
@keyframes slam { from { opacity: 0; transform: scale(1.9); filter: blur(14px); } 60% { opacity: 1; } to { opacity: 1; transform: none; filter: none; } }
.intro-claim em { text-shadow: 0 0 30px rgba(0, 146, 250, .65); }
.intro-apps { list-style: none; display: flex; flex-wrap: wrap; gap: clamp(10px, 1.6vw, 22px); margin-top: clamp(22px, 4.6vh, 46px); }
.intro-apps li {
  display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px;
  border: 1px solid var(--faint); border-radius: 999px; background: rgba(6, 18, 38, .7);
  font-size: clamp(13px, 1vw, 15px); font-weight: 400;
}
.intro-apps .ico { width: 26px; height: 26px; }

/* Encuadre de objetivo sobre el dron */
.lock-box { position: absolute; left: 31%; top: 9%; width: 42%; height: 54%; opacity: 0; }
.scene.on .lock-box { animation: lock .6s 9.2s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes lock { from { opacity: 0; transform: scale(1.35); } to { opacity: 1; transform: none; } }
.lock-box i { position: absolute; width: 26px; height: 26px; border: 2px solid var(--cyan-soft); filter: drop-shadow(0 0 6px var(--cyan)); }
.lock-box i:nth-child(1) { left: 0; top: 0; border-width: 2px 0 0 2px; }
.lock-box i:nth-child(2) { right: 0; top: 0; border-width: 2px 2px 0 0; }
.lock-box i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 2px 2px; }
.lock-box i:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.lock-box span {
  position: absolute; left: 0; top: -26px; white-space: nowrap;
  font-size: 13px; letter-spacing: .02em; color: var(--cyan-soft);
}

/* La barra superior y los controles entran después de la apertura */
body[data-scene="1"] .topbar { animation: topIn 1s 7.5s both; }
body[data-scene="1"] .controls { animation: topIn .8s 3s both; }
body[data-scene="1"].paused .topbar, body[data-scene="1"].paused .controls { animation-play-state: paused; }
@keyframes topIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 2 · El reto ---------- */
.s-reto { display: grid; place-items: center; text-align: center; overflow: hidden; }
.reto-text { position: relative; z-index: 2; display: grid; justify-items: center; }
.reto-text .lead { margin-inline: auto; }
.reto-chips { position: absolute; inset: 0; display: grid; place-items: center; }
.chip {
  grid-area: 1 / 1; padding: 10px 18px; border: 1px solid var(--faint); border-radius: 999px;
  background: rgba(10, 24, 50, .7); color: var(--muted); font-size: 15px; white-space: nowrap;
  opacity: 0;
}
.scene.on .chip { animation: scatter 7.6s var(--d) var(--ease) both; }
@keyframes scatter {
  0% { opacity: 0; transform: translate(calc(var(--x) * 1.2), calc(var(--y) * 1.2)) scale(.9); }
  12% { opacity: 1; transform: translate(var(--x), var(--y)); }
  62% { opacity: 1; transform: translate(calc(var(--x) * .92), calc(var(--y) * .92)); border-color: var(--faint); }
  86%, 100% { opacity: 0; transform: translate(0, 0) scale(.3); border-color: var(--cyan); }
}

/* ---------- 3 · Ecosistema ---------- */
.s-eco, .s-mision { display: grid; grid-template-rows: auto 1fr; gap: clamp(12px, 3vh, 40px); }
.eco-map { position: relative; width: min(100%, 1100px, calc((100vh - 290px) * 1.78)); aspect-ratio: 1000 / 560; margin: 0 auto; align-self: center; }
.eco-lines { position: absolute; inset: 0 0 7%; width: 100%; height: 93%; overflow: visible; }
.ln {
  fill: none; stroke: var(--cyan); stroke-width: 1.5; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px rgba(0, 146, 250, .8));
}
.scene.on .ln { animation: draw 1.1s var(--d) ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.eco-core {
  position: absolute; left: 50%; top: 46.4%; translate: -50% -50%;
  width: clamp(150px, 20vw, 250px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center;
  background: radial-gradient(circle, #0c2a5c 0%, #061226 70%);
  border: 1px solid rgba(92, 194, 255, .5);
  box-shadow: 0 0 80px rgba(0, 146, 250, .35), inset 0 0 40px rgba(0, 146, 250, .25);
}
.scene.on .eco-core { animation: pop 1s .5s var(--ease) both, glow 3s 1.5s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 120px rgba(0, 146, 250, .6), inset 0 0 50px rgba(0, 146, 250, .4); } }
.eco-core img { width: 64%; }
.eco-core strong { font-weight: 400; letter-spacing: .4em; font-size: clamp(11px, 1.1vw, 15px); margin-right: -.4em; }
.eco-core span { font-size: 12px; color: var(--muted); }
.eco-node {
  position: absolute; translate: -50% -50%; width: clamp(140px, 19vw, 230px);
  display: grid; justify-items: center; text-align: center; gap: 4px;
  padding: 16px 12px; border-radius: 14px; border: 1px solid var(--faint);
  background: rgba(6, 18, 38, .88); backdrop-filter: blur(6px);
}
.eco-node b { font-weight: 400; font-size: clamp(16px, 1.5vw, 21px); }
.eco-node span { font-size: 13px; color: var(--muted); line-height: 1.3; }
.n1 { left: 17%; top: 19.6%; } .n2 { left: 83%; top: 19.6%; }
.n3 { left: 17%; top: 73.2%; } .n4 { left: 83%; top: 73.2%; }
.eco-fh2 {
  position: absolute; left: 50%; bottom: 0; translate: -50% 0; white-space: nowrap;
  padding: 10px 22px; border-radius: 999px; font-size: 14px;
  border: 1px dashed rgba(92, 194, 255, .55); color: var(--cyan-soft); background: var(--bg);
}

/* Iconos de línea, como en el cartel */
.ico { display: inline-block; width: 46px; height: 46px; background: center / contain no-repeat; filter: drop-shadow(0 0 8px rgba(0, 146, 250, .7)); }
.ico.sm { width: 22px; height: 22px; filter: none; }
.ico-ops { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%235cc2ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='7' width='40' height='27' rx='2'/%3E%3Cpath d='M18 41h12M24 34v7M9 28l7-8 6 5 7-10'/%3E%3Cpath d='M33 13h7M33 18h7M33 23h5'/%3E%3C/svg%3E"); }
.ico-mob { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%235cc2ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='13' y='3' width='22' height='42' rx='4'/%3E%3Cpath d='M21 39h6'/%3E%3Cpath d='M24 27s6-6 6-10a6 6 0 0 0-12 0c0 4 6 10 6 10z'/%3E%3Ccircle cx='24' cy='17' r='2'/%3E%3C/svg%3E"); }
.ico-link { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%235cc2ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='14' width='32' height='26' rx='3'/%3E%3Cpath d='M15 21l9 6-9 6z'/%3E%3Cpath d='M36 9a8 8 0 0 1 6 6M37 3a14 14 0 0 1 9 10'/%3E%3C/svg%3E"); }
.ico-sync { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%235cc2ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 36H11a8 8 0 0 1-1-16 12 12 0 0 1 23-4 9 9 0 0 1 4 20h-2'/%3E%3Cpath d='M18 30a6 6 0 0 1 11-3M30 32a6 6 0 0 1-11 3M29 23v4h-4M19 39v-4h4'/%3E%3C/svg%3E"); }

/* ---------- 4-7 · Producto ---------- */
.s-prod {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr);
  align-items: center; gap: clamp(24px, 4vw, 72px);
}
.s-mobile { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.s-sync { grid-template-columns: minmax(0, .75fr) minmax(0, 1.35fr); }
.prod-text h2 { font-size: clamp(28px, 3.5vw, 52px); }
.feats { list-style: none; margin-top: clamp(18px, 3.2vh, 36px); display: grid; gap: 2px; }
.feats li {
  position: relative; padding: 9px 0 9px 44px; color: rgba(255, 255, 255, .5);
  font-size: clamp(15px, 1.2vw, 18px); line-height: 1.35; transition: color .5s;
}
.feats li::before {
  content: attr(data-n); position: absolute; left: 0; top: 10px;
  font-size: 12px; letter-spacing: .1em; color: rgba(255, 255, 255, .35); transition: color .5s;
}
.feats li::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--cyan), transparent); transform: scaleX(0); transform-origin: left;
}
.feats li.on { color: var(--ink); }
.feats li.on::before { color: var(--cyan-soft); }
.feats li.on::after { animation: underline var(--every, 3s) linear both; }
body.paused .feats li.on::after { animation-play-state: paused; }
@keyframes underline { to { transform: scaleX(1); } }

.browser {
  position: relative; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16); background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6), 0 0 80px rgba(0, 146, 250, .18);
}
.browser.dark { background: #0b1222; }
.browser-bar {
  display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px;
  background: #0d1a33; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.browser-bar em { margin-left: 10px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser .shots { position: relative; aspect-ratio: 16 / 10; }
.shots { position: relative; overflow: hidden; }
.shots img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top left;
  opacity: 0; transform: scale(1.04); transition: opacity .8s ease, transform 3.6s ease-out;
}
.shots img.fit { object-fit: contain; object-position: center; background: #0b1222; }
.shots img.on { opacity: 1; transform: scale(1); }

.phones { display: grid; place-items: center; height: 100%; min-height: 0; }
.phone {
  height: min(100%, 74vh); aspect-ratio: 540 / 1200; border-radius: 34px;
  border: 8px solid #0d1a33; outline: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6), 0 0 90px rgba(0, 146, 250, .22);
  background: #fff;
}
.phone img { object-position: top center; }

/* Emisora DJI RC Plus 2: las capturas (1920x1200, 16:10) van dentro de su pantalla. */
/* Antenas recortadas y desvanecidas en la imagen para dar más tamaño a la pantalla. */
.rc { position: relative; justify-self: center; width: min(100%, calc((100vh - 170px) * 1.215)); aspect-ratio: 345 / 284; }
.rc > img { width: 100%; height: 100%; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .7)) drop-shadow(0 0 60px rgba(0, 146, 250, .2)); }
.rc .rc-screen { position: absolute; left: 22.61%; top: 36.97%; width: 54.78%; height: 41.55%; border-radius: 2px; box-shadow: 0 0 22px rgba(0, 146, 250, .35); }
.rc .rc-screen img { object-position: top center; }
.rc .rc-screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, .14), transparent 38%);
}

.anpr {
  margin-top: clamp(16px, 3vh, 30px); display: flex; gap: 16px; align-items: center;
  padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(92, 194, 255, .4);
  background: linear-gradient(90deg, rgba(0, 146, 250, .14), rgba(0, 146, 250, .02));
}
.anpr b { display: block; font-weight: 400; }
.anpr span { font-size: 14px; color: var(--muted); }
.anpr-scan {
  flex: none; position: relative; width: 58px; height: 34px; border-radius: 6px; overflow: hidden;
  border: 1.5px solid var(--cyan-soft);
}
.anpr-scan::before {
  content: ""; position: absolute; inset: 7px 7px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .75) 0 3px, transparent 3px 6px);
  opacity: .55;
}
.anpr-scan::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 2px; left: 0;
  background: var(--cyan-soft); box-shadow: 0 0 10px var(--cyan);
  animation: scan 1.8s ease-in-out infinite alternate;
}
@keyframes scan { to { left: calc(100% - 2px); } }

.flow { margin-top: clamp(18px, 3vh, 32px); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.flow span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--faint); font-size: 14px; }
.flow span:last-child { border-color: var(--cyan); color: var(--cyan-soft); }
.flow i { position: relative; width: 44px; height: 1px; background: var(--faint); overflow: hidden; }
.flow i::after {
  content: ""; position: absolute; top: -2px; left: -10px; width: 10px; height: 5px; border-radius: 3px;
  background: var(--cyan-soft); box-shadow: 0 0 8px var(--cyan);
  animation: packet 1.4s linear infinite;
}
.flow i + span + i::after { animation-delay: .7s; }
@keyframes packet { to { left: 100%; } }

/* ---------- 8 · Una misión ---------- */
.track { align-self: center; width: min(100%, 1240px); margin: 0 auto; }
.track-line { position: relative; height: 2px; margin: 0 10%; background: var(--faint); }
.track-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--royal), var(--cyan-soft)); box-shadow: 0 0 12px var(--cyan); }
.track-drone {
  position: absolute; top: 50%; left: 0; width: 42px; height: 42px; translate: -50% -50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 12h14M28 12h14M13 12v5M35 12v5M13 17l7 5h8l7-5M20 22v6h8v-6'/%3E%3Ccircle cx='24' cy='31' r='2'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 10px var(--cyan));
}
.scene.on .track-fill { animation: fill 10s 1.2s linear both; }
.scene.on .track-drone { animation: fly 10s 1.2s linear both, bob 1.6s ease-in-out infinite; }
@keyframes fill { to { width: 100%; } }
@keyframes fly { to { left: 100%; } }
@keyframes bob { 50% { translate: -50% -80%; } }
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 40px; text-align: center; }
.steps li { display: grid; gap: 8px; justify-items: center; opacity: .25; transition: opacity .6s; position: relative; padding-top: 6px; }
.steps li::before {
  content: ""; position: absolute; top: -47px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--faint);
}
.scene.on .steps li { animation: lit .8s var(--d) var(--ease) both; }
.scene.on .steps li::before { animation: dot .5s var(--d) both; }
@keyframes lit { from { opacity: .25; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes dot { to { background: var(--cyan); border-color: var(--cyan-soft); box-shadow: 0 0 16px var(--cyan); } }
.steps b { font-weight: 400; font-size: clamp(20px, 2vw, 30px); }
.steps span { font-size: clamp(14px, 1.1vw, 16px); color: var(--muted); max-width: 22ch; }
.steps em { font-size: 13px; letter-spacing: .02em; }

/* ---------- 9 · Soberanía ---------- */
.s-sob { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 80px); }
.checks { list-style: none; margin-top: 30px; display: grid; gap: 16px; }
.checks li { position: relative; padding-left: 36px; font-size: clamp(15px, 1.3vw, 19px); color: var(--muted); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--cyan-soft);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235cc2ff' stroke-width='2'%3E%3Cpath d='M6 10l3 3 5-6'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.infra { position: relative; padding: 34px 22px 22px; border: 1px dashed rgba(255, 255, 255, .25); border-radius: 18px; display: grid; gap: 18px; }
.infra-label { position: absolute; top: -10px; left: 18px; padding: 0 10px; background: var(--bg); font-size: 13px; letter-spacing: .02em; color: var(--muted); }
.infra-label.inner { background: #071733; color: var(--cyan-soft); }
.infra-box {
  position: relative; display: grid; gap: 12px; padding: 30px 18px 18px; border-radius: 14px;
  border: 1px solid rgba(92, 194, 255, .5); background: #071733;
  box-shadow: 0 0 70px rgba(0, 146, 250, .22);
}
.infra-row, .infra-edge { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 12px; }
.blk {
  display: grid; place-items: center; text-align: center; padding: 16px 10px; border-radius: 10px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--faint); font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.25; opacity: 0;
}
.blk small { font-size: 12px; color: var(--muted); }
.blk.wide { background: rgba(0, 146, 250, .14); border-color: rgba(92, 194, 255, .5); }
.scene.on .blk { animation: pop .7s var(--d) var(--ease) both; }

/* ---------- 10-11 · Aerobur y cierre ---------- */
.bg-dron { position: absolute; inset: 0; background: url("assets/centinela-dron.webp") center 40% / cover; }
.scene.on .bg-dron { animation: drift 12s ease-out both; }
@keyframes drift { from { transform: scale(1.1); } to { transform: scale(1); } }
.s-aerobur { overflow: hidden; display: grid; align-items: center; }
.s-aerobur .bg-dron::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 30%, rgba(1, 5, 15, .55) 65%, rgba(1, 5, 15, .2)); }
.aero-text { position: relative; max-width: 680px; }
.scen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.scen span { padding: 9px 16px; border-radius: 999px; background: var(--cyan); color: #01050f; font-weight: 400; font-size: 15px; }
.certs { list-style: none; margin-top: 30px; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.certs li { padding-left: 16px; border-left: 2px solid var(--cyan); }

.s-fin { overflow: hidden; display: grid; place-items: center; text-align: center; }
.s-fin .bg-dron { filter: brightness(.35); }
.s-fin .bg-dron::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(1, 5, 15, .3), var(--bg) 75%); }
.fin { position: relative; display: grid; justify-items: center; }
.fin-logo { width: clamp(220px, 32vw, 460px); filter: drop-shadow(0 0 40px rgba(0, 146, 250, .55)); }
.fin-name { margin-top: 22px; font-size: clamp(18px, 2.4vw, 34px); letter-spacing: .5em; margin-right: -.5em; }
.fin-claim { margin-top: 26px; font-size: clamp(28px, 4vw, 56px); }
.fin-ask { margin-top: 10px; color: var(--muted); font-size: clamp(16px, 1.4vw, 20px); }
.fin-contact { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.fin-contact a {
  padding: 11px 22px; border-radius: 999px; text-decoration: none; font-weight: 400;
  border: 1px solid rgba(92, 194, 255, .6); transition: background .2s, color .2s;
}
.fin-contact a:first-child { background: var(--cyan); border-color: var(--cyan); color: #01050f; }
.fin-contact a:hover { background: var(--cyan-soft); color: #01050f; }
.fin-contact a:focus-visible, .controls button:focus-visible { outline: 2px solid var(--cyan-soft); outline-offset: 3px; }

/* ---------- Controles ---------- */
.controls {
  position: fixed; inset: auto 0 0; z-index: 20; height: var(--bottom);
  display: flex; align-items: center; gap: 6px; padding: 0 var(--pad);
  background: linear-gradient(transparent, var(--bg) 60%);
}
.controls button {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid transparent; border-radius: 50%; background: none; cursor: pointer; color: var(--muted);
}
.controls button:hover { color: var(--ink); border-color: var(--faint); }
.controls svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#play .i-play { display: none; }
body.paused #play .i-play { display: block; fill: currentColor; }
body.paused #play .i-pause { display: none; }
.bars { flex: 1; display: flex; gap: 5px; margin: 0 10px; min-width: 0; }
.bars button {
  flex: 1; width: auto; height: 22px; border-radius: 0; border: 0; padding: 0; position: relative; min-width: 0;
}
.bars button::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--faint); }
.bars button:hover { border: 0; }
.bars i { position: absolute; left: 0; top: 10px; height: 2px; width: 0; background: var(--cyan-soft); }
.bars button.done i { width: 100%; background: rgba(92, 194, 255, .55); }
.label { width: 130px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Móvil y tableta ---------- */
@media (max-width: 860px) {
  :root { --top: 54px; --bottom: 62px; }
  .s-intro { align-items: start; --ix: 0%; }
  .intro-img, .intro-lock { width: 100%; top: 40%; }
  .intro-img { -webkit-mask-image: linear-gradient(transparent, #000 30%); mask-image: linear-gradient(transparent, #000 30%); }
  .lock-box { left: 24%; width: 52%; top: 8%; height: 56%; }
  .intro-text { padding-top: 4vh; }
  .s-prod, .s-mobile, .s-sync, .s-sob {
    grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); align-items: start; gap: 18px;
  }
  .kicker { margin-bottom: 10px; font-size: 12px; }
  .prod-text h2 { font-size: clamp(24px, 6.6vw, 36px); }
  .feats { margin-top: 12px; }
  .feats li:not(.on) { display: none; }
  .feats li { padding-block: 6px 8px; }
  .note, .anpr span { display: none; }
  .anpr { margin-top: 10px; padding: 10px 14px; }
  .flow { margin-top: 12px; }
  .browser { align-self: start; }
  .phones { align-items: start; }
  .rc { width: min(100%, 60vh); align-self: start; }
  .phone { height: 100%; max-height: 62vh; border-width: 6px; border-radius: 26px; }
  .eco-map { aspect-ratio: auto; height: 100%; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: center; }
  .eco-lines { display: none; }
  .eco-core, .eco-node, .eco-fh2 { position: static; translate: none; width: auto; }
  .eco-core { grid-column: 1 / -1; justify-self: center; width: 150px; }
  .eco-fh2 { grid-column: 1 / -1; white-space: normal; text-align: center; }
  .ico { width: 34px; height: 34px; }
  .track-line { display: none; }
  .steps { grid-template-columns: 1fr; gap: 14px; margin-top: 0; text-align: left; }
  .steps li { grid-template-columns: 112px 1fr; justify-items: start; column-gap: 12px; row-gap: 0; padding: 0 0 12px 22px; border-bottom: 1px solid var(--faint); }
  .steps li::before { top: 10px; left: 0; width: 10px; height: 10px; }
  .steps b { grid-row: span 2; font-size: 20px; }
  .s-mision { align-content: start; }
  .infra { padding: 28px 12px 12px; }
  .blk { padding: 10px 6px; }
  .label, .topbar-name, .topbar-sep { display: none; }
  .bars { margin: 0 4px; }
  .controls { gap: 0; }
}
@media (max-height: 560px) and (min-width: 861px) {
  .feats li { padding-block: 5px; }
  .note, .certs { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .scene.on .a, .scene.leaving .a, .scene.on .blk { animation-name: fadeOnly !important; }
  .reto-chips { display: none; }
  .hud, .flash, .flare, .intro-dust, .intro-scan { display: none; }
  .scene.on .intro-brand, .scene.on .slam { animation-name: fadeOnly !important; }
  .scene.on .intro-img, .scene.on .bg-dron, .anpr-scan::after, .flow i::after { animation: none; }
  .scene.on .track-drone { animation: fly 10s 1.2s linear both; }
  .shots img { transform: none; }
  @keyframes fadeOnly { from { opacity: 0; } to { opacity: 1; } }
}

/* ?captura: estado final de cada escena, sin animación (para generar imágenes fijas). */
html.captura *, html.captura *::before, html.captura *::after { animation-duration: 0s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
