:root {
  /* Marca */
  --brand: #8c18c0;          /* violeta del logo */
  --brand-hover: #7a12a9;
  --brand-soft: #c58af0;     /* violeta claro para texto sobre fondo oscuro */
  --brand-rgb: 140, 24, 192;

  /* Tema oscuro (por defecto) */
  --bg: #0a0a0b;
  --surface: #151518;
  --border: #26262b;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: var(--brand-soft);

  --radius: 16px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

/* Secciones pares: fondo negro con patrón de puntos tenue */
.section.section--dots {
  background-color: #0a0a0b;
  background-image: radial-gradient(circle, #232328 1px, transparent 1.4px);
  background-size: 10px 10px;
  background-position: center top;
  border-block: 1px solid #1a1a1e;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: #0a0a0b; color: var(--text);
  font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }

/* Header: transparente sobre el hero, con color al hacer scroll */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background-color .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.header.is-scrolled, .header.is-open {
  background: rgba(10,10,11,.8); border-bottom-color: #26262b;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px;
  background: var(--brand); color: #fff; font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 3px; }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand img { height: 28px; width: auto; }
.nav { display: flex; gap: 32px; margin-left: auto; font-size: .92rem; color: var(--muted); }
.nav a:hover { color: var(--text); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.lang button {
  font: 500 .75rem var(--mono); color: var(--muted); background: none; border: 0;
  padding: 5px 11px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; margin-right: -6px; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); transition: .2s; }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden; background: #070709;
  /* Ocupa toda la pantalla: el navbar fijo queda superpuesto (transparente) */
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; padding: 116px 0 64px;
}
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg img, .hero__inner { will-change: transform; }
.hero__bg img { object-fit: cover; object-position: 70% center; filter: brightness(1.35) saturate(1.1); }
.hero__overlay {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 15% 40%, rgba(var(--brand-rgb), .2), transparent 70%),
    linear-gradient(90deg, rgba(7,7,9,.88) 0%, rgba(7,7,9,.55) 45%, rgba(7,7,9,0) 100%),
    linear-gradient(0deg, rgba(7,7,9,.75) 0%, transparent 30%);
}
.hero__inner { position: relative; }
.eyebrow { color: var(--accent); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 20px; font-weight: 500; }
h1 { font-size: clamp(2.2rem, 7vw, 5.2rem); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 24px; max-width: 14ch; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15; letter-spacing: -.025em; margin: 0 0 16px; max-width: 22ch; font-weight: 600; }
h3 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 600; }
.hero__lead, .section__lead { color: var(--muted); font-size: 1.15rem; max-width: 52ch; margin: 0 0 36px; }
.hero .hero__lead { color: #c9c9d1; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; font: 600 .95rem var(--sans);
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: .2s;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(var(--brand-rgb), .4); }
.btn--outline { background: transparent; border-color: var(--brand-soft); color: var(--brand-soft); }
.btn--outline:hover { background: rgba(var(--brand-rgb), .15); box-shadow: 0 0 24px rgba(var(--brand-rgb), .35); }
.btn--ghost { border-color: rgba(255,255,255,.25); color: var(--text); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: rgba(255,255,255,.6); }

/* Sections */
.section { padding: clamp(80px, 11vw, 130px) 0; background: var(--bg); color: var(--text); }
.section--dark { background: #0a0a0b; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; transition: .25s;
}
.card:hover { border-color: rgba(var(--brand-rgb), .5); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(var(--brand-rgb), .1); }
.card p { color: var(--muted); margin: 0; }
.card__icon {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 24px;
  background: rgba(var(--brand-rgb), .1); color: var(--brand);
}
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.clients { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.clients li {
  display: grid; place-items: center; height: 120px; padding: 0 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; transition: .25s;
}
.clients img { width: 100%; max-width: 220px; height: auto; opacity: .6; transition: opacity .25s; }
.clients li:hover { border-color: rgba(var(--brand-rgb), .5); }
.clients li:hover img { opacity: 1; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.contact > * { min-width: 0; }
.contact__mail { color: var(--accent); border-bottom: 1px solid currentColor; padding-bottom: 2px; overflow-wrap: anywhere; }
.form { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.form label { display: grid; gap: 8px; font-size: .85rem; color: var(--muted); }
.form input, .form textarea {
  width: 100%; min-width: 0; font: 400 1rem var(--sans); color: var(--text); background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px; resize: vertical; transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .15); }
.form .btn { justify-self: end; }
.form__note { margin: 0; font-size: .9rem; color: var(--accent); min-height: 1.4em; }

/* Redes sociales */
.social { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; }
.social--contact { margin-top: 32px; }
.social a {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--muted);
  border: 1px solid var(--border); background: var(--surface); transition: color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.social a:hover { color: #fff; border-color: rgba(var(--brand-rgb), .7); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(var(--brand-rgb), .3); }
.social svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.social svg .fill { fill: currentColor; stroke: none; }
.social--footer a { width: 34px; height: 34px; border-radius: 10px; }
.social--footer svg { width: 16px; height: 16px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 36px 0; background: #0a0a0b; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer img { height: 22px; width: auto; }
.footer p, .footer a { margin: 0; font-size: .8rem; color: var(--muted); }
.footer a:hover { color: var(--text); }

@media (max-width: 860px) {
  .cards, .clients { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .burger { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    background: #0a0a0b; border-bottom: 1px solid var(--border); display: none;
    max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px); overflow-y: auto; font-size: 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: 16px 20px; border-top: 1px solid var(--border); }
  .nav a:active { background: var(--surface); color: var(--text); }
  .header__actions { margin-left: auto; }
  .hero__overlay { background: linear-gradient(0deg, rgba(7,7,9,.95) 0%, rgba(7,7,9,.75) 60%, rgba(7,7,9,.55) 100%); }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .clients { gap: 12px; }
  .clients li { height: 88px; }
  .hero { padding: 100px 0 48px; }
  .hero__lead, .section__lead { font-size: 1.05rem; margin-bottom: 28px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .form { padding: 22px; }
  .form .btn { justify-self: stretch; }
  .svc__body, .bento__body { padding: 20px 20px 24px; }
  .footer__inner { flex-direction: column; text-align: center; gap: 18px; }
}
@media (max-width: 380px) {
  .container { width: calc(100% - 32px); }
  .header__inner { gap: 12px; }
  .brand img { height: 24px; }
  .lang button { padding: 5px 9px; }
  .rsp__device { transform: scale(.85); }
  .brandkit { transform: scale(.86); }
}
/* Pantallas bajas (celulares en horizontal) */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 100px 0 56px; }
  .nav { max-height: calc(100vh - 68px); }
}
@media (hover: none) {
  .svc:hover { box-shadow: none; }
}
/* ===================== Qué hacemos ===================== */
#que-hacemos { overflow: hidden; }
.grad {
  background: linear-gradient(90deg, #c58af0, #8c18c0, #e2b8ff, #c58af0); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-move 6s linear infinite;
}
@keyframes grad-move { to { background-position: 300% 0; } }

.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.services .bento__card { grid-column: auto; }
.svc { will-change: transform; }
.svc.settled { transition: transform .25s ease-out, border-color .3s; }
.svc:hover { box-shadow: 0 30px 60px -20px rgba(var(--brand-rgb), .35); }
.svc__visual { height: 240px; }
.svc__body { padding: 24px 28px 28px; }
.svc__body p { color: var(--muted); margin: 0 0 18px; font-size: .95rem; }
.svc__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.svc__head .card__icon { margin: 0; transition: transform .4s cubic-bezier(.3,1.6,.5,1), background .3s; }
.svc:hover .card__icon { transform: rotate(-8deg) scale(1.12); background: rgba(var(--brand-rgb), .25); }
.svc__num { font-size: 2.2rem; font-weight: 500; color: transparent; -webkit-text-stroke: 1px #3a3a44; line-height: 1; transition: -webkit-text-stroke-color .3s; }
.svc:hover .svc__num { -webkit-text-stroke-color: var(--brand-soft); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .72rem; color: var(--muted); border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px; transition: .3s; }
.svc:hover .chips li { color: var(--text); border-color: rgba(var(--brand-rgb), .5); }

/* Apps: celular con feed que scrollea + notificación */
.phone {
  position: relative; width: 118px; height: 210px; margin-top: 50px; border-radius: 22px; padding: 7px;
  background: #0d0d10; border: 2px solid #3a3a44; box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 0 6px rgba(var(--brand-rgb), .06);
  transform: rotate(-6deg); animation: phone-float 6s ease-in-out infinite;
}
@keyframes phone-float { 50% { transform: rotate(-3deg) translateY(-8px); } }
.phone__notch { position: absolute; top: 9px; left: 50%; width: 34px; height: 6px; margin-left: -17px; background: #24242b; border-radius: 6px; z-index: 3; }
.phone__screen { height: 100%; border-radius: 16px; overflow: hidden; background: #131317; padding: 20px 7px 0; }
.phone__feed { animation: feed 9s cubic-bezier(.6,0,.4,1) infinite; }
@keyframes feed { 0%, 15% { transform: translateY(0); } 45%, 60% { transform: translateY(-120px); } 90%, 100% { transform: translateY(-238px); } }
.phone__hero { height: 52px; border-radius: 8px; margin-bottom: 7px; background: linear-gradient(135deg, var(--brand), #c58af0); opacity: .9; }
.phone__hero:nth-child(5n) { background: linear-gradient(135deg, #2a2a33, #3a3a44); }
.phone__row { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.phone__row i { width: 16px; height: 16px; border-radius: 50%; background: #2c2c35; flex: none; }
.phone__row span { height: 7px; flex: 1; border-radius: 4px; background: #24242b; }
.phone__tab { position: absolute; left: 7px; right: 7px; bottom: 7px; height: 22px; border-radius: 0 0 16px 16px; background: #1a1a20; display: flex; justify-content: space-around; align-items: center; }
.phone__tab i { width: 7px; height: 7px; border-radius: 2px; background: #3a3a44; }
.phone__tab i:first-child { background: var(--brand-soft); }
.phone__toast {
  position: absolute; top: 22px; left: -26px; right: -26px; z-index: 4; display: flex; align-items: center; gap: 7px;
  padding: 8px 10px; border-radius: 10px; background: rgba(30,30,36,.95); border: 1px solid rgba(var(--brand-rgb), .5);
  box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: toast 9s ease-in-out infinite; opacity: 0;
}
.phone__toast i { width: 14px; height: 14px; border-radius: 4px; background: var(--brand); flex: none; }
.phone__toast span { height: 6px; flex: 1; border-radius: 3px; background: #4a4a55; }
@keyframes toast {
  0%, 22% { opacity: 0; transform: translateY(-16px) scale(.9); }
  28%, 42% { opacity: 1; transform: none; }
  48%, 100% { opacity: 0; transform: translateY(-16px) scale(.9); }
}
.float {
  position: absolute; font: 600 .72rem var(--mono); padding: 5px 10px; border-radius: 999px;
  background: rgba(20,20,24,.9); border: 1px solid #33333c; color: var(--text); animation: bob 5s ease-in-out infinite;
}
.float--1 { top: 34px; right: 14%; color: var(--brand-soft); border-color: rgba(var(--brand-rgb), .5); }
.float--2 { bottom: 40px; left: 12%; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* Sistemas: dashboard vivo */
.dash {
  width: 82%; max-width: 270px; height: 170px; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px;
  background: #0d0d10; border: 1px solid #33333c; box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.dash__top { display: flex; gap: 8px; align-items: center; }
.dash__kpi { flex: 1; padding: 6px 8px; border-radius: 7px; background: #17171c; border: 1px solid #26262d; display: grid; gap: 5px; }
.dash__kpi b { height: 8px; width: 60%; border-radius: 3px; background: var(--brand-soft); animation: kpi 3s ease-in-out infinite; }
.dash__kpi:nth-child(2) b { background: #8fd0ff; animation-delay: -1.5s; }
.dash__kpi small { height: 5px; width: 85%; border-radius: 3px; background: #2a2a33; }
@keyframes kpi { 50% { width: 90%; } }
.dash__sync {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid #2a2a33; border-top-color: var(--brand-soft); flex: none;
  animation: spin 1.2s linear infinite;
}
.dash__body { position: relative; flex: 1; border-radius: 7px; background: #131317; border: 1px solid #22222a; padding: 8px; overflow: hidden; }
.dash__bars { display: flex; align-items: flex-end; gap: 7px; height: 100%; }
.dash__bars i {
  flex: 1; height: 100%; border-radius: 4px 4px 1px 1px; transform-origin: bottom;
  background: linear-gradient(180deg, rgba(197,138,240,.9), rgba(140,24,192,.35));
  transform: scaleY(var(--h)); animation: bar 3.2s ease-in-out infinite; animation-delay: var(--d);
}
@keyframes bar { 50% { transform: scaleY(calc(var(--h) * .45)); } }
.dash__line { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); overflow: visible; }
.dash__line path {
  fill: none; stroke: #8fd0ff; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round;
  stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 5s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(143,208,255,.8));
}

/* Sitios web: navegador que se arma + cursor que hace clic */
.browser {
  position: relative; width: 84%; max-width: 280px; height: 180px; border-radius: 12px; overflow: hidden;
  background: #0d0d10; border: 1px solid #33333c; box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.browser__bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: #17171c; border-bottom: 1px solid #26262d; }
.browser__bar > i { width: 7px; height: 7px; border-radius: 50%; background: #3a3a44; }
.browser__bar > i:first-child { background: var(--brand); }
.browser__url { margin-left: 8px; flex: 1; font-size: .62rem; color: var(--muted); background: #0d0d10; border-radius: 5px; padding: 2px 8px; }
.browser__page { padding: 10px 12px; display: grid; gap: 7px; }
.browser__nav { display: flex; gap: 6px; align-items: center; margin-bottom: 2px; }
.browser__nav b { width: 22px; height: 7px; border-radius: 3px; background: var(--brand-soft); margin-right: auto; }
.browser__nav span { width: 16px; height: 5px; border-radius: 3px; background: #2a2a33; }
.browser__h1, .browser__p, .browser__btn, .browser__cards i {
  border-radius: 4px; background: #1d1d23; position: relative; overflow: hidden;
}
.browser__h1 { height: 12px; width: 70%; }
.browser__p { height: 6px; width: 90%; }
.browser__p--short { width: 55%; }
.browser__h1::after, .browser__p::after, .browser__cards i::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); animation: shimmer 1.6s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.browser__h1 { animation: fill-h1 6s ease-in-out infinite; }
@keyframes fill-h1 { 0%, 30% { background: #1d1d23; } 40%, 100% { background: #e9e9ee; } }
.browser__btn {
  width: 62px; height: 16px; border-radius: 999px; animation: fill-btn 6s ease-in-out infinite;
}
@keyframes fill-btn { 0%, 35% { background: #1d1d23; } 45%, 100% { background: var(--brand); } }
.browser__ripple {
  position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%;
  background: rgba(255,255,255,.7); opacity: 0; animation: ripple 6s ease-out infinite;
}
@keyframes ripple { 0%, 68% { opacity: 0; transform: scale(0); } 70% { opacity: .9; transform: scale(.5); } 85%, 100% { opacity: 0; transform: scale(7); } }
.browser__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 4px; }
.browser__cards i { height: 26px; animation: fill-card 6s ease-in-out infinite; }
.browser__cards i:nth-child(2) { animation-delay: .15s; }
.browser__cards i:nth-child(3) { animation-delay: .3s; }
@keyframes fill-card { 0%, 45% { background: #1d1d23; } 55%, 100% { background: rgba(var(--brand-rgb), .3); } }
.browser__cursor {
  position: absolute; width: 18px; height: 18px; left: 80%; top: 85%; fill: #fff; stroke: #0d0d10; stroke-width: 1.2;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); animation: cursor 6s ease-in-out infinite;
}
@keyframes cursor {
  0%, 20% { left: 80%; top: 85%; }
  60% { left: 18%; top: 66%; }
  68% { left: 18%; top: 66%; transform: scale(.8); }
  72% { left: 18%; top: 66%; transform: scale(1); }
  100% { left: 80%; top: 85%; }
}

/* Identidad de marca: isologo que se construye sobre una grilla y se aplica */
.brandkit { display: flex; align-items: center; gap: 18px; }
.brandkit__board {
  width: 150px; height: 150px; flex: none; border-radius: 14px; overflow: hidden;
  background: #0d0d10; border: 1px solid #33333c; box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.bk__grid { stroke: #1b1b21; stroke-width: 1; fill: none; }
.bk__guide { fill: none; stroke: #55555f; stroke-width: .8; stroke-dasharray: 3 3; animation: bk-guide 8s ease-in-out infinite; }
@keyframes bk-guide { 0%, 4% { opacity: 0; } 16%, 50% { opacity: 1; } 64%, 100% { opacity: .2; } }
.bk__label { font: 500 9px var(--mono); fill: #6a6a76; }
.bk__mark {
  fill: none; stroke: url(#bkGrad); stroke-width: 13; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100; animation: bk-draw 8s cubic-bezier(.6,0,.3,1) infinite;
  filter: drop-shadow(0 0 6px rgba(var(--brand-rgb), .6));
}
@keyframes bk-draw {
  0%, 10% { stroke-dashoffset: 100; opacity: 0; }
  12% { stroke-dashoffset: 100; opacity: 1; }
  40%, 92% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
.bk__dot { fill: var(--brand-soft); transform-box: fill-box; transform-origin: center; animation: bk-dot 8s cubic-bezier(.3,1.6,.5,1) infinite; }
@keyframes bk-dot { 0%, 40% { transform: scale(0); } 47%, 92% { transform: scale(1); } 100% { transform: scale(0); } }
.brandkit__apps { display: grid; gap: 12px; width: 140px; }
.brandkit__apps > * { animation: bk-apply 8s cubic-bezier(.3,1.4,.5,1) infinite both; }
.brandkit__apps > :nth-child(2) { animation-delay: .35s; }
.brandkit__apps > :nth-child(3) { animation-delay: .7s; }
@keyframes bk-apply {
  0%, 48% { opacity: 0; transform: translateX(-14px) scale(.9); }
  56%, 90% { opacity: 1; transform: none; }
  97%, 100% { opacity: 0; transform: translateX(-14px) scale(.9); }
}
.bk-row { display: flex; align-items: center; gap: 14px; }
.bk-app {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; color: #fff; flex: none;
  background: linear-gradient(135deg, var(--brand-soft), var(--brand)); box-shadow: 0 10px 26px rgba(var(--brand-rgb), .45);
}
.bk-app svg { width: 30px; height: 30px; }
.bk-type { display: grid; font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.bk-type small { font-size: .6rem; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-top: 4px; }
.bk-tab {
  display: flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 9px 9px 3px 3px;
  background: #17171c; border: 1px solid #2a2a33; font-size: .62rem; color: var(--muted); white-space: nowrap;
}
.bk-tab svg { width: 13px; height: 13px; color: var(--brand-soft); flex: none; }
.bk-swatches { display: flex; gap: 6px; }
.bk-swatches i { width: 24px; height: 24px; border-radius: 7px; background: var(--c); border: 1px solid rgba(255,255,255,.08); }

/* Cinta de palabras */
.marquee {
  margin-top: clamp(56px, 8vw, 90px); border-block: 1px solid var(--border); padding: 18px 0; overflow: hidden;
  background: rgba(10,10,11,.6);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-size: clamp(1.1rem, 2.4vw, 1.6rem); font-weight: 600; letter-spacing: -.02em; color: #4a4a55; white-space: nowrap; transition: color .3s; }
.marquee__track span:hover { color: var(--text); }
.marquee__track b { color: var(--brand); font-size: .9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
#que-hacemos { padding-bottom: 0; }
#que-hacemos .marquee { margin-bottom: 0; }

@media (max-width: 960px) {
  .services { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}

/* ===================== Cómo lo hacemos (bento) ===================== */
.approach { position: relative; overflow: hidden; }
.approach__glow {
  position: absolute; left: 50%; top: 35%; width: 1000px; height: 700px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(var(--brand-rgb), .16), transparent);
  pointer-events: none; animation: glow 9s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: translate(-42%, -40%) scale(1.15); opacity: .7; } }
.approach .container { position: relative; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 48px; }
.bento__card {
  --mx: 50%; --my: 0%;
  position: relative; grid-column: span 2; display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, #17171b, #111114); border: 1px solid var(--border); border-radius: 20px;
  transition: border-color .3s, transform .3s;
}
.bento__card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--brand-rgb), .18), transparent 60%);
}
.bento__card:hover { border-color: rgba(var(--brand-rgb), .55); }
.bento__card:hover::before { opacity: 1; }
.bento__card--ai { grid-column: span 4; }
.bento__visual {
  position: relative; height: 230px; display: grid; place-items: center; overflow: hidden;
  border-bottom: 1px solid var(--border);
  background-image: radial-gradient(circle, #1f1f25 1px, transparent 1.4px); background-size: 14px 14px;
}
.bento__body { padding: 24px 28px 28px; position: relative; }
.bento__body p { color: var(--muted); margin: 0; font-size: .95rem; }
.tag {
  display: inline-block; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px;
  color: var(--brand-soft); background: rgba(var(--brand-rgb), .12); border: 1px solid rgba(var(--brand-rgb), .3);
  padding: 3px 10px; border-radius: 999px;
}

/* Aparición al scroll */
.reveal { opacity: 0; transform: translateY(40px) scale(.98); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1), border-color .3s; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal:not(.in-view) * { animation-play-state: paused !important; }

/* IA: red neuronal */
.nn { width: 100%; height: 100%; padding: 14px 10px 46px; }
.nn__edge { stroke: #2a2a33; stroke-width: 1; fill: none; }
.nn__pulse {
  fill: none; stroke: var(--brand-soft); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 10 90; stroke-dashoffset: 100; filter: drop-shadow(0 0 4px rgba(197,138,240,.9));
  animation: pulse-flow 2s linear infinite;
}
@keyframes pulse-flow { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.nn__node {
  fill: #141418; stroke: var(--brand); stroke-width: 2; transform-box: fill-box; transform-origin: center;
  animation: node-pulse 2.4s ease-in-out infinite;
}
@keyframes node-pulse {
  0%, 100% { fill: #141418; transform: scale(1); }
  40% { fill: var(--brand); transform: scale(1.35); filter: drop-shadow(0 0 8px rgba(140,24,192,1)); }
}
.ai-prompt {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(90%, 460px);
  display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--text);
  background: rgba(10,10,11,.85); border: 1px solid rgba(var(--brand-rgb), .4); border-radius: 10px;
  padding: 9px 14px; backdrop-filter: blur(6px); box-shadow: 0 0 30px rgba(var(--brand-rgb), .2);
  white-space: nowrap; overflow: hidden;
}
.ai-prompt__icon { color: var(--brand-soft); animation: spin 4s linear infinite; display: inline-block; }
.caret { width: 7px; height: 15px; background: var(--brand-soft); margin-left: -6px; animation: blink 1s steps(1) infinite; flex: none; }
@keyframes blink { 50% { opacity: 0; } }

/* Responsive: dispositivo que cambia de tamaño */
.rsp { display: grid; place-items: center; width: 100%; height: 100%; }
.rsp__device {
  width: 230px; height: 150px; border: 2px solid #3a3a44; border-radius: 10px; padding: 8px; overflow: hidden;
  background: #0d0d10; box-shadow: 0 0 0 6px rgba(var(--brand-rgb), .06), 0 20px 40px rgba(0,0,0,.4);
  animation: rsp-resize 7.5s cubic-bezier(.7,0,.3,1) infinite;
}
@keyframes rsp-resize {
  0%, 22%   { width: 230px; height: 150px; border-radius: 10px; }
  33%, 55%  { width: 140px; height: 175px; border-radius: 14px; }
  66%, 88%  { width: 82px;  height: 165px; border-radius: 18px; }
  100%      { width: 230px; height: 150px; border-radius: 10px; }
}
.rsp__bar { display: flex; gap: 4px; margin-bottom: 8px; }
.rsp__bar i { width: 6px; height: 6px; border-radius: 50%; background: #3a3a44; }
.rsp__bar i:first-child { background: var(--brand); }
.rsp__grid { display: flex; flex-wrap: wrap; gap: 6px; }
.rsp__grid b { flex: 1 1 52px; height: 22px; border-radius: 4px; background: #24242b; transition: background .3s; }
.rsp__grid b:first-child { flex-basis: 100%; height: 30px; background: linear-gradient(90deg, var(--brand), var(--brand-soft)); opacity: .85; }
.rsp__grid b:nth-child(3) { background: rgba(var(--brand-rgb), .35); }

/* Diseño: curva bezier que se dibuja */
.pen { width: 88%; height: 88%; overflow: visible; }
.pen__type { font: 700 52px var(--sans); fill: #2c2c34; letter-spacing: -2px; }
.pen__path {
  fill: none; stroke: var(--brand-soft); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 5s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(var(--brand-rgb), .7));
}
@keyframes draw { 0% { stroke-dashoffset: 100; } 45%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -100; } }
.pen__handle { stroke: #4a4a55; stroke-width: 1; stroke-dasharray: 3 3; animation: fade 5s ease-in-out infinite; }
.pen__node { fill: #0d0d10; stroke: var(--text); stroke-width: 1.5; }
.pen__ctrl { fill: var(--brand); animation: fade 5s ease-in-out infinite; }
@keyframes fade { 0%, 15% { opacity: 0; } 35%, 80% { opacity: 1; } 100% { opacity: 0; } }
.pen__swatches circle { transform-box: fill-box; transform-origin: center; animation: pop 5s cubic-bezier(.3,1.6,.5,1) infinite; stroke: #0d0d10; stroke-width: 2; }
.pen__swatches circle:nth-child(2) { animation-delay: .12s; }
.pen__swatches circle:nth-child(3) { animation-delay: .24s; }
.pen__swatches circle:nth-child(4) { animation-delay: .36s; }
@keyframes pop { 0%, 40% { transform: scale(0); } 52%, 88% { transform: scale(1); } 100% { transform: scale(0); } }

/* Tecnologías: órbita */
.orbit { position: relative; width: 200px; height: 200px; }
.orbit__ring { position: absolute; border-radius: 50%; border: 1px dashed #33333c; animation: spin 26s linear infinite; }
.orbit__ring--outer { --r: 88px; inset: 12px; }
.orbit__ring--inner { --r: 50px; inset: 50px; animation-duration: 16s; animation-direction: reverse; border-color: rgba(var(--brand-rgb), .35); }
.orbit__ring span {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a)));
}
.orbit__ring em {
  position: absolute; transform: translate(-50%, -50%); font: 500 .68rem var(--mono); font-style: normal; white-space: nowrap;
  color: var(--text); background: #1a1a20; border: 1px solid #33333c; padding: 4px 9px; border-radius: 999px;
  animation: chip-upright 26s linear infinite;
}
.orbit__ring--inner em { animation-duration: 16s; animation-direction: reverse; border-color: rgba(var(--brand-rgb), .5); color: var(--brand-soft); }
/* contrarresta el giro del anillo para que el texto quede siempre derecho */
@keyframes chip-upright { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(-360deg); } }
.orbit__core {
  position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: #0d0d10; border: 1px solid rgba(var(--brand-rgb), .6); animation: core-glow 3s ease-in-out infinite;
}
.orbit__core img { width: 30px; height: 30px; }
@keyframes core-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb), .5); } 50% { box-shadow: 0 0 0 14px rgba(var(--brand-rgb), 0), 0 0 40px rgba(var(--brand-rgb), .5); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Rendimiento: medidor */
.gauge { position: relative; width: 150px; height: 150px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge__track { fill: none; stroke: #24242b; stroke-width: 8; }
.gauge__fill {
  fill: none; stroke: var(--brand-soft); stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s cubic-bezier(.2,.7,.2,1) .2s;
  filter: drop-shadow(0 0 8px rgba(var(--brand-rgb), .8));
}
.in-view .gauge__fill { stroke-dashoffset: 0; }
.gauge__value { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge__value .count { font-size: 2.6rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.gauge__value small { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__card, .bento__card:nth-child(2) { grid-column: span 1; }
  .bento__card--ai { grid-column: span 2; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .bento__card, .bento__card--ai, .bento__card:nth-child(2) { grid-column: span 1; }
  .nn { padding-bottom: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .approach *, .approach__glow, #que-hacemos * { animation: none !important; }
  .phone__toast { opacity: 0; }
  .reveal { opacity: 1; transform: none; }
  .pen__path, .gauge__fill { stroke-dashoffset: 0; }
  .pen__swatches circle { transform: none; }
  .bk__mark { stroke-dashoffset: 0; }
}

/* ===================== CTA final ===================== */
.cta__inner { text-align: center; }
.cta h2 { margin: 0 auto; max-width: 18ch; font-size: clamp(2rem, 5.5vw, 4rem); line-height: 1.1; }
.cta .grad { display: inline-block; }
