/* ============================================================
   SoluInfoJC — Soluciones Informáticas JC
   Identidad: futurista, oscuro, neón cian → violeta
   ============================================================ */

:root {
  --bg: #04060e;
  --bg-2: #0a0f1e;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(148, 163, 184, 0.16);
  --text: #e9edf7;
  --muted: #93a0b8;
  --cyan: #00e5ff;
  --violet: #8b5cf6;
  --grad: linear-gradient(100deg, #00e5ff, #8b5cf6);
  --glow-cyan: rgba(0, 229, 255, 0.35);
  --glow-violet: rgba(139, 92, 246, 0.35);
  --radius: 18px;
  --font-head: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

::selection { background: rgba(0, 229, 255, 0.3); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; }

a { color: inherit; text-decoration: none; }

img, svg { max-width: 100%; }

.container { width: min(1140px, 92%); margin: 0 auto; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Fondo de rejilla global ---------- */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.scrolled {
  padding: 10px 0;
  background: rgba(4, 6, 14, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 11px; }
.nav-logo img { height: 40px; }
.nav-logo .brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: .04em;
}
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  font-size: .93rem;
  color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary,
.nav-links a.btn-primary {
  background: var(--grad);
  color: #04121a;
  box-shadow: 0 4px 24px var(--glow-cyan);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--glow-cyan); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface-hover); border-color: rgba(0, 229, 255, 0.4); }
.btn-sm { padding: 9px 20px; font-size: .88rem; }

.nav-burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 40px; height: 40px;
  position: relative;
}
.nav-burger span {
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s, top .25s;
}
.nav-burger span:nth-child(1) { top: 13px; }
.nav-burger span:nth-child(2) { top: 20px; }
.nav-burger span:nth-child(3) { top: 27px; }
.nav-burger.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
}
#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 55% 45% at 72% 30%, rgba(139, 92, 246, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 40% at 25% 65%, rgba(0, 229, 255, 0.10), transparent 70%);
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  background: rgba(0, 229, 255, 0.06);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 26px;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.8); }
}

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: 22px;
}
.hero p.lead {
  font-size: 1.13rem;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .logo-float {
  width: min(320px, 70vw);
  filter: drop-shadow(0 0 42px var(--glow-cyan)) drop-shadow(0 0 90px var(--glow-violet));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(1.5deg); }
}

.hero-scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  animation: bob 2s infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); opacity: .7; }
  50% { transform: translate(-50%, 7px); opacity: 1; }
}

/* ---------- Franja de destacados ---------- */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 34px 0;
}
.strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.strip-item .big {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 700;
}
.strip-item .small {
  color: var(--muted);
  font-size: .86rem;
  margin-top: 2px;
}

/* ---------- Secciones ---------- */
section { padding: 110px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 60px; }
.section-head .kicker {
  font-family: var(--font-head);
  font-size: .82rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.section-head p { color: var(--muted); }

/* ---------- Servicios ---------- */
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .25s, border-color .25s, background .25s;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .25s;
}
.card:hover {
  transform: translateY(-6px);
  background: var(--surface-hover);
  border-color: rgba(0, 229, 255, 0.35);
}
.card:hover::before { opacity: 1; }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.22);
  margin-bottom: 20px;
}
.card .icon svg { width: 26px; height: 26px; stroke: var(--cyan); }
.card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card p { font-size: .92rem; color: var(--muted); }

/* ---------- Productos ---------- */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.product {
  position: relative;
  padding: 44px 40px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.product:hover { transform: translateY(-5px); border-color: rgba(139, 92, 246, 0.45); }
.product .glow {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .35;
  top: -80px; right: -60px;
  pointer-events: none;
}
.product.matrixign .glow { background: var(--cyan); }
.product.kdna .glow { background: var(--violet); }
.product .tag {
  display: inline-block;
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  margin-bottom: 20px;
}
.product h3 { font-size: 1.7rem; margin-bottom: 12px; }
.product p { color: var(--muted); margin-bottom: 26px; max-width: 420px; }
.product .link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.product .link:hover { text-decoration: underline; }

/* ---------- Proceso ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
}
.step .num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .9;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: .9rem; color: var(--muted); }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-list { list-style: none; display: grid; gap: 16px; margin-top: 28px; }
.about-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--muted);
  font-size: .97rem;
}
.about-list .check {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: .8rem;
  margin-top: 2px;
}
.about-visual {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(0,229,255,0.06), rgba(139,92,246,0.08));
  padding: 46px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-visual .row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(4, 6, 14, 0.55);
  border: 1px solid var(--border);
}
.about-visual .row .ico { font-size: 1.4rem; }
.about-visual .row .t { font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
.about-visual .row .s { font-size: .82rem; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact-wrap {
  border-radius: 26px;
  border: 1px solid rgba(0, 229, 255, 0.25);
  background:
    radial-gradient(ellipse 70% 90% at 50% -10%, rgba(0, 229, 255, 0.10), transparent 60%),
    linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  padding: 70px 40px;
  text-align: center;
}
.contact-wrap h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 16px; }
.contact-wrap p { color: var(--muted); max-width: 520px; margin: 0 auto 34px; }
.contact-mail {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  font-weight: 600;
  color: var(--cyan);
  display: inline-block;
  margin-top: 26px;
}
.contact-mail:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 50px 0 36px;
  background: rgba(255, 255, 255, 0.015);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo img { height: 32px; }
.footer-logo span { font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
.footer-links { display: flex; gap: 26px; list-style: none; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: .88rem; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { width: 100%; text-align: center; color: var(--muted); font-size: .82rem; margin-top: 30px; }

/* ---------- Animación de aparición ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }

/* ---------- Páginas legales / documento ---------- */
.doc {
  padding: 150px 0 90px;
  max-width: 780px;
  margin: 0 auto;
  width: 92%;
}
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 10px; }
.doc .updated { color: var(--muted); font-size: .88rem; margin-bottom: 40px; }
.doc h2 { font-size: 1.3rem; margin: 40px 0 14px; }
.doc p, .doc li { color: var(--muted); font-size: .97rem; }
.doc ul { padding-left: 22px; margin: 12px 0; }
.doc a { color: var(--cyan); }
.doc a:hover { text-decoration: underline; }

/* ---------- Kit de marca ---------- */
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.brand-tile {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.brand-tile.light { background: #f1f5fb; }
.brand-tile img { max-height: 130px; }
.brand-tile .label { font-size: .85rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.brand-tile.light .label { color: #52607a; }
.palette { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.swatch {
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.swatch .color { height: 90px; }
.swatch .info { padding: 12px 14px; font-size: .82rem; background: var(--surface); }
.swatch .info b { display: block; font-family: var(--font-head); }
.swatch .info span { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-visual .logo-float { width: min(210px, 55vw); }
  .cards-4, .steps { grid-template-columns: 1fr 1fr; }
  .products, .about, .brand-grid { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .palette { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100svh;
    width: min(300px, 80vw);
    flex-direction: column;
    justify-content: center;
    background: rgba(6, 9, 20, 0.97);
    backdrop-filter: blur(16px);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 99;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-burger { display: block; z-index: 100; }
  .cards-4, .steps { grid-template-columns: 1fr; }
  section { padding: 80px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
