/* ============================================================
   ResoluTEC — Estilos principales
   ============================================================ */

:root {
  --noche:        #0A1628;
  --noche-2:      #0F1E36;
  --corporativo:  #004B8D;
  --tecnologico:  #0072C6;
  --brillante:    #0090E8;
  --claro:        #D8EAF2;
  --blanco:       #FFFFFF;
  --hueso:        #F6F9FC;
  --linea:        #E4ECF3;
  --texto:        #1B2A41;
  --texto-mute:   #5A6B82;

  --maxw:  1240px;
  --pad-x: clamp(20px, 4vw, 56px);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(10,22,40,.06), 0 2px 8px rgba(10,22,40,.04);
  --shadow-md: 0 8px 24px rgba(10,22,40,.08), 0 2px 4px rgba(10,22,40,.05);
  --shadow-lg: 0 24px 60px -20px rgba(0,75,141,.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--texto);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  font-weight: 400;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- HELPERS ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tecnologico);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--tecnologico);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  color: var(--noche);
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-weight: 800; font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; }
h2 { font-weight: 800; font-size: clamp(32px, 3.8vw, 48px); line-height: 1.08; }
h3 { font-weight: 700; font-size: 20px; line-height: 1.3; }
p { margin: 0; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--linea);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
  gap: 32px;
}
.nav-logo { display: flex; align-items: center; gap: 3px; }
.nav-logo .logo-icon { height: 34px; width: auto; }
.nav-logo .logo-wordmark { height: 34px; width: auto; }
.nav-menu {
  display: flex; gap: 36px; align-items: center;
  font-size: 14px; font-weight: 500; color: var(--texto);
}
.nav-menu a {
  position: relative; padding: 6px 0;
  transition: color .15s;
}
.nav-menu a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--tecnologico);
  transition: width .2s ease;
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--tecnologico); }
.nav-menu a.active::after,
.nav-menu a:hover::after { width: 100%; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--noche);
  color: var(--blanco);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  transition: background .15s, transform .15s;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--corporativo); }
.nav-cta:active { transform: scale(.97); }

.nav-burger {
  display: none; background: none; border: 0; padding: 8px;
  transition: opacity .15s;
}
.nav-burger:hover { opacity: .7; }

@media (max-width: 880px) {
  .nav-logo .logo-wordmark { display: none; }
  .nav-menu { display: none; }
  .nav-burger { display: inline-flex; }
}

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 76px 0 0 0;
  z-index: 49;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  flex-direction: column;
  padding: 16px var(--pad-x) 32px;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 17px; font-weight: 600;
  color: var(--noche);
  padding: 16px 0;
  border-bottom: 1px solid var(--linea);
  transition: color .15s;
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--tecnologico); }
.mobile-menu .mobile-cta {
  margin-top: 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--noche); color: var(--blanco);
  padding: 16px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 600;
  transition: background .15s;
}
.mobile-menu .mobile-cta:hover { background: var(--corporativo); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: var(--noche);
  color: var(--blanco);
  overflow: hidden;
  padding: clamp(72px, 11vw, 140px) 0 clamp(80px, 12vw, 160px);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 30%, rgba(0,144,232,.22), transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(0,75,141,.35), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,144,232,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,144,232,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%);
  pointer-events: none;
}
.hero-network {
  position: absolute; right: -80px; top: 50%; transform: translateY(-50%);
  width: min(700px, 55%);
  opacity: .7;
  pointer-events: none;
}
@media (max-width: 980px) { .hero-network { display: none; } }

.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { color: var(--blanco); margin-top: 20px; }
.hero h1 .accent { color: var(--brillante); }
.hero p.lead {
  margin-top: 24px;
  font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6;
  color: #B7C7D9;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600;
  border: 0;
  transition: transform .15s, background .15s, color .15s, border-color .15s;
}
.btn-primary {
  background: var(--brillante);
  color: var(--blanco);
  box-shadow: var(--shadow-lg);
}
.btn-primary:hover { background: #00A4FF; }
.btn-primary:active { transform: scale(.97); }
.btn-ghost {
  background: transparent;
  color: var(--blanco);
  border: 1px solid rgba(255,255,255,.22);
}
.btn-ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.4); }

/* ---------- HERO META ---------- */
.hero-meta {
  position: relative; z-index: 1;
  margin-top: 80px;
  display: flex; gap: 48px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 32px;
}
.meta { display: flex; flex-direction: column; gap: 6px; }
.meta .k {
  font-family: 'JetBrains Mono', monospace;
  color: var(--brillante); font-size: 28px; font-weight: 500;
}
.meta .v { color: #9FB1C7; font-size: 13px; letter-spacing: .04em; }

/* ---------- TRUST BAR ---------- */
.trust {
  background: var(--hueso);
  padding: 28px 0;
  border-bottom: 1px solid var(--linea);
}
.trust-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.trust .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--texto-mute); white-space: nowrap;
}
.trust .stack { display: flex; gap: 36px; flex-wrap: wrap; align-items: center; opacity: .78; }
.trust .stack span { font-weight: 600; font-size: 14px; color: var(--corporativo); letter-spacing: .02em; }

/* ---------- SECTIONS ---------- */
section.block { padding: clamp(80px, 9vw, 130px) 0; }
.head { max-width: 720px; margin-bottom: 56px; }
.head h2 { margin-top: 14px; }
.head p { margin-top: 18px; color: var(--texto-mute); font-size: 17px; }

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

.service {
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 280px;
}
.service::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--brillante);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.service:hover {
  border-color: var(--claro);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.service:hover::after { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--claro);
  color: var(--corporativo);
  display: flex; align-items: center; justify-content: center;
}
.service-icon svg { width: 26px; height: 26px; }
.service h3 { color: var(--noche); }
.service p { color: var(--texto-mute); font-size: 15px; }
.service .more {
  margin-top: auto;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--tecnologico);
  display: inline-flex; align-items: center; gap: 6px;
  letter-spacing: .05em;
}
.service .more::after { content: "\2192"; transition: transform .2s; }
.service:hover .more::after { transform: translateX(4px); }

/* ---------- VALUES ---------- */
.values-section { background: var(--hueso); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .values-grid { grid-template-columns: 1fr; } }
.value {
  padding: 28px 24px;
  background: var(--blanco);
  border-radius: var(--r-md);
  border: 1px solid var(--linea);
  display: flex; flex-direction: column; gap: 14px;
}
.value-num {
  font-family: 'JetBrains Mono', monospace;
  color: var(--brillante); font-size: 13px; letter-spacing: .1em;
}
.value h4 { font-size: 17px; color: var(--noche); margin: 0; font-weight: 700; }
.value p { color: var(--texto-mute); font-size: 14px; }

/* ---------- PROCESS ---------- */
.process-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px;
  align-items: center;
}
@media (max-width: 880px) { .process-grid { grid-template-columns: 1fr; gap: 40px; } }
.process-steps { display: flex; flex-direction: column; gap: 14px; }
.step {
  display: grid; grid-template-columns: 64px 1fr; gap: 22px;
  align-items: flex-start;
  padding: 20px 22px;
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: var(--r-md);
  transition: border-color .2s, background .2s;
  cursor: pointer;
}
.step:hover { border-color: var(--tecnologico); }
.step.active { border-color: var(--tecnologico); background: linear-gradient(180deg, #fff, #F7FBFE); }
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--noche); color: var(--blanco);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 500;
}
.step.active .step-num { background: var(--brillante); }
.step h4 { font-size: 17px; margin: 0 0 6px; font-weight: 700; color: var(--noche); }
.step p { color: var(--texto-mute); font-size: 14px; }

.process-visual {
  background: var(--noche); color: var(--blanco);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative; overflow: hidden;
  min-height: 480px;
}
.process-visual::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(0,144,232,.25), transparent 60%),
    linear-gradient(180deg, rgba(0,144,232,.04), transparent);
  pointer-events: none;
}

/* ---------- TERMINAL ---------- */
.terminal {
  position: relative;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; line-height: 1.7;
}
.terminal-bar {
  display: flex; gap: 6px; padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  align-items: center;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #FF5F57; }
.dot.y { background: #FEBC2E; }
.dot.g { background: #28C840; }
.terminal-bar .t { margin-left: 12px; font-size: 11px; color: #7E92AB; letter-spacing: .05em; }
.terminal-body { padding: 18px; color: #C8D6E5; }
.terminal-body .p  { color: var(--brillante); }
.terminal-body .ok { color: #4ADE80; }
.terminal-body .c  { color: #7E92AB; }
.terminal-body .l  { display: block; }
.cursor {
  display: inline-block; width: 8px; height: 14px;
  background: var(--brillante); vertical-align: -2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.status-row {
  margin-top: 22px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.status {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.02);
}
.status .name { font-size: 12px; color: #9FB1C7; }
.status .v {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #4ADE80;
  display: inline-flex; align-items: center; gap: 6px;
}
.status .v .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 0 0 rgba(74,222,128,.6);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,.6); }
  70%  { box-shadow: 0 0 0 10px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* ---------- SECTORS ---------- */
.sectors {
  background: linear-gradient(180deg, var(--noche) 0%, #08111F 100%);
  color: var(--blanco);
  position: relative; overflow: hidden;
}
.sectors::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,144,232,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,144,232,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 80%);
  pointer-events: none;
}
.sectors .head h2 { color: var(--blanco); }
.sectors .head p  { color: #9FB1C7; }
.sectors .head .eyebrow { color: var(--brillante); }
.sectors .head .eyebrow::before { background: var(--brillante); }

.sectors-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  position: relative;
}
@media (max-width: 880px) { .sectors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .sectors-grid { grid-template-columns: 1fr; } }
.sector {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-md); padding: 24px 22px;
  background: rgba(255,255,255,.02);
  transition: border-color .2s, background .2s;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 150px;
}
.sector:hover { border-color: var(--brillante); background: rgba(0,144,232,.06); }
.sector .ix {
  font-family: 'JetBrains Mono', monospace;
  color: var(--brillante); font-size: 11px; letter-spacing: .1em;
}
.sector h4 { font-size: 16px; color: var(--blanco); margin: 0; font-weight: 600; }
.sector p  { font-size: 13px; color: #9FB1C7; }

/* ---------- CTA ---------- */
.cta-section { padding: clamp(60px, 8vw, 100px) 0; background: var(--blanco); }
.cta-card {
  background: linear-gradient(135deg, var(--corporativo) 0%, var(--tecnologico) 60%, var(--brillante) 100%);
  color: var(--blanco);
  border-radius: 28px;
  padding: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px;
  align-items: center;
  position: relative; overflow: hidden;
}
@media (max-width: 880px) { .cta-card { grid-template-columns: 1fr; } }
.cta-card::before {
  content: "";
  position: absolute; right: -100px; top: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 60%);
  pointer-events: none;
}
.cta-card h2 { color: var(--blanco); }
.cta-card p  { margin-top: 14px; color: rgba(255,255,255,.85); font-size: 17px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-actions .btn-primary { background: var(--blanco); color: var(--noche); }
.cta-actions .btn-primary:hover { background: var(--claro); }
.cta-actions .btn-ghost { border-color: rgba(255,255,255,.5); }

.cta-side {
  position: relative; z-index: 1;
  background: rgba(10,22,40,.35);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px; padding: 24px;
  backdrop-filter: blur(8px);
}
.cta-side .row {
  display: flex; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: 13px;
}
.cta-side .row:last-child { border-bottom: 0; }
.cta-side .row .k { color: rgba(255,255,255,.7); }
.cta-side .row .v { font-family: 'JetBrains Mono', monospace; }

/* ---------- FOOTER ---------- */
footer {
  background: var(--noche);
  color: #B7C7D9;
  padding: 64px 0 28px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand img { height: 64px; width: auto; margin-bottom: 16px; }
.foot-brand p { font-size: 14px; max-width: 320px; color: #8FA3BD; }
.foot h5 {
  font-family: 'JetBrains Mono', monospace;
  color: var(--brillante);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  margin: 0 0 16px; font-weight: 500;
}
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot a:hover { color: var(--brillante); }
.foot-bot {
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: #6C7E96;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .04em;
}
.foot-bot .dot-sep { opacity: .35; margin: 0 10px; }

/* ---------- PAGE HERO (paginas internas) ---------- */
.page-hero {
  background: var(--noche);
  color: var(--blanco);
  padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 30%, rgba(0,144,232,.15), transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(0,75,141,.25), transparent 60%);
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,144,232,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,144,232,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%);
  pointer-events: none;
}
.page-hero-inner {
  position: relative; z-index: 1;
  max-width: 720px;
}
.page-hero h1 {
  color: var(--blanco);
  margin-top: 16px;
  font-size: clamp(32px, 4vw, 52px);
}
.page-hero p.lead {
  margin-top: 20px;
  font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6;
  color: #B7C7D9;
  max-width: 560px;
}

/* ---------- VER TODOS (home teasers) ---------- */
.see-all {
  text-align: center;
  margin-top: 48px;
}

/* ---------- REVEAL ON SCROLL ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
