/* ZUMA DIGI TECH · sitio corporativo */

:root {
  --ac: #F95665;
  --bg: #293345;
  --bg-2: #222B3B;
  --bg-3: #313C52;
  --ink: #F7F2EC;
  --ink-dark: #1B2230;
  --mut: #B8C3D6;
  --faint: #97A3B8;
  --line: rgba(207, 229, 255, 0.13);
  --line-2: rgba(207, 229, 255, 0.26);
  --amber: #FDA022;
  --sky: #CFE5FF;
  --wine: #7C1034;
  --sand: #F5E1CE;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: 28px;
  --display: 'Montserrat', system-ui, sans-serif;
  --body: 'Poppins', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
}

/* ───────── Base ───────── */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; background: var(--bg); }
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: var(--body);
  color: var(--ink);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--ac); text-decoration: none; }
h1, h2, h3 { font-variant-numeric: tabular-nums slashed-zero; letter-spacing: -0.02em; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
button { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--ac); color: var(--ink-dark); }
input::placeholder, textarea::placeholder { color: var(--faint); }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; }

.ic {
  display: block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ac { color: var(--ac); }
.hi { color: var(--ink); font-weight: 500; }
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: block;
  flex: 0 0 auto;
  background: var(--amber);
  animation: zpulse 1.4s ease-in-out infinite;
}

@keyframes zup { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes zfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes zpulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes zbar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes zgrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.page {
  background: var(--bg);
  position: relative;
  overflow-x: clip;
  min-height: 100vh;
}
.wrap { max-width: 1320px; margin: 0 auto; position: relative; }

/* ───────── Botones ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  font-weight: 600;
}
.btn-ac {
  background: var(--ac);
  color: var(--ink-dark);
  transition: box-shadow .55s var(--ease), translate .5s var(--ease);
}
.btn-ac:hover { color: var(--ink-dark); }
.btn-sm { gap: 8px; padding: 11px 18px; font-size: 13.5px; }
.btn-sm:hover { box-shadow: 0 16px 34px -14px rgba(249, 86, 101, .75); }
.btn-lg { gap: 10px; padding: 15px 24px; font-size: 15px; }
.btn-lg:hover { box-shadow: 0 20px 44px -18px rgba(249, 86, 101, .8); }
.btn-ghost {
  gap: 10px;
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-weight: 500;
  transition: background .5s var(--ease), border-color .5s;
}
.btn-ghost:hover { background: rgba(207, 229, 255, .07); color: var(--ink); }
.btn-ghost-lg { padding: 15px 22px; font-size: 15px; }
.btn-ghost-lg:hover { border-color: rgba(207, 229, 255, .45); }
.btn-ghost-block {
  margin-top: 10px;
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 14.5px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .5s var(--ease), color .5s, border-color .5s;
}

/* ───────── Header ───────── */
.hdr {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(41, 51, 69, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr-in {
  max-width: 1320px;
  margin: 0 auto;
  padding: 11px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  flex: 0 0 auto;
  color: var(--ink);
}
.logo-tile {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #F95665, #FB7E51 55%, #FDA022);
  color: var(--ink-dark);
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
}
.logo-txt { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: 0.02em; }
.logo-tag { margin-top: 4px; font-size: 9px; font-weight: 600; letter-spacing: 0.22em; color: var(--faint); }
.nav { display: flex; align-items: center; gap: 30px; font-size: 13.5px; font-weight: 500; }
.nav a { color: var(--mut); transition: color .4s ease; }
.nav a:hover { color: var(--ink); }
.hdr-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.progress {
  height: 2px;
  background: linear-gradient(90deg, #F95665, #FB7E51 55%, #FDA022);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ───────── Hero ───────── */
.hero { position: relative; padding: clamp(40px, 6vw, 86px) var(--gutter) clamp(52px, 6vw, 92px); }
.hero-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(207, 229, 255, 0.2) 1.1px, transparent 1.6px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(80% 90% at 30% 30%, #000, transparent 75%);
  mask-image: radial-gradient(80% 90% at 30% 30%, #000, transparent 75%);
  animation: zfade 1.4s ease-out both;
}
.hero-slash { position: absolute; top: 0; right: 0; bottom: 0; width: 44%; pointer-events: none; }
.hero-slash-fill, .hero-slash-edge { position: absolute; inset: 0; }
.hero-slash-fill {
  background: linear-gradient(160deg, rgba(249, 86, 101, 0.13), rgba(253, 160, 34, 0.05) 70%);
  clip-path: polygon(42% 0, 100% 0, 100% 100%, 0 100%);
  animation: zfade 1.6s .3s ease-out both;
}
.hero-slash-edge {
  background: linear-gradient(180deg, #F95665, #FDA022);
  clip-path: polygon(42% 0, 42.5% 0, 0.5% 100%, 0 100%);
  animation: zfade 1.2s .6s ease-out both;
}
.hero-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--faint);
  animation: zfade 1s ease-out both;
}
.pillars { margin: 0; font-weight: inherit; }
.pillar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: clamp(12px, 2vw, 30px);
  padding: clamp(12px, 1.6vw, 22px) 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  animation: zup 1s var(--ease) both;
}
.pillar-n {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ac);
  transform: translateY(-0.6em);
}
.pillar-t {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(32px, 5.8vw, 86px);
  line-height: 1;
  letter-spacing: -0.04em;
  transition: transform .6s var(--ease);
}
.pillar-chip {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mut);
  opacity: .6;
  transition: opacity .5s ease, transform .6s var(--ease);
}
.pillar:hover .pillar-t { transform: translateX(14px); }
.pillar:hover .pillar-chip { opacity: 1; transform: translateX(-6px); }

.hero-grid {
  margin-top: clamp(26px, 3.4vw, 44px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.hero-copy { min-width: 0; animation: zup .9s .55s var(--ease) both; }
.hero-copy p {
  margin: 0;
  max-width: 44ch;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.7;
  color: var(--mut);
}
.hero-ctas { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-feed { min-width: 0; animation: zup 1s .7s var(--ease) both; }
.feed-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
  padding: 16px 16px 10px;
}
.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.feed-head > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--mut);
}
.feed-via { font-size: 10.5px; font-weight: 500; color: var(--faint); }
.feed-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  margin: 4px 0;
  border-left: 2px solid transparent;
  background: transparent;
  opacity: .55;
  color: var(--faint);
  transition: background .6s ease, opacity .6s ease, border-color .6s ease, color .6s ease;
}
.feed-row.on { border-left-color: var(--ac); background: rgba(249, 86, 101, 0.12); opacity: 1; color: var(--ac); }
.feed-t { flex: 0 0 auto; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.feed-x { font-size: 13px; line-height: 1.4; color: var(--ink); }

/* ───────── Secciones: comunes ───────── */
.intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(18px, 3vw, 56px);
  align-items: end;
}
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; color: var(--ac); }
.micro { font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; color: var(--faint); }
.h2 { margin: 14px 0 0; font-family: var(--display); font-weight: 800; }
.h2-a { font-size: clamp(30px, 4.2vw, 54px); line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }
.h2-b { font-size: clamp(32px, 4.6vw, 60px); line-height: .98; letter-spacing: -0.04em; }
.h2-c { font-size: clamp(34px, 5vw, 64px); line-height: .96; letter-spacing: -0.04em; }
.lead { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--mut); }
/* Solo se ocultan si hay JS, para que el contenido siempre sea visible y rastreable. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ───────── 01 · Productos ───────── */
.sec-prod {
  scroll-margin-top: 64px;
  position: relative;
  background: var(--bg-2);
  padding: clamp(56px, 7vw, 100px) var(--gutter) calc(4vw + clamp(56px, 7vw, 100px));
}
.t-neura {
  --p-bg: #252F9C; --p-ink: #F7F2EC; --p-mut: rgba(247, 242, 236, 0.78);
  --p-acc: #CFE5FF; --p-acc-ink: #1B2230; --p-line: rgba(207, 229, 255, 0.2);
}
.t-app {
  --p-bg: #013E37; --p-ink: #F2EFE4; --p-mut: rgba(242, 239, 228, 0.76);
  --p-acc: #FFEFB3; --p-acc-ink: #013E37; --p-line: rgba(255, 239, 179, 0.18);
}
.tabs { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.prod-tab {
  position: relative;
  overflow: hidden;
  gap: 10px;
  color: var(--ink);
  border-color: var(--line-2);
}
.prod-tab.on { border-color: rgba(255, 255, 255, 0.35); background: var(--p-bg); }
.swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--p-bg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
  display: block;
}
.prod-tab .bar {
  display: none;
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--p-acc);
  transform-origin: 0 50%;
}
.prod-tab.on .bar { display: block; animation: zgrow 7s linear both; }
.stage {
  position: relative;
  background: var(--p-bg);
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%);
  transition: background .7s var(--ease);
  padding: clamp(24px, 3.4vw, 52px);
  overflow: hidden;
}
.stage-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.12) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(60% 80% at 100% 0%, #000, transparent 70%);
  mask-image: radial-gradient(60% 80% at 100% 0%, #000, transparent 70%);
}
.prod-panel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr));
  gap: clamp(26px, 4vw, 64px);
  align-items: center;
  color: var(--p-ink);
}
.prod-panel[hidden], .need-panel[hidden] { display: none; }
.prod-copy { min-width: 0; animation: zup .7s var(--ease) both; }
.prod-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--p-acc);
}
.prod-state .dot { background: var(--p-acc); animation-duration: 1.6s; }
.prod-name {
  margin: 14px 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: .94;
  letter-spacing: -0.045em;
}
.prod-tagline {
  margin: 14px 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.prod-body { margin: 14px 0 0; max-width: 44ch; font-size: 14.5px; line-height: 1.7; color: var(--p-mut); }
.feats {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 0 22px;
}
.feat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--p-line);
  font-size: 13.5px;
  line-height: 1.4;
}
.feat .ic { color: var(--p-acc); }
.visit {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 10px;
  background: var(--p-acc);
  color: var(--p-acc-ink);
  font-weight: 600;
  font-size: 14px;
  transition: transform .55s var(--ease);
}
.visit:hover { transform: translateY(-2px); color: var(--p-acc-ink); }
.prod-visual { min-width: 0; animation: zup .8s .12s var(--ease) both; }
.shot {
  position: relative;
  height: clamp(280px, 30vw, 400px);
  border: 1px solid var(--p-line);
  background: rgba(255, 255, 255, 0.05);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
  display: grid;
  place-items: center;
  font-size: 13px;
  color: rgba(247, 242, 236, 0.55);
  overflow: hidden;
}
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Mock de ZumaApp */
.mock {
  background: #F7F7F2;
  border-radius: 16px;
  padding: 14px;
  color: #0C201C;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6);
}
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 2px 12px; }
.mock-brand { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.mock-z {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #013E37;
  color: #FFEFB3;
  font-family: var(--display);
  font-weight: 800;
  font-size: 12px;
  display: grid;
  place-items: center;
}
.mock-date { font-size: 10.5px; color: #5B6B65; }
.kpis { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.kpi { background: #FFFFFF; border: 1px solid rgba(1, 62, 55, 0.1); border-radius: 12px; padding: 12px; }
.kpi-dark { background: #013E37; border: 0; }
.kpi-k { font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; color: #5B6B65; }
.kpi-v { margin-top: 6px; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.kpi-d { margin-top: 3px; font-size: 10.5px; }
.kpi-dark .kpi-k, .kpi-dark .kpi-d { color: #FFEFB3; }
.kpi-dark .kpi-v { font-size: 18px; color: #FFFFFF; }
.spark { margin-top: 8px; display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.spark span {
  flex: 1;
  background: #FFEFB3;
  opacity: .75;
  border-radius: 1px;
  transform-origin: 50% 100%;
  animation: zbar .9s var(--ease) both;
}
.salon { margin-top: 8px; }
.salon-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 10px; color: #5B6B65; }
.mesas { margin-top: 10px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.mesa {
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid;
}
.mesa.busy { background: rgba(77, 124, 89, 0.16); color: #013E37; border-color: rgba(77, 124, 89, 0.35); }
.mesa.free { background: #F1F0E8; color: #7A8680; border-color: rgba(1, 62, 55, 0.08); }
.mesa.pay { background: rgba(233, 199, 102, 0.34); color: #6B4A00; border-color: rgba(201, 150, 30, 0.5); animation: zpulse 1.4s ease-in-out infinite; }

/* ───────── 02 · A la medida ───────── */
.sec-medida {
  scroll-margin-top: 30px;
  position: relative;
  z-index: 3;
  margin: -4vw 0;
  background: var(--sand);
  color: var(--bg);
  clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 4vw), 0 100%);
  padding: calc(4vw + clamp(48px, 6vw, 84px)) var(--gutter) calc(4vw + clamp(52px, 6vw, 88px));
}
.needs { margin-top: clamp(26px, 3vw, 40px); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.needs-label { font-family: var(--display); font-weight: 700; font-size: 15px; margin-right: 6px; }
.need { gap: 9px; border-color: rgba(41, 51, 69, 0.3); color: var(--bg); }
.need.on { background: var(--bg); border-color: var(--bg); color: var(--sand); }
.need-stage {
  margin-top: 18px;
  background: var(--bg);
  color: var(--ink);
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
  padding: clamp(22px, 3vw, 44px);
}
.need-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: clamp(22px, 4vw, 64px);
}
.need-copy { min-width: 0; animation: zup .6s var(--ease) both; }
.need-copy h3 {
  margin: 12px 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.need-copy p { margin: 14px 0 0; max-width: 46ch; font-size: 14.5px; line-height: 1.7; color: var(--mut); }
.proof {
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(253, 160, 34, 0.1);
  border-left: 2px solid var(--amber);
  font-size: 13px;
  line-height: 1.55;
}
.proof .ic { color: var(--amber); margin-top: 2px; }
.proof b { font-weight: 600; }
.need-list { min-width: 0; animation: zup .7s .08s var(--ease) both; }
.need-list ul { margin-top: 10px; }
.need-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.need-list .ic { color: var(--ac); }
.proc { margin-top: clamp(30px, 4vw, 52px); position: relative; }
.proc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.proc-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.015em; }
.proc-note { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; color: var(--wine); }
.procbar { position: relative; height: 2px; background: rgba(41, 51, 69, 0.16); }
.procline { position: absolute; inset: 0; background: var(--wine); transform: scaleX(0); transform-origin: 0 50%; }
.steps { gap: clamp(16px, 2vw, 32px); }
.step { position: relative; padding-top: 20px; }
.step-dot {
  position: absolute;
  top: -6px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sand);
  border: 2px solid var(--wine);
  display: block;
}
.step-w { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; color: var(--wine); }
.step-t { margin-top: 8px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; line-height: 1.15; }
.step p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.6; color: #4E586B; }

/* ───────── 03 · Agentes ───────── */
.sec-agentes {
  scroll-margin-top: 30px;
  position: relative;
  padding: calc(4vw + clamp(56px, 7vw, 100px)) var(--gutter) clamp(56px, 7vw, 100px);
}
.ag-glow, .ag-dots { position: absolute; inset: 0; pointer-events: none; }
.ag-glow {
  background:
    radial-gradient(40% 50% at 28% 52%, rgba(37, 47, 156, 0.42), transparent 70%),
    radial-gradient(30% 40% at 90% 20%, rgba(20, 102, 195, 0.18), transparent 70%);
}
.ag-dots {
  background-image: radial-gradient(circle, rgba(207, 229, 255, 0.16) 1px, transparent 1.5px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(60% 60% at 30% 55%, #000, transparent 75%);
  mask-image: radial-gradient(60% 60% at 30% 55%, #000, transparent 75%);
}
.agrid {
  margin-top: clamp(28px, 3.4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
}
.diagram { position: relative; width: 100%; aspect-ratio: 4 / 3; min-width: 0; }
.diagram canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.diagram-badge {
  position: absolute;
  left: 50%;
  top: -2%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34, 43, 59, 0.85);
  border: 1px solid rgba(207, 229, 255, 0.2);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--sky);
  white-space: nowrap;
}
.node {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(253, 160, 34, 0.7);
  background: var(--bg-3);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .6);
  transition: background .45s var(--ease), color .45s, box-shadow .45s, border-color .45s;
}
.node.on { background: var(--ac); color: var(--ink-dark); border-color: var(--ac); box-shadow: 0 16px 36px -14px rgba(249, 86, 101, .8); }
.node-d {
  position: absolute;
  transform: translate(-50%, -50%);
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  white-space: nowrap;
}
.toollist { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.node-l, .node-l.on { gap: 9px; padding: 12px 13px; border-radius: 12px; font-size: 13px; text-align: left; box-shadow: none; }
.tool-wrap { min-width: 0; }
.tool-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  padding: clamp(18px, 2.4vw, 30px);
}
.tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.tool-name {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.015em;
}
.tool-name .ic { color: var(--ac); }
.tool-block { margin-top: 16px; animation: zup .5s var(--ease) both; }
.tool-block.tool-ask { margin-top: 18px; }
.tool-exec { margin-top: 16px; }
.tool-exec .micro { display: block; animation: zfade .5s .2s both; }
.bubble { margin-top: 8px; padding: 13px 15px; font-size: 14px; line-height: 1.55; }
.bubble-q { border-radius: 14px 14px 14px 4px; background: var(--bg-3); }
.bubble-a { border-radius: 14px 14px 4px 14px; background: rgba(249, 86, 101, 0.12); border: 1px solid rgba(249, 86, 101, 0.35); }
.calls { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.call {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(20, 102, 195, 0.14);
  border: 1px solid rgba(20, 102, 195, 0.35);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--sky);
  overflow-wrap: anywhere;
  animation: zup .5s var(--ease) both;
}
.call b { color: var(--amber); font-weight: 400; }
.rels { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 7px; }
.rel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(253, 160, 34, 0.55);
  background: rgba(253, 160, 34, 0.1);
  font-size: 12px;
  font-weight: 600;
  color: #FFD9A3;
}
.mcp-grid { margin-top: clamp(28px, 3.4vw, 48px); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.mcp-what { background: #252F9C; padding: 20px 22px; }
.mcp-what p { margin: 10px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--ink); }
.principle { background: var(--bg); padding: 20px 22px; }
.principle h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.principle .ic { color: var(--ac); }
.principle p { margin: 9px 0 0; font-size: 13px; line-height: 1.6; color: var(--mut); }

/* ───────── Contacto ───────── */
.sec-contacto {
  scroll-margin-top: 64px;
  position: relative;
  background: var(--bg-2);
  padding: clamp(56px, 7vw, 100px) var(--gutter) clamp(44px, 5vw, 72px);
  overflow: hidden;
}
.ct-glow {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 38%;
  pointer-events: none;
  background: linear-gradient(200deg, rgba(249, 86, 101, 0.12), rgba(253, 160, 34, 0.03) 70%);
  clip-path: polygon(45% 0, 100% 0, 100% 100%, 0 100%);
}
.ct-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.ct-list { margin-top: 28px; border-top: 1px solid rgba(207, 229, 255, 0.24); }
.ct-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.ct-row dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--faint);
}
.ct-row dt .ic { color: var(--ac); }
.ct-row dd { font-size: 14.5px; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.ct-row dd a { color: var(--ink); }
.form-card {
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
  padding: clamp(22px, 3vw, 36px);
}
.interests { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.interest {
  gap: 8px;
  padding: 9px 14px;
  font-size: 13px;
  border-color: var(--line-2);
  color: var(--ink);
  transition: background .45s var(--ease), color .45s, border-color .45s;
}
.interest.on { background: var(--ac); border-color: var(--ac); color: var(--ink-dark); }
.field { display: flex; flex-direction: column; gap: 6px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  outline: none;
}
.field textarea { line-height: 1.55; resize: vertical; }
.field:focus-within .micro { color: var(--ac); }
.submit {
  margin-top: 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border: none;
  border-radius: 10px;
  background: var(--ac);
  color: var(--ink-dark);
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: box-shadow .55s var(--ease), transform .55s var(--ease);
}
.submit:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -18px rgba(249, 86, 101, .8); }
.form-msg { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--mut); }

/* ───────── Footer ───────── */
.ftr { border-top: 1px solid var(--line); background: var(--bg); }
.ftr-in {
  max-width: 1320px;
  margin: 0 auto;
  padding: 22px var(--gutter) 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--faint);
}
.ftr-links { display: flex; gap: 22px; flex-wrap: wrap; }
.ftr-links a { color: var(--mut); }

/* ───────── Responsive ───────── */
@media (max-width: 1100px) {
  .agrid { grid-template-columns: minmax(0, 1fr); }
  .diagram { max-width: 760px; margin: 0 auto; }
}
@media (max-width: 1040px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .procbar { display: none; }
  /* Sin la barra horizontal, los pasos se vuelven una línea de tiempo vertical. */
  .steps { row-gap: 0; }
  .step { padding: 0 0 24px 24px; border-left: 2px solid rgba(124, 16, 52, 0.22); }
  .step-dot { top: 1px; left: -6px; }
  .step-t { margin-top: 4px; }
}

/* Tablet / móvil: menú desplegable */
@media (max-width: 880px) {
  .menu-btn { display: grid; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--gutter) 14px;
    background: rgba(34, 43, 59, 0.97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .3s ease, transform .3s var(--ease), visibility 0s .3s;
  }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .hdr.open .nav { visibility: visible; opacity: 1; transform: none; transition: opacity .3s ease, transform .3s var(--ease); }
}

/* Móvil: la red se ve en cuadrado y los sistemas quedan como íconos;
   los nombres van en los botones de abajo. */
@media (max-width: 760px) {
  .diagram { aspect-ratio: 1 / 1; max-width: 520px; margin: 18px auto 0; }
  .diagram-badge { top: -4%; font-size: 9.5px; padding: 5px 10px; }
  .node-d { width: 40px; height: 40px; padding: 0; gap: 0; justify-content: center; font-size: 0; }
  .node-d .ic { width: 17px; height: 17px; }
  .toollist { display: grid; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .hdr-in { gap: 12px; }
  .btn-sm { padding: 10px 14px; font-size: 13px; }
  .hero-top { font-size: 10px; letter-spacing: 0.12em; }
  .hero-top .ac { display: none; }
  .hero-slash { width: 60%; opacity: .7; }
  .hero-slash-edge { animation: none; opacity: .4; }
  .pillar { gap: 6px 12px; }
  .pillar-chip { margin-left: 0; flex-basis: 100%; opacity: .8; }
  .hero-ctas .btn { flex: 1 1 100%; justify-content: center; }
  .stage { clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%); }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi-dark { grid-column: 1 / -1; }
  .mesas { grid-template-columns: repeat(4, 1fr); }
  .need { flex: 1 1 calc(50% - 10px); justify-content: center; padding: 11px 12px; font-size: 13px; }
  .needs-label { flex-basis: 100%; }
  .ct-row { flex-wrap: wrap; gap: 6px 16px; }
  .ftr-in { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .g4 { grid-template-columns: minmax(0, 1fr); }
  .step:last-child { padding-bottom: 0; border-left-color: transparent; }
  .toollist { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 380px) {
  .logo-txt { display: none; }
  .need { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
