/* ============================================================
   n-Inteligente — Landing institucional v2 (premium)
   Paleta: Azul noche #081728 · Azul profundo #0C2A48 ·
           Dorado #E5AA55 · Blanco cálido #FBF8F3
   Tipografía: Poppins
   ============================================================ */

:root {
  --night: #081728;
  --night-deep: #06121F;
  --navy: #0C2A48;
  --navy-2: #0E3354;
  --gold: #E5AA55;
  --gold-deep: #B07F33;
  --sand: #F3C689;
  --warm-white: #FBF8F3;
  --warm-gray: #F3EFE7;
  --ink: #4A4A4A;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--warm-white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

@keyframes ni-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes ni-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

section { scroll-margin-top: 80px; }

/* ---------- Texturas ---------- */
.dotted {
  position: relative;
}

.dotted::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 23, 40, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 170, 85, 0.18);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 16px;
  padding-bottom: 16px;
}

.site-header .logo img { height: 36px; display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--gold); }

.site-nav .nav-cta {
  color: var(--gold);
  font-weight: 600;
  padding: 11px 24px;
  border: 1px solid rgba(229, 170, 85, 0.55);
  border-radius: 999px;
  transition: background 0.25s, color 0.25s;
}

.site-nav .nav-cta:hover {
  background: var(--gold);
  color: var(--night);
}

/* ---------- Botones ---------- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--gold);
  color: var(--night);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(229, 170, 85, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(229, 170, 85, 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(229, 170, 85, 0.08);
}

.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 15px 6px;
  border-bottom: 1px solid rgba(229, 170, 85, 0.5);
  transition: color 0.2s, border-color 0.2s;
}

.link-underline:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ---------- Etiqueta editorial (eyebrow) ---------- */
.eyebrow-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.eyebrow-line .rule {
  width: 44px;
  height: 1px;
  background: var(--gold);
}

.eyebrow-line p {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(170deg, #081728 0%, #0C2A48 58%, #0E3354 100%);
  position: relative;
  overflow: hidden;
}

.hero .glow-tr,
.hero .glow-bl {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero .glow-tr {
  top: -260px; right: -140px;
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(229, 170, 85, 0.13) 0%, rgba(229, 170, 85, 0) 65%);
}

.hero .glow-bl {
  bottom: -300px; left: -200px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(31, 76, 116, 0.5) 0%, rgba(31, 76, 116, 0) 70%);
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
  padding-top: 96px;
  position: relative;
  z-index: 1;
}

.hero-copy {
  flex: 1.25;
  min-width: 340px;
  padding-bottom: 72px;
}

.hero h1 {
  margin: 0 0 26px;
  color: var(--white);
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.12;
  font-weight: 300;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.hero h1 strong { font-weight: 600; }

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.hero-sub {
  margin: 0 0 40px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16.5px;
  line-height: 1.75;
  font-weight: 300;
  max-width: 500px;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---------- Hero: mapa de inteligencia ---------- */
.hero-visual {
  flex: 1;
  min-width: 320px;
  display: flex;
  justify-content: center;
  align-self: flex-end;
}

.hero-visual-stage {
  position: relative;
  width: 100%;
  max-width: 460px;
  min-height: 480px;
}

.hero-visual-stage svg.netmap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.netmap .pulse { animation: ni-pulse 3s ease-in-out infinite; }

.node-chip {
  position: absolute;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 13px 18px;
  box-shadow: 0 14px 30px rgba(4, 16, 30, 0.35);
}

.node-chip strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.5px;
}

.node-chip small {
  display: block;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
  font-weight: 300;
}

.node-chip.gold {
  background: rgba(229, 170, 85, 0.14);
  border-color: rgba(229, 170, 85, 0.45);
}

.node-chip.gold strong { color: var(--sand); }
.node-chip.gold small { color: rgba(243, 198, 137, 0.75); }

.chip-talento { top: 64px; left: 6px; animation: ni-float 6s ease-in-out infinite; }
.chip-procesos { top: 84px; right: 0; }
.chip-datos { bottom: 96px; right: 8px; }
.chip-ia { bottom: 76px; left: 14px; animation: ni-float 7s ease-in-out 1.2s infinite; }

.center-tag {
  position: absolute;
  top: 218px;
  left: 50%;
  transform: translateX(-50%);
  margin-left: 10px;
  white-space: nowrap;
  pointer-events: none;
}

.center-tag span {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding-left: 18px;
}

/* ---------- Hero: franja de audiencias ---------- */
.hero-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  z-index: 1;
}

.hero-strip .container {
  display: flex;
  flex-wrap: wrap;
  padding-top: 26px;
  padding-bottom: 26px;
  gap: 0;
}

.hero-strip .cell {
  flex: 1;
  min-width: 200px;
  padding: 6px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-strip .cell:first-child { padding-left: 0; }
.hero-strip .cell:last-child { padding-right: 0; border-right: none; }

.hero-strip strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--white);
}

.hero-strip small {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
  margin-top: 2px;
}

/* ---------- Secciones editoriales ---------- */
.section { padding-top: 110px; padding-bottom: 110px; }

.editorial {
  display: flex;
  gap: 72px;
  flex-wrap: wrap;
}

.editorial-label {
  flex: 0 0 200px;
  min-width: 180px;
}

.editorial-label .num {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.editorial-label .num span:first-child {
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
}

.editorial-label .num .rule {
  width: 32px;
  height: 1px;
  background: var(--gold);
  transform: translateY(-4px);
}

.editorial-label p {
  margin: 10px 0 0;
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.editorial-body { flex: 1; min-width: 340px; }

h2.display {
  margin: 0 0 28px;
  color: var(--navy);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

h2.display strong { font-weight: 600; }

.lead {
  margin: 0;
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.85;
  font-weight: 300;
  text-wrap: pretty;
}

.lead strong { font-weight: 600; color: var(--navy); }

.two-col {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.two-col .lead { flex: 1; min-width: 280px; }

/* ---------- Pilares (quiénes somos) ---------- */
.pillars {
  display: flex;
  flex-wrap: wrap;
  margin-top: 56px;
  border-top: 1px solid rgba(12, 42, 72, 0.12);
}

.pillars .pillar {
  flex: 1;
  min-width: 220px;
  padding: 28px 32px 0;
  border-right: 1px solid rgba(12, 42, 72, 0.12);
}

.pillars .pillar:first-child { padding-left: 0; }
.pillars .pillar:last-child { padding-right: 0; border-right: none; }

.pillars strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pillars p {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
  font-weight: 300;
  line-height: 1.7;
}

/* ---------- Servicios ---------- */
.services {
  background: var(--warm-gray);
  position: relative;
  overflow: hidden;
}

.services .glow {
  position: absolute;
  top: 0; right: -120px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 170, 85, 0.12) 0%, rgba(229, 170, 85, 0) 70%);
  pointer-events: none;
}

.services .editorial { margin-bottom: 64px; }
.services .container { position: relative; }

.service-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
  padding: 34px 28px;
  border-top: 1px solid rgba(12, 42, 72, 0.14);
  border-radius: 18px;
  transition: background 0.25s, box-shadow 0.25s;
}

.service-row:last-of-type { border-bottom: 1px solid rgba(12, 42, 72, 0.14); }

.service-row:hover {
  background: var(--white);
  box-shadow: 0 16px 40px rgba(12, 42, 72, 0.08);
}

.service-row .idx {
  flex: 0 0 64px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(12, 42, 72, 0.3);
}

.service-row .icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(229, 170, 85, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-row .title { flex: 1.1; min-width: 220px; }

.service-row .title strong {
  display: block;
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.service-row .title small {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold-deep);
  letter-spacing: 0.5px;
}

.service-row > p {
  flex: 1.4;
  min-width: 260px;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink);
  font-weight: 300;
  text-wrap: pretty;
}

.service-row .arrow {
  flex: 0 0 auto;
  font-size: 18px;
  color: var(--gold-deep);
}

/* ---------- Banner Conexión Social (en servicios) ---------- */
.social-banner {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #0C2A48 0%, #0E3354 100%);
  border-radius: 20px;
  padding: 32px 36px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.social-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(12, 42, 72, 0.3);
}

.social-banner .glow {
  position: absolute;
  top: -80px; right: -40px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 170, 85, 0.22) 0%, rgba(229, 170, 85, 0) 70%);
  pointer-events: none;
}

.social-banner .icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(229, 170, 85, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-banner .text { flex: 1; min-width: 260px; position: relative; }

.social-banner .text strong {
  display: block;
  font-size: 19px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.social-banner .text span {
  display: block;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 300;
}

.social-banner .link {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
}

/* ---------- Diferenciadores ---------- */
.diff {
  background: linear-gradient(170deg, #081728 0%, #0C2A48 100%);
  position: relative;
  overflow: hidden;
}

.diff .container { position: relative; }
.diff .editorial { margin-bottom: 64px; }
.diff .editorial-label p { color: var(--white); }
.diff h2.display { color: var(--white); }

.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0 56px;
}

.diff-item {
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.diff-item strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.diff-item strong .dash {
  color: var(--gold);
  margin-right: 12px;
}

.diff-item p {
  margin: 0 0 0 26px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 300;
  line-height: 1.7;
}

/* ---------- Conexión Social ---------- */
.conexion {
  background: var(--warm-white);
  position: relative;
  overflow: hidden;
}

.conexion .glow {
  position: absolute;
  bottom: -200px; right: -160px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 170, 85, 0.14) 0%, rgba(229, 170, 85, 0) 70%);
  pointer-events: none;
}

.conexion .container { position: relative; }
.conexion .editorial-body { flex: 1.3; }

.conexion-list {
  display: flex;
  flex-direction: column;
  margin-top: 36px;
  border-top: 1px solid rgba(12, 42, 72, 0.12);
}

.conexion-list span.item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid rgba(12, 42, 72, 0.12);
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 400;
}

.conexion-list .arrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
}

.conexion-quote-wrap {
  flex: 1;
  min-width: 300px;
  display: flex;
  align-items: center;
}

.conexion-quote {
  background: linear-gradient(150deg, #0C2A48 0%, #0E3354 100%);
  border-radius: 24px;
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(12, 42, 72, 0.25);
  width: 100%;
}

.conexion-quote .ring1,
.conexion-quote .ring2 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.conexion-quote .ring1 {
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border: 1px solid rgba(229, 170, 85, 0.25);
}

.conexion-quote .ring2 {
  top: -30px; right: -30px;
  width: 160px; height: 160px;
  border: 1px solid rgba(229, 170, 85, 0.18);
}

.conexion-quote .qmark {
  display: block;
  font-size: 44px;
  color: var(--gold);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 18px;
}

.conexion-quote p {
  margin: 0 0 26px;
  color: var(--white);
  font-size: 19px;
  line-height: 1.65;
  font-weight: 300;
  font-style: italic;
  text-wrap: pretty;
}

.conexion-quote .attribution {
  display: flex;
  align-items: center;
  gap: 12px;
}

.conexion-quote .attribution .rule {
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.conexion-quote .attribution span:last-child {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ---------- CTA final ---------- */
.cta {
  background: linear-gradient(170deg, #0C2A48 0%, #081728 100%);
  position: relative;
  overflow: hidden;
}

.cta .glow {
  position: absolute;
  top: -200px; left: 50%;
  width: 720px; height: 480px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(229, 170, 85, 0.16) 0%, rgba(229, 170, 85, 0) 70%);
  pointer-events: none;
}

.cta .container {
  max-width: 860px;
  padding-top: 120px;
  padding-bottom: 120px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta .eyebrow-line {
  justify-content: center;
  margin-bottom: 26px;
}

.cta .eyebrow-line .rule { width: 36px; }

.cta h2 {
  margin: 0 0 20px;
  color: var(--white);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.cta h2 strong { font-weight: 600; }

.cta > .container > p {
  margin: 0 0 44px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 300;
}

.cta-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--night-deep);
  border-top: 1px solid rgba(229, 170, 85, 0.15);
}

.footer-grid {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  padding-top: 72px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand { flex: 1.4; min-width: 280px; }

.footer-brand img { height: 38px; display: block; margin-bottom: 20px; }

.footer-brand .claim {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.75;
  font-weight: 300;
  max-width: 360px;
}

.footer-brand .legal {
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12.5px;
  font-weight: 300;
}

.footer-col { flex: 1; min-width: 220px; }

.footer-col h4 {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.footer-col .links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 300;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--gold); }

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-social .icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.copyright {
  margin: 0;
  padding: 24px 0;
  color: rgba(255, 255, 255, 0.35);
  font-size: 12.5px;
  font-weight: 300;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .section { padding-top: 72px; padding-bottom: 72px; }
  .hero .container { padding-top: 64px; gap: 40px; }
  .hero-copy { padding-bottom: 48px; }
  .editorial { gap: 36px; }
  .editorial-label { flex: 1 1 100%; min-width: 0; }
  .editorial-label p br { display: none; }
  .cta .container { padding-top: 80px; padding-bottom: 80px; }
}

@media (max-width: 640px) {
  .site-header .container { justify-content: center; }
  .site-nav { justify-content: center; gap: 16px; }
  .hero h1 br { display: none; }
  .hero-visual-stage { min-height: 420px; }
  .hero-strip .cell { padding: 8px 0; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .hero-strip .cell:last-child { border-bottom: none; }
  .pillars .pillar { padding: 24px 0 0; border-right: none; }
  .service-row { padding: 28px 18px; }
  .service-row .idx { flex: 0 0 36px; }
  .footer-grid { gap: 36px; }
}
