/* ===========================================================
   NexosAI · styles.css
   Sitio estático reconstruido 1:1 desde el diseño de Claude Design
   =========================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --bg: #0A0A0C;
  --bg-alt: #101015;
  --bg-footer: #08080A;
  --text: #FAFAFA;
  --text-soft: #F0EDED;
  --text-muted: #A8A4A8;
  --text-dim: #6E6A6E;
  --coral: #DF6759;
  --coral-soft: #E8897D;
  --malva: #897F88;
  --fluvai: #10B981;
  --fluvai-soft: #34D399;
  --hallaz: #F97316;
  --hallaz-soft: #FB923C;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --maxw: 1240px;
  --pad-x: clamp(20px, 5vw, 64px);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
::selection { background: rgba(223, 103, 89, 0.35); }

/* ---------- Keyframes ---------- */
@keyframes nx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes nx-pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes nx-scrolldot { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* ---------- Layout helpers ---------- */
.nx-wrap { position: relative; width: 100%; overflow-x: hidden; background: var(--bg); }
.nx-container { max-width: var(--maxw); margin: 0 auto; }
.nx-section { padding: clamp(80px, 11vh, 140px) var(--pad-x); background: var(--bg); }
.nx-section--alt { background: var(--bg-alt); }

.nx-eyebrow {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
}
.nx-eyebrow--muted { color: var(--text-muted); }

.nx-section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 680px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.nx-h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* ---------- Header ---------- */
.nx-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  background: rgba(10, 10, 12, 0);
  border-bottom: 1px solid rgba(255, 255, 255, 0);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.nx-header.is-scrolled {
  background: rgba(10, 10, 12, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nx-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nx-logo { display: flex; align-items: center; gap: 10px; flex: none; }
.nx-logo img { height: clamp(72px, 10vw, 96px); width: auto; }

.nx-nav { display: flex; align-items: center; gap: 42px; }
.nx-nav a {
  font-size: 17.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nx-nav a:hover { color: var(--text); }

.nx-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s, color 0.25s, background 0.25s;
}
.nx-btn--coral {
  background: var(--coral);
  color: var(--text);
}
.nx-btn--coral:hover { box-shadow: 0 0 36px rgba(223, 103, 89, 0.6); transform: translateY(-2px); }
.nx-btn--ghost {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text);
  font-weight: 500;
}
.nx-btn--ghost:hover { border-color: var(--coral); color: var(--coral); background: rgba(223, 103, 89, 0.06); }
.nx-btn--nav { padding: 9px 20px; font-size: 16px; }
.nx-btn--lg { padding: 15px 32px; font-size: 16px; }
.nx-btn--xl { padding: 17px 40px; font-size: 17px; }

/* Hamburger */
.nx-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nx-burger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; }
.nx-burger span:last-child { width: 16px; }

/* Mobile menu overlay */
.nx-mobile {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(10, 10, 12, 0.97);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: none;
  flex-direction: column;
  padding: 24px clamp(20px, 6vw, 40px);
}
.nx-mobile.is-open { display: flex; }
.nx-mobile__top { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.nx-mobile__top img { height: 24px; width: auto; }
.nx-mobile__close { width: 44px; height: 44px; background: none; border: none; cursor: pointer; color: var(--text); font-size: 28px; line-height: 1; }
.nx-mobile__nav { display: flex; flex-direction: column; gap: 6px; margin-top: 48px; }
.nx-mobile__nav a {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.nx-mobile__nav a.nx-mobile__cta {
  margin-top: 24px;
  align-self: flex-start;
  border: none;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--text);
  font-size: 17px;
}

/* ---------- Hero ---------- */
.nx-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}
.nx-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.nx-hero__canvas.nx-hero__fallback {
  background: radial-gradient(110% 90% at 60% 30%, rgba(223,103,89,0.28), rgba(137,127,136,0.14) 45%, #0A0A0C 80%);
}
.nx-hero__overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 35%, rgba(10,10,12,0) 35%, rgba(10,10,12,0.55) 78%, rgba(10,10,12,0.95) 100%);
}
.nx-hero__content {
  position: relative; z-index: 2;
  max-width: 1000px;
  padding: 120px clamp(20px, 5vw, 40px) 80px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.nx-hero__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.3rem, 6vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--text);
  max-width: 17ch;
  text-wrap: balance;
}
.nx-hero__kicker {
  margin: 16px 0 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  color: var(--coral);
  letter-spacing: -0.01em;
}
.nx-hero__lead {
  margin: 26px auto 0;
  max-width: 600px;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.6;
  color: var(--text-muted);
}
.nx-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 40px; }

/* Chips */
.nx-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 34px; max-width: 760px; }
.nx-chip {
  display: inline-flex; align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 500;
}
.nx-chip--coral  { border: 1px solid var(--coral);  box-shadow: 0 0 16px rgba(223, 103, 89, 0.30); }
.nx-chip--green  { border: 1px solid var(--fluvai); box-shadow: 0 0 16px rgba(16, 185, 129, 0.30); }
.nx-chip--orange { border: 1px solid var(--hallaz); box-shadow: 0 0 16px rgba(249, 115, 22, 0.30); }

/* Scroll indicator */
.nx-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  display: flex; justify-content: center; padding-top: 8px;
}
.nx-scroll span { width: 4px; height: 8px; border-radius: 2px; background: var(--coral); animation: nx-scrolldot 1.8s ease-in-out infinite; }

/* ---------- Cards grid ---------- */
.nx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }

.nx-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: clamp(28px, 4vw, 48px);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.nx-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.nx-card__glow { transition: background .25s ease; }
.nx-card__glow {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  filter: blur(12px);
  pointer-events: none;
}
.nx-card__glow--tl { top: -90px; left: -60px; }
.nx-card__body { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; }
.nx-card__title {
  margin-top: 22px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.015em;
  color: var(--text);
}
.nx-card__sub {
  margin-top: 6px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  color: var(--malva);
}
.nx-card__text {
  margin-top: 14px;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 42ch;
  margin-bottom: auto;
}

/* Service card variants */
/* --soluciones → CORAL #DF6759 (223,103,89) */
.nx-card--soluciones {
  background: linear-gradient(165deg, rgba(223,103,89,0.16), rgba(223,103,89,0.02) 60%);
  border: 1px solid rgba(223, 103, 89, 0.38);
}
.nx-card--soluciones .nx-card__glow--tl { background: radial-gradient(circle, rgba(223,103,89,0.28), transparent 70%); }
.nx-card--soluciones:hover { border-color: rgba(223, 103, 89, 0.60); }
.nx-card--soluciones:hover .nx-card__glow--tl { background: radial-gradient(circle, rgba(223,103,89,0.40), transparent 70%); }

/* --flow → AZUL eléctrico #4F8FF7 (79,143,247) */
.nx-card--flow {
  background: linear-gradient(165deg, rgba(79,143,247,0.16), rgba(79,143,247,0.02) 60%);
  border: 1px solid rgba(79, 143, 247, 0.38);
}
.nx-card--flow .nx-card__glow--tl { background: radial-gradient(circle, rgba(79,143,247,0.28), transparent 70%); }
.nx-card--flow:hover { border-color: rgba(79, 143, 247, 0.60); }
.nx-card--flow:hover .nx-card__glow--tl { background: radial-gradient(circle, rgba(79,143,247,0.40), transparent 70%); }

/* --geo → MORADO/violeta #A855F7 (168,85,247) */
.nx-card--geo {
  background: linear-gradient(165deg, rgba(168,85,247,0.16), rgba(168,85,247,0.02) 60%);
  border: 1px solid rgba(168, 85, 247, 0.38);
}
.nx-card--geo .nx-card__glow--tl { background: radial-gradient(circle, rgba(168,85,247,0.28), transparent 70%); }
.nx-card--geo:hover { border-color: rgba(168, 85, 247, 0.60); }
.nx-card--geo:hover .nx-card__glow--tl { background: radial-gradient(circle, rgba(168,85,247,0.40), transparent 70%); }

/* Tags / badges */
.nx-tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nx-tag--strong { background: var(--coral); color: var(--bg); font-weight: 700; }
.nx-tag--malva { background: rgba(137,127,136,0.22); border: 1px solid rgba(137,127,136,0.4); color: #C8C2C7; }
.nx-tag--coral { background: rgba(223,103,89,0.16); border: 1px solid rgba(223,103,89,0.4); color: var(--coral-soft); }

/* ---------- GEO band ---------- */
.nx-geoband {
  margin-top: clamp(40px, 6vw, 64px);
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 48px);
  background: linear-gradient(160deg, rgba(223,103,89,0.10), rgba(137,127,136,0.04) 70%);
  border: 1px solid rgba(223, 103, 89, 0.24);
  text-align: center;
}
.nx-geoband__glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(700px, 110%); height: 380px;
  background: radial-gradient(ellipse at center, rgba(223,103,89,0.16), transparent 65%);
  filter: blur(18px); pointer-events: none;
}
.nx-geoband__body { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.nx-geoband__text {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: balance;
}
.nx-geoband__text strong { color: var(--coral); font-weight: 600; }
.nx-geoband .nx-btn { margin-top: 34px; }
.nx-geoband__note { margin-top: 16px; font-size: 14px; line-height: 1.55; color: var(--malva); max-width: 46ch; text-wrap: pretty; }

/* ---------- Product cards ---------- */
.nx-product {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: clamp(28px, 4vw, 48px);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.nx-product__glow { position: absolute; top: -80px; right: -80px; width: 280px; height: 280px; border-radius: 50%; filter: blur(10px); pointer-events: none; }
.nx-product__body { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; }
.nx-product__logo { height: 40px; width: auto; align-self: flex-start; }
.nx-product__title {
  margin-top: 26px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 16ch;
}
.nx-product__kicker { margin-top: 10px; font-family: var(--font-head); font-weight: 600; font-size: 14px; }
.nx-product__text { margin-top: 14px; font-size: 15px; line-height: 1.6; color: var(--text-muted); max-width: 46ch; }
.nx-product__link {
  margin-top: 24px;
  display: inline-flex; align-self: flex-start; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px;
  font-family: var(--font-head); font-size: 15px; font-weight: 600;
  transition: background 0.25s, gap 0.25s;
}

.nx-product--fluvai {
  background: linear-gradient(165deg, rgba(16,185,129,0.10), rgba(16,185,129,0.02) 55%, rgba(255,255,255,0.01));
  border: 1px solid rgba(16, 185, 129, 0.22);
}
.nx-product--fluvai:hover { transform: translateY(-4px); box-shadow: 0 24px 60px -24px rgba(16,185,129,0.45); border-color: rgba(16,185,129,0.45); }
.nx-product--fluvai .nx-product__glow { background: radial-gradient(circle, rgba(16,185,129,0.28), transparent 70%); }
.nx-product--fluvai .nx-product__kicker { color: var(--fluvai-soft); }
.nx-product--fluvai .nx-product__link { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.4); color: var(--fluvai-soft); }
.nx-product--fluvai .nx-product__link:hover { background: rgba(16,185,129,0.22); gap: 14px; }

.nx-product--hallaz {
  background: linear-gradient(165deg, rgba(249,115,22,0.10), rgba(249,115,22,0.02) 55%, rgba(255,255,255,0.01));
  border: 1px solid rgba(249, 115, 22, 0.22);
}
.nx-product--hallaz:hover { transform: translateY(-4px); box-shadow: 0 24px 60px -24px rgba(249,115,22,0.45); border-color: rgba(249,115,22,0.45); }
.nx-product--hallaz .nx-product__glow { background: radial-gradient(circle, rgba(249,115,22,0.26), transparent 70%); }
.nx-product--hallaz .nx-product__kicker { color: var(--hallaz-soft); }
.nx-product--hallaz .nx-product__link { background: rgba(249,115,22,0.12); border: 1px solid rgba(249,115,22,0.4); color: var(--hallaz-soft); }
.nx-product--hallaz .nx-product__link:hover { background: rgba(249,115,22,0.22); gap: 14px; }

/* Fluvai WhatsApp mockup */
.nx-phone {
  margin-top: 34px; align-self: center;
  width: 100%; max-width: 282px;
  background: #0B141A;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  padding: 9px;
  box-shadow: 0 30px 60px -22px rgba(0,0,0,0.65);
}
.nx-phone__screen { border-radius: 26px; overflow: hidden; background: #ECE5DD; }
.nx-phone__bar { background: var(--fluvai); padding: 13px 15px; display: flex; align-items: center; gap: 10px; }
.nx-phone__avatar { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.22); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 15px; }
.nx-phone__name { display: flex; flex-direction: column; line-height: 1.25; }
.nx-phone__name b { color: #fff; font-weight: 600; font-size: 14px; font-family: var(--font-head); }
.nx-phone__name span { color: rgba(255,255,255,0.85); font-size: 11px; }
.nx-phone__chat { padding: 16px 13px; display: flex; flex-direction: column; gap: 10px; min-height: 178px; }
.nx-bubble { max-width: 88%; padding: 9px 12px; font-size: 12.5px; line-height: 1.45; }
.nx-bubble--out { align-self: flex-end; max-width: 82%; background: #fff; color: #15202B; border-radius: 14px 14px 4px 14px; box-shadow: 0 1px 1px rgba(0,0,0,0.08); }
.nx-bubble--in { align-self: flex-start; background: var(--fluvai); color: #fff; border-radius: 14px 14px 14px 4px; box-shadow: 0 1px 2px rgba(0,0,0,0.12); }

/* Hallaz dashboard mockup */
.nx-dash {
  margin-top: 34px; width: 100%;
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0E0E12;
  box-shadow: 0 30px 60px -22px rgba(0,0,0,0.65);
}
.nx-dash__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #17171C; border-bottom: 1px solid rgba(255,255,255,0.07); }
.nx-dash__dot { width: 10px; height: 10px; border-radius: 50%; background: #3A3A40; }
.nx-dash__url { flex: 1; margin-left: 8px; background: var(--bg); border-radius: 7px; padding: 5px 12px; font-size: 11px; color: #8A8A8A; font-family: var(--font-head); }
.nx-dash__body { padding: 18px 16px; }
.nx-dash__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.nx-dash__head b { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--text); }
.nx-dash__live { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--hallaz-soft); }
.nx-dash__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--hallaz); }
.nx-lead {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 14px; border-radius: 12px;
}
.nx-lead--active { background: rgba(249,115,22,0.09); border: 1px solid rgba(249,115,22,0.24); }
.nx-lead__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nx-lead__info b { font-weight: 600; font-size: 13px; color: var(--text); }
.nx-lead__info span { font-size: 11.5px; color: var(--text-muted); }
.nx-lead__btn { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 999px; background: var(--hallaz); color: var(--bg); font-size: 11.5px; font-weight: 600; font-family: var(--font-head); }
.nx-dash__rest { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; opacity: 0.45; }
.nx-lead--ghost { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); }
.nx-lead__bar { width: 54px; height: 9px; border-radius: 5px; background: rgba(255,255,255,0.12); }

/* ---------- Tecnología ---------- */
.nx-tech { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: clamp(40px, 6vw, 80px); align-items: start; }
.nx-tech__title {
  margin-top: 20px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}
.nx-tech__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.nx-tech__item { padding: 24px; border-radius: 18px; background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.07); }
.nx-tech__item i { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); margin-bottom: 16px; }
.nx-tech__item b { font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--text); display: block; }
.nx-tech__item p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--text-muted); }

/* ---------- Cómo trabajamos ---------- */
.nx-narrow { max-width: 1000px; margin: 0 auto; }
.nx-how__title {
  margin-top: 22px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}
.nx-how__text { margin-top: 26px; max-width: 760px; font-size: clamp(1.05rem, 1.7vw, 1.32rem); line-height: 1.62; color: var(--text-muted); text-wrap: pretty; }
.nx-how__text b { color: var(--text); font-weight: 400; }

/* ---------- CTA final ---------- */
.nx-cta { position: relative; overflow: hidden; padding: clamp(90px, 15vh, 180px) var(--pad-x); background: var(--bg); text-align: center; }
.nx-cta__glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(900px, 120%); height: 600px; background: radial-gradient(ellipse at center, rgba(223,103,89,0.20), transparent 65%); filter: blur(20px); pointer-events: none; }
.nx-cta__body { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.nx-cta__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.07;
  letter-spacing: -0.025em;
  color: var(--text);
  text-wrap: balance;
}
.nx-cta__text { margin-top: 22px; max-width: 520px; font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.6; color: var(--text-muted); }
.nx-cta .nx-btn { margin-top: 36px; }

/* ---------- Footer ---------- */
.nx-footer { background: var(--bg-footer); border-top: 1px solid rgba(255,255,255,0.07); padding: clamp(56px, 8vh, 88px) var(--pad-x) 40px; }
.nx-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px 32px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.nx-footer__brand { display: flex; flex-direction: column; gap: 18px; min-width: 200px; }
.nx-footer__brand img { height: 24px; width: auto; align-self: flex-start; opacity: 0.95; }
.nx-footer__brand p { font-size: 14px; line-height: 1.6; color: var(--text-muted); max-width: 30ch; }
.nx-footer__col h4 { font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.nx-footer__links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-muted); }
.nx-footer__links a { transition: color 0.2s; }
.nx-footer__links a:hover { color: var(--coral); }
.nx-footer__bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-top: 28px; }
.nx-footer__legal { font-size: 13px; color: var(--text-dim); max-width: 60ch; line-height: 1.5; }
.nx-footer__legal a { color: var(--text-muted); border-bottom: 1px solid rgba(168,164,168,0.4); }
.nx-footer__copy { font-size: 13px; color: var(--text-dim); }

/* ---------- Inner page (shells) ---------- */
.nx-page {
  min-height: 70vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(140px, 22vh, 240px) var(--pad-x) clamp(80px, 12vh, 140px);
}
.nx-page__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -0.025em; color: var(--text); text-wrap: balance; }
.nx-page__soon { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--coral); background: rgba(223,103,89,0.08); color: var(--coral-soft); font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.nx-page__text { margin-top: 24px; max-width: 560px; font-size: clamp(1rem, 1.6vw, 1.18rem); line-height: 1.6; color: var(--text-muted); }
.nx-page__back { margin-top: 34px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nx-nav { display: none; }
  .nx-header__inner .nx-btn--nav { display: none; }
  .nx-burger { display: flex; }
  .nx-logo img { height: 64px; }
}

/* ===========================================================
   Página Nosotros (about)
   =========================================================== */
/* Primera sección: deja aire bajo el header fijo */
.nx-section--first { padding-top: clamp(140px, 20vh, 210px); }

/* Párrafos de prosa en secciones angostas (intro / mentalidad / prueba) */
.nx-prose {
  margin-top: 26px;
  max-width: 760px;
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  line-height: 1.62;
  color: var(--text-muted);
  text-wrap: pretty;
}
.nx-prose a { color: var(--coral); font-weight: 600; transition: color 0.2s; }
.nx-prose a:hover { color: var(--coral-soft); }

/* Equipo: 4-up en desktop, 2×2 en tablet, 1 columna en móvil */
.nx-team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.nx-team { display: flex; flex-direction: column; }
.nx-team__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--malva);
}
.nx-team__name {
  margin-top: 18px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.nx-team__role {
  margin-top: 4px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
  color: var(--coral);
}
.nx-team__bio {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

@media (max-width: 960px) { .nx-team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .nx-team-grid { grid-template-columns: 1fr; } }

/* ===========================================================
   Cabecera de páginas internas (.nx-page-header)
   Banda full-bleed bajo el header, glow coral→malva en CSS puro
   (sin WebGL). Estática. Reutilizable en todas las internas.
   =========================================================== */
.nx-page-header {
  position: relative;
  overflow: hidden;
  padding: clamp(150px, 22vh, 220px) var(--pad-x) clamp(48px, 8vh, 88px);
  background: var(--bg);
}
/* Glow radial coral→malva detrás del título */
.nx-page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 50% -10%,
      rgba(223, 103, 89, 0.22),
      rgba(137, 127, 136, 0.10) 45%,
      transparent 75%);
  pointer-events: none;
}
/* Viñeta de fundido inferior hacia el fondo */
.nx-page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, var(--bg) 100%);
  pointer-events: none;
}
.nx-page-header__inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
}

/* Acciones bajo la cabecera en las shells: stack, alineado a la izquierda */
.nx-page-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
}

/* ===========================================================
   Página Contacto (canales) — reusa .nx-card; helpers mínimos
   =========================================================== */
.nx-contact .nx-card__body .nx-btn { align-self: flex-start; margin-top: 4px; }
.nx-contact-num {
  margin-top: 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}
.nx-contact-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.nx-contact-list a {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--coral);
  transition: color 0.2s;
}
.nx-contact-list a:hover { color: var(--coral-soft); }
.nx-contact-list span { color: var(--text-muted); font-family: var(--font-body); font-weight: 400; }

/* ===========================================================
   Páginas de Producto (índice + Fluvai/Hallaz)
   Acento por marca vía --accent; reusa .nx-page-header y .nx-product.
   =========================================================== */
.nx-prod--fluvai { --accent: var(--fluvai); --accent-soft: var(--fluvai-soft); --accent-rgb: 16, 185, 129; }
.nx-prod--hallaz { --accent: var(--hallaz); --accent-soft: var(--hallaz-soft); --accent-rgb: 249, 115, 22; }

/* Eyebrow tinta con el acento del producto */
.nx-prod .nx-eyebrow { color: var(--accent); }

/* Chip de estado (En línea / Próximamente) */
.nx-chip-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.10);
  color: var(--accent-soft);
}
.nx-chip-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Pilares (3 columnas) */
.nx-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: clamp(40px, 6vw, 56px);
}
.nx-pillar {
  border-radius: 22px;
  padding: clamp(26px, 3vw, 36px);
  background: linear-gradient(165deg, rgba(var(--accent-rgb), 0.08), rgba(255, 255, 255, 0.012) 60%);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
/* Hover de marca SOLO en páginas de producto (Fluvai/Hallaz). Scopeado a
   .nx-prod--fluvai/--hallaz para NO afectar a servicios (que usan .nx-prod--nexos).
   Toma el color de cada marca de --accent-rgb; el reposo no cambia. */
.nx-prod--fluvai .nx-pillar:hover,
.nx-prod--hallaz .nx-pillar:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  border-color: rgba(var(--accent-rgb), 0.55);
  background: linear-gradient(165deg, rgba(var(--accent-rgb), 0.16), rgba(255, 255, 255, 0.02) 60%);
}
.nx-pillar__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--accent-soft);
  background: rgba(var(--accent-rgb), 0.14);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
}
.nx-pillar__title { margin-top: 18px; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--text); }
.nx-pillar__text { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--text-muted); }

/* Nota de estado honesta (Hallaz) */
.nx-prod-note {
  margin-top: clamp(36px, 5vw, 48px);
  padding: 20px 24px;
  border-radius: 16px;
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* Remate + CTA de cierre del producto */
.nx-prod-cta { margin-top: clamp(40px, 6vw, 56px); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.nx-prod-remate { font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; color: var(--text-muted); }
.nx-btn--accent { background: var(--accent); color: var(--bg); }
.nx-btn--accent:hover { box-shadow: 0 0 36px rgba(var(--accent-rgb), 0.5); transform: translateY(-2px); }

/* Cierre del índice de productos */
.nx-prod-outro { margin-top: clamp(48px, 7vw, 72px); text-align: center; }
.nx-prod-outro a { color: var(--coral); font-weight: 600; }
.nx-prod-outro a:hover { color: var(--coral-soft); }

/* ===========================================================
   Páginas de Servicios — acento NexosAI (coral/malva)
   Reusa el bloque de Producto; solo añade el acento coral y helpers.
   =========================================================== */
.nx-prod--nexos { --accent: var(--coral); --accent-soft: var(--coral-soft); --accent-rgb: 223, 103, 89; }

/* Nav: enlace de la página actual resaltado */
.nx-nav a[aria-current="page"] { color: var(--text); }

/* CTA de cada tarjeta del índice de servicios */
.nx-card__cta {
  margin-top: 20px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--coral);
  transition: gap 0.2s, color 0.2s;
}
.nx-card__cta:hover { gap: 12px; color: var(--coral-soft); }

/* Subtítulo de bloque (Ejemplos de lo que…) */
.nx-prod-subhead {
  margin-top: clamp(40px, 6vw, 56px);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  letter-spacing: -0.015em;
  color: var(--text);
}

/* ===========================================================
   Documento legal (Aviso de Privacidad) — prosa larga legible
   =========================================================== */
.nx-legal { max-width: 820px; color: var(--text-muted); font-size: 1.02rem; line-height: 1.7; }
.nx-legal__updated { font-family: var(--font-head); font-size: 14px; color: var(--text-dim); }
.nx-legal > p { margin-top: 18px; text-wrap: pretty; }
.nx-legal h2 {
  margin-top: clamp(36px, 5vw, 48px);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--text);
}
.nx-legal ul { margin-top: 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.nx-legal li { line-height: 1.6; }
.nx-legal a { color: var(--coral); font-weight: 600; transition: color 0.2s; }
.nx-legal a:hover { color: var(--coral-soft); }
.nx-legal strong { color: var(--text-soft); font-weight: 600; }

/* ===========================================================
   Test GEO form (cara visible · /servicios/geo#test)
   Bloque aislado; solo tokens existentes. No modifica lo previo.
   =========================================================== */
.nx-geoform {
  scroll-margin-top: 120px;
  margin-top: clamp(40px, 6vw, 56px);
  max-width: 640px;
  padding: clamp(26px, 3vw, 40px);
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(223, 103, 89, 0.08), rgba(255, 255, 255, 0.012) 60%);
  border: 1px solid rgba(223, 103, 89, 0.22);
}
.nx-geoform__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  letter-spacing: -0.015em;
  color: var(--text);
}
.nx-geoform__intro { margin-top: 12px; font-size: 1rem; line-height: 1.6; color: var(--text-muted); }

.nx-geoform__form { margin-top: 26px; display: flex; flex-direction: column; gap: 20px; }

/* Campo */
.nx-field { display: flex; flex-direction: column; }
.nx-field__label { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--text); margin-bottom: 8px; }
.nx-field__help { font-size: 13px; line-height: 1.5; color: var(--text-dim); margin-bottom: 8px; }

.nx-field__input {
  font: inherit;
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nx-field__input::placeholder { color: var(--text-dim); }
.nx-field__input:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(223, 103, 89, 0.25);
}
.nx-field__input.is-invalid { border-color: var(--coral-soft); }

/* Checkbox */
.nx-field--check { margin-top: 2px; }
.nx-check { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.nx-check__box {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--coral);
  cursor: pointer;
}
.nx-check__text { font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.nx-check__text a { color: var(--coral); font-weight: 600; transition: color 0.2s; }
.nx-check__text a:hover { color: var(--coral-soft); }

/* Error de campo */
.nx-field-error { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--coral-soft); }

/* Botón submit: el reset global quita herencias; igualar a .nx-btn en <a> */
.nx-geoform__submit { font: inherit; appearance: none; -webkit-appearance: none; border: 0; align-self: flex-start; margin-top: 4px; }

/* Mensaje de éxito */
.nx-geoform__success {
  margin-top: 8px;
  padding: 22px 24px;
  border-radius: 16px;
  background: rgba(223, 103, 89, 0.06);
  border: 1px solid rgba(223, 103, 89, 0.22);
}
.nx-geoform__success p { font-size: 1rem; line-height: 1.65; color: var(--text-soft); }
.nx-geoform__success strong { color: var(--text); font-weight: 600; }
.nx-geoform__success:focus { outline: none; }

@media (max-width: 560px) {
  .nx-geoform { padding: 22px; }
}
