/* ==========================================================
   TirriStudis · sitio web
   Tokens de marca: ver marca/guia-de-marca.html
   ========================================================== */
:root {
  --medianoche: #07080F;
  --noche: #0C0E1C;
  --superficie: #121430;
  --superficie-2: #191B3D;
  --linea: rgba(231, 238, 242, .09);
  --linea-2: rgba(231, 238, 242, .16);
  --niebla: #F1F2FA;
  --pizarra: #9CA1C2;
  --azul: #4F8BFF;
  --azul-marca: #3366FC;
  --celeste: #22B5FF;
  --violeta-prof: #5B1EE0;
  --violeta: #8E5BFF;
  --violeta-marca: #6A24FB;
  --grad: linear-gradient(100deg, #6A24FB 0%, #3366FC 55%, #0BA3FA 100%);
  --grad-claro: linear-gradient(100deg, #9A6BFF 0%, #5B8CFF 50%, #2DB8FF 100%);
  --papel: #F6F8F7;
  --tinta: #0A0A14;

  --f-display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --f-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --radio: 22px;
  --radio-sm: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body {
  margin: 0;
  background: var(--medianoche);
  color: var(--niebla);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--azul); color: var(--tinta); }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.muted { color: var(--pizarra); }
.grad {
  background: var(--grad-claro);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--azul); color: var(--tinta); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* grano y luz del cursor */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain { 0%,100%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} }
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle, rgba(79, 139, 255, .10), transparent 62%);
}
body.has-pointer .cursor-glow { opacity: 1; }

/* ---------- botones ---------- */
.btn {
  --bg: transparent; --fg: var(--niebla);
  position: relative; display: inline-flex; align-items: center; gap: .6em;
  padding: .85em 1.35em; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg);
  font: 600 .98rem/1 var(--f-body); letter-spacing: -.005em; white-space: nowrap; cursor: pointer;
  transition: transform .35s var(--ease), background .3s, box-shadow .35s, border-color .3s;
  will-change: transform;
}
.btn--primary { --bg: var(--grad); --fg: #fff; box-shadow: 0 0 0 0 rgba(79, 139, 255, .0), 0 10px 30px -10px rgba(79, 139, 255, .55); }
.btn--primary:hover { box-shadow: 0 0 0 6px rgba(79, 139, 255, .14), 0 16px 40px -10px rgba(79, 139, 255, .7); }
.btn--ghost { border-color: var(--linea-2); background: rgba(231, 238, 242, .03); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: rgba(231, 238, 242, .4); background: rgba(231, 238, 242, .07); }
.btn--sm { padding: .62em 1.05em; font-size: .9rem; }
.btn--lg { padding: 1em 1.55em; font-size: 1.02rem; }
.btn--xl { padding: 1.15em 1.9em; font-size: 1.1rem; }
.btn .ico { width: 1.2em; height: 1.2em; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: transform .45s var(--ease), background .35s, border-color .35s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(7, 8, 15, .72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--linea); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 74px; }
.nav__logo { color: var(--niebla); display: flex; }
.logo-svg { height: 30px; width: auto; display: block; }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a { padding: 8px 14px; border-radius: 999px; font-size: .93rem; color: var(--pizarra); transition: color .25s, background .25s; }
.nav__links a:hover, .nav__links a.is-current { color: var(--niebla); background: rgba(231, 238, 242, .06); }
.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--linea-2); background: transparent; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--niebla); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.nav__burger span:first-child { top: 16px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 20.5px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 20.5px; transform: rotate(-45deg); }

.menu-movil {
  position: fixed; inset: 0; z-index: 45; background: rgba(7, 8, 15, .96); backdrop-filter: blur(18px);
  display: flex; flex-direction: column; justify-content: center; gap: 40px; padding: 90px var(--gutter) 40px;
  opacity: 0; transition: opacity .35s;
}
.menu-movil[hidden] { display: none; }
.menu-movil.is-open { opacity: 1; }
.menu-movil nav { display: flex; flex-direction: column; gap: 4px; }
.menu-movil nav a { font: 600 clamp(2rem, 9vw, 2.8rem)/1.25 var(--f-display); letter-spacing: -.03em; padding: 4px 0; }
.menu-movil .btn { align-self: flex-start; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 90px; isolation: isolate; }
.hero__media { position: absolute; inset: -6% -4% -6% 26%; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 38%; transform-origin: 72% 50%; animation: heroZoom 18s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.12); opacity: 0; } 12% { opacity: 1; } to { transform: scale(1); opacity: 1; } }
.hero__veil { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--medianoche) 8%, rgba(7, 8, 15, .82) 38%, rgba(7, 8, 15, .15) 70%, rgba(7, 8, 15, .35) 100%),
    linear-gradient(180deg, rgba(7, 8, 15, .5) 0%, transparent 25%, transparent 70%, var(--medianoche) 100%);
}
.hero__inner { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border: 1px solid var(--linea-2); border-radius: 999px; background: rgba(7, 8, 15, .5); backdrop-filter: blur(8px); font: 500 .8rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--pizarra); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violeta); box-shadow: 0 0 0 4px rgba(142, 91, 255, .18); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(142, 91, 255, .45); } 60% { box-shadow: 0 0 0 9px rgba(142, 91, 255, 0); } }
.hero__title {
  margin: 26px 0 26px; max-width: 15ch;
  font: 700 clamp(2.7rem, 6.6vw, 6rem)/.98 var(--f-display); letter-spacing: -.04em;
  
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { font-style: normal; background: var(--grad-claro); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { max-width: 34rem; font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: #C3CFDB; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.live {
  position: absolute; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); bottom: 5vh; z-index: 2;
  width: 330px; padding: 16px; border-radius: var(--radio);
  background: linear-gradient(160deg, rgba(24, 36, 58, .72), rgba(7, 8, 15, .62));
  border: 1px solid var(--linea-2); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
  transform-style: preserve-3d;
  --d: 900ms;
}
.live__head { display: flex; align-items: center; gap: 10px; color: var(--pizarra); padding: 2px 4px 12px; border-bottom: 1px solid var(--linea); }
.live__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--azul); box-shadow: 0 0 12px var(--azul); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.live__time { margin-left: auto; color: var(--niebla); }
.live__feed { display: flex; flex-direction: column; gap: 8px; padding: 12px 0 10px; height: 218px; overflow: hidden; }
.ev { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 13px; background: rgba(231, 238, 242, .04); border: 1px solid var(--linea); animation: evIn .6s var(--ease) both; }
.ev.is-out { animation: evOut .45s var(--ease) both; }
@keyframes evIn { from { opacity: 0; transform: translateY(12px) scale(.97); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes evOut { to { opacity: 0; transform: translateY(-8px) scale(.97); height: 0; padding-block: 0; margin-top: -8px; border-width: 0; } }
.ev__ico { --c: #4F8BFF; position: relative; width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; color: var(--c);
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 26%, transparent), color-mix(in srgb, var(--c) 8%, transparent));
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  box-shadow: 0 0 16px -6px var(--c), inset 0 1px 0 rgba(255, 255, 255, .08); }
.ev__ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--c) 70%, transparent)); }
.ev__txt { min-width: 0; }
.ev__txt strong { display: block; font-size: .88rem; font-weight: 600; line-height: 1.3; }
.ev__txt span { display: block; font-size: .78rem; color: var(--pizarra); line-height: 1.35; }
.live__foot { color: var(--pizarra); text-align: right; padding: 4px 4px 0; font-size: .7rem; }

.hero__scroll { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--linea-2); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--niebla); animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- marquee ---------- */
.marquee { position: relative; border-block: 1px solid var(--linea); background: var(--noche); overflow: hidden; padding: 20px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; flex: none; }
.marquee li { display: flex; align-items: center; gap: 28px; padding-right: 28px; font: 500 clamp(1.1rem, 2vw, 1.5rem)/1 var(--f-display); letter-spacing: -.02em; color: #B5C2D0; white-space: nowrap; }
.marquee li::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--azul); opacity: .7; }
.marquee li:nth-child(3n)::after { background: var(--violeta); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- secciones ---------- */
.section { position: relative; padding: clamp(90px, 12vw, 160px) 0; }
.section__head { max-width: 46rem; margin-bottom: clamp(44px, 6vw, 72px); }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.section__head--row .lead { max-width: 26rem; }
.kicker { color: var(--azul); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.kicker::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.h2 { font: 700 clamp(2.1rem, 4.6vw, 3.9rem)/1.02 var(--f-display); letter-spacing: -.04em; }
.h3 { font: 700 clamp(1.5rem, 2.6vw, 2.2rem)/1.08 var(--f-display); letter-spacing: -.03em; }
.lead { margin-top: 20px; font-size: clamp(1.03rem, 1.3vw, 1.15rem); color: var(--pizarra); }

/* tarjetas con brillo que sigue al mouse */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(79, 139, 255, .13), transparent 45%);
}
.spot::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: 3; pointer-events: none; padding: 1px; opacity: 0; transition: opacity .4s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(79, 139, 255, .7), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.spot:hover::before, .spot:hover::after { opacity: 1; }

/* problema */
.problema__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pcard { padding: 34px 30px 36px; border-radius: var(--radio); background: linear-gradient(180deg, var(--superficie), var(--noche)); border: 1px solid var(--linea); }
.pcard__n { position: absolute; top: 30px; right: 28px; color: rgba(231, 238, 242, .25); }
.pcard__ico { width: 46px; height: 46px; padding: 11px; border-radius: 13px; background: rgba(142, 91, 255, .1); color: var(--violeta); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 44px; }
.pcard h3 { font: 700 1.45rem/1.15 var(--f-display); letter-spacing: -.025em; margin-bottom: 12px; }
.pcard p { color: var(--pizarra); font-size: 1rem; }

/* sistema */
.sistema { background: radial-gradient(1200px 600px at 15% 0%, rgba(79, 139, 255, .07), transparent 60%), var(--noche); border-block: 1px solid var(--linea); }
.sistema__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.sistema__visual { position: sticky; top: 110px; }
.sistema__frame { position: relative; aspect-ratio: 4 / 3.4; border-radius: 28px; overflow: hidden; border: 1px solid var(--linea-2); background: var(--medianoche); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9); }
.sistema__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .9s var(--ease), transform 1.4s var(--ease); }
.sistema__frame img.is-active { opacity: 1; transform: scale(1); }
.sistema__progress { position: absolute; left: 22px; right: 22px; bottom: 64px; height: 2px; background: rgba(231, 238, 242, .14); border-radius: 2px; overflow: hidden; }
.sistema__progress span { display: block; height: 100%; width: 0; background: var(--grad-claro); }
.sistema__dots { position: absolute; left: 22px; right: 22px; bottom: 22px; display: flex; justify-content: space-between; }
.sistema__dots li { font: 500 .75rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: rgba(231, 238, 242, .45); padding: 8px 12px; border-radius: 999px; background: rgba(7, 8, 15, .55); backdrop-filter: blur(8px); transition: color .4s, background .4s; }
.sistema__dots li.is-active { color: #fff; background: var(--grad); }
.sistema__steps { display: flex; flex-direction: column; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; opacity: .28; transition: opacity .6s var(--ease); }
.step.is-active { opacity: 1; }
.step__n { color: var(--pizarra); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.step__n span { color: var(--azul); font-size: .95rem; }
.step .h3 { margin-bottom: 16px; max-width: 18ch; }
.step > p { color: var(--pizarra); max-width: 30rem; }
.step__img { display: none; }
.checks { margin-top: 26px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; color: #CED8E2; }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 7px; background: rgba(79, 139, 255, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F8BFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* servicios / bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc { border-radius: var(--radio); overflow: hidden; background: var(--superficie); border: 1px solid var(--linea); display: flex; flex-direction: column; min-height: 440px; }
.svc--wide { grid-column: span 2; flex-direction: row; min-height: 380px; }
.svc--full { grid-column: 1 / -1; min-height: 420px; }
.svc--full .svc__img { flex-basis: 62%; }
.svc--full .svc__body { flex-basis: 38%; }
.svc__img { position: relative; overflow: hidden; flex: 1 1 55%; min-height: 220px; }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.92); }
.svc__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(18, 20, 48, .9)); }
.svc--wide .svc__img::after { background: linear-gradient(90deg, transparent 55%, rgba(18, 20, 48, .95)); }
.svc:hover .svc__img img { transform: scale(1.06); filter: saturate(1.1); }
.svc__body { padding: 26px 28px 30px; flex: 0 0 auto; display: flex; flex-direction: column; gap: 10px; }
.svc--wide .svc__body { flex: 0 0 45%; justify-content: center; padding: 40px; }
.svc__tag { color: var(--azul); }
.svc h3 { font: 700 1.55rem/1.1 var(--f-display); letter-spacing: -.03em; }
.svc--wide h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.svc p:not(.svc__tag) { color: var(--pizarra); font-size: .98rem; }
.link { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--azul); font-weight: 600; }
.link .ico { transition: transform .3s var(--ease); }
.link:hover .ico { transform: translateX(4px); }

/* software */
.software { overflow: hidden; }
.software::before { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: 50%; transform: translateY(-50%); background: radial-gradient(circle, rgba(142, 91, 255, .08), transparent 60%); pointer-events: none; }
.software__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chips li { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--linea-2); font-size: .9rem; color: #CED8E2; background: rgba(231, 238, 242, .03); transition: border-color .3s, color .3s; }
.chips li:hover { border-color: var(--azul); color: var(--niebla); }
.software__sectores { margin-top: 26px; color: var(--pizarra); font-size: .95rem; border-left: 2px solid var(--violeta); padding-left: 14px; }

.dash { border-radius: 24px; background: linear-gradient(170deg, var(--superficie-2), var(--noche)); border: 1px solid var(--linea-2); box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(79, 139, 255, .05), inset 0 1px 0 rgba(255, 255, 255, .05); overflow: hidden; transform-style: preserve-3d; }
.dash__top { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--linea); color: var(--pizarra); }
.dash__dots { display: flex; gap: 6px; }
.dash__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(231, 238, 242, .15); }
.dash__dots i:first-child { background: var(--violeta); }
.dash__body { padding: 20px; display: grid; gap: 16px; }
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { padding: 14px; border-radius: 14px; background: rgba(231, 238, 242, .035); border: 1px solid var(--linea); }
.kpi span { color: var(--pizarra); font-size: .66rem; }
.kpi strong { display: block; margin: 6px 0 2px; font: 700 clamp(1.5rem, 2.6vw, 2.1rem)/1 var(--f-display); letter-spacing: -.03em; color: var(--azul); }
.kpi--amber strong { color: var(--violeta); }
.kpi em { font-style: normal; font-size: .76rem; color: var(--pizarra); }
.dash__chart { position: relative; height: 170px; padding: 14px; border-radius: 14px; background: rgba(231, 238, 242, .025); border: 1px solid var(--linea); }
.bars { position: absolute; inset: 14px; display: flex; align-items: flex-end; gap: 7%; padding-inline: 2%; }
.bars span { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, rgba(79, 139, 255, .55), rgba(79, 139, 255, .06)); transform-origin: bottom; transform: scaleY(0); transition: transform 1s var(--ease); }
.dash.is-in .bars span { transform: scaleY(1); }
.dash.is-in .bars span:nth-child(2) { transition-delay: .05s } .dash.is-in .bars span:nth-child(3) { transition-delay: .1s }
.dash.is-in .bars span:nth-child(4) { transition-delay: .15s } .dash.is-in .bars span:nth-child(5) { transition-delay: .2s }
.dash.is-in .bars span:nth-child(6) { transition-delay: .25s } .dash.is-in .bars span:nth-child(7) { transition-delay: .3s }
.dash.is-in .bars span:nth-child(8) { transition-delay: .35s } .dash.is-in .bars span:nth-child(9) { transition-delay: .4s }
.dash.is-in .bars span:nth-child(10) { transition-delay: .45s }
.dash__line { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); overflow: visible; }
.dash__line path { fill: none; stroke: var(--violeta); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s .4s var(--ease); filter: drop-shadow(0 0 6px rgba(142, 91, 255, .6)); }
.dash.is-in .dash__line path { stroke-dashoffset: 0; }
.dash__rows { display: grid; gap: 8px; }
.dash__rows li { display: flex; align-items: center; gap: 10px; font-size: .84rem; padding: 10px 12px; border-radius: 10px; background: rgba(231, 238, 242, .03); color: #CED8E2; }
.dash__rows time { margin-left: auto; color: var(--pizarra); font-size: .74rem; white-space: nowrap; }
.tag { font: 500 .66rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; padding: 5px 8px; border-radius: 6px; background: rgba(231, 238, 242, .08); color: var(--niebla); flex: none; }
.tag--azul { background: rgba(79, 139, 255, .14); color: var(--azul); }
.tag--violeta { background: rgba(142, 91, 255, .14); color: var(--violeta); }

/* beneficio */
.beneficio { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: 100px 0; }
.beneficio__media { position: absolute; inset: -10% 40% -10% 0; z-index: -2; }
.beneficio__media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.beneficio::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, var(--medianoche) 40%, rgba(7, 8, 15, .55) 52%, rgba(7, 8, 15, 0) 72%), linear-gradient(180deg, var(--medianoche), transparent 16%, transparent 84%, var(--medianoche)); }
.beneficio__inner { display: flex; justify-content: flex-end; }
.beneficio__card { max-width: 34rem; }
.beneficio__card .h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
.beneficio__list { margin-top: 32px; display: grid; gap: 4px; }
.beneficio__list li { padding: 16px 0; border-top: 1px solid var(--linea-2); color: var(--pizarra); }
.beneficio__list strong { color: var(--niebla); font-weight: 600; }

/* proceso (sección clara) */
.proceso { background: var(--papel); color: var(--tinta); }
.proceso .kicker { color: var(--violeta-prof); }
.proceso .lead { color: #4A5A6C; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: tl; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: var(--grad); transform: scaleX(var(--tl, 0)); transform-origin: left; }
.tl { position: relative; padding-right: 10px; }
.tl__n { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--papel); border: 2px solid var(--violeta-prof); color: var(--violeta-prof); font: 600 1rem/1 var(--f-mono); margin-bottom: 26px; transition: background .4s, color .4s; }
.tl:last-child .tl__n { border-color: var(--azul-marca); color: var(--azul-marca); }
.tl h3 { font: 700 1.4rem/1.15 var(--f-display); letter-spacing: -.025em; margin-bottom: 10px; }
.tl p { color: #4A5A6C; font-size: .98rem; }

/* faq */
.faq__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.faq .section__head { position: sticky; top: 110px; }
.faq__list { border-top: 1px solid var(--linea-2); }
.qa { border-bottom: 1px solid var(--linea-2); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font: 600 clamp(1.08rem, 1.6vw, 1.25rem)/1.3 var(--f-display); letter-spacing: -.015em; transition: color .25s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--linea-2); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F1F2FA' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 15px no-repeat; transition: transform .4s var(--ease), background-color .3s, border-color .3s; }
.qa[open] summary::after { transform: rotate(45deg); background-color: var(--azul); border-color: var(--azul); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E"); }
.qa summary:hover { color: var(--azul); }
.qa__a { overflow: hidden; }
.qa__a p { padding: 0 50px 26px 0; color: var(--pizarra); }

/* cta */
.cta { position: relative; overflow: hidden; isolation: isolate; padding: clamp(110px, 14vw, 190px) 0; text-align: center; border-top: 1px solid var(--linea); }
.cta__media { position: absolute; inset: 0; z-index: -2; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; opacity: .55; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(7, 8, 15, .55), var(--medianoche) 75%); }
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta .kicker { justify-content: center; }
.cta__title { font: 800 clamp(2.6rem, 7vw, 6.2rem)/.98 var(--f-display); letter-spacing: -.045em; max-width: 14ch; }
.cta .lead { max-width: 36rem; margin: 24px auto 40px; }
.cta__tel { margin-top: 20px; color: var(--pizarra); }

/* footer */
.footer { border-top: 1px solid var(--linea); padding: 64px 0 28px; background: var(--medianoche); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr .8fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer__nav .mono { color: var(--pizarra); margin-bottom: 4px; }
.footer__logo { color: var(--niebla); display: inline-flex; }
.footer__logo .logo-svg { height: 36px; }
.footer__tag { margin-top: 16px; color: var(--pizarra); }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a, .footer__contact a { color: #C3CFDB; transition: color .25s; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--azul); }
.footer__contact p { color: var(--pizarra); margin-bottom: 10px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--linea); color: var(--pizarra); font-size: .88rem; }

.footer__bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(156, 161, 194, .4); transition: color .25s; }
.footer__bottom a:hover { color: var(--azul); }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: none; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 14px 34px -8px rgba(79, 139, 255, .6); transform: scale(0); transition: transform .45s var(--ease); }
.wa-float.is-visible { transform: scale(1); }
.wa-float svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- estados de animación (los activa main.js) ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-hero { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.js .hero__title .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js .is-loaded .hero__title .line > span { transform: none; }
.js .is-loaded .hero__title .line:nth-child(2) > span { transition-delay: .1s; }
.js .is-loaded .hero__title .line:nth-child(3) > span { transition-delay: .2s; }
.js .is-loaded .reveal-hero { opacity: 1; transform: none; }
.js .is-loaded .eyebrow { transition-delay: 0s; }
.js .is-loaded .hero__lead { transition-delay: .45s; }
.js .is-loaded .hero__ctas { transition-delay: .6s; }
.js .is-loaded .live { transition-delay: .9s; }
.js .tilt.is-in, .js .is-loaded .tilt { transition: opacity .9s var(--ease) var(--d, 0ms), transform .5s var(--ease); }

/* ---------- responsive ---------- */
@media (max-height: 780px) and (min-width: 1081px) {
  .live { width: 300px; bottom: 3vh; }
  .live__feed { height: 150px; }
}
@media (max-width: 1080px) {
  .live { display: none; }
  .hero__media { inset: -6% -4%; }
  .bento { grid-template-columns: 1fr 1fr; }
  .svc--wide { grid-column: span 2; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .timeline::before { display: none; }
}
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .section__head--row { flex-direction: column; align-items: flex-start; gap: 0; }
  .problema__grid { grid-template-columns: 1fr; }
  .pcard__ico { margin-bottom: 26px; }
  .sistema__grid { grid-template-columns: 1fr; }
  .sistema__visual { display: none; }
  .step { min-height: auto; opacity: 1; padding: 0 0 64px; }
  .step__img { display: block; order: -1; margin-bottom: 26px; border-radius: 20px; border: 1px solid var(--linea-2); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
  .software__grid { grid-template-columns: 1fr; }
  .faq__grid { grid-template-columns: 1fr; }
  .faq .section__head { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
  .wa-float { display: grid; }
  .beneficio { min-height: auto; flex-direction: column; padding: 0 0 80px; }
  .beneficio__media { position: relative; inset: auto; width: 100%; aspect-ratio: 4 / 3.4; }
  .beneficio::after { background: linear-gradient(180deg, var(--medianoche) 0%, transparent 10%); }
  .beneficio__media { -webkit-mask: linear-gradient(#000 62%, transparent 98%); mask: linear-gradient(#000 62%, transparent 98%); }
  .beneficio__inner { margin-top: -24px; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .hero { display: block; min-height: 0; padding: 74px 0 80px; }
  .hero__media { position: relative; inset: auto; height: 44svh; margin-bottom: -12svh; }
  .hero__media img { object-position: 72% 50%; }
  .hero__veil { background: linear-gradient(180deg, rgba(7, 8, 15, .2) 0, transparent 18svh, var(--medianoche) 46svh); }
  .hero__scroll { display: none; }
  .hero__ctas .btn { flex: 1 1 100%; justify-content: center; }
  .hero__title { font-size: clamp(2.35rem, 10.5vw, 3.2rem); line-height: 1.02; max-width: none; }
  .hero__title .line, .hero__title .line > span { display: inline; overflow: visible; padding: 0; }
  .hero__title .line:last-child { display: block; }
  .js .hero__title .line > span { transform: none; }
  .js .hero__title { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
  .js .is-loaded .hero__title { opacity: 1; transform: none; }
  .bento { grid-template-columns: 1fr; }
  .svc--wide { grid-column: auto; flex-direction: column; }
  .svc--wide .svc__body { padding: 26px 28px 30px; }
  .svc--wide .svc__img::after { background: linear-gradient(180deg, transparent 50%, rgba(18, 20, 48, .9)); }
  .svc { min-height: 0; }
  .svc__img { flex: none; aspect-ratio: 16 / 10; }
  .dash__kpis { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .kpi { padding: 10px; }
  .kpi em { display: none; }
  .dash__rows li { font-size: .78rem; }
  .dash__rows time { display: none; }
  .timeline { grid-template-columns: 1fr; row-gap: 34px; }
  .tl { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; }
  .tl__n { grid-row: span 2; margin: 0; }
  .qa__a p { padding-right: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .logo-svg { height: 26px; }
  .cta .btn--xl { width: 100%; justify-content: center; }
  .eyebrow { font-size: .62rem; letter-spacing: .04em; padding: 6px 11px 6px 9px; gap: 8px; }
  .footer { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-hero { opacity: 1; transform: none; }
  .js .hero__title .line > span { transform: none; }
  .grain, .cursor-glow { display: none; }
}

/* ==========================================================
   Páginas de servicio (landing pages)
   ========================================================== */
.lp-hero { position: relative; overflow: hidden; isolation: isolate; padding: 150px 0 90px; }
.lp-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 500px at 85% 30%, rgba(106, 36, 251, .28), transparent 65%), radial-gradient(600px 400px at 10% 90%, rgba(11, 163, 250, .14), transparent 65%); }
.lp-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.crumbs { display: flex; gap: 8px; align-items: center; margin-bottom: 22px; font: 500 .74rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--pizarra); }
.crumbs a { color: var(--pizarra); transition: color .25s; }
.crumbs a:hover { color: var(--azul); }
.crumbs span[aria-hidden] { opacity: .5; }
.lp-hero h1 { margin: 22px 0 22px; font: 700 clamp(2.4rem, 5vw, 4.4rem)/1.02 var(--f-display); letter-spacing: -.04em; }
.lp-hero h1 em { font-style: normal; background: var(--grad-claro); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero .hero__ctas { margin-top: 32px; }
.lp-hero__note { margin-top: 18px; font-size: .9rem; color: var(--pizarra); }
.lp-visual { position: relative; }
.lp-visual__img { border-radius: 26px; overflow: hidden; border: 1px solid var(--linea-2); aspect-ratio: 4 / 3.6; box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9); }
.lp-visual__img img { width: 100%; height: 100%; object-fit: cover; }
.lp-visual__mock { position: absolute; left: -36px; right: 36px; bottom: -40px; }

/* chat del bot */
.chat { border-radius: 22px; padding: 16px; background: linear-gradient(170deg, rgba(25, 27, 61, .92), rgba(7, 8, 15, .94)); border: 1px solid var(--linea-2); backdrop-filter: blur(16px); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 50px -24px rgba(106, 36, 251, .8); }
.chat__head { display: flex; align-items: center; gap: 10px; padding: 0 4px 12px; border-bottom: 1px solid var(--linea); margin-bottom: 12px; }
.chat__avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font: 700 .8rem var(--f-display); }
.chat__head strong { display: block; font-size: .9rem; }
.chat__head span { font-size: .74rem; color: #6FE0A6; }
.chat__msgs { display: grid; gap: 8px; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: .86rem; line-height: 1.4; }
.msg--in { background: rgba(255, 255, 255, .07); border-bottom-left-radius: 4px; }
.msg--out { justify-self: end; background: linear-gradient(135deg, #5B2BEA, #2F5CF0); color: #fff; border-bottom-right-radius: 4px; }
.msg time { display: block; margin-top: 3px; font-size: .66rem; opacity: .6; text-align: right; }
.chat__tag { margin-top: 12px; display: flex; gap: 8px; align-items: center; font: 500 .7rem/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--azul); }
.chat__tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #6FE0A6; box-shadow: 0 0 10px #6FE0A6; }

/* flujo de automatización */
.flow { border-radius: 22px; padding: 18px; background: linear-gradient(170deg, rgba(25, 27, 61, .92), rgba(7, 8, 15, .94)); border: 1px solid var(--linea-2); backdrop-filter: blur(16px); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 50px -24px rgba(51, 102, 252, .8); }
.flow ol { position: relative; display: grid; gap: 10px; }
.flow ol::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--grad); opacity: .6; }
.flow li { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px 9px 0; font-size: .88rem; }
.flow li b { flex: none; position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font: 600 .72rem var(--f-mono); color: #fff; background: #191B3D; border: 1px solid var(--linea-2); }
.flow li:first-child b { background: var(--grad); border-color: transparent; }
.flow li small { margin-left: auto; color: var(--pizarra); font: 500 .66rem var(--f-mono); text-transform: uppercase; letter-spacing: .04em; }

/* embudo de publicidad */
.funnel { border-radius: 22px; padding: 18px; background: linear-gradient(170deg, rgba(25, 27, 61, .92), rgba(7, 8, 15, .94)); border: 1px solid var(--linea-2); backdrop-filter: blur(16px); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 50px -24px rgba(106, 36, 251, .8); display: grid; gap: 8px; }
.funnel div { margin: 0 auto; width: var(--w); padding: 11px 14px; border-radius: 12px; display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; background: linear-gradient(90deg, rgba(106, 36, 251, calc(var(--o) * 1)), rgba(51, 102, 252, calc(var(--o) * .9))); border: 1px solid rgba(255, 255, 255, .08); }
.funnel span { color: rgba(255, 255, 255, .7); font: 500 .66rem/1.6 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; }

/* qué incluye */
.pcard h3 { padding-right: 34px; }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { padding: 28px 26px 30px; border-radius: var(--radio); background: linear-gradient(180deg, var(--superficie), var(--noche)); border: 1px solid var(--linea); }
.feat__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; margin-bottom: 22px; background: rgba(79, 139, 255, .12); color: var(--azul); }
.feat__ico svg { width: 22px; height: 22px; }
.feat h3 { font: 700 1.2rem/1.2 var(--f-display); letter-spacing: -.02em; margin-bottom: 8px; }
.feat p { color: var(--pizarra); font-size: .96rem; }

/* para quién */
.rubros { display: flex; flex-wrap: wrap; gap: 10px; }
.rubros li { padding: 11px 18px; border-radius: 999px; border: 1px solid var(--linea-2); background: rgba(255, 255, 255, .03); color: #D6D9F0; }

/* otros servicios */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related a { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radio); border: 1px solid var(--linea); background: var(--superficie); transition: border-color .3s, transform .4s var(--ease); }
.related a:hover { border-color: rgba(140, 120, 255, .6); transform: translateY(-4px); }
.related strong { font: 700 1.25rem/1.2 var(--f-display); letter-spacing: -.02em; }
.related span { color: var(--pizarra); font-size: .94rem; }
.related em { margin-top: auto; font-style: normal; color: var(--azul); font-weight: 600; font-size: .92rem; }

@media (max-width: 1000px) {
  .lp-hero__grid { grid-template-columns: 1fr; }
  .lp-visual { max-width: 560px; margin-bottom: 40px; }
  .lp-visual__mock { left: 16px; right: 16px; bottom: -36px; }
  .feats { grid-template-columns: 1fr 1fr; }
  .related { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lp-hero { padding: 110px 0 60px; }
  .feats { grid-template-columns: 1fr; }
  .lp-visual__mock { position: relative; left: auto; right: auto; bottom: auto; margin: -70px 12px 0; }
  .msg { font-size: .82rem; }
}
