/* ============================================================
   SISTEMAS ÍCARO — styles.css
   Concepto: "Las alas de Ícaro" — dark editorial + amanecer dorado
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

/* ---------- Variables ---------- */
:root {
  --bg: #0A0A0F;
  --bg-2: #11121A;
  --bg-3: #181924;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --txt: #FAFAFA;
  --txt-2: #B6B7C5;
  --txt-3: #8A8B9B;
  --brand: #FF4D2E;
  --gold: #FFB627;
  --signal: #00D9A3;
  --grad-warm: linear-gradient(135deg, #FF4D2E 0%, #FFB627 100%);
  --grad-night: radial-gradient(ellipse at 50% -10%, rgba(255,77,46,.18) 0%, rgba(255,182,39,.08) 25%, rgba(10,10,15,0) 60%);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 30px 80px -20px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.04) inset;
  --container: 1240px;
}

[data-theme="light"] {
  --bg: #FAFAFA;
  --bg-2: #FFFFFF;
  --bg-3: #F1F2F6;
  --line: rgba(10,10,15,.08);
  --line-2: rgba(10,10,15,.16);
  --txt: #0A0A0F;
  --txt-2: #44485A;
  --txt-3: #6A6E80;
  --grad-night: radial-gradient(ellipse at 50% -10%, rgba(255,77,46,.18) 0%, rgba(255,182,39,.10) 25%, rgba(250,250,250,0) 60%);
  --shadow: 0 30px 80px -20px rgba(0,0,0,.18), 0 1px 0 rgba(255,255,255,.6) inset;
}

/* ---------- Base ---------- */
body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--txt);
  overflow-x: hidden;
}

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--txt-3); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: .6rem 1rem; z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

::selection { background: var(--brand); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -.005em;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
  line-height: 1;
}
.btn--sm { padding: .55rem .95rem; font-size: .85rem; }
.btn--lg { padding: 1rem 1.6rem; font-size: 1.02rem; }
.btn--primary {
  background: var(--grad-warm);
  color: #0A0A0F;
  box-shadow: 0 10px 30px -10px rgba(255,77,46,.55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(255,77,46,.7); }
.btn--outline {
  border-color: var(--line-2); color: var(--txt);
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,.02);
}
[data-theme="light"] .btn--outline { background: rgba(0,0,0,.02); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }
.btn--ghost {
  color: var(--txt-2);
}
.btn--ghost:hover { color: var(--brand); }

.iconbtn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  color: var(--txt-2);
  border: 1px solid var(--line);
  transition: color .2s, border-color .2s, background .2s;
}
.iconbtn:hover { color: var(--brand); border-color: var(--line-2); }
.iconbtn svg { width: 18px; height: 18px; }

#themeToggle .icon-sun { display: none; }
[data-theme="light"] #themeToggle .icon-moon { display: none; }
[data-theme="light"] #themeToggle .icon-sun { display: block; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg); /* fallback sólido (mobile / sin backdrop-filter) */
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
@supports ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .nav {
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
  }
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding-block: .85rem;
}
.nav__brand { display: inline-flex; align-items: center; gap: .65rem; }
.nav__logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 6px 18px rgba(0,0,0,.35);
  transition: transform .35s ease, box-shadow .35s ease;
}
.nav__brand:hover .nav__logo {
  transform: rotate(-12deg) scale(1.05);
  box-shadow: 0 0 0 1px rgba(255,77,46,.4), 0 10px 24px rgba(0,0,0,.45);
}
.nav__wordmark {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: .12em;
  font-size: .82rem;
  color: var(--txt);
}
.nav__wordmark strong { font-weight: 800; }
.nav__menu { display: flex; gap: 1.65rem; }
.nav__menu a {
  font-size: .92rem; font-weight: 500; color: var(--txt-2);
  position: relative;
  transition: color .2s;
}
.nav__menu a:hover { color: var(--txt); }
.nav__menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px;
  background: var(--grad-warm); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav__menu a:hover::after, .nav__menu a.is-active::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: .55rem; }

.iconbtn--menu { display: none; flex-direction: column; gap: 4px; }
.iconbtn--menu span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.iconbtn--menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.iconbtn--menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.iconbtn--menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 10vw, 8rem) clamp(4rem, 8vw, 6rem);
  isolation: isolate;
}
.hero__sky {
  position: absolute; inset: -10% -10% auto -10%; height: 110%;
  background: var(--grad-night);
  z-index: -2; pointer-events: none;
}
.hero__sky::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 65% 80%, rgba(255,255,255,.35), transparent),
    radial-gradient(2px 2px at 80% 20%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 40% 60%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 50% 15%, rgba(255,255,255,.3), transparent);
  opacity: .6;
  animation: twinkle 8s ease-in-out infinite alternate;
}
[data-theme="light"] .hero__sky::after { display: none; }
@keyframes twinkle { from { opacity: .3 } to { opacity: .8 } }

.hero__wing {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: min(80vw, 720px);
  z-index: -1;
  opacity: .9;
  pointer-events: none;
}
.hero__wing .wing-feathers path {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: featherDraw 2.6s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero__wing .wing-feathers path:nth-child(2) { animation-delay: .08s }
.hero__wing .wing-feathers path:nth-child(3) { animation-delay: .14s }
.hero__wing .wing-feathers path:nth-child(4) { animation-delay: .20s }
.hero__wing .wing-feathers path:nth-child(5) { animation-delay: .26s }
.hero__wing .wing-feathers path:nth-child(6) { animation-delay: .32s }
.hero__wing .wing-feathers path:nth-child(7) { animation-delay: .38s }
.hero__wing .wing-feathers path:nth-child(8) { animation-delay: .44s }
.hero__wing .wing-feathers path:nth-child(9) { animation-delay: .50s }
.hero__wing .wing-feathers path:nth-child(10) { animation-delay: .56s }
.hero__wing .wing-feathers path:nth-child(11) { animation-delay: .62s }
.wing-sun {
  filter: drop-shadow(0 0 18px #FFB627) drop-shadow(0 0 36px rgba(255,77,46,.6));
  animation: sunPulse 3.6s ease-in-out infinite;
}
@keyframes featherDraw { to { stroke-dashoffset: 0 } }
@keyframes sunPulse { 0%,100% { r: 6 } 50% { r: 8 } }

.hero__inner { position: relative; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .35rem .75rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.02);
  margin-bottom: 1.5rem;
}
[data-theme="light"] .hero__eyebrow { background: rgba(0,0,0,.02); }
.hero__eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--signal);
  box-shadow: 0 0 12px var(--signal);
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .3 } }

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 7.5vw, 6.6rem);
  line-height: 1;
  letter-spacing: -.025em;
  max-width: 16ch;
  margin-bottom: 1.5rem;
}
.hero__title em {
  font-style: italic;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  max-width: 56ch;
  color: var(--txt-2);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  margin-bottom: 2rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 4rem; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 2rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  max-width: 720px;
}
.hero__stats li { display: flex; flex-direction: column; gap: .25rem; }
.hero__stats .num {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--txt);
  letter-spacing: -.02em;
}
.hero__stats .lbl {
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--txt-3);
}

.hero__scrollhint {
  position: absolute; right: 0; bottom: -2rem;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--txt-3);
}
.hero__scrollhint .line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--txt-3), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine { 0% { transform: scaleY(.2); transform-origin: top } 100% { transform: scaleY(1); transform-origin: top } }

/* ---------- Section heads ---------- */
.section-head { max-width: 720px; margin-bottom: 3rem; }
.kicker { display: inline-block; margin-bottom: .85rem; color: var(--brand); }
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.section-lead { color: var(--txt-2); font-size: clamp(1rem, 1.2vw, 1.1rem); max-width: 64ch; }

section { padding-block: clamp(4rem, 8vw, 7rem); }

/* ---------- RUBRO SELECTOR ---------- */
.rubro { background:
  linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rubro__chips {
  display: flex; flex-wrap: wrap; gap: .55rem;
  margin-bottom: 1.25rem;
}
.chip {
  padding: .55rem 1rem;
  border-radius: 999px;
  background: var(--bg-3);
  color: var(--txt-2);
  font-size: .9rem;
  font-weight: 500;
  border: 1px solid var(--line);
  transition: all .2s ease;
}
.chip:hover { color: var(--txt); border-color: var(--line-2); }
.chip.is-active {
  background: var(--grad-warm);
  color: #0A0A0F;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 10px 30px -12px rgba(255,77,46,.5);
}
.rubro__feedback { color: var(--txt-3); font-size: .92rem; }
.rubro__feedback strong { color: var(--txt); }

/* ---------- BENTO (Sistemas) ---------- */
.sistemas { background: var(--bg-2); }
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.bento__card {
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.6rem 1.5rem;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  overflow: hidden;
  isolation: isolate;
}
.bento__card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, rgba(255,77,46,.16), transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
  z-index: -1;
}
.bento__card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.bento__card:hover::before { opacity: 1; }
.bento__card--lg { grid-column: span 2; }
.bento__card--xl { grid-column: span 2; grid-row: span 2; background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); }

.bento__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,77,46,.1);
  color: var(--brand);
  margin-bottom: 1.1rem;
}
.bento__icon svg { width: 22px; height: 22px; }
.bento__card .badge {
  display: inline-block;
  font-family: var(--mono); font-size: .68rem;
  text-transform: uppercase; letter-spacing: .08em;
  background: rgba(255,182,39,.12); color: var(--gold);
  padding: .2rem .55rem; border-radius: 6px;
  margin-bottom: .85rem;
}
.bento__card h3 {
  font-family: var(--serif); font-size: clamp(1.45rem, 1.8vw, 1.85rem);
  line-height: 1.1; font-weight: 400; letter-spacing: -.01em;
  margin-bottom: .55rem;
}
.bento__card p { color: var(--txt-2); font-size: .96rem; line-height: 1.55; }
.bento__bullets {
  margin-top: 1rem; display: grid; gap: .4rem;
}
.bento__bullets li {
  position: relative; padding-left: 1.1rem; font-size: .9rem; color: var(--txt-2);
}
.bento__bullets li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--grad-warm);
}

/* ---------- MODULOS ---------- */
.grid-modulos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.modcard {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.modcard:hover { transform: translateY(-2px); border-color: var(--brand); }
.modcard__icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-3);
  color: var(--brand);
  margin-bottom: .85rem;
}
.modcard__icon svg { width: 22px; height: 22px; }
.modcard h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 700; margin-bottom: .35rem; letter-spacing: -.01em; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.modcard p { color: var(--txt-2); font-size: .87rem; line-height: 1.5; }
.modcard--link { display: block; color: inherit; }
.modcard--link .modcard__more {
  font-family: var(--mono); font-size: .85rem;
  color: var(--brand);
  opacity: 0; transform: translateX(-4px);
  transition: opacity .25s ease, transform .25s ease;
}
.modcard--link:hover .modcard__more { opacity: 1; transform: translateX(0); }

.is-dimmed { opacity: .25; filter: saturate(.4); transition: opacity .35s ease, filter .35s ease; }
.is-spotlight { box-shadow: 0 0 0 1px var(--brand), 0 30px 60px -20px rgba(255,77,46,.35); transform: translateY(-2px); transition: all .3s ease; }

/* ---------- INDUSTRIAS ---------- */
.industrias { background: var(--bg-2); }
.industrias__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .75rem;
}
.indcard {
  display: flex; align-items: center; gap: .85rem;
  padding: 1rem 1.15rem;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease, border-color .2s ease;
}
.indcard:hover { transform: translateY(-2px); border-color: var(--gold); }
.indcard span { font-size: 1.5rem; line-height: 1; }
.indcard h3 { font-size: .9rem; font-weight: 600; letter-spacing: -.005em; }

/* ---------- CLIENTES + MARQUEE + MAP ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 1.4rem;
  margin-block: 2.5rem 3.5rem;
  background: linear-gradient(90deg, transparent, var(--bg-2) 6%, var(--bg-2) 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; gap: 3rem; width: max-content;
  animation: scroll 50s linear infinite;
  white-space: nowrap;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll { from { transform: translateX(0) } to { transform: translateX(-50%) } }
.logo-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--txt-2);
  letter-spacing: -.01em;
  white-space: nowrap;
  opacity: .8;
  transition: color .2s, opacity .2s;
}
.logo-mark:nth-child(3n) { font-family: var(--sans); font-style: normal; font-weight: 800; text-transform: uppercase; font-size: 1.1rem; letter-spacing: .08em; }
.logo-mark:nth-child(5n) { font-family: var(--mono); font-size: 1.05rem; font-style: normal; }
.logo-mark:hover { color: var(--brand); opacity: 1; }

.clientes__map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}
.argmap { width: 100%; height: auto; max-height: 540px; }
.argmap .pin circle { transition: r .2s, opacity .2s; cursor: pointer; }
.argmap .pin:hover circle:first-child { r: 9; }
.clientes__legend h3 { font-family: var(--serif); font-size: 2rem; font-weight: 400; margin-bottom: .85rem; }
.clientes__legend p { color: var(--txt-2); margin-bottom: 1.25rem; }
.legend__pins { display: grid; gap: .55rem; }
.legend__pins li { display: flex; align-items: center; gap: .65rem; font-size: .92rem; color: var(--txt-2); }
.legend__pins i {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}

/* ---------- REPRESENTANTES ---------- */
.reps { border-top: 1px solid var(--line); }
.reps__layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 3.5rem; align-items: center;
}
.argmap--reps { max-height: 560px; }
.rep-pin__pulse { transform-origin: center; transform-box: fill-box; animation: repPulse 2.4s ease-out infinite; }
.rep-pin__lbl {
  font-family: var(--mono);
  font-size: 12px; font-weight: 600;
  fill: var(--txt);
  paint-order: stroke;
  stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round;
}
@keyframes repPulse {
  0%   { transform: scale(1);   opacity: .9; }
  70%  { transform: scale(2.4); opacity: 0;  }
  100% { transform: scale(2.4); opacity: 0;  }
}
.reps__list { display: grid; gap: 1.1rem; }
.rep-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  transition: border-color .2s, transform .2s;
}
.rep-card:hover { border-color: var(--brand); transform: translateX(4px); }
.rep-card__zone {
  display: inline-block;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: .5rem;
}
.rep-card h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 400; margin-bottom: .45rem; }
.rep-card p { color: var(--txt-2); font-size: .95rem; margin-bottom: .9rem; }
.rep-card__soon {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; color: var(--txt-2);
}
.rep-card__soon .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold, #FFB627); flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255,182,39,.18);
}

/* ---------- POWER BI ---------- */
.powerbi { background: var(--bg-2); }
.powerbi__grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.powerbi__card {
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: .65rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.powerbi__card iframe {
  width: 100%; height: 100%;
  border: 0; border-radius: 12px;
  background: var(--bg);
}

/* ---------- POR QUÉ ---------- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.diff {
  padding: 2rem 1.6rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.diff:hover { border-color: var(--line-2); }
.diff__num {
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.diff h3 { font-family: var(--serif); font-size: 1.55rem; font-weight: 400; letter-spacing: -.01em; margin-bottom: .55rem; }
.diff p { color: var(--txt-2); font-size: .95rem; line-height: 1.55; }

/* ---------- NOSOTROS ---------- */
.nosotros { background: var(--bg-2); }
.nosotros__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem; align-items: center;
}
.nosotros__txt h2 { margin-block: .85rem 1.25rem; }
.nosotros__txt p { color: var(--txt-2); margin-bottom: 1rem; font-size: 1.02rem; }
.nosotros__pillars {
  margin-top: 2rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
.nosotros__pillars > div {
  padding-left: 1rem; border-left: 2px solid var(--brand);
}
.nosotros__pillars strong {
  display: block; font-family: var(--serif); font-size: 2rem; line-height: 1; font-weight: 400;
}
.nosotros__pillars span { display: block; font-family: var(--mono); font-size: .72rem; color: var(--txt-3); text-transform: uppercase; letter-spacing: .06em; margin-top: .35rem; }

.nosotros__art .art-card {
  position: relative; aspect-ratio: 1; max-width: 420px; margin-inline: auto;
  border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(circle at 50% 100%, rgba(255,77,46,.25), rgba(10,10,15,0) 60%), var(--bg-3);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem;
}
.art-card__sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 65% 80%, rgba(255,255,255,.35), transparent),
    radial-gradient(2px 2px at 80% 20%, rgba(255,255,255,.4), transparent);
  opacity: .5;
}
.art-card svg { width: 60%; height: auto; }
.art-card p { color: var(--gold); margin-top: 1.5rem; z-index: 1; }

/* ---------- CONTACTO ---------- */
.contacto__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
}
.contacto__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 2rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: span 2; }
.field label { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--txt-3); }
.field input, .field select, .field textarea {
  padding: .8rem 1rem;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--txt);
  font-size: .95rem;
  font-family: var(--sans);
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
}
.field textarea { resize: vertical; }
.contacto__hint { color: var(--txt-3); }

.contacto__info { display: grid; gap: .75rem; }
.ctx {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s, border-color .2s;
}
.ctx:hover { transform: translateX(2px); border-color: var(--line-2); }
.ctx--wa { background: linear-gradient(135deg, rgba(0,217,163,.1), rgba(0,217,163,.02)); border-color: rgba(0,217,163,.3); }
.ctx--wa:hover { border-color: var(--signal); }
.ctx--wa .ctx__ico { color: var(--signal); }
.ctx--static { cursor: default; }
.ctx--static:hover { transform: none; }
.ctx__ico {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-3);
  color: var(--brand);
}
.ctx__ico svg { width: 22px; height: 22px; }
.ctx__txt { display: flex; flex-direction: column; gap: .15rem; font-size: .95rem; }
.ctx__txt strong { font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--txt-3); }
.ctx__txt small { font-family: var(--mono); font-size: .68rem; color: var(--txt-3); text-transform: uppercase; letter-spacing: .06em; margin-top: .2rem; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding-block: 3.5rem 1.5rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 3rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.25rem;
}
.footer__brand { display: flex; flex-direction: column; gap: .65rem; align-items: flex-start; }
.footer__brand .nav__logo { width: 48px; height: 48px; }
.footer__brand .nav__wordmark { font-size: .85rem; }
.footer__tag { margin-top: .25rem; }
.footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer__nav h4 { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--txt-3); margin-bottom: .85rem; font-weight: 500; }
.footer__nav a { display: block; padding-block: .25rem; color: var(--txt-2); font-size: .92rem; transition: color .2s; }
.footer__nav a:hover { color: var(--brand); }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--txt-3); font-size: .78rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Tooltip (pin) ---------- */
.pin-tooltip {
  position: fixed;
  background: var(--bg-3); color: var(--txt);
  border: 1px solid var(--line-2);
  padding: .55rem .75rem;
  border-radius: 8px;
  font-size: .8rem;
  pointer-events: none;
  z-index: 200;
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.pin-tooltip strong { color: var(--brand); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__card--xl { grid-column: span 2; grid-row: span 1; }
  .bento__card--lg { grid-column: span 2; }
  .grid-modulos { grid-template-columns: repeat(3, 1fr); }
  .industrias__grid { grid-template-columns: repeat(4, 1fr); }
  .powerbi__grid { grid-template-columns: repeat(2, 1fr); }
  .powerbi__card:nth-child(3) { grid-column: span 2; }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .nosotros__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .clientes__map { grid-template-columns: 1fr; gap: 2rem; }
  .argmap { max-height: 460px; max-width: 380px; margin-inline: auto; }
  .reps__layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .argmap--reps { max-height: 480px; max-width: 360px; margin-inline: auto; order: -1; }
}

@media (max-width: 768px) {
  .nav {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--line);
  }
  .nav__menu {
    position: fixed; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.5rem 2rem;
    transform: translateY(-110%);
    transition: transform .3s ease;
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__menu a { padding-block: .9rem; border-bottom: 1px solid var(--line); }
  .nav__menu a::after { display: none; }
  .iconbtn--menu { display: inline-flex; }
  .hide-sm { display: none; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .hero__scrollhint { display: none; }
  .hero__wing { opacity: .35; right: -25%; }
  .grid-modulos { grid-template-columns: repeat(2, 1fr); }
  .industrias__grid { grid-template-columns: repeat(2, 1fr); }
  .powerbi__grid { grid-template-columns: 1fr; }
  .powerbi__card:nth-child(3) { grid-column: span 1; }
  .diff-grid { grid-template-columns: 1fr; }
  .contacto__grid { grid-template-columns: 1fr; }
  .contacto__form { grid-template-columns: 1fr; padding: 1.5rem; }
  .field--full { grid-column: span 1; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__nav { grid-template-columns: repeat(2, 1fr); }
  .nosotros__pillars { grid-template-columns: 1fr; gap: 1.25rem; }
  .logo-mark { font-size: 1.25rem; }
  .logo-mark:nth-child(3n) { font-size: .95rem; }
}

@media (max-width: 480px) {
  .bento { grid-template-columns: 1fr; }
  .bento__card--lg, .bento__card--xl { grid-column: span 1; }
  .grid-modulos { grid-template-columns: 1fr; }
  .industrias__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SUBPAGES — breadcrumb, page-hero, features, use-cases, integrations, cta
   ============================================================ */

/* breadcrumb */
.breadcrumb {
  padding-top: 1.5rem;
  padding-bottom: .25rem;
}
.breadcrumb ol {
  display: flex; flex-wrap: wrap; gap: .5rem;
  font-family: var(--mono); font-size: .78rem;
  color: var(--txt-2); letter-spacing: .04em;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: .5rem; }
.breadcrumb li + li::before { content: "›"; opacity: .5; }
.breadcrumb a { color: var(--txt-2); transition: color .2s; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current="page"] { color: var(--txt); font-weight: 600; }

/* page-hero (used in subpages, smaller than home hero) */
.page-hero {
  position: relative;
  padding: 1.5rem 0 4rem;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 60%;
  background: radial-gradient(ellipse at 80% 0%, rgba(255,182,39,.08), transparent 55%),
              radial-gradient(ellipse at 20% 30%, rgba(255,77,46,.06), transparent 60%);
  pointer-events: none;
}
.page-hero__inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
}
.page-hero__eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .08em;
  color: var(--txt-2); margin-bottom: 1.5rem;
}
.page-hero__eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 16px var(--brand);
}
.page-hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin-bottom: 1.25rem;
  color: var(--txt);
}
.page-hero__title em {
  font-style: italic;
  background: var(--grad-warm);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.page-hero__sub {
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  color: var(--txt-2);
  max-width: 56ch;
  margin-bottom: 1.75rem;
}
.page-hero__cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.page-hero__chips {
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.page-hero__chips li {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .04em;
  padding: .4rem .7rem;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--txt-2);
}
.page-hero__art {
  display: flex; align-items: center; justify-content: center;
}
.page-hero__art .ticket {
  width: 100%; max-width: 360px;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.18));
  transform: rotate(-3deg);
  transition: transform .5s ease;
}
.page-hero__art .ticket:hover { transform: rotate(-1deg) translateY(-4px); }

/* features grid (12 cards) */
.feat { padding: 4rem 0 5rem; }
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.feat-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem 1.4rem;
  transition: transform .25s ease, border-color .25s, box-shadow .25s;
  position: relative;
}
.feat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,77,46,.4);
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
}
.feat-card__icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-warm);
  color: #fff;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.feat-card__icon svg { width: 24px; height: 24px; }
.feat-card h3 {
  font-family: var(--sans);
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: .55rem;
  color: var(--txt);
}
.feat-card p {
  font-size: .92rem; color: var(--txt-2); line-height: 1.55;
}

/* use cases */
.use-cases { padding: 4rem 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.usecase {
  padding: 1.5rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.usecase h3 {
  font-family: var(--serif);
  font-weight: 400; font-style: italic;
  font-size: 1.4rem;
  margin-bottom: .65rem;
  color: var(--txt);
}
.usecase p { color: var(--txt-2); font-size: .95rem; }

/* integrations list */
.integrations { padding: 4rem 0 5rem; }
.integ-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem 2rem;
  margin-top: 2rem;
  max-width: 1000px;
}
.integ-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: .95rem;
  color: var(--txt-2);
  line-height: 1.55;
}
.integ-list li::before {
  content: "→";
  position: absolute; left: 0; top: 0;
  color: var(--brand); font-weight: 700;
}
.integ-list li strong { color: var(--txt); font-weight: 600; }

/* CTA strip (final call to action) */
.cta-strip {
  padding: 3.5rem 0 4.5rem;
  border-top: 1px solid var(--line);
}
.cta-strip__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 2.5rem;
  background: linear-gradient(135deg, rgba(255,77,46,.06), rgba(255,182,39,.04));
  border: 1px solid rgba(255,77,46,.2);
  border-radius: 22px;
}
.cta-strip h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.15;
  margin-bottom: .65rem;
  color: var(--txt);
}
.cta-strip p { color: var(--txt-2); max-width: 50ch; }
.cta-strip__btns { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: flex-end; }

/* Responsive subpages */
@media (max-width: 1024px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .page-hero__art { order: -1; max-width: 320px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .feat-grid { grid-template-columns: 1fr; }
  .usecase-grid { grid-template-columns: 1fr; }
  .integ-list { grid-template-columns: 1fr; }
  .cta-strip__inner { grid-template-columns: 1fr; padding: 2rem 1.5rem; }
  .cta-strip__btns { justify-content: flex-start; }
  .breadcrumb { padding-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__wing .wing-feathers path { stroke-dashoffset: 0; }
  .rep-pin__pulse { animation: none !important; opacity: .35; transform: none; }
}
