/* ============================================================
   NOVA — muestra de diseño
   Tech violeta oscuro + acentos glow. Independiente del resto
   del portafolio: no comparte hoja de estilos.
   ============================================================ */

:root {
  --ink:        #0A0713;
  --ink-2:      #120B22;
  --panel:      #150E29;
  --panel-2:    #1B1233;
  --purple:     #7C3AED;
  --purple-2:   #A78BFA;
  --purple-deep:#3B1877;
  --purple-glow:rgba(139, 92, 246, .45);

  --text:       #FFFFFF;
  --text-mid:   #C9C3DA;
  --text-dim:   #8B84A3;
  --line:       rgba(255, 255, 255, .10);

  --font-head: 'Sora', 'Segoe UI', sans-serif;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shell: 1160px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { background: none; border: 0; cursor: pointer; font: inherit; color: inherit; }

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

.shell { max-width: var(--shell); margin-inline: auto; padding-inline: 24px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; }

/* ---------- Aviso de muestra ---------- */
.demo-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 10px 20px;
  background: #05030A;
  border-bottom: 1px solid var(--line);
  font-size: .8rem;
  color: var(--text-dim);
  text-align: center;
}
.demo-bar a { color: var(--purple-2); font-weight: 600; }
.demo-bar a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 20px 0;
  background: rgba(10, 7, 19, .5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), padding .3s var(--ease);
}
.site-header.scrolled {
  padding: 14px 0;
  background: rgba(10, 7, 19, .86);
  border-bottom-color: var(--line);
}

.header-inner { display: flex; align-items: center; gap: 28px; }

.logo { display: flex; }
.logo-grid { display: grid; grid-template-columns: repeat(3, 6px); grid-template-rows: repeat(3, 6px); gap: 4px; }
.logo-grid span { width: 6px; height: 6px; border-radius: 2px; background: var(--purple-2); }
.logo-grid span:nth-child(5) { background: var(--purple); box-shadow: 0 0 10px var(--purple-glow); }

.nav { margin-left: 44px; }
.nav-list { display: flex; align-items: center; gap: 34px; }
.nav-link {
  position: relative;
  font-size: .93rem;
  color: var(--text-mid);
  padding: 4px 0;
  transition: color .25s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--purple-2);
  transition: width .3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.header-side { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.btn-outline { border: 1px solid var(--line); color: #fff; }
.btn-outline:hover { border-color: var(--purple-2); background: rgba(167, 139, 250, .08); }
.btn-solid {
  background: linear-gradient(135deg, var(--purple), #5B21B6);
  color: #fff;
  box-shadow: 0 8px 24px var(--purple-glow);
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 12px 30px var(--purple-glow); }
.btn-sm { padding: 9px 18px; font-size: .82rem; }
.btn-arrow { transition: transform .25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
}
.nav-toggle span { width: 100%; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 100px 0 70px;
  overflow: hidden;
  text-align: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-orb {
  position: absolute;
  top: -320px; left: 50%;
  width: 900px; height: 900px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(124, 58, 237, .55), rgba(124, 58, 237, .18) 45%, transparent 70%);
  filter: blur(2px);
}
.hero-orb::before {
  content: '';
  position: absolute; inset: 60px;
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, .35);
}
.hero-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(167, 139, 250, .5) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 620px 420px at 14% 30%, #000 0%, transparent 70%), radial-gradient(ellipse 560px 380px at 86% 82%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 620px 420px at 14% 30%, #000 0%, transparent 70%), radial-gradient(ellipse 560px 380px at 86% 82%, #000 0%, transparent 70%);
  -webkit-mask-composite: source-over;
  mask-composite: add;
}
.hero-fade {
  position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(180deg, transparent, var(--ink));
}

.hero-inner { position: relative; z-index: 1; max-width: 760px; margin-inline: auto; }

.hero-title {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.18;
}
.hero-title .accent {
  display: block;
  background: linear-gradient(90deg, var(--purple-2), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 22px;
  color: var(--text-mid);
  font-size: 1.05rem;
  max-width: 560px;
  margin-inline: auto;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Panel de cifras */
.stats-panel {
  position: relative;
  z-index: 1;
  margin: 54px auto 0;
  max-width: 900px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 26px 34px;
  background: rgba(21, 14, 41, .55);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.stat-top { display: flex; align-items: center; gap: 8px; }
.stat-top svg { width: 20px; height: 20px; stroke: var(--purple-2); fill: none; stroke-width: 1.8; }
.stat-num { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; }
.stat-label { font-size: .82rem; color: var(--text-dim); }

/* ---------- Sección genérica ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--ink-2); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-title .accent { color: var(--purple-2); }
.section-sub { margin-top: 14px; color: var(--text-mid); font-size: 1rem; }

/* ---------- Servicios ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.svc-card {
  position: relative;
  padding: 30px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.svc-card:hover { transform: translateY(-4px); border-color: rgba(167, 139, 250, .35); }
.svc-card.featured {
  background: linear-gradient(160deg, var(--purple), #5B21B6);
  border-color: transparent;
}
.svc-icon {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(167, 139, 250, .12);
  margin-bottom: 18px;
}
.svc-card.featured .svc-icon { background: rgba(255, 255, 255, .18); }
.svc-icon svg { width: 22px; height: 22px; stroke: var(--purple-2); fill: none; stroke-width: 1.8; }
.svc-card.featured .svc-icon svg { stroke: #fff; }
.svc-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.svc-card p { font-size: .9rem; color: var(--text-mid); line-height: 1.55; }
.svc-card.featured p { color: rgba(255, 255, 255, .85); }
.svc-go {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  margin-top: 20px;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.svc-card.featured .svc-go { background: rgba(255, 255, 255, .22); }
.svc-go svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; }
.svc-card:hover .svc-go { transform: translateX(3px); }

/* ---------- Proceso ---------- */
.process { position: relative; padding: 90px 0; background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.process-row::before {
  content: '';
  position: absolute;
  top: 20px; left: 12%; right: 12%;
  height: 0;
  border-top: 2px dashed rgba(167, 139, 250, .3);
  z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--purple);
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  box-shadow: 0 0 0 6px var(--panel), 0 0 18px var(--purple-glow);
}
.step-icon {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  margin: 18px auto 16px;
  border-radius: 14px;
  background: rgba(167, 139, 250, .1);
  border: 1px solid var(--line);
}
.step-icon svg { width: 24px; height: 24px; stroke: var(--purple-2); fill: none; stroke-width: 1.7; }
.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p { font-size: .86rem; color: var(--text-mid); max-width: 220px; margin-inline: auto; }

/* ---------- Tecnologías ---------- */
.tech-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
}
.tech-item {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: .92rem;
  color: var(--text-mid);
}
.tech-item svg { width: 20px; height: 20px; stroke: var(--purple-2); fill: none; stroke-width: 1.8; }
.tech-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }

/* ---------- Testimonios ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.testi-card {
  padding: 26px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.testi-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.avatar {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  flex-shrink: 0;
}
.testi-name strong { display: block; font-size: .9rem; }
.testi-name small { color: var(--text-dim); font-size: .78rem; }
.stars { color: var(--purple-2); font-size: .82rem; letter-spacing: 2px; margin-bottom: 10px; }
.testi-text { font-size: .88rem; color: var(--text-mid); line-height: 1.6; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  margin: 0 24px;
  max-width: calc(var(--shell) - 48px);
  margin-inline: auto;
  padding: 64px 40px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--purple-deep), var(--ink-2));
  border: 1px solid var(--line);
  text-align: center;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--purple-glow), transparent 60%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; }
.cta p { color: var(--text-mid); margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer { padding: 70px 0 0; background: var(--ink-2); border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: var(--text-mid); font-size: .9rem; max-width: 280px; margin-bottom: 20px; }
.socials { display: flex; gap: 10px; }
.socials a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.socials svg { width: 15px; height: 15px; fill: var(--text-mid); }
.socials a:hover { background: var(--purple); border-color: var(--purple); }
.socials a:hover svg { fill: #fff; }

.footer-col h4 { font-size: .92rem; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--text-mid); font-size: .88rem; transition: color .25s var(--ease); }
.footer-col a:hover { color: var(--purple-2); }

.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--text-mid); margin-bottom: 12px; }
.footer-contact svg { width: 16px; height: 16px; stroke: var(--purple-2); fill: none; stroke-width: 1.8; margin-top: 2px; flex-shrink: 0; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px 0;
  font-size: .8rem;
  color: var(--text-dim);
}
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--purple-2); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-back { color: var(--purple-2) !important; }

.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 8px 22px var(--purple-glow);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  z-index: 40;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-row { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process-row::before { display: none; }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-panel { flex-wrap: wrap; }
  .stat { flex: 1 1 40%; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; order: 3; }
  .header-side .btn-outline { display: none; }
  .nav {
    position: fixed; inset: 0 0 0 auto;
    width: min(280px, 80vw);
    margin: 0;
    padding: 96px 26px 26px;
    background: #0D0818;
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    z-index: 45;
  }
  .nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav-list li { width: 100%; }
  .nav-link { display: block; width: 100%; padding: 13px 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 700px) {
  .services-grid { grid-template-columns: 1fr; }
  .process-row { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .tech-sep { display: none; }
  .hero-orb { width: 640px; height: 640px; top: -220px; }
}
