/* ===========================================================
   INNOVA 504 — Ecosistema ARROW
   Sitio informativo estático
   =========================================================== */

:root {
  /* Marca */
  --bg:        #080c16;
  --bg-2:      #0c1322;
  --panel:     #111b2e;
  --panel-2:   #16223a;
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.14);

  --gold:      #fbbf24;
  --gold-soft: #fcd34d;
  --orange:    #f59e0e;
  --green:     #10b981;
  --blue:      #3b82f6;
  --blue-soft: #60a5fa;

  --text:      #f1f5f9;
  --muted:     #93a1b8;
  --faint:     #5d6b83;

  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1180px;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Manrope", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

::selection { background: var(--gold); color: #1a1206; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
}
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ===========================================================
   HEADER
   =========================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  transition: background .4s ease, border-color .4s ease, padding .4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8, 12, 22, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 12px 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { width: 38px; height: 38px; display: block; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-name span { color: var(--gold); }
.brand-sub {
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 3px;
}

.header-right { display: flex; align-items: center; gap: 18px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-size: .92rem;
  color: var(--muted);
  font-weight: 500;
  transition: color .25s;
}
.nav-links a:hover { color: var(--text); }

/* Lang toggle */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}
.lang-toggle button {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 7px 13px;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.lang-toggle button.active { color: #1a1206; background: var(--gold); }

/* ===========================================================
   HERO + CONSTELACIÓN
   =========================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 120px 0 60px;
  background:
    radial-gradient(1100px 700px at 70% 25%, rgba(245,158,14,0.10), transparent 60%),
    radial-gradient(900px 600px at 20% 70%, rgba(59,130,246,0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.neural {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.hero-copy { max-width: 540px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .74rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5.4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--gold-soft), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  padding: 13px 24px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .3s ease, background .3s ease, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(120deg, var(--gold-soft), var(--orange));
  color: #1a1206;
  box-shadow: 0 10px 30px -8px rgba(245,158,14,0.5);
}
.btn-primary:hover { box-shadow: 0 16px 40px -8px rgba(245,158,14,0.6); }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  border-color: var(--border-2);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(251,191,36,0.08); }

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 46px;
}
.hero-stats .stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--text);
  line-height: 1;
}
.hero-stats .stat-num span { color: var(--gold); }
.hero-stats .stat-label {
  font-size: .8rem;
  color: var(--faint);
  margin-top: 6px;
}

/* ---------- Constellation node graph ---------- */
.constellation {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin-left: auto;
}
.links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}
.link-line {
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 5 9;
  animation: flow 2.4s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -28; } }
.pulse-dot { pointer-events: none; }

.node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 3;
}

/* core */
.node--core {
  left: 50%; top: 50%;
  z-index: 5;
  animation: floaty 7s ease-in-out infinite;
}
.core-disc {
  position: relative;
  width: 124px; height: 124px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 30%, rgba(252,211,77,0.35), transparent 60%),
    linear-gradient(150deg, #1c2740, #0e1626);
  border: 1.5px solid rgba(251,191,36,0.5);
  box-shadow: 0 0 0 1px rgba(251,191,36,0.15), 0 18px 50px -12px rgba(245,158,14,0.45);
  animation: coreIn 1s cubic-bezier(.22,1.3,.36,1) both;
}
@keyframes coreIn {
  from { transform: scale(.25); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
/* anillo de escaneo tipo Jarvis */
.core-disc .scan {
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px dashed rgba(251,191,36,0.45);
  border-right-color: transparent;
  border-bottom-color: transparent;
  animation: scan 6s linear infinite;
}
@keyframes scan { to { transform: rotate(360deg); } }
.core-disc img { width: 56px; height: 56px; }
.core-disc::before, .core-disc::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(251,191,36,0.3);
  animation: ring 3.6s ease-out infinite;
}
.core-disc::after { animation-delay: 1.8s; }
@keyframes ring {
  0%   { transform: scale(0.82); opacity: .7; }
  100% { transform: scale(1.45); opacity: 0; }
}
.core-label {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .14em;
  font-size: .92rem;
}
.core-label small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: .04em;
  font-size: .64rem;
  color: var(--faint);
  text-transform: uppercase;
  margin-top: 2px;
}

/* app satellites */
.node--app {
  opacity: 0;
  animation: floaty 6s ease-in-out infinite;
}
.node--app.lit { opacity: 1; transition: opacity .7s ease; }
.node--app .tile {
  width: 62px; height: 62px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-2);
  background: linear-gradient(150deg, var(--panel-2), var(--panel));
  box-shadow: 0 14px 32px -14px rgba(0,0,0,0.7);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .3s ease, border-color .3s;
}
.node--app .tile svg { width: 30px; height: 30px; }
.node--app:hover .tile { transform: translateY(-4px) scale(1.06); border-color: var(--gold); }
.node--app.soon .tile { opacity: .62; }
.node--app .tile.t-gold  { box-shadow: 0 14px 34px -12px rgba(245,158,14,0.5); border-color: rgba(245,158,14,0.4); }
.node--app .tile.t-blue  { box-shadow: 0 14px 34px -12px rgba(59,130,246,0.5); border-color: rgba(59,130,246,0.4); }

.node--app .n-name {
  margin-top: 11px;
  font-weight: 600;
  font-size: .82rem;
  white-space: nowrap;
}
.node--app .n-status {
  font-size: .66rem;
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
}
.node--app .n-status i {
  width: 6px; height: 6px; border-radius: 50%; display: inline-block;
}
.dot-live { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot-soon { background: var(--faint); }

@keyframes floaty {
  0%,100% { transform: translate(-50%, -50%); }
  50%     { transform: translate(-50%, calc(-50% - 10px)); }
}
@media (prefers-reduced-motion: reduce) {
  .node--core, .node--app { animation: none; }
  .node--app { opacity: 1; }
  .core-disc { animation: none; }
  .core-disc .scan { animation: none; }
  .core-disc::before, .core-disc::after { animation: none; opacity: 0; }
  .link-line { animation: none; }
}

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-cue span {
  width: 1px; height: 30px;
  background: linear-gradient(var(--faint), transparent);
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue { 0%,100%{opacity:.3;transform:scaleY(.7)} 50%{opacity:1;transform:scaleY(1)} }

/* ===========================================================
   ECOSISTEMA
   =========================================================== */
.section { padding: 110px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 16px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

#ecosistema {
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(59,130,246,0.07), transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--border);
}

.eco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.app-card {
  position: relative;
  background: linear-gradient(160deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-height: 290px;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.22,.61,.36,1), border-color .35s, box-shadow .35s;
}
.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 180px at var(--mx,50%) -10%, rgba(251,191,36,0.12), transparent 70%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.app-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-2);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8);
}
.app-card:hover::before { opacity: 1; }
.app-card.featured { border-color: rgba(245,158,14,0.45); }
.app-card.featured::after {
  content: attr(data-badge);
  position: absolute;
  top: 18px; right: 18px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #1a1206;
  background: var(--gold);
  padding: 4px 9px;
  border-radius: 6px;
}

.app-card .tile {
  width: 56px; height: 56px;
  border-radius: 15px;
  display: grid; place-items: center;
  margin-bottom: 22px;
  border: 1px solid var(--border-2);
}
.app-card .tile svg { width: 28px; height: 28px; }
.tile.bg-gold { background: linear-gradient(150deg, var(--gold-soft), var(--orange)); }
.tile.bg-blue { background: linear-gradient(150deg, var(--blue-soft), var(--blue)); }
.tile.bg-teal { background: linear-gradient(150deg, #2dd4bf, #0d9488); }

.app-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.app-card .role { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.app-card .desc { color: var(--faint); font-size: .9rem; flex: 1; margin-bottom: 20px; }

.app-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  font-weight: 600;
}
.status i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.status.live { color: var(--green); }
.status.live i { background: var(--green); box-shadow: 0 0 8px var(--green); animation: blink 2s ease-in-out infinite; }
.status.soon { color: var(--faint); }
.status.soon i { background: var(--faint); }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.4} }

.visit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--gold);
  transition: gap .2s;
}
.visit:hover { gap: 10px; }
.visit.disabled { color: var(--faint); pointer-events: none; }

.url-chip {
  font-family: var(--font-display);
  font-size: .74rem;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 7px;
  display: inline-block;
  margin-bottom: 18px;
  letter-spacing: .01em;
}

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 60px 0 36px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 44px;
}
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: .92rem; }
.footer-col h4 {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col a, .footer-col span {
  display: block;
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 10px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: .82rem;
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero-copy { max-width: 100%; order: 1; }
  .constellation { order: 2; max-width: 420px; margin: 30px auto 0; }
  .eco-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; }
}
@media (max-width: 560px) {
  .wrap, .hero-grid { padding: 0 20px; }
  .site-header { padding: 14px 20px; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .brand-sub { display: none; }
  .constellation { max-width: 340px; }
  .core-disc { width: 100px; height: 100px; }
  .core-disc img { width: 46px; height: 46px; }
  .node--app .tile { width: 52px; height: 52px; }
  .node--app .n-name { font-size: .74rem; }
}
