/* ═══════════════════════════════════════════════════════════
   WINSTON — hoja de estilo principal
   Estética: oscura, profunda, con aurora animada.
   Legibilidad cuidada (contraste alto, texto grande).
   ═══════════════════════════════════════════════════════════ */

:root {
  --fondo:      #05070d;
  --fondo-2:    #0a0e18;
  --panel:      rgba(18, 24, 38, .72);
  --borde:      rgba(120, 160, 220, .16);
  --borde-vivo: rgba(120, 170, 255, .38);
  --texto:      #eaf0f8;
  --texto-dim:  #9fb0c8;
  --texto-suave:#6f8098;
  --azul:       #4d9dff;
  --azul-claro: #8fc4ff;
  --cielo:      #6fd3ff;
  --violeta:    #b28cff;
  --verde:      #4ade80;
  --oro:        #ffc857;
  --rojo:       #ff6b6b;
  --radio:      18px;
  --sombra:     0 20px 60px rgba(0,0,0,.55);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--fondo);
  color: var(--texto);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ═══ FONDO ANIMADO (aurora) ═══ */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(ellipse 120% 80% at 50% -20%, #0d1730 0%, var(--fondo) 60%);
}
.aurora-capa {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  will-change: transform;
}
.a1 {
  width: 55vw; height: 55vw; top: -18vw; left: -12vw;
  background: radial-gradient(circle, rgba(77,157,255,.65), transparent 65%);
  animation: flotar1 22s ease-in-out infinite;
}
.a2 {
  width: 48vw; height: 48vw; top: 8vh; right: -14vw;
  background: radial-gradient(circle, rgba(178,140,255,.5), transparent 65%);
  animation: flotar2 28s ease-in-out infinite;
}
.a3 {
  width: 42vw; height: 42vw; bottom: -14vw; left: 22vw;
  background: radial-gradient(circle, rgba(111,211,255,.38), transparent 65%);
  animation: flotar3 34s ease-in-out infinite;
}
@keyframes flotar1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(6vw,4vh) scale(1.12); }
  66%     { transform: translate(-3vw,7vh) scale(.94); }
}
@keyframes flotar2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-7vw,6vh) scale(1.18); }
}
@keyframes flotar3 {
  0%,100% { transform: translate(0,0) scale(1); }
  40%     { transform: translate(5vw,-6vh) scale(1.1); }
  70%     { transform: translate(-4vw,-3vh) scale(.9); }
}
/* rejilla sutil encima */
.rejilla {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120,170,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,170,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 75%);
}

/* ═══ NAVEGACIÓN ═══ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 1.4rem;
  transition: .3s;
}
.nav.pegado {
  background: rgba(5,7,13,.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--borde);
  padding: .7rem 1.4rem;
}
.nav-caja {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.marca {
  display: flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em;
  color: var(--texto); text-decoration: none;
}
.marca-logo {
  width: 30px; height: 30px; border-radius: 50%;
  box-shadow: 0 0 16px rgba(77,157,255,.42);
  transition: transform .3s;
}
.marca:hover .marca-logo { transform: scale(1.08) rotate(-4deg); }
.marca-punto {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--verde);
  box-shadow: 0 0 14px var(--verde);
  animation: latir 2.4s ease-in-out infinite;
}
@keyframes latir {
  0%,100% { opacity:1; transform: scale(1); }
  50%     { opacity:.55; transform: scale(.82); }
}
.nav-enlaces { display: flex; align-items: center; gap: 1.6rem; }
.nav-enlaces a {
  color: var(--texto-dim); text-decoration: none; font-size: .9rem;
  font-weight: 500; transition: color .2s;
}
.nav-enlaces a:hover { color: var(--texto); }
.nav-cta {
  background: linear-gradient(135deg, var(--azul), var(--violeta));
  color: #fff !important; padding: .6rem 1.2rem; border-radius: 999px;
  font-weight: 600 !important;
  box-shadow: 0 6px 22px rgba(77,157,255,.32);
}
.nav-menu { display: none; background: none; border: 0; color: var(--texto); font-size: 1.4rem; cursor: pointer; }

/* ═══ HERO ═══ */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1.15fr .85fr;
  align-items: center; gap: 3rem;
  max-width: 1240px; margin: 0 auto;
  padding: 8rem 1.4rem 4rem;
}
.hero-caja { max-width: 640px; }
.pastilla {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(77,157,255,.09);
  border: 1px solid rgba(77,157,255,.28);
  border-radius: 999px;
  padding: .42rem 1rem;
  font-size: .8rem; color: var(--azul-claro);
  margin-bottom: 1.6rem;
  font-family: 'JetBrains Mono', monospace;
}
.punto-vivo {
  width: 7px; height: 7px; border-radius: 50%; background: var(--verde);
  box-shadow: 0 0 10px var(--verde);
  animation: latir 1.8s ease-in-out infinite;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.9rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
  margin-bottom: 1.5rem;
}
.degradado {
  background: linear-gradient(120deg, var(--azul-claro), var(--cielo) 40%, var(--violeta));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.13rem; color: var(--texto-dim); margin-bottom: 2.2rem;
  max-width: 560px;
}
.hero-sub b { color: var(--texto); font-weight: 600; }
.hero-botones { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 3rem; }
.btn-principal {
  display: inline-block;
  background: linear-gradient(135deg, var(--azul), var(--violeta));
  color: #fff; text-decoration: none; font-weight: 600;
  padding: 1rem 2rem; border-radius: 999px; font-size: 1rem;
  box-shadow: 0 10px 34px rgba(77,157,255,.36);
  transition: transform .2s, box-shadow .2s;
}
.btn-principal:hover { transform: translateY(-2px); box-shadow: 0 14px 42px rgba(77,157,255,.48); }
.btn-secundario {
  display: inline-block;
  background: rgba(120,170,255,.07);
  border: 1px solid var(--borde-vivo);
  color: var(--texto); text-decoration: none; font-weight: 500;
  padding: 1rem 1.8rem; border-radius: 999px; font-size: 1rem;
  transition: background .2s;
}
.btn-secundario:hover { background: rgba(120,170,255,.14); }
.hero-datos { display: flex; gap: 2.4rem; flex-wrap: wrap; }
.hero-datos div { display: flex; flex-direction: column; }
.hero-datos b {
  font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em;
  background: linear-gradient(120deg, var(--azul-claro), var(--cielo));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-datos span { font-size: .78rem; color: var(--texto-suave); }

/* cara / cerebro */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.cara {
  width: min(390px, 78vw); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(77,157,255,.16), rgba(5,7,13,.9) 70%);
  border: 1px solid rgba(120,170,255,.22);
  box-shadow: 0 0 90px rgba(77,157,255,.25), inset 0 0 70px rgba(77,157,255,.08);
  position: relative;
  animation: respirar 5.5s ease-in-out infinite;
}
@keyframes respirar {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.035); }
}
#cerebro { width: 100%; height: 100%; border-radius: 50%; }

/* ═══ ANIMACIONES AL HACER SCROLL ═══ */
/* OJO (fix 2026-09-27): si el JavaScript falla, todo lo que tiene .revelar se
   queda invisible para siempre y la web se ve VACIA. Eso pasó al capturarla.
   Solución: por defecto SE VE (sin opacity 0), y solo se oculta si el JS ha
   arrancado bien (clase .js-ok en el body). Asi nunca hay web en blanco. */
.revelar { opacity: 1; transform: none; }
body.js-ok .revelar {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1);
}
body.js-ok .revelar.visto { opacity: 1; transform: translateY(0); }

/* respaldo: si el navegador no soporta IntersectionObserver, se ve todo */
@media (prefers-reduced-motion: reduce) {
  body.js-ok .revelar { opacity: 1; transform: none; transition: none; }
}

/* ═══ SECCIONES ═══ */
section { padding: 6rem 1.4rem; }
.caja { max-width: 1240px; margin: 0 auto; }
.etiqueta-sec {
  font-family: 'JetBrains Mono', monospace; font-size: .78rem;
  color: var(--azul); text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: .8rem; display: block;
}
h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.15;
  margin-bottom: 1rem;
}
.sec-sub { color: var(--texto-dim); font-size: 1.06rem; max-width: 640px; margin-bottom: 3rem; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 7rem; gap: 2rem; }
  .hero-visual { order: -1; }
  .cara { width: min(270px, 62vw); }
  .nav-enlaces { display: none; }
  .nav-enlaces.abierto {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 1rem; right: 1rem;
    background: rgba(10,14,24,.97); backdrop-filter: blur(20px);
    border: 1px solid var(--borde); border-radius: 16px;
    padding: 1.4rem; gap: 1.1rem;
  }
  .nav-menu { display: block; }
  section { padding: 4rem 1.2rem; }
  .hero-datos { gap: 1.6rem; }
}
