/* =============================================================
   PRAG Soluciones Integrales — styles.css
   Arquetipo: Mouse-Reactive Gradient (oscuro + un acento morado)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  --bg: #07070c;
  --bg-2: #0b0b14;
  --bg-3: #11111d;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);

  --ink: #ffffff;
  --ink-2: rgba(238, 236, 255, 0.78);
  --ink-3: rgba(238, 236, 255, 0.56);

  --violet: #7c5cff;
  --violet-hi: #a593ff;
  --violet-lo: #5a3ff0;
  --lav: #8b82d6;
  --glow: 124, 92, 255;
  --ok: #5ee59a;

  --grad-btn: linear-gradient(135deg, #8d70ff 0%, #6d4cf6 55%, #5a3ff0 100%);
  --grad-text: linear-gradient(100deg, #c9bfff 0%, #9d87ff 45%, #7c5cff 100%);

  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;

  --radius: 22px;
  --radius-sm: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1280px;
  --nav-h: 76px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  background: var(--bg);
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
strong { font-weight: 600; color: var(--ink); }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-xs { width: .85em; height: .85em; display: inline-block; vertical-align: -1px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; border-radius: 10px;
  background: #fff; color: var(--bg); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--violet-hi);
}
.kicker::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7;
}
.hero-kicker::before { display: none; }

.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .055;
  mix-blend-mode: overlay;
  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");
}

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--violet-lo), var(--violet-hi));
  transform-origin: 0 50%; transform: scaleX(var(--sp, 0));
  box-shadow: 0 0 12px rgba(var(--glow), .8);
}

/* =============================================================
   4. Typography
   ============================================================= */
h2 { font-size: clamp(2.1rem, 4.6vw, 4.2rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); letter-spacing: -0.02em; }
h2 em, h3 em, .hero-title em {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.lead { font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: var(--ink-2); max-width: 60ch; }

/* =============================================================
   5. Components
   ============================================================= */
/* --- Botones --- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.5rem; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform .5s var(--ease-out), box-shadow .4s var(--ease-out), background-color .3s, border-color .3s, color .3s;
  transform: translate(var(--mx), var(--my));
}
.btn .ic { transition: transform .45s var(--ease-out); }
.btn:hover .ic { transform: translateX(3px); }
.btn-primary {
  color: #fff; background: var(--grad-btn);
  box-shadow: 0 12px 32px -12px rgba(var(--glow), .85), inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(0,0,0,.2);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease-out);
}
.btn-primary:hover { box-shadow: 0 18px 44px -12px rgba(var(--glow), 1), 0 0 0 1px rgba(255,255,255,.12) inset; }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost {
  color: #fff; background: rgba(255,255,255,.04);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: rgba(var(--glow), .7); background: rgba(var(--glow), .12); }
.btn-ghost .ic { color: var(--violet-hi); }
.btn-ghost:hover .ic { transform: rotate(12deg) scale(1.08); }
.btn-sm { min-height: 40px; padding: .5rem 1.1rem; font-size: .92rem; }
.btn-lg { min-height: 56px; padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .42rem .9rem; border-radius: 999px;
  border: 1px solid rgba(var(--glow), .45);
  background: rgba(var(--glow), .12);
  color: var(--violet-hi); font-family: var(--display); font-weight: 600; font-size: .9rem;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

.pulse-dot, .live-dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--violet-hi); flex: none;
}
.pulse-dot::after, .live-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--violet-hi); animation: ping 2.2s var(--ease-out) infinite;
}
.live-dot { background: var(--ok); }
.live-dot::after { border-color: var(--ok); }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }

/* --- Splash --- */
.splash {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; align-content: center; gap: 28px;
  background: var(--bg);
  animation: splashOut .6s var(--ease-out) 2.4s forwards; /* red de seguridad sin JS */
}
.splash-mark { width: 64px; height: auto; animation: splashMark 1s var(--ease-out) both; }
.splash-bar { width: 140px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.splash-bar span { display: block; height: 100%; background: var(--grad-btn); transform-origin: 0 50%; animation: splashBar 1.1s var(--ease-out) .15s both; }
.splash.is-out { animation: splashOut .55s var(--ease-out) forwards; }
@keyframes splashMark { from { opacity: 0; transform: translateY(10px) scale(.92); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes splashBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }

/* --- Navegación --- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .4s, border-color .4s, backdrop-filter .4s, transform .5s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 7, 12, 0.94);
  border-bottom-color: var(--line);
}
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .nav.is-scrolled { background: rgba(7, 7, 12, 0.66); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); }
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: none; gap: .25rem; }
.nav-links a {
  position: relative; padding: .5rem .8rem; border-radius: 999px;
  font-size: .93rem; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: color .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 1.5px;
  background: var(--violet-hi); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav-links a:hover, .nav-links a.is-active { color: #fff; }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.nav-cta { display: none; }

.lang-toggle {
  position: relative; display: inline-flex; align-items: center; gap: 2px;
  height: 40px; padding: 4px 4px 4px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.04);
  font-family: var(--mono); font-size: .76rem; font-weight: 500;
}
.lang-toggle > .ic { width: 15px; height: 15px; margin-right: 6px; color: var(--violet-hi); }
.lang-opt {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 36px; height: 30px; border-radius: 999px; color: var(--ink-3); transition: color .35s;
}
.lang-toggle::after {
  content: ""; position: absolute; top: 4px; right: 40px; width: 36px; height: 30px; border-radius: 999px;
  background: var(--grad-btn); box-shadow: 0 6px 16px -6px rgba(var(--glow), .9);
  transition: transform .45s var(--ease-out);
}
html[data-lang="es"] .lang-opt[data-opt="es"],
html[data-lang="en"] .lang-opt[data-opt="en"] { color: #fff; }
html[data-lang="en"] .lang-toggle::after { transform: translateX(38px); }
.lang-toggle:hover { border-color: rgba(var(--glow), .6); }

.burger { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.6px; background: #fff; border-radius: 2px; transition: transform .45s var(--ease-out), top .45s var(--ease-out); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 95; padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  background: radial-gradient(80% 50% at 80% 0%, rgba(var(--glow), .22), transparent 70%), rgba(7,7,12,.98);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease-out), visibility .4s;
}
.mobile-menu[hidden] { display: flex; }
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex; align-items: baseline; gap: 1rem; padding: .7rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display); font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 600; letter-spacing: -0.03em;
  opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
}
.mobile-menu.is-open nav a { opacity: 1; transform: none; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: .05s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: .1s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: .15s; }
.mobile-menu.is-open nav a:nth-child(5) { transition-delay: .2s; }
.mm-num { font-family: var(--mono); font-size: .8rem; color: var(--violet-hi); letter-spacing: .1em; }
.mm-foot { display: grid; gap: 1rem; }
.mm-mail { text-align: center; color: var(--ink-2); font-size: .95rem; }

/* =============================================================
   6. Sections
   ============================================================= */
.section { position: relative; padding-block: clamp(80px, 11vw, 150px); }
.section-head { display: grid; gap: 1.1rem; margin-bottom: clamp(40px, 6vw, 72px); max-width: 780px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- HERO ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--nav-h) + 40px); padding-bottom: 96px;
  overflow: clip;
}
.hero-media { position: absolute; inset: 0; z-index: -3; }
.hero-media img { width: 100%; height: 110%; object-fit: cover; object-position: 62% 50%; filter: saturate(.72) contrast(1.05); transform-origin: 50% 40%; will-change: transform; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,7,12,.96) 0%, rgba(7,7,12,.82) 34%, rgba(7,7,12,.35) 70%, rgba(7,7,12,.55) 100%),
    linear-gradient(180deg, rgba(7,7,12,.55) 0%, transparent 28%, transparent 62%, var(--bg) 100%);
}
.hero-glow {
  position: absolute; inset: -10%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(circle 34vmax at var(--mx, 30%) var(--my, 40%), rgba(var(--glow), .42), transparent 60%),
    radial-gradient(circle 26vmax at calc(var(--mx, 30%) + 22%) calc(var(--my, 40%) + 18%), rgba(90, 63, 240, .30), transparent 60%);
  filter: blur(30px);
  mix-blend-mode: screen;
  transition: background-position .2s;
}
.hero-lines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(70% 60% at 30% 45%, #000 0%, transparent 75%);
          mask-image: radial-gradient(70% 60% at 30% 45%, #000 0%, transparent 75%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-inner > * { min-width: 0; }
.hero-copy { display: grid; gap: 1.4rem; max-width: 760px; }
.hero-kicker { color: var(--ink-2); letter-spacing: .16em; padding: .45rem .9rem; border: 1px solid var(--line-2); border-radius: 999px; width: max-content; max-width: 100%; background: rgba(7,7,12,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: .7rem; }
.hero-title {
  font-size: clamp(2.9rem, 6.6vw, 6.6rem);
  line-height: .96; letter-spacing: -0.045em; font-weight: 600;
}
/* split por palabras (JS). Sin JS el título se ve completo. */
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .wi { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms + 120ms); }
.hero.is-in .hero-title .wi, .hero-title.no-anim .wi { transform: none; }
.hero-title.is-split em { background: none; -webkit-text-fill-color: currentColor; color: inherit; }
.hero-title.is-split em .wi {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: clamp(1.08rem, 1.5vw, 1.32rem); color: var(--ink-2); max-width: 52ch; }
.hero-note { color: var(--ink-3); max-width: 56ch; padding-left: 1rem; border-left: 2px solid rgba(var(--glow), .7); }
.hero-note strong { color: var(--violet-hi); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }
.hero .hero-sub, .hero .hero-note, .hero .hero-ctas, .hero .hero-kicker {
  opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.hero.is-in .hero-kicker { opacity: 1; transform: none; transition-delay: .05s; }
.hero.is-in .hero-sub { opacity: 1; transform: none; transition-delay: .55s; }
.hero.is-in .hero-note { opacity: 1; transform: none; transition-delay: .7s; }
.hero.is-in .hero-ctas { opacity: 1; transform: none; transition-delay: .85s; }
.no-js .hero .hero-sub, .no-js .hero .hero-note, .no-js .hero .hero-ctas, .no-js .hero .hero-kicker { opacity: 1; transform: none; }

/* Panel ilustrativo */
.hero-panel {
  position: relative; width: 100%; max-width: 440px; justify-self: end;
  padding: 22px; border-radius: 24px;
  background: rgba(14, 13, 26, .9);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(var(--glow), .08), 0 30px 80px -40px rgba(var(--glow), .6);
  opacity: 0; transform: translateY(30px) scale(.97);
  transition: opacity 1.1s var(--ease-out) .9s, transform 1.2s var(--ease-out) .9s;
}
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .hero-panel { background: rgba(14, 13, 26, .62); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%); }
}
.hero-panel::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--angle), transparent 0deg, rgba(var(--glow), .9) 60deg, transparent 140deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite;
}
@keyframes spin { to { --angle: 360deg; } }
.hero.is-in .hero-panel, .no-js .hero-panel { opacity: 1; transform: none; }
.hp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.hp-label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.hp-title { font-family: var(--display); font-weight: 600; font-size: 1.12rem; margin-top: 2px; }
.hp-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .7rem; border-radius: 999px; font-size: .74rem; font-family: var(--mono); color: var(--ink-2); border: 1px solid var(--line-2); white-space: nowrap; }
.hp-body { display: grid; grid-template-columns: 128px 1fr; gap: 20px; align-items: center; padding: 18px 0; }
.hp-ring { position: relative; width: 128px; aspect-ratio: 1; }
.hp-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 10; }
.ring-fill {
  fill: none; stroke: var(--violet-hi); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
  filter: drop-shadow(0 0 8px rgba(var(--glow), .8));
  transition: stroke-dashoffset 2s var(--ease-out) 1.3s;
}
.hero.is-in .ring-fill, .no-js .ring-fill { stroke-dashoffset: calc(326.7 - 326.7 * var(--p) / 100); }
.hp-ring-txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.hp-ring-txt strong { font-family: var(--display); font-size: 1.9rem; line-height: 1; letter-spacing: -0.03em; }
.hp-ring-txt > span { font-size: .68rem; color: var(--ink-3); margin-top: 4px; }
.hp-bars { display: grid; gap: 14px; }
.hp-bar-top { display: flex; justify-content: space-between; gap: .5rem; font-size: .8rem; color: var(--ink-2); margin-bottom: 6px; }
.hp-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; }
.hp-bar span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--violet-lo), var(--violet-hi)); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.6s var(--ease-out) 1.4s; }
.hp-bars li:nth-child(2) .hp-bar span { transition-delay: 1.55s; }
.hp-bars li:nth-child(3) .hp-bar span { transition-delay: 1.7s; background: linear-gradient(90deg, #3fbf7f, var(--ok)); }
.hero.is-in .hp-bar span, .no-js .hp-bar span { transform: scaleX(1); }
.hp-foot { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: 16px; border-top: 1px solid var(--line); }
.hp-status { display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .65rem; border-radius: 999px; font-size: .74rem; background: rgba(255,255,255,.05); color: var(--ink-2); }
.hp-status.ok { color: var(--ok); background: rgba(94,229,154,.1); }
.hp-status .ic { width: 13px; height: 13px; stroke-width: 2.4; }

.hero-bottom { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; justify-content: center; }
.scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink-3); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue-line { position: relative; width: 1px; height: 46px; background: var(--line-2); overflow: hidden; }
.scroll-cue-line::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--violet-hi); animation: cue 2s var(--ease-out) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* ---------- MARQUEE ---------- */
.marquee {
  position: relative; overflow: hidden; padding: 22px 0;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(var(--glow), .06), transparent 30%, transparent 70%, rgba(var(--glow), .06));
  -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; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; flex: none; }
.marquee-list li {
  display: flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem;
  font-family: var(--display); font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 500; letter-spacing: -0.02em;
  color: var(--ink-2); white-space: nowrap;
}
.marquee-list li::after { content: ""; width: 10px; height: 10px; transform: rotate(45deg); border: 1.5px solid var(--violet); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- DIVISIONES ---------- */
.div-grid { display: grid; gap: 24px; }
.div-card {
  --sx: 50%; --sy: 50%; --rx: 0deg; --ry: 0deg;
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 600px; border-radius: 28px;
  border: 1px solid var(--line-2);
  background: var(--bg-3);
  display: flex; align-items: flex-end;
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .7s var(--ease-out), border-color .4s, box-shadow .5s var(--ease-out);
}
.div-card:hover { border-color: rgba(var(--glow), .55); box-shadow: 0 40px 90px -40px rgba(var(--glow), .55); }
.div-media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.4s var(--ease-out), filter .8s; filter: saturate(.85); }
.div-card:hover .div-media { transform: scale(1.1); filter: saturate(1); }
.div-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(500px circle at var(--sx) var(--sy), rgba(var(--glow), .22), transparent 60%),
    linear-gradient(180deg, rgba(7,7,12,.35) 0%, rgba(7,7,12,.72) 38%, rgba(9,9,16,.96) 72%, #0a0a12 100%);
}
.div-content { display: grid; gap: 1.1rem; padding: clamp(24px, 3.2vw, 44px); width: 100%; }
.div-content .chip { width: max-content; }
.div-content h3 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.div-content p { color: var(--ink-2); max-width: 52ch; }
.div-list { display: grid; gap: .65rem; margin: .3rem 0 .6rem; }
.div-list li { display: flex; align-items: center; gap: .8rem; color: var(--ink-2); }
.div-list .ic { color: var(--violet-hi); }

/* ---------- CIFRAS ---------- */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  margin-top: clamp(48px, 7vw, 90px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}
.stats li { display: grid; gap: .4rem; padding: clamp(20px, 3vw, 36px); border-color: var(--line); border-style: solid; border-width: 0; }
.stats li:nth-child(odd) { border-right-width: 1px; }
.stats li:nth-child(-n+2) { border-bottom-width: 1px; }
.stat-num { font-family: var(--display); font-size: clamp(2.6rem, 5.5vw, 4.6rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.stats li > span { color: var(--ink-3); font-size: .95rem; }

/* ---------- ETAPAS ---------- */
.process { background: linear-gradient(180deg, transparent, rgba(var(--glow), .045) 40%, transparent); }
.process-grid { display: grid; gap: 40px; }
.process-figure { position: relative; margin-top: 8px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 4 / 3; background: var(--bg-3); }
.process-figure img { width: 100%; height: 100%; object-fit: cover; }
.process-figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7,7,12,.6)); }
.steps { position: relative; display: grid; gap: 14px; padding-left: 0; }
.steps-track { position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: var(--line); border-radius: 2px; }
.steps-fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--violet-hi), var(--violet-lo)); transform-origin: 50% 0; transform: scaleY(var(--fill, 0)); box-shadow: 0 0 14px rgba(var(--glow), .8); }
.step {
  position: relative; z-index: 1; display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start;
  padding: 22px 22px 22px 0; border-radius: var(--radius);
  transition: background-color .5s;
}
.step-num {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink-3); font-size: .9rem;
  transition: background .5s var(--ease-out), color .4s, border-color .4s, box-shadow .5s;
}
.step-body { display: grid; gap: .45rem; padding-top: 10px; }
.step-body h3 { font-size: clamp(1.3rem, 2.1vw, 1.75rem); color: var(--ink-3); transition: color .5s; }
.step-body p { color: var(--ink-3); max-width: 48ch; transition: color .5s; }
.step.is-active .step-num { background: var(--grad-btn); color: #fff; border-color: transparent; box-shadow: 0 0 0 6px rgba(var(--glow), .14), 0 10px 30px -8px rgba(var(--glow), .9); }
.step.is-active .step-body h3 { color: #fff; }
.step.is-active .step-body p { color: var(--ink-2); }

/* ---------- SERVICIOS (Consultoría / Ingeniería) ---------- */
.service-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(440px, 62vh, 640px);
  display: flex; align-items: flex-end;
  border-radius: 32px; border: 1px solid var(--line-2); background: var(--bg-3);
}
.service-media { position: absolute; inset: -8% 0; z-index: -2; width: 100%; height: 116%; object-fit: cover; will-change: transform; filter: saturate(.8); }
.service-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,7,12,.94) 0%, rgba(7,7,12,.7) 45%, rgba(7,7,12,.15) 100%), linear-gradient(0deg, rgba(7,7,12,.85) 0%, transparent 55%); }
.service-hero-copy { display: grid; gap: 1.1rem; padding: clamp(26px, 4.5vw, 64px); max-width: 760px; }
.service-hero-copy h2 { font-size: clamp(2.4rem, 5.6vw, 5rem); }

.rows { margin-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); }
.row {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: start; gap: 8px 14px;
  padding: clamp(18px, 2.4vw, 30px) clamp(8px, 1.6vw, 22px);
  border-bottom: 1px solid var(--line);
}
.row::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(var(--glow), .18), rgba(var(--glow), .02));
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out);
}
.row:hover::before { transform: scaleX(1); }
.row-num { color: var(--violet-hi); font-size: .85rem; padding-top: .5em; }
.row-ic { display: none; width: 26px; height: 26px; color: var(--ink-2); }
.row-main { display: grid; gap: .4rem; min-width: 0; transition: transform .6s var(--ease-out); }
.row-title { font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 2.2vw, 1.85rem); letter-spacing: -0.03em; line-height: 1.15; }
.row-desc { color: var(--ink-3); max-width: 64ch; font-size: .98rem; line-height: 1.55; transition: color .4s; }
.row:hover .row-main { transform: translateX(10px); }
.row:hover .row-desc { color: var(--ink-2); }
.row-arrow { display: none; width: 28px; height: 28px; color: var(--ink-3); transition: transform .6s var(--ease-out), color .3s; }
.row:hover .row-arrow { transform: rotate(45deg); color: var(--violet-hi); }
.sub-head { display: grid; gap: .9rem; max-width: 780px; margin-top: clamp(64px, 9vw, 110px); }
.sub-head h3 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); letter-spacing: -0.035em; }
.sub-head .lead { margin-top: .2rem; }
.fine-note { margin-top: 20px; color: var(--ink-3); font-size: .88rem; }

/* Entregables de consultoría */
.deliv-grid { display: grid; gap: 14px; margin-top: 32px; }
.deliv {
  --sx: 50%; --sy: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: .6rem; align-content: start; min-height: 220px;
  padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  transition: border-color .4s, transform .6s var(--ease-out);
}
.deliv::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(380px circle at var(--sx) var(--sy), rgba(var(--glow), .2), transparent 60%); }
.deliv:hover { border-color: rgba(var(--glow), .5); transform: translateY(-4px); }
.deliv:hover::before { opacity: 1; }
.deliv-num { font-family: var(--display); font-weight: 600; font-size: 2.8rem; line-height: 1; letter-spacing: -0.05em; margin-bottom: 1.2rem; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.deliv h4, .pm-step h4 { font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.2; }
.deliv p { color: var(--ink-3); font-size: .94rem; }

/* Gestión de proyectos */
.pm-track { display: grid; gap: 14px; margin-top: 32px; }
.pm-step {
  position: relative; display: grid; gap: .55rem; align-content: start;
  padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color .4s, background-color .4s, transform .6s var(--ease-out);
}
.pm-step:hover { border-color: rgba(var(--glow), .55); background: rgba(var(--glow), .06); transform: translateY(-4px); }
.pm-node { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: .6rem; border-radius: 14px; background: var(--grad-btn); color: #fff; box-shadow: 0 10px 26px -10px rgba(var(--glow), .9); }
.pm-node .ic { width: 22px; height: 22px; }
.pm-num { position: absolute; top: 24px; right: 22px; color: var(--ink-3); font-size: .8rem; }
.pm-step p { color: var(--ink-3); font-size: .93rem; }

/* ---------- CASOS DE ÉXITO (3 fotos por proyecto) ---------- */
.case-grid { display: grid; gap: 24px; }
.case {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2);
  transition: border-color .4s, box-shadow .5s var(--ease-out);
}
.case:hover { border-color: rgba(var(--glow), .5); box-shadow: 0 30px 60px -36px rgba(var(--glow), .6); }
.case-gallery { position: relative; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 4px; aspect-ratio: 16 / 10; background: var(--bg-3); }
.case-ph { position: relative; display: block; min-height: 0; overflow: hidden; cursor: zoom-in; }
.case-ph-main { grid-row: 1 / span 2; }
.case-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform 1s var(--ease-out), filter .5s; }
.case-ph::after { content: ""; position: absolute; inset: 0; background: rgba(var(--glow), 0); transition: background-color .4s; }
.case-ph:hover img { transform: scale(1.07); filter: saturate(1.05); }
.case-ph:hover::after { background: rgba(var(--glow), .14); }
.case-count { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .6rem; border-radius: 999px; font-size: .72rem; color: #fff; background: rgba(7,7,12,.8); border: 1px solid rgba(255,255,255,.18); pointer-events: none; }
.case-count .ic { width: 12px; height: 12px; }
.case-body { display: grid; gap: .5rem; padding: 22px 24px 26px; }
.case-cat { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-hi); }
.case-body h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.case-body p:last-child { color: var(--ink-3); }

/* Visor de fotos */
.lightbox {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center; padding: 72px 16px;
  background: rgba(5, 5, 10, .95);
  opacity: 0; transition: opacity .3s var(--ease-out);
}
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .lightbox { background: rgba(5, 5, 10, .84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lb-figure { margin: 0; display: grid; gap: 14px; justify-items: center; max-width: min(1100px, 100%); }
.lb-figure img {
  width: auto; height: auto; max-width: 100%;
  max-height: calc(100vh - 190px); max-height: calc(100svh - 190px);
  border-radius: 16px; box-shadow: 0 40px 100px -30px rgba(0,0,0,.9);
  transform: scale(.97); transition: transform .45s var(--ease-out), opacity .25s;
}
.lightbox.is-open .lb-figure img { transform: none; }
.lb-figure figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: .4rem 1rem; text-align: center; font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.lb-figure figcaption .mono { color: var(--ink-3); font-weight: 400; font-size: .85rem; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255,255,255,.06); color: #fff; transition: background-color .3s, border-color .3s; }
.lb-btn:hover { background: rgba(var(--glow), .25); border-color: rgba(var(--glow), .7); }
.lb-btn .ic { width: 22px; height: 22px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- EXPERIENCIA (proyectos) ---------- */
.projects { background: linear-gradient(180deg, transparent, rgba(var(--glow), .04) 50%, transparent); }
.proj-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -24px 0 28px; }
.proj-filters button {
  min-height: 42px; padding: .5rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03);
  color: var(--ink-2); font-size: .9rem; font-weight: 500;
  transition: border-color .3s, color .3s, background-color .3s, box-shadow .3s;
}
.proj-filters button:hover { border-color: rgba(var(--glow), .6); color: #fff; }
.proj-filters button.is-active { background: var(--grad-btn); border-color: transparent; color: #fff; box-shadow: 0 10px 24px -12px rgba(var(--glow), .9); }
.proj-grid { display: grid; gap: 20px; }
.proj {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2);
  transition: border-color .4s, transform .6s var(--ease-out), box-shadow .5s var(--ease-out);
}
.proj:hover { border-color: rgba(var(--glow), .5); transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(var(--glow), .6); }
.proj.is-hidden { display: none; }
.proj-media { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-3); }
.proj-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) brightness(.92); transform: scale(1.02); transition: transform 1.2s var(--ease-out), filter .6s; }
.proj:hover .proj-media img { transform: scale(1.08); filter: saturate(1) brightness(1); }
.proj-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7,7,12,.75)); pointer-events: none; }
.proj-cat {
  position: absolute; left: 14px; bottom: 14px; z-index: 1; max-width: calc(100% - 28px);
  padding: .35rem .75rem; border-radius: 999px;
  font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: #fff;
  background: rgba(7,7,12,.78); border: 1px solid rgba(255,255,255,.18);
}
.proj-body { flex: 1; display: grid; gap: .45rem; align-content: start; padding: 22px 22px 24px; }
.proj-body h3 { font-size: 1.3rem; line-height: 1.2; }
.proj-body p { color: var(--ink-3); font-size: .94rem; }
.proj-body .proj-meta { color: var(--violet-hi); font-size: .74rem; letter-spacing: .06em; margin-top: .3rem; }

.pillars { display: grid; gap: 1px; margin-top: 32px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pillar { display: grid; gap: 1rem; align-content: start; padding: clamp(22px, 3vw, 40px); background: var(--bg); transition: background-color .5s; }
.pillar-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pillar .ic { width: 30px; height: 30px; flex: none; color: var(--violet-hi); transition: transform .6s var(--ease-out); }
.pillar-desc { color: var(--ink-3); font-size: .95rem; max-width: 42ch; }
.pillar-word {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 3vw, 2.9rem); letter-spacing: -0.045em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.2px rgba(238,236,255,.55);
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  background-size: 0% 100%; background-repeat: no-repeat;
  transition: background-size .8s var(--ease-out), -webkit-text-stroke-color .5s;
}
.pillar:hover { background: rgba(var(--glow), .06); }
.pillar:hover .pillar-word { background-size: 100% 100%; -webkit-text-stroke-color: transparent; }
.pillar:hover .ic { transform: rotate(-12deg) scale(1.1); }

/* ---------- NOSOTROS ---------- */
.about-grid { display: grid; gap: 48px; align-items: center; }
.about-figure { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 4 / 5; background: var(--bg-3); max-width: 560px; }
.about-figure img { width: 100%; height: 100%; object-fit: cover; }
.about-figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7,7,12,.75)); }
.about-badge { position: absolute; left: 20px; bottom: 20px; z-index: 1; display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 999px; background: rgba(7,7,12,.75); border: 1px solid var(--line-2); font-weight: 500; font-size: .92rem; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.about-badge .ic { color: var(--violet-hi); }
.about-text { color: var(--ink-3); max-width: 60ch; }
.about-cards { display: grid; gap: 12px; }
.about-card { display: flex; align-items: flex-start; gap: 16px; padding: 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); transition: border-color .4s, background-color .4s, transform .6s var(--ease-out); }
.about-card:hover { border-color: rgba(var(--glow), .6); background: rgba(var(--glow), .06); transform: translateX(6px); }
.about-ic { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 12px; background: rgba(var(--glow), .12); border: 1px solid rgba(var(--glow), .3); color: var(--violet-hi); }
.about-card h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.about-card p { color: var(--ink-3); font-size: .94rem; }

/* ---------- TESTIMONIOS ---------- */
.testimonials .section-head { margin-bottom: 48px; }
.sample-note { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem 1rem; border-radius: 999px; border: 1px solid rgba(var(--glow), .35); background: rgba(var(--glow), .08); color: var(--ink-2); font-size: .85rem; text-align: left; }
.sample-note .ic { color: var(--violet-hi); }
.t-marquee {
  overflow: hidden; padding-block: 10px 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.t-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.t-marquee:hover .t-track, .t-marquee:focus-within .t-track { animation-play-state: paused; }
.t-set { display: flex; gap: 20px; padding-right: 20px; }
.t-card {
  position: relative; display: flex; flex-direction: column; gap: 1.1rem;
  width: min(400px, 82vw); padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  transition: border-color .4s, transform .6s var(--ease-out);
}
.t-card:hover { border-color: rgba(var(--glow), .5); transform: translateY(-4px); }
.t-badge { align-self: flex-start; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-hi); padding: .28rem .65rem; border: 1px solid rgba(var(--glow), .4); border-radius: 999px; }
.t-quote { position: absolute; top: 24px; right: 24px; width: 30px; height: 30px; color: rgba(var(--glow), .5); }
.t-card blockquote { font-family: var(--display); font-size: 1.15rem; line-height: 1.45; letter-spacing: -0.01em; flex: 1; }
.t-card figcaption { display: flex; align-items: center; gap: .8rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .86rem; }
.t-card figcaption > span:last-child { display: grid; color: var(--ink-3); line-height: 1.4; }
.t-card figcaption strong { color: #fff; font-size: .95rem; }
.t-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; flex: none; background: var(--grad-btn); font-family: var(--display); font-weight: 600; font-size: .85rem; }

/* ---------- CTA ---------- */
.cta-band { padding-top: 0; }
.cta-box {
  --sx: 50%; --sy: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; justify-items: center; text-align: center; gap: 1.2rem;
  padding: clamp(48px, 8vw, 110px) clamp(22px, 5vw, 80px);
  border-radius: 36px; border: 1px solid rgba(var(--glow), .35);
  background: #0d0b1d;
}
.cta-box .lead { margin-inline: auto; }
.cta-mesh {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px circle at var(--sx) var(--sy), rgba(var(--glow), .35), transparent 60%),
    radial-gradient(60% 80% at 0% 0%, rgba(90,63,240,.35), transparent 60%),
    radial-gradient(60% 80% at 100% 100%, rgba(165,147,255,.22), transparent 60%);
}
.cta-mesh::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 50%, #000, transparent);
          mask-image: radial-gradient(60% 70% at 50% 50%, #000, transparent);
}
.cta-box h2 { font-size: clamp(2.4rem, 6vw, 5.2rem); max-width: 16ch; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: .6rem; }

/* ---------- CONTACTO ---------- */
.contact { overflow: clip; isolation: isolate; }
.contact-bg { position: absolute; inset: 0; z-index: -1; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(7,7,12,.6) 40%, rgba(7,7,12,.85) 80%, var(--bg) 100%); }
.contact-grid { display: grid; gap: 48px; align-items: start; }
.contact-info { display: grid; gap: 8px; }
.contact-info .section-head { margin-bottom: 28px; }
.big-mail {
  position: relative; justify-self: start; max-width: 100%;
  font-family: var(--display); font-weight: 600; letter-spacing: -0.035em;
  font-size: clamp(1.15rem, 2.5vw, 2.3rem); line-height: 1.15;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0% 2px no-repeat;
  padding-bottom: 6px; transition: background-size .7s var(--ease-out), color .3s;
}
.big-mail:hover { background-size: 100% 2px; color: var(--violet-hi); }
.contact-list { display: grid; gap: 14px; margin-top: 28px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list li > span:last-child { display: grid; }
.contact-list a { transition: color .3s; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--violet-hi); }
.cl-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex: none; background: rgba(var(--glow), .12); border: 1px solid rgba(var(--glow), .3); color: var(--violet-hi); }
.cl-label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

.quote-form {
  display: grid; gap: 20px; padding: clamp(22px, 3.4vw, 40px); border-radius: 28px;
  background: rgba(14, 13, 26, .92); border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), 0 30px 80px -50px rgba(var(--glow), .6);
}
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .quote-form { background: rgba(14, 13, 26, .7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
}
.qf-head h3 { font-size: 1.6rem; }
.qf-head p { color: var(--ink-3); font-size: .92rem; margin-top: .3rem; }
.qf-grid { display: grid; gap: 14px; }
.field { display: grid; gap: .45rem; font-size: .84rem; color: var(--ink-2); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .8rem 1rem; border-radius: 12px;
  background: rgba(7,7,12,.6); border: 1px solid var(--line-2); color: #fff; font-size: 1rem; font-weight: 400;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a593ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field select option { background: var(--bg-2); color: #fff; }
.field ::placeholder { color: rgba(238,236,255,.35); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(var(--glow), .18); background: rgba(7,7,12,.85); }
.field .is-invalid, .field input.is-invalid, .field select.is-invalid, .field textarea.is-invalid { border-color: #ff7a8a; }
.qf-error { color: #ff9aa6; font-size: .88rem; }
.qf-legal { color: var(--ink-3); font-size: .78rem; text-align: center; }
.qf-ok { color: var(--ok); font-size: .9rem; text-align: center; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 104px; background: var(--bg-2); }
.footer-top { display: grid; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-brand img { height: 46px; width: auto; }
.footer-brand p { color: var(--ink-3); margin-top: 14px; max-width: 36ch; }
.footer-col { display: grid; gap: .55rem; align-content: start; color: var(--ink-2); font-size: .95rem; }
.footer-col p { color: var(--violet-hi); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .3rem; }
.footer-col a { justify-self: start; transition: color .3s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 24px; color: var(--ink-3); font-size: .84rem; }
.footer-note { flex: 1 1 280px; }
.to-top { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); transition: border-color .3s, background-color .3s, transform .5s var(--ease-out); }
.to-top:hover { border-color: var(--violet); background: rgba(var(--glow), .15); transform: translateY(-3px); }

/* =============================================================
   7. Asistente IA (chat)
   ============================================================= */
.chat { position: fixed; right: 16px; bottom: 16px; z-index: 110; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-fab {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: 6px 6px 6px 6px; border-radius: 999px;
  background: rgba(14,13,26,.92); border: 1px solid rgba(var(--glow), .45);
  box-shadow: 0 18px 40px -14px rgba(0,0,0,.8), 0 10px 40px -10px rgba(var(--glow), .7);
  transition: transform .5s var(--ease-out), box-shadow .4s, opacity .3s;
}
.chat-fab:hover { transform: translateY(-3px); box-shadow: 0 22px 46px -14px rgba(0,0,0,.8), 0 14px 50px -10px rgba(var(--glow), .95); }
.chat-fab-orb { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--grad-btn); color: #fff; }
.chat-fab-orb::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(var(--glow), .7); animation: ping 2.6s var(--ease-out) infinite; }
.chat-fab-orb .ic { width: 22px; height: 22px; }
.chat-fab-label { display: none; padding-right: 14px; font-family: var(--display); font-weight: 600; font-size: .95rem; }
.chat.is-open .chat-fab { opacity: 0; pointer-events: none; transform: scale(.9); }

.chat-panel {
  position: fixed; inset: auto 0 0 0; z-index: 111;
  display: flex; flex-direction: column;
  height: min(88vh, 88svh);
  border-radius: 24px 24px 0 0;
  background: #0d0c19; border: 1px solid rgba(var(--glow), .35);
  box-shadow: 0 -20px 80px -20px rgba(0,0,0,.9), 0 0 80px -30px rgba(var(--glow), .7);
  opacity: 0; transform: translateY(24px); transition: opacity .35s var(--ease-out), transform .5s var(--ease-out);
}
.chat-panel[hidden] { display: none; }
.chat.is-open .chat-panel { opacity: 1; transform: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px; border-bottom: 1px solid var(--line); }
.chat-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(var(--glow), .14); border: 1px solid rgba(var(--glow), .35); flex: none; }
.chat-avatar img { width: 22px; height: auto; }
.chat-id { flex: 1; min-width: 0; }
.chat-title { font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.chat-status { display: flex; align-items: center; gap: .5rem; font-size: .76rem; color: var(--ink-3); }
.chat-status .live-dot { width: 7px; height: 7px; }
.chat-close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); transition: background-color .3s, border-color .3s; }
.chat-close:hover { background: rgba(255,255,255,.06); border-color: rgba(var(--glow), .5); }
.chat-disclaimer { margin: 10px 14px 0; padding: .55rem .8rem; border-radius: 10px; font-size: .74rem; line-height: 1.45; color: var(--ink-2); background: rgba(var(--glow), .1); border: 1px solid rgba(var(--glow), .25); }
.chat-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px; padding: 16px 14px; scrollbar-width: thin; scrollbar-color: rgba(var(--glow), .4) transparent; }
.msg { max-width: 88%; padding: .75rem .95rem; border-radius: 16px; font-size: .93rem; line-height: 1.55; animation: msgIn .45s var(--ease-out) both; overflow-wrap: anywhere; }
.msg p + p, .msg p + ul, .msg ul + p { margin-top: .5rem; }
.msg ul { display: grid; gap: .3rem; margin-top: .4rem; padding-left: 1.1rem; list-style: disc; }
.msg a { color: var(--violet-hi); text-decoration: underline; text-underline-offset: 2px; }
.msg-bot { align-self: flex-start; background: rgba(255,255,255,.055); border: 1px solid var(--line); border-bottom-left-radius: 6px; color: var(--ink); }
.msg-user { align-self: flex-end; background: var(--grad-btn); color: #fff; border-bottom-right-radius: 6px; }
.msg-note { align-self: stretch; max-width: none; font-size: .78rem; color: var(--ink-3); background: transparent; padding: 0 .2rem; }
.msg-typing { display: inline-flex; gap: 5px; align-items: center; }
.msg-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--violet-hi); animation: typing 1.2s ease-in-out infinite; }
.msg-typing span:nth-child(2) { animation-delay: .15s; }
.msg-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg-cta { display: inline-flex; align-items: center; gap: .4rem; margin-top: .6rem; padding: .45rem .85rem; border-radius: 999px; background: rgba(var(--glow), .18); border: 1px solid rgba(var(--glow), .45); color: #fff; font-size: .82rem; font-weight: 600; text-decoration: none !important; }
.msg-cta .ic { width: 14px; height: 14px; }
.chat-suggest { display: flex; gap: 8px; overflow-x: auto; padding: 0 14px 10px; scrollbar-width: none; }
.chat-suggest::-webkit-scrollbar { display: none; }
.chat-suggest button { flex: none; padding: .5rem .85rem; border-radius: 999px; font-size: .8rem; color: var(--ink-2); border: 1px solid var(--line-2); background: rgba(255,255,255,.03); transition: border-color .3s, color .3s, background-color .3s; }
.chat-suggest button:hover { border-color: rgba(var(--glow), .6); color: #fff; background: rgba(var(--glow), .12); }
.chat-suggest.is-hidden { display: none; }
.chat-form { display: flex; align-items: flex-end; gap: 8px; margin: 0 14px; padding: 6px 6px 6px 14px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(7,7,12,.7); transition: border-color .3s, box-shadow .3s; }
.chat-form:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(var(--glow), .16); }
.chat-form textarea { flex: 1; resize: none; border: 0; background: transparent; color: #fff; font-size: 16px; line-height: 1.45; padding: .55rem 0; max-height: 120px; outline: none; }
.chat-form textarea::placeholder { color: rgba(238,236,255,.4); }
.chat-send { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--grad-btn); color: #fff; flex: none; transition: transform .3s var(--ease-out), opacity .3s; }
.chat-send:hover { transform: scale(1.05); }
.chat-send:disabled { opacity: .5; cursor: not-allowed; }
.chat-quote { display: flex; align-items: center; justify-content: center; gap: .45rem; margin: 10px 14px 14px; padding: .6rem; border-radius: 12px; font-size: .84rem; font-weight: 600; color: var(--violet-hi); transition: background-color .3s, color .3s; }
.chat-quote:hover { background: rgba(var(--glow), .1); color: #fff; }
.chat-quote .ic { width: 15px; height: 15px; }

/* =============================================================
   8. Reveals & efectos
   ============================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-in, .no-js .reveal { opacity: 1; transform: none; }
.div-card.reveal { transition: opacity 1s var(--ease-out), transform .9s var(--ease-out), border-color .4s, box-shadow .5s var(--ease-out); transition-delay: var(--d, 0s), 0s, 0s, 0s; }
.div-card.reveal.is-in { transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry)); }

/* en táctil, el brillo del hero deriva solo */
@media (hover: none) {
  .hero-glow { animation: glowDrift 14s ease-in-out infinite alternate; }
}
@keyframes glowDrift {
  0% { transform: translate(-6%, -4%); }
  100% { transform: translate(8%, 6%); }
}

/* cambio de idioma */
main, .footer, .chat-panel, .nav-links, .mobile-menu nav { transition: opacity .22s ease; }
html.is-switching main, html.is-switching .footer, html.is-switching .nav-links, html.is-switching .chat-panel { opacity: .15; }

/* =============================================================
   9. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .chat { right: 22px; bottom: 22px; }
  .chat-fab-label { display: inline; }
  .chat-panel {
    inset: auto 22px 22px auto; width: 400px; height: min(640px, calc(100vh - 120px));
    border-radius: 24px;
  }
  .about-cards { gap: 14px; }
}

@media (min-width: 720px) {
  .nav-cta { display: inline-flex; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats li { border-width: 0 1px 0 0 !important; }
  .stats li:last-child { border-right-width: 0 !important; }
  .row { grid-template-columns: 56px 40px minmax(0, 1fr) 40px; gap: 18px; align-items: center; }
  .row-num { padding-top: 0; }
  .row-ic, .row-arrow { display: block; }
  .deliv-grid, .pm-track, .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .qf-grid { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
  .footer-top { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 56px; }
  .div-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; }
  .process-sticky { position: sticky; top: calc(var(--nav-h) + 40px); }
  .about-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .deliv-grid { grid-template-columns: repeat(4, 1fr); }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .pm-track, .proj-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 959.98px) {
  .hero-panel { justify-self: start; }
  .nav-logo img { height: 34px; }
}

@media (max-width: 539.98px) {
  .hero-title { font-size: clamp(2.5rem, 11.5vw, 3.4rem); }
  .hero-kicker { letter-spacing: .1em; font-size: .64rem; }
  .hero-ctas .btn { width: 100%; }
  .hp-body { grid-template-columns: 104px 1fr; gap: 16px; }
  .hp-ring { width: 104px; }
  .hp-ring-txt strong { font-size: 1.55rem; }
  .div-card { min-height: 0; }
  .div-content { padding-top: 180px; }
  .about-cards { grid-template-columns: 1fr; }
  .lang-toggle { padding-left: 4px; }
  .lang-toggle > .ic { display: none; }
  .lang-toggle::after { right: 40px; }
  .hero-bottom { display: none; }
  .cta-actions .btn { width: 100%; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

@media (min-width: 1280px) {
  .pm-track { grid-template-columns: repeat(5, 1fr); }
  .nav-links { display: flex; }
  .burger { display: none; }
  .mobile-menu { display: none !important; }
}

/* =============================================================
   10. Reduced motion — solo efectos intrusivos
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .t-track { animation: none; }
  .t-marquee { overflow-x: auto; scroll-snap-type: x mandatory; }
  .t-card { scroll-snap-align: center; }
  .hero-panel::before { animation: none; }
  .hero-glow { animation: none !important; }
  .scroll-cue-line::after { animation: none; }
}
