/* ==========================================================================
   OCULUM 360 · Estilos principales (landing comercial)
   Futurismo empresarial premium: profundidad, vidrio, luz cian contenida.
   ========================================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-0);
  background-image:
    radial-gradient(1200px 700px at 85% -10%, rgba(49, 85, 217, 0.22), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(34, 211, 238, 0.07), transparent 60%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text-strong); margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(34, 211, 238, 0.35); color: #fff; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -60px; z-index: 200; background: var(--orange); color: #1a0d00; padding: .6rem 1rem; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.text-grad {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.glass {
  background: var(--grad-panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--cyan);
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.badge-demo {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em;
  color: #ffd29e; background: rgba(255, 157, 67, .1); border: 1px solid rgba(255, 157, 67, .35);
  padding: .25rem .65rem; border-radius: var(--radius-pill);
}
.fine-print { margin-top: var(--space-6); color: var(--muted-2); font-size: var(--fs-sm); max-width: 70ch; }
.noscript-note { padding: 1rem; color: var(--muted); }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 44px; padding: .7rem 1.3rem;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); letter-spacing: .01em;
  border-radius: var(--radius-pill); border: 1px solid transparent;
  background: var(--btn-bg); color: var(--text-strong);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out), background var(--dur), border-color var(--dur);
  text-decoration: none !important; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 40px; padding: .5rem 1rem; }
.btn-lg { min-height: 52px; padding: .85rem 1.6rem; font-size: var(--fs-md); }
.btn-primary { background: var(--grad-orange); color: #2a1300; box-shadow: var(--glow-orange); }
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(255, 140, 50, .75); }
.btn-secondary { background: rgba(49, 85, 217, .22); border-color: var(--stroke-strong); }
.btn-secondary:hover { background: rgba(49, 85, 217, .38); box-shadow: 0 0 30px rgba(47, 123, 255, .3); }
.btn-ghost { border-color: var(--stroke); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--stroke-strong); background: rgba(255,255,255,.07); }
.btn .ico { width: 18px; height: 18px; }
.btn[disabled] { opacity: .65; pointer-events: none; }

/* ---------- Encabezado ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background var(--dur) var(--ease-out), border-color var(--dur), box-shadow var(--dur), height var(--dur);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(5, 12, 34, .62);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--stroke);
  box-shadow: 0 10px 30px -20px rgba(0,0,0,.8);
  height: 66px;
}
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--space-5); }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--text-strong); text-decoration: none !important; }
.brand-mark { object-fit: contain; filter: drop-shadow(0 0 10px rgba(34, 211, 238, .35)); }
.brand-name { font-family: var(--font-display); font-weight: 800; letter-spacing: .08em; font-size: 1.02rem; }
.brand-name b { color: var(--cyan); font-weight: 800; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: var(--space-5); }
.nav-list { display: flex; gap: .25rem; }
.nav-link {
  position: relative; display: block; padding: .5rem .75rem; border-radius: 10px;
  color: var(--muted); font-size: var(--fs-sm); font-weight: 500; text-decoration: none !important;
  transition: color var(--dur-fast);
}
.nav-link::after {
  content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .2rem; height: 2px; border-radius: 2px;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out);
}
.nav-link:hover, .nav-link.is-active { color: var(--text-strong); }
.nav-link.is-active::after, .nav-link:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; gap: .6rem; align-items: center; }
.menu-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--stroke); background: rgba(255,255,255,.04); color: var(--text-strong);
  align-items: center; justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 2rem) 0 5rem; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-grid {
  position: absolute; inset: -20% -10% 0; opacity: .5;
  background-image:
    linear-gradient(rgba(91, 134, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 134, 255, .08) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 65% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 65% 45%, #000 20%, transparent 75%);
  transform: perspective(900px) rotateX(55deg) translateY(10%);
  transform-origin: center 70%;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(60px); }
.hero-glow--a { width: 620px; height: 620px; right: -6%; top: 6%; background: radial-gradient(circle, rgba(47, 123, 255, .45), transparent 65%); }
.hero-glow--b { width: 420px; height: 420px; right: 18%; top: 34%; background: radial-gradient(circle, rgba(34, 211, 238, .28), transparent 65%); }
.hero-beam {
  position: absolute; right: 22%; top: -10%; width: 2px; height: 70%;
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, .55), transparent);
  filter: blur(1px); opacity: .6;
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero-eyebrow { margin-bottom: var(--space-5); max-width: 44ch; line-height: 1.5; }
.hero-title { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.035em; margin-bottom: var(--space-5); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line-inner { display: inline-block; }
.hero-lead { color: var(--muted); font-size: var(--fs-lg); max-width: 52ch; margin-bottom: var(--space-6); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-benefits { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: var(--space-6); }
.hero-benefits li { display: inline-flex; align-items: center; gap: .5rem; color: var(--text); font-size: var(--fs-sm); font-weight: 500; }
.hero-benefits .ico { width: 18px; height: 18px; color: var(--cyan); }

.hero-visual { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 620px; justify-self: center; perspective: 1200px; }
.hv-scene { position: absolute; inset: 0; transform-style: preserve-3d; }
.hv-halo {
  position: absolute; inset: 18%; border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .32) 0%, rgba(47, 123, 255, .18) 40%, transparent 70%);
  filter: blur(18px);
}
.hv-orbits { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit { transform-origin: 300px 300px; transform-box: view-box; }
.hv-particles { position: absolute; inset: 0; pointer-events: none; }
.hv-particles i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: #bff4ff; box-shadow: 0 0 8px #22d3ee; opacity: .7;
}
.hv-emblem {
  position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; translate: -50% -50%;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)) drop-shadow(0 0 40px rgba(34, 211, 238, .35));
}
.hv-emblem img { width: 100%; height: 100%; }
.hv-emblem-shine {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(../assets/logo/oculum360-logo-512.webp) center / contain no-repeat; mask: url(../assets/logo/oculum360-logo-512.webp) center / contain no-repeat;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.22) 48%, transparent 60%);
  background-size: 250% 100%; background-position: 120% 0;
  mix-blend-mode: screen;
}
.hv-shadow {
  position: absolute; left: 50%; top: 79%; width: 34%; height: 5%; translate: -50% 0;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(34, 211, 238, .35), transparent); filter: blur(6px);
}
.float-card {
  position: absolute; display: flex; align-items: center; gap: .7rem;
  padding: .7rem .95rem .7rem .7rem; min-width: 168px;
  background: linear-gradient(150deg, rgba(40, 72, 160, .55), rgba(10, 22, 58, .72));
  border: 1px solid var(--stroke-strong); border-radius: 16px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.08);
  font-size: var(--fs-sm); line-height: 1.25; will-change: transform;
}
.float-card b { display: block; color: var(--text-strong); font-family: var(--font-display); font-weight: 700; }
.float-card small { color: var(--muted); font-size: .75rem; }
.fc-ico {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: linear-gradient(140deg, rgba(91, 134, 255, .35), rgba(34, 211, 238, .2)); color: #bff4ff;
  border: 1px solid rgba(160, 220, 255, .25);
}
.fc-ico--warn { background: linear-gradient(140deg, rgba(255, 157, 67, .35), rgba(255, 157, 67, .12)); color: #ffd29e; }
.fc-ico--ok { background: linear-gradient(140deg, rgba(45, 225, 194, .35), rgba(45, 225, 194, .1)); color: #b7fff1; }
.fc-1 { left: -2%; top: 14%; }
.fc-2 { right: 0%; top: 8%; }
.fc-3 { right: -4%; top: 44%; }
.fc-4 { left: -6%; top: 52%; }
.fc-5 { left: 10%; bottom: 6%; }
.fc-6 { right: 8%; bottom: 10%; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--muted); font-size: var(--fs-xs); letter-spacing: .2em; text-transform: uppercase; text-decoration: none !important;
}
.scroll-cue-line { width: 1px; height: 42px; background: linear-gradient(var(--cyan), transparent); position: relative; overflow: hidden; }

/* ---------- Manifiesto ---------- */
.manifesto { position: relative; padding: var(--space-section) 0; overflow: hidden; }
.manifesto::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: min(1100px, 120vw); aspect-ratio: 2.6; translate: -50% -50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(49, 85, 217, .16), transparent 70%);
}
.manifesto-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.m-item { position: relative; padding-top: var(--space-6); border-top: 1px solid var(--stroke); }
.m-item::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: var(--m-progress, 0%);
  background: var(--grad-brand); box-shadow: 0 0 14px var(--cyan);
}
.m-num { font-family: var(--font-display); font-weight: 700; color: var(--cyan); letter-spacing: .1em; font-size: var(--fs-sm); }
.m-title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); margin: .8rem 0 1rem; }
.m-text { color: var(--muted); max-width: 38ch; }

/* ---------- Secciones genéricas ---------- */
.section { position: relative; padding: var(--space-section) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-title { font-size: var(--fs-h2); font-weight: 800; margin: .9rem 0 1rem; }
.section-lead { color: var(--muted); font-size: var(--fs-lg); max-width: 62ch; }

/* ---------- Explorador ---------- */
.explorer::before {
  content: ""; position: absolute; inset: 10% 0 auto; height: 70%; z-index: -1;
  background: radial-gradient(700px 400px at 40% 50%, rgba(49, 85, 217, .18), transparent 70%);
}
.explorer-shell {
  position: relative; border-radius: 28px; padding: clamp(1rem, .6rem + 1.5vw, 1.75rem);
  background: linear-gradient(170deg, rgba(14, 30, 76, .7), rgba(4, 10, 30, .85));
  border: 1px solid var(--stroke); box-shadow: var(--shadow-2); overflow: hidden;
}
.explorer-shell::after { /* barrido de luz cálida, inspirado en la referencia */
  content: ""; position: absolute; right: -10%; top: -30%; width: 40%; height: 160%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 157, 67, .07), transparent);
  transform: rotate(14deg);
}
.explorer-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; position: relative; z-index: 2; }
.explorer-hint { color: var(--muted); font-size: var(--fs-sm); }
.view-toggle {
  position: relative; display: inline-flex; padding: 4px; border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, .3); border: 1px solid var(--stroke);
}
.view-btn {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .45rem;
  min-height: 40px; padding: .45rem 1.05rem; border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--muted); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm);
  transition: color var(--dur);
}
.view-btn .ico { width: 17px; height: 17px; }
.view-btn.is-active { color: var(--text-strong); }
.view-indicator {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: 0; border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(49, 85, 217, .9), rgba(34, 211, 238, .55));
  box-shadow: 0 0 18px rgba(34, 211, 238, .35);
}

.explorer-body { display: grid; grid-template-columns: minmax(0, 1.35fr) 68px minmax(280px, .9fr); gap: 1rem; align-items: stretch; position: relative; z-index: 1; }
.explorer-stage {
  position: relative; height: 680px; border-radius: 20px; overflow: hidden;
  perspective: 1400px; perspective-origin: 50% 40%;
  background:
    radial-gradient(600px 300px at 50% 60%, rgba(34, 211, 238, .08), transparent 70%),
    linear-gradient(rgba(91,134,255,.05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(91,134,255,.05) 1px, transparent 1px) 0 0 / 32px 32px,
    rgba(2, 6, 20, .55);
  border: 1px solid rgba(126, 170, 255, .1);
}
.stage-floor {
  position: absolute; left: 50%; bottom: 8%; width: 70%; height: 14%; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(34, 211, 238, .25), transparent); filter: blur(10px); opacity: 0;
}
.stage-world {
  position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform;
}
.stage-iso { position: absolute; inset: 0; transform-style: preserve-3d; }
.stage-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; transform: translateZ(-2px); }
.stage-links path { fill: none; stroke: rgba(91, 134, 255, .35); stroke-width: 1.4; stroke-dasharray: 4 6; }
.stage-links path.is-hot { stroke: var(--cyan); stroke-dasharray: none; filter: drop-shadow(0 0 4px var(--cyan)); }
.stage-beams { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; opacity: 0; pointer-events: none; }
.beam {
  position: absolute; left: 0; top: 0; width: 2px; height: 320px; margin-left: -1px;
  transform-origin: 50% 0; transform: rotateX(-90deg);
  background: linear-gradient(180deg, rgba(34, 211, 238, .9), rgba(34, 211, 238, .05));
  box-shadow: 0 0 10px rgba(34, 211, 238, .6);
}
.beam-1 { transform: translate3d(-90px, -60px, 0) rotateX(-90deg); opacity: .45; }
.beam-2 { transform: translate3d(90px, -60px, 0) rotateX(-90deg); opacity: .45; }
.beam-3 { transform: translate3d(-90px, 60px, 0) rotateX(-90deg); opacity: .45; }
.beam-4 { transform: translate3d(90px, 60px, 0) rotateX(-90deg); opacity: .45; }

.layer {
  position: absolute; left: 0; top: 0; width: var(--tile-w, 180px); height: var(--tile-h, 120px);
  display: flex; flex-direction: column; justify-content: space-between; gap: .4rem;
  padding: .85rem 1rem; border-radius: 16px; text-align: left;
  color: var(--text); border: 1px solid rgba(140, 200, 255, .28);
  background:
    linear-gradient(150deg, rgba(160, 220, 255, .14), rgba(60, 110, 220, .08) 40%, rgba(8, 20, 54, .55)),
    rgb(8, 22, 60);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 18px 40px -22px rgba(0,0,0,.9);
  transform-style: preserve-3d; will-change: transform, opacity;
  transition: border-color var(--dur), box-shadow var(--dur), background var(--dur);
}
.layer::before { /* retícula interna tipo plano */
  content: ""; position: absolute; inset: 10px; border-radius: 10px; pointer-events: none; opacity: .5;
  background:
    linear-gradient(rgba(140, 200, 255, .09) 1px, transparent 1px) 0 0 / 14px 14px,
    linear-gradient(90deg, rgba(140, 200, 255, .09) 1px, transparent 1px) 0 0 / 14px 14px;
}
.layer-top { display: flex; align-items: center; justify-content: space-between; position: relative; }
.layer-num { font-family: var(--font-display); font-size: .72rem; font-weight: 700; letter-spacing: .14em; color: var(--cyan); }
.layer .fc-ico { width: 34px; height: 34px; border-radius: 10px; }
.layer .fc-ico .ico { width: 18px; height: 18px; }
.layer-name { position: relative; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--text-strong); }
.layer-sub { position: relative; font-size: .74rem; color: var(--muted); line-height: 1.3; }
.layer:hover, .layer:focus-visible { border-color: rgba(34, 211, 238, .7); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 0 26px rgba(34, 211, 238, .28); }
.layer.is-active {
  border-color: var(--cyan);
  background:
    linear-gradient(150deg, rgba(34, 211, 238, .28), rgba(49, 85, 217, .22) 50%, rgba(8, 20, 54, .6)),
    rgb(9, 24, 64);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, .4), 0 0 40px rgba(34, 211, 238, .4);
}
.is-3d .layer { padding: .7rem .85rem; background: linear-gradient(150deg, rgba(160, 220, 255, .16), rgba(30, 70, 160, .12) 45%, rgba(6, 16, 44, .5)); }
.is-3d .layer-sub { opacity: 0; }
.is-3d .layer:not(.is-active) .layer-name { opacity: 0; }
.is-3d .layer.is-active { background: linear-gradient(150deg, rgba(34, 211, 238, .32), rgba(49, 85, 217, .3) 50%, rgba(8, 20, 54, .75)); }

.level-ruler { display: flex; flex-direction: column; justify-content: center; gap: .35rem; position: relative; }
.level-ruler::before { content: ""; position: absolute; left: 50%; top: 4%; bottom: 4%; width: 1px; background: linear-gradient(transparent, var(--stroke-strong), transparent); }
.ruler-btn {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-height: 52px; padding: .35rem .25rem; border: 1px solid transparent; border-radius: 12px;
  background: rgba(4, 10, 30, .85); color: var(--muted-2);
  font-family: var(--font-display); font-size: .7rem; letter-spacing: .08em;
  transition: color var(--dur), border-color var(--dur), background var(--dur);
}
.ruler-btn b { font-size: 1.05rem; color: var(--muted); letter-spacing: 0; }
.ruler-btn:hover { color: var(--text); border-color: var(--stroke); }
.ruler-btn.is-active { color: var(--cyan); border-color: rgba(34, 211, 238, .55); background: rgba(34, 211, 238, .09); }
.ruler-btn.is-active b { color: var(--text-strong); }

.explorer-panel {
  position: relative; border-radius: 20px; padding: 1.4rem;
  background: linear-gradient(165deg, rgba(30, 58, 140, .4), rgba(6, 14, 40, .7));
  border: 1px solid var(--stroke); height: 680px; overflow-y: auto; display: flex; flex-direction: column;
  scrollbar-width: thin; scrollbar-color: rgba(126,170,255,.3) transparent;
}
.panel-kicker { font-family: var(--font-display); font-weight: 700; letter-spacing: .16em; font-size: .72rem; text-transform: uppercase; color: var(--cyan); }
.panel-title { font-size: var(--fs-h3); margin: .5rem 0 .6rem; }
.panel-desc { color: var(--muted); font-size: var(--fs-sm); }
.panel-benefit {
  margin: 1rem 0; padding: .85rem 1rem; border-radius: 14px; font-size: var(--fs-sm); color: var(--text);
  background: rgba(34, 211, 238, .07); border: 1px solid rgba(34, 211, 238, .22); border-left: 3px solid var(--cyan);
}
.chip-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: var(--radius-pill);
  font-size: .78rem; color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--stroke);
}
.blueprint { margin-top: 1rem; border-radius: 14px; overflow: hidden; border: 1px solid rgba(140, 200, 255, .2); background: rgba(2, 8, 26, .7); }
.blueprint-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .5rem .75rem; font-size: .72rem; color: var(--muted); border-bottom: 1px solid rgba(140, 200, 255, .12); }
.blueprint svg { width: 100%; height: auto; }
.bp-zone { cursor: pointer; outline: none; }
.bp-zone rect { fill: rgba(49, 85, 217, .16); stroke: rgba(140, 200, 255, .45); stroke-width: 1; transition: fill var(--dur), stroke var(--dur), opacity var(--dur); }
.bp-zone text { fill: #cfe0ff; font-family: var(--font-body); font-size: 12px; pointer-events: none; transition: opacity var(--dur); }
.bp-zone .bp-hatch { fill: url(#bpHatch); opacity: .0; transition: opacity var(--dur); }
.blueprint.has-focus .bp-zone rect { opacity: .35; }
.blueprint.has-focus .bp-zone text { opacity: .45; }
.blueprint .bp-zone.is-on rect { opacity: 1; fill: rgba(34, 211, 238, .28); stroke: var(--cyan); stroke-width: 1.6; }
.blueprint .bp-zone.is-on text { opacity: 1; fill: #fff; }
.blueprint .bp-zone.is-on .bp-hatch { opacity: .6; }
.bp-zone:focus-visible rect { stroke: var(--orange); stroke-width: 2; }
.blueprint-caption { padding: .55rem .75rem; font-size: .8rem; color: var(--muted); min-height: 2.6em; border-top: 1px solid rgba(140, 200, 255, .12); }
.panel-actions { margin-top: auto; padding-top: 1rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.btn-back { min-height: 40px; padding: .45rem .9rem; font-size: var(--fs-sm); }
.panel-overview-list { display: grid; gap: .5rem; margin-top: 1rem; }
.panel-overview-list button {
  display: flex; align-items: center; gap: .7rem; width: 100%; padding: .6rem .7rem; border-radius: 12px; text-align: left;
  background: rgba(255,255,255,.03); border: 1px solid var(--stroke); color: var(--text); font-size: var(--fs-sm);
  transition: border-color var(--dur), background var(--dur);
}
.panel-overview-list button:hover { border-color: rgba(34, 211, 238, .5); background: rgba(34, 211, 238, .06); }
.panel-overview-list .fc-ico { width: 32px; height: 32px; border-radius: 9px; }
.panel-overview-list .fc-ico .ico { width: 16px; height: 16px; }
.panel-overview-list small { display: block; color: var(--muted-2); font-size: .72rem; }

/* ---------- Conexiones SVG ---------- */
.conn-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .85fr); gap: 1.25rem; }
.conn-canvas { position: relative; padding: 1rem; }
.conn-svg { width: 100%; height: auto; overflow: visible; }
.conn-edge { fill: none; stroke: rgba(91, 134, 255, .32); stroke-width: 1.5; transition: stroke var(--dur), opacity var(--dur); }
.conn-edge-flow { fill: none; stroke: var(--cyan); stroke-width: 2.2; stroke-dasharray: 6 10; opacity: 0; transition: opacity var(--dur); }
.conn-svg.has-active .conn-edge { opacity: .2; }
.conn-svg .conn-edge.is-on { opacity: 1; stroke: rgba(34, 211, 238, .55); }
.conn-svg .conn-edge-flow.is-on { opacity: 1; animation: flow 1.1s linear infinite; }
.conn-node { cursor: pointer; outline: none; }
.conn-node .n-ring { fill: rgba(8, 20, 54, .92); stroke: rgba(140, 200, 255, .45); stroke-width: 1.4; transition: stroke var(--dur), fill var(--dur); }
.conn-node .n-glow { fill: rgba(34, 211, 238, .0); transition: fill var(--dur); }
.conn-node .n-icon { fill: none; stroke: #cfe6ff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.conn-node .n-label { fill: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 14px; text-anchor: middle; }
.conn-svg.has-active .conn-node { opacity: .38; transition: opacity var(--dur); }
.conn-svg .conn-node.is-on, .conn-svg .conn-node.is-near { opacity: 1; }
.conn-node.is-on .n-ring { stroke: var(--cyan); stroke-width: 2.2; fill: rgba(14, 50, 110, .95); }
.conn-node.is-on .n-glow { fill: rgba(34, 211, 238, .22); }
.conn-node.is-near .n-ring { stroke: rgba(34, 211, 238, .7); }
.conn-node:hover .n-ring { stroke: var(--cyan); }
.conn-node:focus-visible .n-ring { stroke: var(--orange); stroke-width: 2.4; }
.conn-tooltip {
  position: absolute; z-index: 5; pointer-events: none; max-width: 240px;
  padding: .55rem .75rem; border-radius: 10px; font-size: .8rem; line-height: 1.4;
  background: rgba(3, 10, 30, .95); border: 1px solid var(--stroke-strong); color: var(--text);
  box-shadow: var(--shadow-1); translate: -50% calc(-100% - 14px);
}
.conn-info { padding: 1.5rem; }
.conn-info h3 { font-size: var(--fs-h3); margin: .4rem 0 .6rem; }
.conn-info p { color: var(--muted); font-size: var(--fs-sm); }
.rel-list { margin-top: 1rem; display: grid; gap: .55rem; }
.rel-list li { display: grid; grid-template-columns: auto 1fr; gap: .2rem .65rem; padding: .65rem .75rem; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--stroke); font-size: .85rem; }
.rel-list b { color: var(--cyan); font-family: var(--font-display); }
.rel-list span { grid-column: 1 / -1; color: var(--muted); }

/* ---------- Demo (ventana de app) ---------- */
.demo-shell { display: grid; gap: 1rem; }
.demo-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.demo-tab {
  display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem; border-radius: 14px;
  background: rgba(255,255,255,.03); border: 1px solid var(--stroke); color: var(--muted);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); text-align: left;
  transition: all var(--dur);
}
.demo-tab:hover { color: var(--text); border-color: var(--stroke-strong); }
.demo-tab.is-active { color: var(--text-strong); background: linear-gradient(140deg, rgba(49, 85, 217, .45), rgba(34, 211, 238, .14)); border-color: rgba(34, 211, 238, .5); box-shadow: 0 0 24px rgba(34, 211, 238, .18); }
.app-window {
  position: relative; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, #0a1638, #060e28);
  border: 1px solid var(--stroke-strong); box-shadow: 0 40px 100px -40px rgba(0,0,0,.9), 0 0 0 6px rgba(126, 170, 255, .05);
}
.app-topbar { display: flex; align-items: center; gap: 1rem; padding: .7rem 1rem; border-bottom: 1px solid var(--stroke); background: rgba(0,0,0,.25); }
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.app-title { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 700; font-size: .85rem; }
.app-title img { border-radius: 5px; }
.app-title em { font-style: normal; color: var(--muted-2); font-weight: 500; }
.app-bell { margin-left: auto; position: relative; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--stroke); color: var(--muted); }
[hidden] { display: none !important; }
.app-bell-count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--orange); color: #2a1300; font-size: .7rem; display: grid; place-items: center; }
.app-body { display: grid; grid-template-columns: 58px 1fr; min-height: 460px; }
.app-side { padding: .8rem 0; display: flex; flex-direction: column; align-items: center; gap: .5rem; border-right: 1px solid var(--stroke); background: rgba(0,0,0,.15); }
.app-side li { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--muted-2); }
.app-side li.on { color: var(--cyan); background: rgba(34, 211, 238, .1); }
.app-side .ico { width: 18px; height: 18px; }
.app-main { padding: 1.25rem; outline: none; }
.demo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.demo-head h3 { font-size: 1.2rem; }
.demo-head p { color: var(--muted); font-size: .85rem; }
.demo-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: .85rem; }
.dcard { grid-column: span 6; padding: 1rem; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--stroke); }
.dcard--wide { grid-column: span 12; }
.dcard--third { grid-column: span 4; }
.dcard h4 { font-size: .9rem; display: flex; align-items: center; gap: .45rem; margin-bottom: .7rem; color: var(--text-strong); }
.dcard h4 .ico { width: 16px; height: 16px; color: var(--cyan); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; font-size: .85rem; }
.kv dt { color: var(--muted-2); }
.kv dd { margin: 0; color: var(--text); text-align: right; }
.pill { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .6rem; border-radius: var(--radius-pill); font-size: .72rem; font-weight: 600; }
.pill--ok { background: rgba(52, 211, 153, .14); color: #8ff0c8; border: 1px solid rgba(52, 211, 153, .3); }
.pill--warn { background: rgba(251, 191, 36, .13); color: #fde08a; border: 1px solid rgba(251, 191, 36, .32); }
.pill--info { background: rgba(96, 165, 250, .14); color: #b4d4ff; border: 1px solid rgba(96, 165, 250, .32); }
.pill--danger { background: rgba(248, 113, 113, .14); color: #ffc0c0; border: 1px solid rgba(248, 113, 113, .32); }
.doc-list li, .task-list li { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px dashed rgba(126, 170, 255, .12); font-size: .85rem; }
.doc-list li:last-child, .task-list li:last-child { border-bottom: 0; }
.doc-list .ico { width: 16px; height: 16px; color: var(--muted); }
.doc-list .pill { margin-left: auto; }
.task-check {
  width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--stroke-strong); background: transparent;
  display: grid; place-items: center; color: transparent; flex: none; padding: 0;
}
.task-check .ico { width: 14px; height: 14px; stroke-width: 2.4; }
.task-check[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #03281b; }
.task-done { text-decoration: line-through; color: var(--muted-2); }
.note-box { font-size: .85rem; color: var(--text); padding: .7rem .8rem; border-radius: 10px; background: rgba(49, 85, 217, .1); border: 1px solid rgba(91, 134, 255, .2); }
.note-box .mention { color: var(--cyan); font-weight: 600; }
.note-meta { margin-top: .4rem; font-size: .72rem; color: var(--muted-2); }
.timeline { display: grid; gap: .6rem; }
.timeline li { position: relative; padding-left: 1.2rem; font-size: .85rem; }
.timeline li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.timeline small { display: block; color: var(--muted-2); font-size: .72rem; }
.timeline li.is-new { animation: pop .5s var(--ease-out); }
.mini-form { display: grid; grid-template-columns: 150px 1fr auto; gap: .5rem; margin-top: .9rem; }
.mini-form select, .mini-form input, .composer textarea {
  min-height: 40px; padding: .45rem .7rem; border-radius: 10px; border: 1px solid var(--stroke-strong);
  background: rgba(0,0,0,.25); color: var(--text); font-size: .85rem;
}
.countdown { display: flex; align-items: center; gap: 1rem; }
.countdown-ring { width: 86px; height: 86px; flex: none; }
.countdown-ring circle { fill: none; stroke-width: 7; }
.countdown-ring .bg { stroke: rgba(255,255,255,.08); }
.countdown-ring .fg { stroke: var(--warn); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.countdown-ring text { fill: var(--text-strong); font-family: var(--font-display); font-weight: 800; font-size: 20px; text-anchor: middle; }
.countdown-ring .sub { fill: var(--muted); font-size: 9px; font-weight: 500; }
.dtable { width: 100%; border-collapse: collapse; font-size: .82rem; }
.dtable th, .dtable td { padding: .55rem .5rem; text-align: right; border-bottom: 1px solid rgba(126, 170, 255, .1); white-space: nowrap; }
.dtable th:first-child, .dtable td:first-child, .dtable th:nth-child(2), .dtable td:nth-child(2) { text-align: left; }
.dtable th { color: var(--muted-2); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.dtable tfoot td { font-weight: 700; color: var(--text-strong); border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.callout { margin-top: .9rem; padding: .8rem 1rem; border-radius: 12px; font-size: .84rem; color: var(--text); background: rgba(255, 157, 67, .07); border: 1px solid rgba(255, 157, 67, .25); }
.hierarchy { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.h-node { display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--stroke); font-size: .84rem; }
.h-node small { display: block; color: var(--muted-2); font-size: .7rem; }
.h-node .avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 700; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; flex: none; }
.h-arrow { color: var(--muted-2); }
.h-arrow .ico { width: 18px; height: 18px; }
.h-contact { margin-top: .9rem; display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .75rem; border-radius: 10px; font-size: .8rem; border: 1px dashed rgba(34, 211, 238, .5); color: #bff4ff; background: rgba(34, 211, 238, .06); }
.composer { display: grid; gap: .5rem; }
.composer textarea { min-height: 70px; resize: vertical; width: 100%; }
.composer-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; font-size: .75rem; color: var(--muted-2); }
.notif-list li { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem 0; font-size: .82rem; border-bottom: 1px dashed rgba(126, 170, 255, .12); }
.notif-list li:last-child { border-bottom: 0; }
.notif-list .ico { width: 16px; height: 16px; color: var(--orange); margin-top: 2px; }
.empty { color: var(--muted-2); font-size: .82rem; }
.demo-toast {
  position: absolute; right: 1rem; bottom: 1rem; max-width: 320px; padding: .75rem 1rem; border-radius: 12px;
  background: rgba(3, 10, 30, .96); border: 1px solid rgba(255, 157, 67, .45); color: var(--text); font-size: .84rem;
  box-shadow: var(--shadow-1); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease-out);
}
.demo-toast.is-on { opacity: 1; transform: none; }

/* ---------- Comisiones ---------- */
.com-layout { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.com-controls { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.com-note { color: var(--muted); font-size: var(--fs-sm); flex: 1 1 320px; }
.seg { display: inline-flex; padding: 4px; border-radius: var(--radius-pill); background: rgba(0,0,0,.3); border: 1px solid var(--stroke); }
.seg-btn { min-height: 40px; padding: .45rem 1.1rem; border-radius: var(--radius-pill); border: 0; background: transparent; color: var(--muted); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); transition: all var(--dur); }
.seg-btn.is-active { background: linear-gradient(135deg, rgba(49, 85, 217, .9), rgba(34, 211, 238, .5)); color: #fff; box-shadow: 0 0 18px rgba(34, 211, 238, .3); }
.com-cards { grid-column: 1 / 8; display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; }
.com-card { position: relative; padding: 1.1rem 1.15rem; border-radius: 18px; background: var(--grad-panel); border: 1px solid var(--stroke); overflow: hidden; }
.com-card:last-child { grid-column: 1 / -1; }
.com-card::after { content: ""; position: absolute; inset: auto -20% -60% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(91, 134, 255, .18), transparent); }
.com-card h3 { font-size: .86rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.com-value { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); color: var(--text-strong); margin: .3rem 0 .35rem; font-variant-numeric: tabular-nums; }
.com-desc { font-size: .8rem; color: var(--muted-2); }
.com-card--accent { border-color: rgba(34, 211, 238, .45); }
.com-card--accent .com-value { color: #bff4ff; }
.com-card--ok .com-value { color: #8ff0c8; }
.com-card--warn .com-value { color: #ffd29e; }
.com-chart { grid-column: 8 / -1; margin: 0; padding: 1.2rem; display: flex; flex-direction: column; justify-content: center; }
.com-chart svg { width: 100%; height: auto; }
.com-chart figcaption { margin-top: .8rem; font-size: .84rem; color: var(--muted); }
.com-chart figcaption b { color: var(--text-strong); }
.bar-label { fill: var(--muted); font-size: 14px; font-family: var(--font-body); }
.bar-value { fill: var(--text-strong); font-size: 13px; font-weight: 700; font-family: var(--font-display); }

/* ---------- Seguridad ---------- */
.sec-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.25rem; align-items: start; }
.sec-visual { margin: 0; padding: 1.2rem; position: sticky; top: 90px; }
.sec-visual svg { width: 100%; height: auto; }
.sec-visual figcaption { margin-top: .6rem; color: var(--muted); font-size: .84rem; text-align: center; }
.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; }
.sec-item { display: flex; gap: .85rem; padding: 1.05rem; border-radius: 16px; background: rgba(255,255,255,.025); border: 1px solid var(--stroke); transition: border-color var(--dur), background var(--dur); }
.sec-item:hover { border-color: rgba(34, 211, 238, .4); background: rgba(34, 211, 238, .04); }
.sec-item > .ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; color: var(--cyan); background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .22); }
.sec-item h3 { font-size: 1rem; margin-bottom: .25rem; }
.sec-item p { color: var(--muted); font-size: .86rem; }
.sn-link { stroke: rgba(91, 134, 255, .5); stroke-width: 1.3; fill: none; }
.sn-pulse { stroke: var(--cyan); stroke-width: 2; fill: none; stroke-dasharray: 8 200; }
.sn-node circle { fill: #0b1d4d; stroke: rgba(140, 200, 255, .6); stroke-width: 1.4; }
.sn-node.sn-admin circle { stroke: var(--cyan); fill: #0e2a66; }
.sn-node text { paint-order: stroke; stroke: #071331; stroke-width: 4px; stroke-linejoin: round; fill: var(--text); font-size: 11px; font-family: var(--font-body); text-anchor: middle; }
.sn-zone { fill: rgba(49, 85, 217, .07); stroke: rgba(140, 200, 255, .3); stroke-dasharray: 5 5; }
.sn-zone-label { fill: var(--cyan); font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.sn-wall { stroke: rgba(255, 157, 67, .7); stroke-width: 2; stroke-dasharray: 3 6; }

/* ---------- Perfiles ---------- */
.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; perspective: 1000px; }
.profile-card { padding: 1.6rem; transform-style: preserve-3d; transition: border-color var(--dur); }
.profile-card--featured { border-color: rgba(34, 211, 238, .45); box-shadow: var(--shadow-2), 0 0 50px -10px rgba(34, 211, 238, .25); }
.profile-ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 1.1rem; color: #bff4ff; background: linear-gradient(140deg, rgba(91, 134, 255, .4), rgba(34, 211, 238, .18)); border: 1px solid rgba(160, 220, 255, .3); }
.profile-ico .ico { width: 26px; height: 26px; }
.profile-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.profile-card > p { color: var(--muted); font-size: .92rem; margin-bottom: 1.1rem; }
.check-list { display: grid; gap: .45rem; }
.check-list li { position: relative; padding-left: 1.6rem; font-size: .9rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(34, 211, 238, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ---------- Planes ---------- */
.section-head--wide { max-width: 1100px; }
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.plan-card { position: relative; display: flex; flex-direction: column; padding: 1.25rem 1.3rem 1.3rem; border-radius: var(--radius-lg); background: var(--grad-panel); border: 1px solid var(--stroke); box-shadow: var(--shadow-1); transition: transform var(--dur) var(--ease-out), border-color var(--dur); }
.plan-card:hover { transform: translateY(-4px); border-color: var(--stroke-strong); }
.plan-card.is-featured { border-color: rgba(34, 211, 238, .55); box-shadow: 0 24px 50px -30px rgba(34, 211, 238, .45); }
.plan-tag { align-self: flex-start; padding: .22rem .7rem; border-radius: var(--radius-pill); font-size: .74rem; font-weight: 700; color: #c8f6ff; background: rgba(34, 211, 238, .14); border: 1px solid rgba(34, 211, 238, .45); margin-bottom: .55rem; }
.plan-tag.is-empty { visibility: hidden; }
.plan-card h3 { font-size: 1.3rem; }
.plan-profile { color: var(--muted); font-size: .9rem; margin: .35rem 0 1rem; }
.plan-price { margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--stroke); font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: #b9c7e4; }
.addons { margin-top: 1.8rem; }
.addons-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .9rem; font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.addons-head em { font-style: normal; font-family: var(--font-body, inherit); font-weight: 500; letter-spacing: 0; text-transform: none; font-size: .85rem; color: var(--muted-2); }
.addons-head i { flex: 1; height: 1px; background: var(--stroke); }
.addon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.addon-card { display: flex; flex-direction: column; gap: .6rem; padding: 1.1rem 1.2rem; border-radius: 16px; border: 1px dashed rgba(34, 211, 238, .32); background: rgba(34, 211, 238, .03); }
.addon-card h3 { display: flex; align-items: center; gap: .7rem; font-size: 1.02rem; }
.addon-card h3 b { color: var(--cyan); font-weight: 800; margin-right: .1rem; }
.addon-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #c8f6ff; background: linear-gradient(140deg, rgba(23,107,255,.45), rgba(18,199,212,.2)); border: 1px solid rgba(160,220,255,.3); flex: none; }
.addon-ico .ico { width: 20px; height: 20px; }
.addon-card p { color: var(--text); font-size: .9rem; }
.addon-card small { color: var(--muted-2); font-size: .78rem; }
.plans-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }
.plans-cta .btn .ico, .plan-dialog .btn .ico { width: 18px; height: 18px; }
.plan-dialog { width: min(560px, calc(100vw - 2rem)); padding: 0; border: 1px solid rgba(34, 211, 238, .45); border-radius: var(--radius-lg); background: #0a1736; color: var(--text); box-shadow: 0 40px 90px -30px rgba(0,0,0,.8); }
.plan-dialog::backdrop { background: rgba(2, 6, 18, .72); backdrop-filter: blur(4px); }
.plan-dialog-inner { position: relative; padding: 1.8rem 1.8rem 1.6rem; display: grid; gap: .7rem; }
.plan-dialog h3 { font-size: 1.6rem; }
.plan-dialog-profile { color: var(--muted); }
.plan-dialog-users { font-weight: 700; color: var(--text-strong); }
.plan-dialog .check-list { margin: .3rem 0; }
.plan-dialog-price { font-size: .85rem; color: var(--muted-2); padding-top: .8rem; border-top: 1px solid var(--stroke); }
.plan-dialog .btn { justify-self: start; }
.plan-dialog-close { position: absolute; top: .9rem; right: .9rem; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--stroke); background: rgba(255,255,255,.04); color: var(--text); cursor: pointer; }
.plan-dialog-close .ico { width: 18px; height: 18px; }

/* ---------- Formulario ---------- */
.demo-request-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.dr-steps { display: grid; gap: .8rem; margin: 1.6rem 0; }
.dr-steps li { display: flex; align-items: center; gap: .9rem; color: var(--text); }
.dr-steps b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .4); color: var(--cyan); flex: none; }
.dr-alt { color: var(--muted); font-size: var(--fs-sm); }
.lead-form { padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.1rem; }
.field { display: grid; gap: .35rem; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 600; color: var(--text); }
.field label small { color: var(--muted-2); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem; border-radius: 12px;
  background: rgba(2, 8, 26, .55); border: 1px solid var(--stroke-strong); color: var(--text);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fb0d6' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 16px; padding-right: 2.4rem; }
.field select option { background: #0a1638; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .2); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { min-height: 1.2em; font-size: .78rem; line-height: 1.2; color: #ffb4b4; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: .3rem .7rem; }
.field--check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--orange); }
.field--check label { font-weight: 400; color: var(--muted); }
.field--check .field-error { grid-column: 1 / -1; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.form-required { font-size: .78rem; color: var(--muted-2); }
.btn-spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(42, 19, 0, .3); border-top-color: #2a1300; animation: spin .8s linear infinite; }
.is-sending .btn-spinner { display: inline-block; }
.form-status { margin-top: 1rem; }
.form-status:empty { display: none; }
.status-box { padding: 1rem 1.1rem; border-radius: 14px; font-size: .9rem; }
.status-box h3 { font-size: 1rem; margin-bottom: .3rem; }
.status-box--ok { background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .4); }
.status-box--error { background: rgba(248, 113, 113, .08); border: 1px solid rgba(248, 113, 113, .4); }
.status-box--info { background: rgba(96, 165, 250, .08); border: 1px solid rgba(96, 165, 250, .35); }

/* ---------- FAQ ---------- */
.faq-inner { max-width: 900px; }
.faq-list { display: grid; gap: .7rem; }
.faq-item { border-radius: 16px; border: 1px solid var(--stroke); background: rgba(255,255,255,.025); transition: border-color var(--dur), background var(--dur); }
.faq-item.is-open { border-color: rgba(34, 211, 238, .4); background: rgba(34, 211, 238, .035); }
.faq-q { margin: 0; }
.faq-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.2rem; border: 0; background: transparent; text-align: left;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--text-strong);
}
.faq-btn .ico { width: 20px; height: 20px; color: var(--cyan); transition: transform var(--dur) var(--ease-out); }
.faq-item.is-open .faq-btn .ico { transform: rotate(45deg); }
.faq-a { overflow: hidden; height: 0; }
.faq-a-inner { padding: 0 1.2rem 1.15rem; color: var(--muted); font-size: .94rem; }
.faq-a-inner .pill { margin-left: .3rem; }

/* ---------- CTA final ---------- */
.final-cta { padding: 0 0 var(--space-section); }
.final-cta-inner { position: relative; overflow: hidden; text-align: center; padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(1.25rem, 4vw, 4rem); display: grid; justify-items: center; gap: 1.5rem; }
.final-cta-inner::before { content: ""; position: absolute; inset: -40% 20% auto; height: 120%; background: radial-gradient(closest-side, rgba(34, 211, 238, .18), transparent); pointer-events: none; }
.final-cta-inner h2 { position: relative; font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem); max-width: 26ch; }
.final-cta-emblem { position: relative; width: 96px; height: 96px; filter: drop-shadow(0 0 24px rgba(34, 211, 238, .4)); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--stroke); background: rgba(2, 6, 18, .7); padding: 3.5rem 0 1.5rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-brand p { color: var(--muted); margin-top: .9rem; font-size: .92rem; max-width: 34ch; }
.footer-corp { font-size: .8rem !important; color: var(--muted-2) !important; }
.footer-nav h2, .footer-contact h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: .9rem; font-weight: 700; }
.footer-nav ul { display: grid; gap: .5rem; }
.footer-nav a { color: var(--text); font-size: .92rem; }
.footer-nav a:hover { color: var(--cyan); }
.footer-mail { display: inline-flex; align-items: center; gap: .5rem; color: var(--text); font-size: .92rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--stroke); color: var(--muted-2); font-size: .82rem; }

/* ---------- Páginas legales ---------- */
.legal-page { max-width: 820px; margin: 0 auto; padding: calc(var(--header-h) + 2rem) 1.25rem 4rem; }
.legal-page h1 { font-size: var(--fs-h2); margin: 1rem 0; }
.legal-page h2 { font-size: 1.2rem; margin: 2rem 0 .6rem; }
.legal-page p, .legal-page li { color: var(--muted); }
.legal-page ul { list-style: disc; padding-left: 1.2rem; display: grid; gap: .3rem; }

/* ---------- Escena WebGL del explorador (js/ecosystem-3d.js) ---------- */
.stage-gl { position: absolute; inset: 0; z-index: 2; opacity: 0; visibility: hidden; }
.gl-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; outline: none; cursor: grab; }
.gl-canvas:active { cursor: grabbing; }
.gl-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; visibility: hidden; }
.gl-label {
  position: absolute; left: 0; top: 0; pointer-events: auto; white-space: nowrap;
  padding: .3rem .6rem .3rem .55rem; border-radius: 9px; border: 1px solid rgba(126, 200, 255, .3);
  background: rgba(3, 10, 30, .78); color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: .78rem; line-height: 1.15;
  transition: opacity .3s, border-color .3s, background .3s; will-change: transform;
}
.gl-label::before { content: ""; position: absolute; right: 100%; top: 50%; width: 14px; height: 1px; background: rgba(126, 200, 255, .45); }
.gl-label small { display: block; font-size: .62rem; letter-spacing: .14em; color: var(--cyan); font-weight: 700; }
.gl-label--demo small { color: #ffb066; }
.gl-label.is-active { border-color: var(--cyan); background: rgba(10, 40, 90, .92); box-shadow: 0 0 18px rgba(34, 211, 238, .35); }
.gl-label.is-dim { opacity: .5; }
.gl-ui {
  position: absolute; z-index: 3; left: .75rem; bottom: .75rem; display: flex; gap: .4rem; flex-wrap: wrap;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .3s, transform .3s, visibility .3s;
}
.gl-hint {
  position: absolute; z-index: 3; left: .85rem; top: .7rem; right: .85rem; font-size: .74rem; color: var(--muted);
  opacity: 0; visibility: hidden; transition: opacity .3s, color .3s, visibility .3s; pointer-events: none;
}
.gl-hint.is-flash { color: #ffd29e; }
.explorer-stage.is-gl .gl-ui, .explorer-stage.is-gl .gl-hint { opacity: 1; visibility: visible; transform: none; }
.gl-btn {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .4rem .8rem; border-radius: 12px;
  border: 1px solid var(--stroke-strong); background: rgba(3, 10, 30, .82); color: var(--text);
  font-family: var(--font-display); font-weight: 700; font-size: .78rem;
}
.gl-btn--icon { width: 40px; padding: 0; justify-content: center; }
.gl-btn .ico { width: 17px; height: 17px; }
.gl-btn:hover { border-color: var(--cyan); }
.gl-btn[aria-pressed="true"] { border-color: var(--cyan); color: #bff4ff; background: rgba(34, 211, 238, .12); }
.gl-notice {
  position: absolute; z-index: 4; right: .75rem; bottom: .75rem; max-width: min(360px, 80%);
  padding: .45rem .75rem; border-radius: 10px; font-size: .76rem; color: #ffe2bf;
  background: rgba(3, 10, 30, .9); border: 1px solid rgba(255, 157, 67, .4);
}
.explorer-stage[aria-busy="true"] .gl-ui { pointer-events: none; }

/* Módulo demostrativo (Automatizaciones) */
.layer--demo { border-style: dashed; border-color: rgba(255, 176, 102, .45); }
.layer--demo .layer-num { color: #ffb066; }
.bp-zone--concepto rect:first-child { stroke-dasharray: 5 4; fill: rgba(255, 157, 67, .08); stroke: rgba(255, 176, 102, .6); }
.bp-zone--validacion rect:first-child { fill: rgba(251, 191, 36, .1); stroke: rgba(251, 191, 36, .55); }
.zone-status { display: inline-block; margin-left: .35rem; padding: .05rem .5rem; border-radius: 999px; font-size: .72rem; border: 1px solid var(--stroke); }
.zone-status--disponible { color: #8ff0c8; border-color: rgba(52, 211, 153, .4); }
.zone-status--validacion { color: #fde08a; border-color: rgba(251, 191, 36, .4); }
.zone-status--concepto { color: #ffd29e; border-color: rgba(255, 157, 67, .45); }
.bp-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .8rem; margin-top: .6rem; font-size: .74rem; color: var(--muted); }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: -.45rem; border: 1px solid; vertical-align: middle; }
.lg--disponible { background: rgba(49, 85, 217, .3); border-color: rgba(140, 200, 255, .6); }
.lg--validacion { background: rgba(251, 191, 36, .15); border-color: rgba(251, 191, 36, .6); }
.lg--concepto { background: rgba(255, 157, 67, .1); border-color: rgba(255, 176, 102, .7); border-style: dashed; }
.panel-kicker .badge-demo { margin-left: .4rem; letter-spacing: 0; text-transform: none; vertical-align: middle; }
