/* =========================================================
   NUBIX 3D — Point Cloud to Intelligent Model
   Design system (estilo-marca): negro + cian #00E5FF, Inter
   ========================================================= */

:root {
  /* Paleta */
  --c-black: #000000;
  --c-white: #FFFFFF;
  --c-accent: #00E5FF;
  --c-accent-600: #00B8CC;
  --c-accent-800: #006C7A;
  --c-bg: #0B0B0B;
  --c-surface: #141414;
  --c-surface-2: #1A1A1A;
  --c-border: #2A2A2A;
  --c-text: #FFFFFF;
  --c-text-2: #B5B5B5;
  --c-text-3: #7C7C7C;

  --accent-a06: rgba(0, 229, 255, 0.06);
  --accent-a12: rgba(0, 229, 255, 0.12);
  --accent-a25: rgba(0, 229, 255, 0.25);
  --accent-a45: rgba(0, 229, 255, 0.45);

  /* Tipografía */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Formas */
  --r-card: 18px;
  --r-btn: 12px;
  --r-input: 12px;

  /* Espaciado */
  --s-xs: 4px;
  --s-sm: 8px;
  --s-md: 12px;
  --s-lg: 16px;
  --s-xl: 24px;
  --s-xxl: 32px;

  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-soft: 0 20px 60px -20px rgba(0, 0, 0, .7);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }
::selection { background: var(--c-accent); color: var(--c-black); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s-xl); }
.text-accent { color: var(--c-accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-sm);
  border-radius: var(--r-btn);
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  padding: 12px 20px;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, border-color .25s, color .25s;
  white-space: nowrap;
}
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--c-accent); color: var(--c-black); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px var(--accent-a45); background: #4DEEFF; }
.btn-ghost { border-color: var(--c-border); color: var(--c-white); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--c-accent); color: var(--c-accent); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; gap: 8px; color: var(--c-accent); font-weight: 600; margin-top: var(--s-xl); }
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Labels / headings ---------- */
.label {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--s-lg);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--c-text-2);
  padding: 8px 14px; border: 1px solid var(--c-border); border-radius: 999px;
  background: rgba(20,20,20,.6); backdrop-filter: blur(8px);
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 12px var(--c-accent); animation: pulse 2s infinite; }

.section { padding: 120px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, #0E0E0E 0%, #0B0B0B 100%); border-top: 1px solid #161616; border-bottom: 1px solid #161616; }
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head--split { max-width: none; display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-xxl); align-items: end; }
.section-title {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08; letter-spacing: -0.035em; font-weight: 700;
}
.section-sub { color: var(--c-text-2); font-size: 18px; margin-top: var(--s-xl); max-width: 620px; }

.process-title, .philosophy-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.process-title i, .philosophy-title i { font-style: normal; color: var(--c-text-3); font-weight: 400; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(11,11,11,.78); backdrop-filter: blur(14px) saturate(140%); border-color: var(--c-border); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-xl); }

.logo { display: inline-flex; align-items: center; gap: 14px; }
.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: transform .35s var(--ease), filter .35s;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.35));
}
.logo:hover .logo-img {
  transform: scale(1.08) translateY(-1px);
  filter: drop-shadow(0 0 16px rgba(0, 229, 255, 0.65));
}
.logo-mark { width: 40px; height: 40px; flex-shrink: 0; transition: transform .5s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.05); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-weight: 800; font-size: 21px; letter-spacing: .02em; }
.logo-3d { color: var(--c-accent); margin-left: 4px; }
.logo-tag { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--c-text-3); margin-top: 5px; font-weight: 600; }

.main-nav ul { display: flex; gap: 6px; }
.nav-link { display: block; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--c-text-2); transition: color .2s, background .2s; }
.nav-link:hover, .nav-link.is-active { color: var(--c-white); background: rgba(255,255,255,.05); }
.nav-link.is-active { color: var(--c-accent); }

.header-actions { display: flex; align-items: center; gap: var(--s-md); }

/* Language Switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}
.lang-btn {
  color: var(--c-text-3);
  padding: 4px 8px;
  border-radius: 999px;
  transition: color .2s, background .2s, transform .15s;
  cursor: pointer;
}
.lang-btn:hover {
  color: var(--c-white);
}
.lang-btn.is-active {
  color: var(--c-black);
  background: var(--c-accent);
}
.lang-divider {
  color: var(--c-border);
  user-select: none;
  font-size: 10px;
}
.mobile-menu-top {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 8px;
}

.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--c-border); position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--c-white); border-radius: 2px; transition: transform .3s var(--ease), top .3s; }
.menu-toggle span:first-child { top: 15px; }
.menu-toggle span:last-child { top: 24px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: rgba(11,11,11,.97); backdrop-filter: blur(16px);
  padding: var(--s-xxl) var(--s-xl);
  display: flex; flex-direction: column; gap: var(--s-xl);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu ul { display: flex; flex-direction: column; }
.mobile-menu ul a { display: block; padding: 16px 0; font-size: 24px; font-weight: 600; border-bottom: 1px solid var(--c-border); letter-spacing: -0.02em; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 72px) 0 96px; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-glow {
  position: absolute; width: 900px; height: 900px; right: -200px; top: -200px;
  background: radial-gradient(circle, rgba(0,229,255,.16) 0%, rgba(0,229,255,.04) 40%, transparent 70%);
  filter: blur(20px);
  animation: drift 14s ease-in-out infinite alternate;
}
.hero-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero-title {
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1.04; letter-spacing: -0.045em; font-weight: 800;
  margin: var(--s-xl) 0;
}
.hero-title .text-accent {
  display: block;
  background: linear-gradient(90deg, #FFFFFF 0%, var(--c-accent) 55%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 18px; color: var(--c-text-2); max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s-md); margin-top: var(--s-xxl); }
.hero-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-lg); margin-top: 48px; padding-top: var(--s-xl); border-top: 1px solid var(--c-border); }
.hero-points li { display: flex; flex-direction: column; gap: 4px; }
.hero-points strong { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--c-white); font-weight: 700; }
.hero-points span { font-size: 13px; color: var(--c-text-3); }

/* Viewer card */
.hero-viewer {
  position: relative;
  background: linear-gradient(180deg, rgba(26,26,26,.9), rgba(14,14,14,.95));
  border: 1px solid var(--c-border);
  border-radius: 22px;
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(0,229,255,.04), 0 40px 120px -40px rgba(0,229,255,.25);
  overflow: hidden;
}
.viewer-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--c-border); font-size: 12px; }
.viewer-live { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 10px var(--c-accent); animation: pulse 1.6s infinite; }
.viewer-file { color: var(--c-text-3); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.viewer-canvas-wrap { position: relative; aspect-ratio: 5 / 4; cursor: grab; touch-action: pan-y; }
.viewer-canvas-wrap:active { cursor: grabbing; }
#cloudCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.viewer-hint {
  position: absolute; top: 14px; right: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--c-text-2);
  padding: 6px 10px; border-radius: 999px; background: rgba(0,0,0,.5); border: 1px solid var(--c-border);
  transition: opacity .4s;
}
.viewer-hint.is-hidden { opacity: 0; }
.viewer-stage-label {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  display: flex; align-items: center; gap: 12px;
  pointer-events: none;
}
.stage-num { font-size: 12px; font-weight: 700; color: var(--c-black); background: var(--c-accent); padding: 4px 8px; border-radius: 6px; }
.stage-text { font-size: 14px; font-weight: 500; color: var(--c-white); text-shadow: 0 2px 10px rgba(0,0,0,.8); transition: opacity .3s; }

.viewer-stages { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--c-border); }
.stage-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 14px 16px; font-size: 13px; font-weight: 600; text-align: left;
  color: var(--c-text-3); transition: color .25s, background .25s;
  border-right: 1px solid var(--c-border);
}
.stage-btn:last-of-type { border-right: 0; }
.stage-btn span { font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--c-text-3); }
.stage-btn:hover { color: var(--c-white); background: rgba(255,255,255,.02); }
.stage-btn.is-active { color: var(--c-white); background: var(--accent-a06); }
.stage-btn.is-active span { color: var(--c-accent); }
.stage-progress { position: absolute; top: -1px; left: 0; height: 2px; width: 25%; background: var(--c-accent); box-shadow: 0 0 12px var(--c-accent); transform-origin: left; transition: left .5s var(--ease); }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); background: #0D0D0D; overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; align-items: center; gap: 32px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-text-2); white-space: nowrap; }
.marquee-track i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); flex-shrink: 0; opacity: .8; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Concepto (Name cards) ---------- */
.name-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-xl); }
.name-card {
  position: relative; display: flex; flex-direction: column;
  padding: var(--s-xxl); border-radius: var(--r-card);
  background: var(--c-surface); border: 1px solid var(--c-border);
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
  overflow: hidden;
}
.name-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(0,229,255,.09), transparent 40%);
  opacity: 0; transition: opacity .4s;
}
.name-card:hover { transform: translateY(-6px); border-color: rgba(0,229,255,.35); box-shadow: var(--shadow-soft); }
.name-card:hover::before { opacity: 1; }
.name-visual { height: 120px; margin-bottom: var(--s-xl); border-radius: 14px; background: #0F0F0F; border: 1px solid #1F1F1F; display: grid; place-items: center; overflow: hidden; position: relative; }
.name-letters { font-size: 64px; font-weight: 900; letter-spacing: -0.05em; line-height: 1; background: linear-gradient(180deg, #FFF 30%, #5A5A5A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.name-card:hover .name-letters { background: linear-gradient(180deg, #FFF 20%, var(--c-accent)); -webkit-background-clip: text; background-clip: text; }
.name-eq { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--c-accent); margin: var(--s-md) 0 var(--s-xl); text-transform: uppercase; }
.name-title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: var(--s-sm); }
.name-card p { color: var(--c-text-2); font-size: 15px; }

/* NUB: dots */
.dots-visual { position: relative; width: 100%; height: 100%; }
.dots-visual i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--c-accent); opacity: .7; animation: floatDot 4s ease-in-out infinite; }
.dots-visual i:nth-child(1){left:12%;top:30%;animation-delay:-.2s}
.dots-visual i:nth-child(2){left:22%;top:62%;animation-delay:-1.2s;width:3px;height:3px}
.dots-visual i:nth-child(3){left:30%;top:20%;animation-delay:-2.1s}
.dots-visual i:nth-child(4){left:38%;top:48%;animation-delay:-.8s;width:7px;height:7px}
.dots-visual i:nth-child(5){left:46%;top:72%;animation-delay:-3s;width:3px;height:3px}
.dots-visual i:nth-child(6){left:52%;top:28%;animation-delay:-1.6s}
.dots-visual i:nth-child(7){left:60%;top:56%;animation-delay:-.4s;width:6px;height:6px}
.dots-visual i:nth-child(8){left:68%;top:18%;animation-delay:-2.6s;width:3px;height:3px}
.dots-visual i:nth-child(9){left:74%;top:44%;animation-delay:-1s}
.dots-visual i:nth-child(10){left:82%;top:70%;animation-delay:-3.4s;width:4px;height:4px}
.dots-visual i:nth-child(11){left:88%;top:30%;animation-delay:-2s;width:3px;height:3px}
.dots-visual i:nth-child(12){left:16%;top:80%;animation-delay:-.6s;width:3px;height:3px}
.dots-visual i:nth-child(13){left:34%;top:82%;animation-delay:-1.8s}
.dots-visual i:nth-child(14){left:56%;top:84%;animation-delay:-2.8s;width:3px;height:3px}
.dots-visual i:nth-child(15){left:78%;top:86%;animation-delay:-.9s}
.dots-visual i:nth-child(16){left:8%;top:52%;animation-delay:-3.1s;width:3px;height:3px}
.dots-visual i:nth-child(17){left:92%;top:54%;animation-delay:-1.4s}
.dots-visual i:nth-child(18){left:64%;top:36%;animation-delay:-2.3s;width:3px;height:3px}

/* IX: flow */
.ix-flow { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0 12px; }
.ix-flow span {
  font-size: 11px; font-weight: 600; padding: 5px 9px; border-radius: 999px;
  border: 1px solid var(--c-border); color: var(--c-text-3);
  animation: ixStep 5s infinite;
}
.ix-flow span:nth-child(2){animation-delay:1s}
.ix-flow span:nth-child(3){animation-delay:2s}
.ix-flow span:nth-child(4){animation-delay:3s}
.ix-flow span:nth-child(5){animation-delay:4s}

/* 3D: cube */
.cube-visual { perspective: 600px; }
.cube { position: relative; width: 56px; height: 56px; transform-style: preserve-3d; animation: spin 10s linear infinite; }
.cube .f { position: absolute; inset: 0; border: 1px solid var(--c-accent); }
.cube .f-top { background: rgba(0,229,255,.55); transform: rotateX(90deg) translateZ(28px); }
.cube .f-left { background: rgba(0,229,255,.12); background-image: radial-gradient(var(--c-accent) 1px, transparent 1.2px); background-size: 6px 6px; transform: rotateY(-90deg) translateZ(28px); }
.cube .f-right { background: rgba(0,184,204,.4); transform: translateZ(28px); }

.formula {
  margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px;
  padding: 22px 28px; border-radius: var(--r-card); border: 1px dashed var(--c-border);
  font-size: 15px; color: var(--c-text-2);
}
.formula b { color: var(--c-white); margin-right: 6px; }
.formula em { font-style: normal; color: var(--c-text-3); font-weight: 600; }
.formula-result { color: var(--c-black); background: var(--c-accent); padding: 6px 14px; border-radius: 999px; font-weight: 700; }

/* ---------- Propuesta de valor ---------- */
.value-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.value-list { display: flex; flex-direction: column; }
.value-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-xl);
  padding: 28px 4px; border-bottom: 1px solid var(--c-border);
  transition: padding .35s var(--ease), border-color .35s;
}
.value-row:first-child { border-top: 1px solid var(--c-border); }
.value-key { font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.025em; }
.value-is { font-size: 18px; color: var(--c-text-2); white-space: nowrap; }
.value-is strong { color: var(--c-white); font-weight: 700; }
.value-row:hover { padding-left: 16px; border-color: var(--accent-a45); }
.value-row--hl .value-key, .value-row--hl strong { color: var(--c-accent); }

/* ---------- Proceso ---------- */
.process { display: grid; grid-template-columns: 380px 1fr; gap: var(--s-xl); align-items: stretch; }
.process-steps { display: flex; flex-direction: column; gap: var(--s-md); }
.process-step {
  position: relative; display: flex; align-items: center; gap: var(--s-lg);
  padding: 22px; border-radius: var(--r-card); text-align: left;
  border: 1px solid var(--c-border); background: var(--c-surface);
  transition: border-color .3s, background .3s, transform .3s var(--ease);
  overflow: hidden; flex: 1;
}
.process-step:hover { border-color: #3A3A3A; transform: translateX(4px); }
.process-step.is-active { border-color: var(--accent-a45); background: linear-gradient(90deg, var(--accent-a12), var(--c-surface) 70%); }
.ps-num { font-size: 14px; font-weight: 700; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #0F0F0F; border: 1px solid var(--c-border); color: var(--c-text-3); flex-shrink: 0; transition: all .3s; }
.process-step.is-active .ps-num { background: var(--c-accent); color: var(--c-black); border-color: var(--c-accent); }
.ps-body { display: flex; flex-direction: column; }
.ps-en { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-text-3); }
.process-step.is-active .ps-en { color: var(--c-accent); }
.ps-es { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.ps-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; }
.ps-bar i { display: block; height: 100%; width: 0; background: var(--c-accent); }
.process-step.is-active .ps-bar i { animation: fillBar var(--step-ms, 6000ms) linear forwards; }
.process.is-paused .process-step.is-active .ps-bar i { animation: none; width: 100%; }

.process-panels { position: relative; border-radius: var(--r-card); border: 1px solid var(--c-border); background: var(--c-surface); overflow: hidden; min-height: 560px; }
.process-panel { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.process-panel.is-active { opacity: 1; visibility: visible; position: relative; }
.pp-media { position: relative; overflow: hidden; min-height: 300px; }
.pp-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 6s ease-out; }
.process-panel.is-active .pp-media img { transform: scale(1); }
.pp-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, var(--c-surface) 100%); }
.pp-content { padding: 4px var(--s-xxl) var(--s-xxl); position: relative; }
.pp-tag { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-accent); }
.pp-content h3 { font-size: 28px; letter-spacing: -0.03em; margin: 8px 0 10px; }
.pp-content p { color: var(--c-text-2); max-width: 620px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-xl); }
.chips li { font-size: 13px; font-weight: 500; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--c-border); background: #101010; color: var(--c-text-2); transition: border-color .2s, color .2s; }
.chips li:hover { border-color: var(--c-accent); color: var(--c-white); }
.chips-verbs li { color: var(--c-white); }
.chips-verbs li:last-child { background: var(--c-accent); color: var(--c-black); border-color: var(--c-accent); font-weight: 700; }

.mini-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: var(--s-xl); }
.mini-flow span { font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--c-border); background: #101010; }
.mini-flow span.is-hl { border-color: var(--c-accent); color: var(--c-accent); background: var(--accent-a06); }
.mini-flow i { font-style: normal; color: var(--c-text-3); }

/* ---------- Servicios ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-lg); }
.service-card {
  position: relative; padding: 28px; border-radius: var(--r-card);
  background: var(--c-surface); border: 1px solid var(--c-border);
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.service-card:hover { transform: translateY(-5px); border-color: rgba(0,229,255,.35); background: #171717; }
.service-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-a06); border: 1px solid var(--accent-a25); color: var(--c-accent); margin-bottom: var(--s-xl); transition: background .35s, color .35s; }
.service-icon svg { width: 24px; height: 24px; }
.service-card:hover .service-icon { background: var(--c-accent); color: var(--c-black); }
.service-card h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--c-text-2); }

.uses { margin-top: 72px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: center; padding: 48px; border-radius: 24px; border: 1px solid var(--c-border); background: radial-gradient(ellipse at 100% 0%, rgba(0,229,255,.08), transparent 55%), var(--c-surface); }
.uses-head h3 { font-size: 28px; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: var(--s-md); }
.uses-head p { color: var(--c-text-2); font-size: 15px; }
.uses-list { display: flex; flex-wrap: wrap; gap: 10px; }
.uses-list li { font-size: 15px; font-weight: 600; padding: 11px 18px; border-radius: 12px; border: 1px solid var(--c-border); background: #0F0F0F; transition: transform .25s var(--ease), border-color .25s, color .25s; cursor: default; }
.uses-list li:hover { transform: translateY(-3px); border-color: var(--c-accent); color: var(--c-accent); }
.uses-list li.is-hl { background: var(--c-accent); color: var(--c-black); border-color: var(--c-accent); }

/* ---------- Sectores ---------- */
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-xl); }
.sector-card {
  padding: var(--s-xxl); border-radius: var(--r-card); border: 1px solid var(--c-border);
  background: linear-gradient(180deg, #151515, #101010);
  transition: border-color .35s, transform .35s var(--ease);
}
.sector-card:hover { border-color: var(--accent-a45); transform: translateY(-5px); }
.sector-top { display: flex; align-items: center; gap: var(--s-lg); padding-bottom: var(--s-xl); margin-bottom: var(--s-lg); border-bottom: 1px solid var(--c-border); }
.sector-index { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: var(--accent-a12); color: var(--c-accent); border: 1px solid var(--accent-a25); }
.sector-top h3 { font-size: 24px; letter-spacing: -0.03em; text-transform: uppercase; }
.sector-card ul li { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; color: var(--c-text-2); font-weight: 500; border-bottom: 1px solid #1C1C1C; transition: color .2s, padding .3s var(--ease); }
.sector-card ul li:last-child { border-bottom: 0; }
.sector-card ul li::after { content: "→"; color: var(--c-text-3); opacity: 0; transform: translateX(-6px); transition: all .25s var(--ease); }
.sector-card ul li:hover { color: var(--c-white); padding-left: 6px; }
.sector-card ul li:hover::after { opacity: 1; transform: none; color: var(--c-accent); }

/* ---------- Filosofía ---------- */
.philo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-xl); }
.philo-card { padding: 36px var(--s-xxl); border-radius: var(--r-card); border: 1px solid var(--c-border); background: var(--c-surface); position: relative; overflow: hidden; }
.philo-card::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--c-accent); transition: width .6s var(--ease); }
.philo-card:hover::after { width: 100%; }
.philo-word { display: block; font-size: clamp(26px, 2.8vw, 36px); font-weight: 900; letter-spacing: -0.02em; margin-bottom: var(--s-md); }
.philo-card:last-child .philo-word { color: var(--c-accent); }
.philo-card p { color: var(--c-text-2); }

.journey { margin-top: 72px; padding: 48px; border-radius: 24px; border: 1px solid var(--c-border); background: #0E0E0E; }
.journey-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: var(--s-md); margin-bottom: 48px; }
.journey-head .label { margin: 0; }
.journey-head h3 { font-size: 26px; letter-spacing: -0.03em; }
.journey-track { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-lg); }
.journey-track::before { content: ""; position: absolute; left: 8px; right: 8px; top: 8px; height: 2px; background: var(--c-border); }
.journey-track::after {
  content: ""; position: absolute; left: 8px; top: 8px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent-a25), var(--c-accent));
  box-shadow: 0 0 12px var(--c-accent);
  transition: width 2.2s var(--ease);
}
.journey.is-visible .journey-track::after { width: calc(100% - 16px); }
.journey-track li { position: relative; display: flex; flex-direction: column; gap: 4px; padding-top: 36px; }
.j-dot { position: absolute; top: 0; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--c-bg); border: 2px solid var(--c-border); z-index: 1; transition: border-color .4s, background .4s, box-shadow .4s; }
.journey.is-visible .j-dot { border-color: var(--c-accent); }
.journey.is-visible li:last-child .j-dot { background: var(--c-accent); box-shadow: 0 0 16px var(--c-accent); }
.journey-track li:nth-child(1) .j-dot { transition-delay: .1s; }
.journey-track li:nth-child(2) .j-dot { transition-delay: .6s; }
.journey-track li:nth-child(3) .j-dot { transition-delay: 1.1s; }
.journey-track li:nth-child(4) .j-dot { transition-delay: 1.6s; }
.journey-track li:nth-child(5) .j-dot { transition-delay: 2.1s; }
.journey-track b { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.journey-track li:last-child b { color: var(--c-accent); }
.journey-track span:not(.j-dot) { font-size: 14px; color: var(--c-text-2); }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-xl); margin-top: var(--s-xl); }
.mv-card { padding: 40px; border-radius: 24px; border: 1px solid var(--c-border); background: var(--c-surface); }
.mv-card p { font-size: 19px; line-height: 1.55; letter-spacing: -0.01em; color: var(--c-text-2); }
.mv-card strong { color: var(--c-white); font-weight: 600; }
.mv-note { margin-top: var(--s-lg); font-size: 15px !important; color: var(--c-text-3) !important; }

/* ---------- Contacto ---------- */
.contact-section { background: radial-gradient(ellipse 60% 60% at 0% 100%, rgba(0,229,255,.08), transparent 60%); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: start; }
.next-steps { margin-top: 40px; display: flex; flex-direction: column; gap: var(--s-xl); }
.next-steps li { display: flex; gap: var(--s-lg); }
.next-steps li > span { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; font-weight: 700; font-size: 14px; border: 1px solid var(--accent-a45); color: var(--c-accent); background: var(--accent-a06); }
.next-steps b { display: block; font-size: 16px; margin-bottom: 2px; }
.next-steps p { color: var(--c-text-2); font-size: 14px; }

.contact-form { position: relative; padding: 36px; border-radius: 24px; border: 1px solid var(--c-border); background: var(--c-surface); box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: var(--s-lg); overflow: hidden; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-lg); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; color: var(--c-text-2); }
.field label small { color: var(--c-text-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: var(--r-input);
  background: #0E0E0E; border: 1px solid var(--c-border); color: var(--c-white);
  font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23B5B5B5' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field select option { background: var(--c-surface); }
.field input::placeholder, .field textarea::placeholder { color: #5A5A5A; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--accent-a12); }
.field.has-error input { border-color: #FF5C7A; }
.form-error { color: #FF5C7A; font-size: 14px; min-height: 0; }
.form-error:empty { display: none; }
.form-success {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--s-md); padding: var(--s-xxl);
  background: var(--c-surface); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.form-success.is-visible { opacity: 1; visibility: visible; }
.success-check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; font-weight: 800; background: var(--c-accent); color: var(--c-black); box-shadow: 0 0 40px var(--accent-a45); }
.form-success h3 { font-size: 24px; letter-spacing: -0.02em; }
.form-success p { color: var(--c-text-2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--c-border); padding: 72px 0 32px; background: #080808; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand p { margin-top: var(--s-xl); color: var(--c-text-3); font-size: 14px; max-width: 320px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--c-white); margin-bottom: var(--s-lg); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--c-text-2); font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--c-accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-md); margin-top: 56px; padding-top: var(--s-xl); border-top: 1px solid var(--c-border); color: var(--c-text-3); font-size: 13px; }
.footer-claim { letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes drift { from { transform: translate(0,0); } to { transform: translate(-80px, 60px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes floatDot { 0%,100% { transform: translate(0,0); opacity: .5; } 50% { transform: translate(4px,-6px); opacity: 1; } }
@keyframes ixStep { 0%, 15% { color: var(--c-black); background: var(--c-accent); border-color: var(--c-accent); } 25%, 100% { color: var(--c-text-3); background: transparent; border-color: var(--c-border); } }
@keyframes spin { from { transform: rotateX(-24deg) rotateY(0deg); } to { transform: rotateX(-24deg) rotateY(360deg); } }
@keyframes fillBar { from { width: 0; } to { width: 100%; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero { min-height: auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; }
  .process-steps { display: grid; grid-template-columns: repeat(2, 1fr); }
  .value-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .uses { grid-template-columns: 1fr; gap: var(--s-xl); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 88px 0; }
  .container { padding: 0 20px; }
  .header-actions .btn { display: none; }
  .section-head--split { grid-template-columns: 1fr; }
  .name-grid, .sector-grid, .philo-grid, .mv-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .process-panels { min-height: 600px; }
  .hero-points { grid-template-columns: 1fr; gap: var(--s-md); }
  .viewer-stages { grid-template-columns: repeat(2, 1fr); }
  .stage-btn { border-bottom: 1px solid var(--c-border); }
  .stage-progress { display: none; }
  .journey { padding: 28px; }
  .journey-track { grid-template-columns: 1fr; gap: var(--s-xl); }
  .journey-track::before, .journey-track::after { left: 8px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .journey-track::after { height: 0; transition: height 2.2s var(--ease); }
  .journey.is-visible .journey-track::after { width: 2px; height: calc(100% - 16px); }
  .journey-track li { padding: 0 0 0 36px; }
  .uses, .contact-form, .mv-card { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .value-row { flex-direction: column; gap: 4px; }
  .value-is { white-space: normal; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
