/* ════════ Sigma-360 · Variación A «Orbital» ════════ */
:root {
  --accent-base: #38BDF8;
  --bg: #060C18;
  --bg2: #0A1426;
  --panel: #0D1A30;
  --panel2: #111F3A;
  --line: rgba(140, 170, 220, 0.14);
  --ink: #E9EFF8;
  --muted: #8FA1BB;
  --accent: var(--accent-base);
  --accent-ink: #06121F;
  --glow: rgba(56, 189, 248, 0.16);
  --shadow: 0 18px 50px rgba(2, 8, 20, 0.55);
}
html[data-theme="light"] {
  --bg: #F4F7FB;
  --bg2: #EAF0F8;
  --panel: #FFFFFF;
  --panel2: #F2F6FC;
  --line: rgba(20, 45, 90, 0.12);
  --ink: #122036;
  --muted: #54667F;
  --accent: color-mix(in oklab, var(--accent-base), #0B2040 30%);
  --accent-ink: #FFFFFF;
  --glow: rgba(14, 99, 232, 0.10);
  --shadow: 0 14px 40px rgba(18, 32, 54, 0.10);
}
html[data-theme="dark"][data-bgtone="grafito"] {
  --bg: #131517;
  --bg2: #17191D;
  --panel: #1A1D22;
  --panel2: #21252B;
  --line: rgba(195, 208, 222, 0.13);
  --glow: rgba(56, 189, 248, 0.12);
}
html[data-theme="dark"][data-bgtone="carbon"] {
  --bg: #0A0B0C;
  --bg2: #0F1112;
  --panel: #131618;
  --panel2: #191D20;
  --line: rgba(190, 205, 218, 0.12);
  --glow: rgba(56, 189, 248, 0.10);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html[lang="en"] .es { display: none !important; }
html:not([lang="en"]) .en { display: none !important; }
body {
  font-family: 'IBM Plex Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  transition: background 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}
h1, h2, h3, .display { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.015em; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── accesibilidad ── */
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: 0 0 10px 10px; text-decoration: none;
  transition: top 0.2s ease;
}
.skip:focus { top: 0; }

/* ── revelado (estilo apple: blur + escala) ── */
.rv { opacity: 0; transform: translateY(34px) scale(0.985); filter: blur(9px); transition: opacity 0.85s ease, transform 0.95s cubic-bezier(0.2, 0.7, 0.3, 1), filter 0.95s ease; }
.rv.in { opacity: 1; transform: none; filter: blur(0); }
.rv.d1 { transition-delay: 0.08s; } .rv.d2 { transition-delay: 0.16s; }
.rv.d3 { transition-delay: 0.24s; } .rv.d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; filter: none; transition: none; } }

/* ── efectos tipo apple: scroll-driven ── */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    html:not([data-motion="sutil"]) .hero-copy,
    html:not([data-motion="sutil"]) .hero .orbit-wrap {
      animation: heroOut linear both;
      animation-timeline: scroll(root);
      animation-range: 0vh 95vh;
    }
    html:not([data-motion="sutil"]) .epic-diagram svg {
      animation: zoomIn linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 85%;
    }
    html:not([data-motion="sutil"]) .c360 {
      animation: zoomIn linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 85%;
    }
  }
}
@keyframes heroOut { to { opacity: 0.1; transform: translateY(-70px) scale(0.955); filter: blur(7px); } }
@keyframes zoomIn { from { opacity: 0.25; transform: scale(0.86) rotate(-3deg); } }

/* nav al hacer scroll (vidrio más denso) */
.nav { transition: box-shadow 0.3s ease, background 0.3s ease; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 92%, transparent); box-shadow: 0 10px 34px rgba(2, 8, 20, 0.35); }

/* tarjetas con inclinación 3D (JS) */
.svc, .prod, .case { will-change: transform; }
.tilting { transition: none !important; }

/* ── nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 32px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.nav .brand .word { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px; letter-spacing: 0.05em; }
.brandmark { height: 26px; width: auto; display: block; }
.brandmark.sm { height: 21px; }
html[data-theme="light"] .brandmark { filter: drop-shadow(0 1px 1.5px rgba(12, 24, 48, 0.4)); }
.nav .links { display: flex; gap: 4px; }
.nav .links a {
  text-decoration: none; font-size: 14px; color: var(--muted);
  padding: 7px 12px; border-radius: 8px; transition: color 0.15s, background 0.15s;
  font-weight: 500;
}
.nav .links a:hover { color: var(--ink); background: color-mix(in srgb, var(--panel2) 70%, transparent); }
.nav .links a.active { color: var(--accent); }
.ctrl { display: flex; align-items: center; gap: 10px; }
.lang-pill { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-pill button {
  font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 600;
  background: none; border: none; color: var(--muted); padding: 6px 12px; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lang-pill button.active { background: var(--accent); color: var(--accent-ink); }
.theme-btn {
  width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line);
  background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center;
  transition: color 0.15s, border-color 0.15s, transform 0.3s ease;
}
.theme-btn:hover { color: var(--accent); border-color: var(--accent); transform: rotate(40deg); }
.theme-btn .moon { display: none; }
.theme-btn.is-dark .sun { display: none; }
.theme-btn.is-dark .moon { display: block; }
.menu-btn {
  display: none; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line); background: none; color: var(--ink);
  cursor: pointer; place-items: center;
}
.nav .cta {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 13.5px;
  text-decoration: none; background: var(--accent); color: var(--accent-ink);
  padding: 9px 18px; border-radius: 999px; transition: filter 0.15s, transform 0.15s;
}
.nav .cta:hover { filter: brightness(1.12); transform: translateY(-1px); }

/* ── hero ── */
.hero {
  /* hero SIEMPRE oscuro (la imagen es oscura): tokens dark en ambos temas → texto legible y sin marco en claro */
  --bg: #060a14; --bg2: #0A1426; --panel: #0D1A30; --panel2: #111F3A;
  --line: rgba(195,208,222,0.13); --ink: #E9EFF8; --muted: #9DB0CC;
  --accent: var(--accent-base); --accent-ink: #06121F; --glow: rgba(56,189,248,0.14);
  color: var(--ink);
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr 0.95fr;
  align-items: center; gap: 24px; padding: 120px 64px 64px; position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 540px at 78% 30%, var(--glow), transparent 65%),
    radial-gradient(700px 480px at 8% 85%, color-mix(in srgb, var(--glow) 60%, transparent), transparent 70%),
    var(--bg);
}
.hero::before {
  content: ''; position: absolute; inset: -22%;
  background:
    radial-gradient(44% 40% at 72% 26%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
    radial-gradient(38% 36% at 14% 78%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(52% 48% at 52% 112%, color-mix(in srgb, #7C5AED 13%, transparent), transparent 72%),
    radial-gradient(30% 26% at 38% 8%, color-mix(in srgb, #2DD4BF 9%, transparent), transparent 70%);
  animation: nebDrift 26s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes nebDrift { to { transform: translate3d(2.5%, -2%, 0) scale(1.07) rotate(1.4deg); } }
html[data-motion="sutil"] .hero::before { animation: none; }
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 50%, transparent 58%, color-mix(in srgb, var(--bg) 55%, transparent) 100%);
}
.hero > div, .hero .scroll-hint { position: relative; z-index: 1; }
.hero-bg { position: absolute !important; inset: 0; z-index: 0 !important; overflow: hidden; pointer-events: none; }
.hero-bg image-slot {
  pointer-events: auto; position: absolute; left: 0; right: 0; top: -14%; height: 128%;
  display: block; will-change: transform;
}
.hero-bg image-slot:not([data-filled]) { opacity: 0.4; }
.hero-bg .hero-img {
  position: absolute; left: 0; right: 0; top: -2%; width: 100%; height: 104%;
  object-fit: cover; object-position: center 46%;
  will-change: transform; transform: translate3d(0,0,0);
  filter: brightness(0.66) saturate(1.05);
  pointer-events: none; display: block;
}
.hero-bg { background: var(--bg); }
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(57% 66% at 73% 47%, color-mix(in srgb, var(--bg) 78%, transparent), color-mix(in srgb, var(--bg) 30%, transparent) 48%, transparent 74%),
    linear-gradient(90deg, var(--bg) 2%, color-mix(in srgb, var(--bg) 74%, transparent) 38%, color-mix(in srgb, var(--bg) 24%, transparent) 64%, transparent 90%),
    linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 22%, transparent) 14%, transparent 32%, transparent 66%, color-mix(in srgb, var(--bg) 45%, transparent) 86%, var(--bg) 100%),
    color-mix(in srgb, var(--bg) 12%, transparent);
}
.hero-bg:has(image-slot:not([data-filled])) .hero-scrim { opacity: 0.5; }
.hero .kicker {
  font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 12px; margin-bottom: 22px;
}
.hero .kicker::before { content: ''; width: 36px; height: 1.5px; background: var(--accent); }
.hero h1 { font-size: clamp(44px, 5.6vw, 76px); line-height: 1.04; font-weight: 700; margin-bottom: 22px; text-wrap: balance; }
.hero h1 .amp { color: var(--accent); font-style: italic; }
.hero .sub { font-size: 18.5px; color: var(--muted); max-width: 520px; margin-bottom: 36px; text-wrap: pretty; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  white-space: nowrap;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15px;
  text-decoration: none; padding: 14px 28px; border-radius: 999px;
  transition: transform 0.18s ease, filter 0.18s ease, background 0.18s, color 0.18s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 30px var(--glow); }
.btn.primary:hover { filter: brightness(1.12); transform: translateY(-2px); }
.btn.ghost { border: 1px solid var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.hero .orbit-wrap { position: relative; height: min(72vh, 640px); }
.hero canvas { width: 100%; height: 100%; display: block; }
.hero .scroll-hint {
  position: absolute; bottom: 26px; left: 64px; font-size: 12.5px; color: var(--muted);
  letter-spacing: 0.18em; text-transform: uppercase; font-family: 'Space Grotesk', sans-serif;
  display: flex; align-items: center; gap: 10px;
}
.hero .scroll-hint .bar { width: 1.5px; height: 34px; background: var(--line); position: relative; overflow: hidden; }
.hero .scroll-hint .bar::after {
  content: ''; position: absolute; left: 0; top: -50%; width: 100%; height: 50%;
  background: var(--accent); animation: drip 1.8s ease-in-out infinite;
}
@keyframes drip { to { top: 110%; } }
@media (prefers-reduced-motion: reduce) { .hero .scroll-hint .bar::after { animation: none; } }

/* ── secciones ── */
section.block { padding: 110px 64px; position: relative; }
.head { max-width: 720px; margin-bottom: 56px; }
.head .tag {
  font-family: 'Space Grotesk', sans-serif; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.head .tag .n { color: var(--muted); }
.head h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; margin-bottom: 14px; text-wrap: balance; }
.head p { color: var(--muted); font-size: 17px; text-wrap: pretty; }

/* servicios */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc {
  background: color-mix(in srgb, var(--panel) 74%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 26px 30px; position: relative; overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.svc:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: var(--shadow); }
.svc::after {
  content: ''; position: absolute; inset: auto -30% -55% auto; width: 75%; aspect-ratio: 1;
  border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 70%);
  opacity: 0; transition: opacity 0.3s ease;
}
.svc:hover::after { opacity: 1; }
.svc .ico { width: 46px; height: 46px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 14%, transparent); display: grid; place-items: center; margin-bottom: 20px; color: var(--accent); }
.svc h3 { font-size: 19px; margin-bottom: 10px; }
.svc p { font-size: 14.5px; color: var(--muted); text-wrap: pretty; }

/* EPIC band */
.epic {
  margin-top: 22px; border-radius: 22px; border: 1px solid var(--line);
  background: linear-gradient(120deg, var(--panel) 0%, var(--panel2) 100%);
  padding: 44px 48px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center;
  position: relative; overflow: hidden;
}
.epic .badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.16em;
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.epic h3 { font-size: 27px; margin-bottom: 12px; text-wrap: balance; }
.epic p { color: var(--muted); font-size: 15.5px; margin-bottom: 10px; text-wrap: pretty; }
.epic-diagram { display: flex; align-items: center; justify-content: center; gap: 0; }
.epic-diagram svg { width: 100%; max-width: 420px; height: auto; }

/* EPIC — ecosistema animado */
.epic-diagram svg { width: 100%; max-width: 460px; height: auto; }
.epic-vis .ring-spin { animation: epicSpin 46s linear infinite; transform-origin: 230px 195px; }
.epic-vis .ring-spin.rev { animation-direction: reverse; animation-duration: 60s; }
@keyframes epicSpin { to { transform: rotate(360deg); } }
.epic-vis .pulse { stroke-dasharray: 5 11; animation: epicFlow 1.4s linear infinite; }
@keyframes epicFlow { to { stroke-dashoffset: -16; } }
.epic-vis .halo { transform-box: fill-box; transform-origin: center; animation: epicHalo 3s ease-in-out infinite; }
.epic-vis .halo.h2 { animation-delay: 0.6s; } .epic-vis .halo.h3 { animation-delay: 1.2s; }
.epic-vis .halo.h4 { animation-delay: 1.8s; } .epic-vis .halo.h5 { animation-delay: 2.4s; }
@keyframes epicHalo { 0%, 100% { opacity: 0.0; transform: scale(0.85); } 50% { opacity: 0.55; transform: scale(1.25); } }
html[data-motion="sutil"] .epic-vis .ring-spin, html[data-motion="sutil"] .epic-vis .pulse, html[data-motion="sutil"] .epic-vis .halo { animation: none; }
@media (prefers-reduced-motion: reduce) { .epic-vis .ring-spin, .epic-vis .pulse, .epic-vis .halo { animation: none; } }

/* productos */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.prod {
  background: color-mix(in srgb, var(--panel) 74%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 30px 28px; display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.prod:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: var(--shadow); }
.prod .top { display: flex; align-items: center; justify-content: space-between; }
.prod .nm { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 20px; }
.prod .chip {
  font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 13%, transparent); border-radius: 999px; padding: 4px 10px;
}
.prod p { font-size: 14.5px; color: var(--muted); flex: 1; text-wrap: pretty; }
.prod .feats { display: flex; flex-wrap: wrap; gap: 6px; }
.prod .feats span {
  font-size: 12px; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 10px;
}
.prod.wide { grid-column: span 3; flex-direction: row; align-items: center; gap: 28px; background: linear-gradient(110deg, var(--panel), var(--panel2)); }
.prod.wide p { flex: 1; }

/* aliados */
.allies {
  background: var(--bg2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.allies .inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.allies ul { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.allies li { display: flex; gap: 16px; align-items: flex-start; font-size: 15.5px; color: var(--muted); }
.allies li strong { color: var(--ink); font-weight: 600; display: block; font-family: 'Space Grotesk', sans-serif; font-size: 16.5px; margin-bottom: 2px; }
.allies li .dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 9px; }

/* nosotros — círculo 360 */
.circle360 { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; }
.circle360 svg { width: 100%; max-width: 480px; height: auto; margin: 0 auto; display: block; overflow: visible; }
.c360 .spin { animation: c360spin 70s linear infinite; transform-origin: 240px 240px; }
html[data-motion="sutil"] .c360 .spin { animation: none; }
@media (prefers-reduced-motion: reduce) { .c360 .spin { animation: none; } }
.c360 .arc { transition: stroke-opacity 0.5s ease; }
.c360 .lbl { font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; fill: var(--ink); transition: opacity 0.5s ease; }
.c360 .lbl .ix { fill: var(--accent); }
.c360 .sublbl { font-family: 'IBM Plex Sans', sans-serif; font-size: 10.5px; letter-spacing: 0.06em; fill: var(--muted); }
.phase { border-left: 2px solid var(--line); padding: 6px 0 6px 22px; margin-bottom: 24px; transition: border-color 0.45s ease, background 0.45s ease; }
.phase:hover { border-color: var(--accent); }
.phase.active { border-color: var(--accent); background: linear-gradient(90deg, var(--glow), transparent 70%); }
.phase h3 { font-size: 19px; margin-bottom: 6px; }
.phase h3 .num { color: var(--accent); margin-right: 8px; font-size: 15px; }
.phase p { font-size: 14.5px; color: var(--muted); text-wrap: pretty; }

/* casos — ilustraciones */
.case .shot { height: 210px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(150deg, var(--panel2), var(--bg2)); }
.shot .mini { position: absolute; inset: 22px 26px -14px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px 10px 0 0; box-shadow: 0 12px 34px rgba(2, 8, 20, 0.4); overflow: hidden; }
.shot .chrome { display: flex; align-items: center; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--panel); }
.shot .chrome i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.shot .chrome .addr { flex: 1; height: 12px; border-radius: 6px; background: var(--panel2); margin-left: 6px; }
.shot .chrome .led { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: led 2.2s ease-in-out infinite; }
.shot .chrome .ttl { font-family: 'Space Grotesk', sans-serif; font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .shot .chrome .led { animation: none; } }
/* — web/EPIC — */
.shot .heroband { margin: 10px; height: 56px; border-radius: 7px; background: linear-gradient(115deg, color-mix(in srgb, var(--accent) 32%, var(--panel2)), var(--panel2)); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.shot .tline { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 82%, transparent); width: 62%; }
.shot .tline.s { height: 5px; width: 42%; background: color-mix(in srgb, var(--ink) 38%, transparent); }
.shot .cardrow { display: flex; gap: 8px; margin: 0 10px; }
.shot .cardrow div { flex: 1; height: 40px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); position: relative; }
.shot .cardrow div::after { content: ''; position: absolute; left: 8px; top: 8px; right: 30%; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 30%, transparent); }
.shot .satrow { display: flex; gap: 6px; margin: 9px 10px 0; align-items: center; }
.shot .satrow .lnk { flex: 1; height: 1.5px; background: linear-gradient(90deg, var(--accent), transparent); }
.shot .satrow b { width: 20px; height: 20px; border-radius: 50%; border: 1.4px solid var(--accent); color: var(--accent); font-family: 'Space Grotesk', sans-serif; font-size: 8.5px; font-weight: 700; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 10%, transparent); }
/* — LexIQ — */
.shot .nn { position: absolute; inset: 0; opacity: 0.5; }
.shot .bubble { position: relative; margin: 9px 12px 0; padding: 7px 10px; border-radius: 9px; font-family: 'IBM Plex Sans', sans-serif; font-size: 9.5px; line-height: 1.45; max-width: 78%; }
.shot .bubble.q { background: var(--panel2); color: var(--muted); border: 1px solid var(--line); margin-left: auto; border-bottom-right-radius: 3px; }
.shot .bubble.a { background: color-mix(in srgb, var(--accent) 14%, var(--panel)); color: var(--ink); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-bottom-left-radius: 3px; }
.shot .cites { display: flex; gap: 5px; margin: 7px 12px 0; }
.shot .cites span { white-space: nowrap; font-family: 'Space Grotesk', sans-serif; font-size: 8px; font-weight: 600; letter-spacing: 0.05em; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 999px; padding: 2px 7px; background: color-mix(in srgb, var(--accent) 8%, transparent); }
/* — agente dashboard — */
.shot .kpis { display: flex; gap: 7px; margin: 10px 10px 0; }
.shot .kpis div { flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; }
.shot .kpis .v { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 12.5px; color: var(--ink); }
.shot .kpis .v.up { color: var(--accent); }
.shot .kpis .k { font-family: 'IBM Plex Sans', sans-serif; font-size: 7.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.shot .chart { display: flex; align-items: flex-end; gap: 5px; height: 52px; margin: 10px 12px 0; padding-bottom: 1px; border-bottom: 1px solid var(--line); }
.shot .chart i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 30%, transparent)); transform-origin: bottom; transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1); }
.case:hover .shot .chart i { transform: scaleY(1.12); }
.shot .logline { font-family: 'IBM Plex Sans', sans-serif; font-size: 8.5px; color: var(--muted); margin: 8px 12px 0; display: flex; gap: 6px; align-items: center; }
.shot .logline b { color: var(--accent); font-weight: 600; }

/* casos */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.case image-slot, .case .shot { width: 100%; height: 210px; }
.case .body { padding: 18px 20px 20px; }
.case .body .t { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 16.5px; }
.case .body .d { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* contacto */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact .mail {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 17px;
  color: var(--accent); text-decoration: none;
}
.contact .mail:hover { text-decoration: underline; }
.form { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { font-size: 13px; font-weight: 600; color: var(--muted); display: grid; gap: 7px; font-family: 'Space Grotesk', sans-serif; letter-spacing: 0.04em; }
.form input, .form textarea, .form select {
  font-family: 'IBM Plex Sans', sans-serif; font-size: 15px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.form textarea { resize: vertical; min-height: 110px; }
.form .send { justify-self: start; border: none; cursor: pointer; }
.form .ok { font-size: 14px; color: var(--accent); display: none; }
.form.sent .ok { display: block; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 44px 64px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
footer .fbrand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
footer .slog { font-size: 13px; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; font-family: 'Space Grotesk', sans-serif; }
footer .cr { font-size: 13px; color: var(--muted); }

/* switcher de variación */
.var-switch {
  position: fixed; bottom: 20px; right: 20px; z-index: 60;
  display: flex; align-items: center; gap: 4px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px;
  backdrop-filter: blur(10px); box-shadow: var(--shadow);
  font-family: 'Space Grotesk', sans-serif;
}
.var-switch a {
  font-size: 12.5px; font-weight: 600; text-decoration: none; color: var(--muted);
  padding: 6px 12px; border-radius: 999px; transition: background 0.15s, color 0.15s;
}
.var-switch a:hover { color: var(--ink); }
.var-switch a.on { background: var(--accent); color: var(--accent-ink); }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; padding: 110px 28px 56px; }
  .hero .orbit-wrap { height: 360px; }
  section.block { padding: 80px 28px; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .prod-grid { grid-template-columns: 1fr 1fr; }
  .prod.wide { grid-column: span 2; flex-direction: column; align-items: flex-start; }
  .epic, .circle360, .allies .inner, .contact { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr 1fr; }
  .menu-btn { display: grid; }
  .nav .links { display: none; }
  .nav.menu-open .links {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); padding: 10px 20px 16px; gap: 2px;
  }
  .nav.menu-open .links a { padding: 13px 12px; font-size: 16px; }
  footer { padding: 36px 28px; }
}
@media (max-width: 640px) {
  .svc-grid, .prod-grid, .cases-grid { grid-template-columns: 1fr; }
  .prod.wide { grid-column: span 1; }
  .form .row { grid-template-columns: 1fr; }
  .nav { padding: 12px 16px; gap: 12px; }
  .nav .cta { display: none; }
  .hero { padding: 100px 20px 48px; }
  section.block { padding: 64px 20px; }
  .epic { padding: 30px 24px; }
  .hero .scroll-hint { left: 20px; }
}
