/* ==========================================================================
   Soluciones IT LAB — hoja de estilos principal
   ========================================================================== */

:root {
  --bg: #070b14;
  --bg-alt: #0a1020;
  --surface: #0e1628;
  --surface-2: #131d33;
  --border: rgba(148, 163, 184, .13);
  --border-strong: rgba(148, 163, 184, .24);
  --text: #e7edf7;
  --text-soft: #b6c2d6;
  --muted: #8494ad;

  --cyan: #22d3ee;
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --emerald: #34d399;
  --amber: #fbbf24;
  --rose: #fb7185;
  --accent: var(--cyan);
  --grad: linear-gradient(135deg, var(--cyan), var(--indigo));

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .6);
  --header-h: 72px;
  --container: 1200px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
::selection { background: rgba(34, 211, 238, .3); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--cyan); color: #04121a; padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.text-gradient { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 16px; height: 16px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1.2; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(34, 211, 238, .55); }
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(99, 102, 241, .7); }
.btn-ghost { border-color: var(--border-strong); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: rgba(34, 211, 238, .5); background: rgba(34, 211, 238, .07); }
.btn-light { background: #fff; color: #0a1020; }
.btn-light:hover { box-shadow: 0 14px 40px -12px rgba(255, 255, 255, .45); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Logo ---------- */
.brand { display: inline-flex; }
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark { width: 42px; height: 42px; }
.logo-tile { fill: rgba(99, 102, 241, .1); stroke: rgba(34, 211, 238, .25); stroke-width: 1; }
.logo-pulse { stroke-dasharray: 40; stroke-dashoffset: 0; }
.brand:hover .logo-pulse { animation: logo-pulse 1.1s var(--ease); }
@keyframes logo-pulse { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-top { font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.logo-main { font-family: var(--font-display); font-size: 1.32rem; font-weight: 700; letter-spacing: .01em; }
.logo-main b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Header / navegación ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, body.nav-open .site-header {
  background: rgba(7, 11, 20, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: 999px; background: none; border: 0;
  color: var(--text-soft); font-weight: 500; font-size: .95rem; transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link.is-active { color: var(--text); }
.nav-link.is-active { background: rgba(255, 255, 255, .06); }
.dropdown-toggle .icon { transition: transform .25s var(--ease); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border-strong); border-radius: 10px; padding: 8px; }
.nav-toggle .icon-close { display: none; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%; width: 400px;
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden;
  background: rgba(14, 22, 40, .97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 10px; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.dropdown::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.has-dropdown:hover .dropdown, .has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-dropdown:hover .dropdown-toggle .icon, .has-dropdown.is-open .dropdown-toggle .icon { transform: rotate(180deg); }
.dropdown-grid { display: grid; gap: 4px; }
.dropdown-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 12px; transition: background .2s; }
.dropdown-item:hover { background: rgba(255, 255, 255, .05); }
.dropdown-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-family: var(--font-display); }
.dropdown-text { display: block; color: var(--muted); font-size: .86rem; line-height: 1.45; margin-top: 2px; }
.dropdown-footer {
  display: flex; align-items: center; justify-content: space-between; margin-top: 6px;
  padding: 12px; border-top: 1px solid var(--border); color: var(--cyan); font-weight: 500; font-size: .9rem;
}

/* ---------- Secciones ---------- */
main { display: block; }
.section { padding: 110px 0; position: relative; }
.section-tight { padding: 70px 0 110px; }
.section-alt { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--text-soft); font-size: 1.08rem; }
.kicker {
  display: inline-block; margin-bottom: 14px; font-size: .8rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--cyan);
}
.lead { font-size: 1.14rem; color: var(--text-soft); max-width: 640px; }

/* ---------- Fondo animado ---------- */
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
  mask-image: linear-gradient(#000 65%, transparent); -webkit-mask-image: linear-gradient(#000 65%, transparent); }
.orb { position: absolute; border-radius: 50%; opacity: .55; will-change: transform; animation: orb-float 18s ease-in-out infinite alternate; }
.orb-1 { width: 760px; height: 760px; background: radial-gradient(circle, rgba(34, 211, 238, .38), transparent 62%); top: -320px; left: -260px; }
.orb-2 { width: 700px; height: 700px; background: radial-gradient(circle, rgba(99, 102, 241, .42), transparent 62%); top: -8%; right: -260px; animation-delay: -6s; }
.orb-3 { width: 560px; height: 560px; background: radial-gradient(circle, rgba(139, 92, 246, .3), transparent 62%); bottom: -240px; left: 36%; animation-delay: -12s; }
@keyframes orb-float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, 50px) scale(.95); }
}
.grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  animation: grid-move 30s linear infinite;
}
@keyframes grid-move { to { background-position: 56px 56px; } }

/* ---------- Hero home ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 90px) 0 0; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-bottom: 90px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; margin-bottom: 26px;
  border: 1px solid var(--border-strong); border-radius: 999px; background: rgba(255, 255, 255, .03);
  font-size: .85rem; color: var(--text-soft); font-weight: 500;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } }
.hero-title { max-width: 680px; }
.rotator { display: inline-block; position: relative; }
.rotator-word { display: inline-block; transition: opacity .35s var(--ease), transform .35s var(--ease), filter .35s; }
.rotator-word.is-out { opacity: 0; transform: translateY(-.35em); filter: blur(6px); }
.rotator-word.is-in { opacity: 0; transform: translateY(.35em); filter: blur(6px); transition: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 34px 0 0; color: var(--text-soft); font-size: .92rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--emerald); }

/* Visual del hero: núcleo con anillos + tarjetas orbitando */
.hero-visual { position: relative; aspect-ratio: 1; max-width: 480px; width: 100%; justify-self: center; }
.hv-rings span {
  position: absolute; inset: 0; margin: auto; border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, .22); animation: ring 6s var(--ease) infinite;
}
.hv-rings span:nth-child(1) { width: 38%; height: 38%; }
.hv-rings span:nth-child(2) { width: 64%; height: 64%; border-color: rgba(99, 102, 241, .2); animation-delay: -2s; border-style: dashed; animation-name: spin; animation-duration: 40s; animation-timing-function: linear; }
.hv-rings span:nth-child(3) { width: 92%; height: 92%; border-color: rgba(148, 163, 184, .1); animation-delay: -4s; }
@keyframes ring { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.04); opacity: .6; } }
@keyframes spin { to { transform: rotate(360deg); } }
.hv-core {
  position: absolute; inset: 0; margin: auto; width: 30%; height: 30%;
  display: grid; place-items: center; border-radius: 28%;
  background: radial-gradient(circle at 30% 20%, #18233d, #0b1222);
  border: 1px solid rgba(34, 211, 238, .3);
  box-shadow: 0 0 60px -10px rgba(34, 211, 238, .45), inset 0 0 30px rgba(99, 102, 241, .15);
  animation: core-glow 4s ease-in-out infinite;
}
.hv-core svg { width: 64%; height: 64%; }
.hv-core .logo-pulse { stroke-dasharray: 40; animation: draw-loop 2.8s ease-in-out infinite; }
@keyframes draw-loop { 0% { stroke-dashoffset: 40; } 45%, 70% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -40; } }
.bubble { animation: bubble 3s ease-in-out infinite; }
.bubble.b2 { animation-delay: -1.5s; }
@keyframes bubble { 0% { transform: translateY(2px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-8px); opacity: 0; } }
@keyframes core-glow { 0%, 100% { box-shadow: 0 0 60px -10px rgba(34, 211, 238, .45), inset 0 0 30px rgba(99, 102, 241, .15); } 50% { box-shadow: 0 0 90px -5px rgba(99, 102, 241, .55), inset 0 0 30px rgba(34, 211, 238, .2); } }

.hv-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: rgba(14, 22, 40, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow);
  animation: float 7s ease-in-out infinite; white-space: nowrap;
}
.hv-card .icon { color: var(--cyan); width: 26px; height: 26px; padding: 5px; box-sizing: content-box; border-radius: 10px; background: rgba(34, 211, 238, .1); }
.hv-card b { display: block; font-size: .92rem; font-family: var(--font-display); }
.hv-card small { color: var(--muted); font-size: .76rem; }
.hv-card-1 { top: 6%; left: -2%; }
.hv-card-2 { top: 20%; right: -6%; animation-delay: -2s; }
.hv-card-2 .icon { color: var(--emerald); background: rgba(52, 211, 153, .1); }
.hv-card-3 { bottom: 18%; left: -8%; animation-delay: -4s; }
.hv-card-3 .icon { color: #a5b4fc; background: rgba(99, 102, 241, .14); }
.hv-card-4 { bottom: 4%; right: 2%; animation-delay: -5.5s; }
.hv-card-4 .icon { color: var(--amber); background: rgba(251, 191, 36, .1); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* Marquee */
.marquee { position: relative; z-index: 1; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(10, 16, 32, .6); overflow: hidden; padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; padding-right: 48px; color: var(--muted); font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; white-space: nowrap; }
.marquee-track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Tarjetas ---------- */
.card {
  position: relative; background: linear-gradient(180deg, rgba(19, 29, 51, .72), rgba(14, 22, 40, .72));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
/* Brillo que sigue al mouse (JS setea --mx / --my) */
.glow { overflow: hidden; isolation: isolate; }
.glow::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(34, 211, 238, .13), transparent 45%);
}
.glow:hover::before { opacity: 1; }
.glow:hover { border-color: rgba(34, 211, 238, .3); transform: translateY(-4px); box-shadow: var(--shadow); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; }
.chips li { font-size: .78rem; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); color: var(--text-soft); }
.chips-lg { margin-top: 30px; }
.chips-lg li { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; padding: 7px 14px; }
.chips-lg .icon { color: var(--emerald); }

.badge { display: inline-flex; align-items: center; font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; font-family: var(--font); }
.badge.is-available { color: var(--emerald); background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .25); }
.badge.is-beta { color: var(--amber); background: rgba(251, 191, 36, .12); border: 1px solid rgba(251, 191, 36, .25); }
.badge.is-soon { color: #a5b4fc; background: rgba(99, 102, 241, .14); border: 1px solid rgba(99, 102, 241, .3); }

/* Íconos de producto */
.product-icon { width: 56px; height: 56px; border-radius: 16px; flex: none; }
.product-icon-sm { width: 42px; height: 42px; border-radius: 12px; }
.product-icon-lg { width: 76px; height: 76px; border-radius: 22px; }
.product-icon-inline { display: inline-block; width: 44px; height: 44px; border-radius: 12px; vertical-align: -8px; margin-right: 6px; }
.product-monogram { display: inline-grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--accent), #0e1628); }
.accent-cyan { --accent: var(--cyan); }
.accent-violet { --accent: var(--violet); }
.accent-emerald { --accent: var(--emerald); }
.accent-amber { --accent: var(--amber); }
.accent-rose { --accent: var(--rose); }

/* Grilla de productos */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 380px)); justify-content: center; gap: 24px; }
.product-card { display: flex; flex-direction: column; padding: 32px; }
.product-card::after { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--accent), transparent); opacity: .8; }
.product-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.product-card-cat { display: inline-block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; margin-bottom: 6px; }
.product-card-title { font-size: 1.6rem; margin-bottom: 8px; }
.product-card-text { color: var(--text-soft); flex: 1; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--cyan); font-weight: 600; font-size: .95rem; margin-top: auto; }
.link-arrow .icon { transition: transform .25s var(--ease); }
.card:hover .link-arrow .icon { transform: translateX(4px); }
.product-card-next { border-style: dashed; background: rgba(14, 22, 40, .35); justify-content: center; }
.product-card-next::after { display: none; }
.product-card-next:hover { border-color: rgba(99, 102, 241, .45); transform: translateY(-4px); }
.next-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; border: 1px dashed var(--border-strong); color: var(--muted); margin-bottom: 22px; transition: transform .4s var(--ease), color .3s; }
.product-card-next:hover .next-icon { transform: rotate(90deg); color: var(--cyan); }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-grid-4 { grid-template-columns: repeat(4, 1fr); }
.feature h3 { margin-top: 18px; }
.feature p { color: var(--text-soft); font-size: .95rem; margin: 0; }
.feature-icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex: none;
  color: var(--cyan); background: linear-gradient(135deg, rgba(34, 211, 238, .16), rgba(99, 102, 241, .12));
  border: 1px solid rgba(34, 211, 238, .2);
}
.feature-icon-lg { width: 58px; height: 58px; border-radius: 16px; }
.feature-icon-lg .icon { width: 26px; height: 26px; }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); }
.step { position: relative; text-align: center; padding: 0 8px; }
.step-num {
  position: relative; display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px;
  border-radius: 50%; background: var(--bg); border: 1px solid rgba(34, 211, 238, .35);
  font-family: var(--font-display); font-weight: 700; color: var(--cyan);
  box-shadow: 0 0 0 6px var(--bg), 0 0 30px -6px rgba(34, 211, 238, .4);
}
.section-alt .step-num { background: var(--bg-alt); box-shadow: 0 0 0 6px var(--bg-alt), 0 0 30px -6px rgba(34, 211, 238, .4); }
.step p { color: var(--text-soft); font-size: .95rem; margin: 0; }

/* Spotlight */
.spotlight { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.check-list li { display: flex; align-items: center; gap: 10px; color: var(--text-soft); }
.check-list .icon { color: var(--emerald); flex: none; }

/* Mockup del panel */
.mockup {
  position: relative; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, #0f182c, #0a1122); border: 1px solid var(--border-strong);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 80px -30px rgba(34, 211, 238, .35);
  transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); transition: transform .8s var(--ease);
}
.mockup:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.mockup-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .02); }
.mockup-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.mockup-bar .dot:nth-child(1) { background: #f87171; } .mockup-bar .dot:nth-child(2) { background: #fbbf24; } .mockup-bar .dot:nth-child(3) { background: #34d399; }
.mockup-title { margin-left: 10px; font-size: .82rem; color: var(--text-soft); font-weight: 600; }
.mockup-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--emerald); }
.mockup-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); animation: ping 2s infinite; }
.mockup-body { padding: 18px; }
.ekg { width: 100%; height: 54px; margin-bottom: 14px; }
.ekg-line { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 700; stroke-dashoffset: 700; animation: ekg 3.6s linear infinite; filter: drop-shadow(0 0 6px rgba(34, 211, 238, .7)); }
@keyframes ekg { 0% { stroke-dashoffset: 700; } 70% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -700; } }
.mockup-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.mockup-kpis > div { background: rgba(255, 255, 255, .03); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.k-num { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; }
.k-ok { color: var(--emerald); } .k-warn { color: var(--amber); } .k-bad { color: var(--rose); }
.k-lbl { font-size: .72rem; color: var(--muted); }
.mockup-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mockup-rows li { display: grid; grid-template-columns: 1.1fr 1.1fr 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .025); font-size: .8rem; }
.mockup-rows .host { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-weight: 600; }
.mockup-rows .co { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width 1.6s var(--ease) .3s; }
.bar i.warn { background: linear-gradient(90deg, var(--amber), #f97316); }
.bar i.bad { background: linear-gradient(90deg, #f97316, var(--rose)); }
.is-visible .bar i.w-40 { width: 40%; } .is-visible .bar i.w-60 { width: 60%; }
.is-visible .bar i.w-85 { width: 85%; } .is-visible .bar i.w-95 { width: 95%; }
.pill { font-size: .7rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pill.ok { color: var(--emerald); background: rgba(52, 211, 153, .12); }
.pill.warn { color: var(--amber); background: rgba(251, 191, 36, .12); }
.pill.bad { color: var(--rose); background: rgba(251, 113, 133, .14); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .55; } }
.mockup-note { position: absolute; right: 14px; bottom: 10px; font-size: .66rem; color: var(--muted); opacity: .7; }

/* CTA */
.cta-band {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 56px; border-radius: 24px; background: linear-gradient(120deg, #0e7490, #4338ca 60%, #6d28d9);
  box-shadow: 0 30px 80px -30px rgba(67, 56, 202, .6);
}
.cta-glow { position: absolute; inset: 0; background: radial-gradient(600px circle at 15% 0%, rgba(255, 255, 255, .22), transparent 50%); animation: cta-glow 8s ease-in-out infinite alternate; }
@keyframes cta-glow { to { transform: translateX(40%); } }
.cta-copy { position: relative; max-width: 640px; }
.cta-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; }
.cta-copy p { color: rgba(255, 255, 255, .85); margin: 0; font-size: 1.05rem; }
.cta-band .btn { position: relative; flex: none; }

/* ---------- Páginas internas ---------- */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 90px) 0 80px; }
.page-hero-sm { padding-bottom: 50px; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .lead { margin-top: 10px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--text); }

.product-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.product-hero-name { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.product-hero-name h1 { margin: 0 0 6px; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; }
.product-hero-name .badge { margin-right: 10px; vertical-align: middle; }
.product-hero-name .product-card-cat { margin: 0; vertical-align: middle; }
.hero-tagline { font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 600; line-height: 1.3; margin-bottom: 14px; }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.split-top { align-items: start; }
.split-copy p { color: var(--text-soft); }
.security-list { display: grid; gap: 16px; }
.security-item { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; }
.security-item h3 { margin-bottom: 4px; }
.security-item p { color: var(--text-soft); margin: 0; font-size: .95rem; }
.security-item:hover { border-color: rgba(52, 211, 153, .3); transform: translateX(6px); }

.shield-visual { position: relative; width: 150px; height: 150px; margin-top: 36px; display: grid; place-items: center; }
.shield-icon { width: 64px; height: 64px; color: var(--emerald); filter: drop-shadow(0 0 16px rgba(52, 211, 153, .5)); }
.shield-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(52, 211, 153, .4); animation: shield-ring 3s ease-out infinite; }
.shield-ring:nth-child(2) { animation-delay: -1.5s; }
@keyframes shield-ring { from { transform: scale(.45); opacity: 1; } to { transform: scale(1.15); opacity: 0; } }

.specs { margin: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: rgba(14, 22, 40, .6); }
.spec-row { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 18px 26px; border-bottom: 1px solid var(--border); transition: background .2s; }
.spec-row:last-child { border-bottom: 0; }
.spec-row:hover { background: rgba(255, 255, 255, .025); }
.spec-row dt { color: var(--muted); font-weight: 500; }
.spec-row dd { margin: 0; }

.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(14, 22, 40, .6); transition: border-color .25s; }
.faq-item[open] { border-color: rgba(34, 211, 238, .3); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { color: var(--cyan); transition: transform .3s var(--ease); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 24px 20px; color: var(--text-soft); animation: faq-in .35s var(--ease); }
.faq-answer p { margin: 0; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service { padding: 36px; }
.service h2 { font-size: 1.5rem; margin: 20px 0 10px; }
.service > p { color: var(--text-soft); }

.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat b { font-family: var(--font-display); font-size: 1.15rem; margin-top: 10px; }
.stat span:last-child { color: var(--text-soft); font-size: .93rem; }
.stat-icon { color: var(--cyan); }
.stat-icon .icon { width: 28px; height: 28px; }

.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose p { color: var(--text-soft); }
.prose a { color: var(--cyan); }

.error-page { min-height: 80vh; display: flex; align-items: center; text-align: center; }
.error-page .lead { margin: 0 auto; }
.error-page .hero-actions { justify-content: center; }
.error-page h1 { font-size: clamp(5rem, 14vw, 9rem); margin: 0; line-height: 1; }
.error-ekg { width: min(400px, 100%); margin: 0 auto 10px; height: 80px; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.contact-card { padding: 36px; }
.contact-aside { display: grid; gap: 16px; }
.contact-info { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.contact-info h3 { margin-bottom: 4px; }
.contact-info p { color: var(--text-soft); margin: 0; font-size: .93rem; }
.contact-info a { color: var(--cyan); word-break: break-all; }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .88rem; font-weight: 500; color: var(--text-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; font: inherit; font-size: .96rem; color: var(--text);
  background: rgba(7, 11, 20, .6); border: 1px solid var(--border-strong); transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238494ad' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.field select option { background: var(--surface); }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, .14); }
.field [aria-invalid="true"] { border-color: var(--rose); }
.field-error { color: var(--rose); font-size: .83rem; }
.form-note { font-size: .83rem; color: var(--muted); margin: 0; }
.form-note a { color: var(--cyan); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; margin-bottom: 22px; font-size: .95rem; }
.alert-success { background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .3); color: #a7f3d0; }
.alert-success .icon { color: var(--emerald); }
.alert-error { background: rgba(251, 113, 133, .1); border: 1px solid rgba(251, 113, 133, .3); color: #fecdd3; }
.btn[disabled] { opacity: .7; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand p { color: var(--muted); margin-top: 18px; max-width: 340px; font-size: .93rem; }
.footer-title { font-family: var(--font); font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--text-soft); font-size: .93rem; transition: color .2s; }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--text); }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border-strong);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s, border-color .2s;
}
.to-top .icon { transform: rotate(180deg); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- Animaciones de entrada (JS agrega .reveal-ready al <html>) ---------- */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0s); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .feature-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hv-card-2 { right: 0; } .hv-card-3 { left: 0; }
}

@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .nav-toggle { display: inline-grid; place-items: center; }
  body.nav-open .nav-toggle .icon-open { display: none; }
  body.nav-open .nav-toggle .icon-close { display: block; }
  body.nav-open { overflow: hidden; }
  /* backdrop-filter crearía un containing block y recortaría el menú fijo */
  body.nav-open .site-header { background: #070b14; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0; flex-direction: column; align-items: stretch; gap: 20px;
    padding: 24px; background: rgba(7, 11, 20, .98); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  body.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .dropdown { position: static; width: auto; transform: none; opacity: 1; visibility: visible; display: none; box-shadow: none; margin-top: 6px; background: var(--surface); }
  .has-dropdown:hover .dropdown { transform: none; }
  .has-dropdown.is-open .dropdown { display: block; transform: none; }
  .has-dropdown:not(.is-open):hover .dropdown-toggle .icon { transform: none; }
  .nav-cta { width: 100%; padding: 14px; font-size: 1rem; }

  .hero-inner, .spotlight, .product-hero-inner, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; }
  .spotlight { gap: 48px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
  .mockup { transform: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .section-tight { padding: 40px 0 80px; }
  .hero { padding-top: calc(var(--header-h) + 50px); }
  .hero-inner { padding-bottom: 60px; }
  .page-hero { padding: calc(var(--header-h) + 50px) 0 56px; }
  .feature-grid, .feature-grid-4, .service-grid, .about-stats, .form-row, .steps { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hv-card { padding: 9px 12px; gap: 9px; }
  .hv-card small { display: none; }
  .hv-card .icon { width: 20px; height: 20px; }
  .mockup-rows li { grid-template-columns: 1fr auto; }
  .mockup-rows .co, .mockup-rows .bar { display: none; }
  .mockup-kpis { grid-template-columns: repeat(2, 1fr); }
  .spec-row { grid-template-columns: 1fr; gap: 4px; padding: 16px 20px; }
  .product-hero-name { align-items: flex-start; }
  .product-hero-name .product-icon-lg { width: 60px; height: 60px; border-radius: 18px; }
  .contact-card, .service, .product-card { padding: 24px; }
  .cta-band { padding: 32px 22px; }
  .cta-band .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .logo-main { font-size: 1.18rem; }
  .logo-mark { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
  .ekg-line { stroke-dashoffset: 0; }
  .bar i.w-40 { width: 40%; } .bar i.w-60 { width: 60%; } .bar i.w-85 { width: 85%; } .bar i.w-95 { width: 95%; }
}

/* ---------- Integraciones (ficha de producto) ---------- */
.integrations { display: grid; gap: 24px; max-width: 980px; margin: 0 auto; }
.integration { padding: 36px; }
.integration-head { display: flex; gap: 20px; align-items: flex-start; }
.integration-head h3 { font-size: 1.4rem; margin-bottom: 6px; }
.integration-head p { color: var(--text-soft); margin: 0; }
.integration-icon { color: #fb923c; background: linear-gradient(135deg, rgba(251, 146, 60, .18), rgba(99, 102, 241, .1)); border-color: rgba(251, 146, 60, .3); }
.integration-points { grid-template-columns: repeat(2, 1fr); gap: 14px 28px; margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--border); }
.integration-points li { align-items: flex-start; font-size: .95rem; }
.integration-points .icon { margin-top: 4px; }
@media (max-width: 640px) {
  .integration { padding: 24px; }
  .integration-head { flex-direction: column; gap: 14px; }
  .integration-points { grid-template-columns: 1fr; }
}
