/* Eclipse OS — hoja de estilo del sitio */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #05040b;
  --bg-2: #0d0a19;
  --card: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f3f0fc;
  --muted: #a7a0c2;
  --gold: #ffd36e;
  --orange: #ff8a4c;
  --violet: #9b5cff;
  --cyan: #4fd6ff;
  --grad: linear-gradient(110deg, #ffe29a 0%, #ffb35c 30%, #ff7a59 55%, #c46bff 100%);
  --radius: 20px;
  --font-h: 'Outfit', system-ui, sans-serif;
  --font-b: 'Inter', system-ui, sans-serif;
  --font-m: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
code, kbd { font-family: var(--font-m); font-size: .85em; color: var(--gold); background: rgba(255,211,110,.08); padding: 1px 6px; border-radius: 6px; }
kbd { color: var(--text); background: rgba(255,255,255,.08); border: 1px solid var(--line); border-bottom-width: 2px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Fondo: estrellas en canvas + resplandores */
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.glow { position: fixed; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(90px); opacity: .5; }
.glow-a { width: 520px; height: 520px; top: -160px; right: -120px; background: rgba(155, 92, 255, .35); }
.glow-b { width: 460px; height: 460px; bottom: -200px; left: -160px; background: rgba(255, 138, 76, .22); }

/* Navegación */
nav {
  position: sticky; top: 0; z-index: 20;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
nav.scrolled { background: rgba(5, 4, 11, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-h); font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; }
.brand span { color: var(--gold); margin-left: -4px; font-weight: 600; }
nav ul { list-style: none; display: flex; gap: 28px; font-size: .95rem; color: var(--muted); }
nav ul a { transition: color .2s; }
nav ul a:hover { color: var(--text); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.03); font-size: .78rem; font-weight: 600; letter-spacing: .04em; }
.lang a { padding: 4px 10px; border-radius: 999px; color: var(--muted); transition: color .2s, background .2s; }
.lang a:hover { color: var(--text); }
.lang a[aria-current] { background: rgba(255,255,255,.1); color: var(--text); }
@media (max-width: 380px) { .nav-end .btn { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: .96rem; white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn-primary { background: var(--grad); color: #1c1006; box-shadow: 0 10px 34px rgba(255, 138, 76, .3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(255, 138, 76, .45); }
.btn-ghost { border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.btn-ghost:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.07); }
.btn-sm { padding: 8px 16px; font-size: .88rem; }

/* Portada con eclipse animado */
.hero { position: relative; padding: 40px 0 0; text-align: center; overflow: hidden; }
.eclipse {
  position: relative; width: 300px; height: 300px; margin: 10px auto -40px;
}
.eclipse > * { position: absolute; inset: 0; border-radius: 50%; }
.corona {
  background: radial-gradient(circle, rgba(255,226,154,.95) 0 46%, rgba(255,160,80,.55) 50%, rgba(196,107,255,.25) 60%, transparent 71%);
  filter: blur(6px);
  animation: pulse 5s ease-in-out infinite;
}
.moon {
  inset: 60px;
  background: radial-gradient(circle at 38% 35%, #17132a, #05040b 70%);
  box-shadow: 0 0 0 1px rgba(255, 226, 154, .5), 0 0 40px rgba(255, 190, 100, .6), inset -8px -10px 30px rgba(0,0,0,.8);
  transform: translate(-8px, -6px);
}
.ring { border: 1px solid rgba(79, 214, 255, .22); }
.ring-1 { inset: 22px; border-style: dashed; animation: spin 40s linear infinite; }
.ring-2 { inset: 0; border-color: rgba(255, 211, 110, .18); border-top-color: rgba(255, 211, 110, .7); animation: spin 14s linear infinite; }
.ring-3 { inset: -24px; border-color: rgba(155, 92, 255, .15); border-left-color: rgba(155, 92, 255, .7); animation: spin 22s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.06); opacity: 1; } }

.hero-text { position: relative; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 211, 110, .28); background: rgba(10, 8, 20, .7);
  color: var(--gold); font-size: .82rem; font-weight: 500;
  margin-bottom: 24px;
}
.badge i { width: 7px; height: 7px; border-radius: 50%; background: #3fe08a; box-shadow: 0 0 10px #3fe08a; }
.hero h1 {
  font-family: var(--font-h); font-weight: 800;
  font-size: clamp(2.5rem, 6.6vw, 5rem); line-height: 1.04; letter-spacing: -.025em;
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 660px; margin: 22px auto 34px; color: var(--muted); font-size: 1.15rem; }
.actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Pantallas */
.screen {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.14); background: #000;
  box-shadow: 0 40px 100px rgba(0,0,0,.7), 0 0 0 1px rgba(0,0,0,.4), 0 0 120px rgba(155, 92, 255, .18);
}
.hero .screen { margin: 70px auto 0; max-width: 1040px; transform: perspective(1600px) rotateX(8deg); transform-origin: top; transition: transform .8s ease; }
.hero .screen.in { transform: perspective(1600px) rotateX(0); }
.screen-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: linear-gradient(#1a1628, #120f1e); border-bottom: 1px solid var(--line); }
.screen-bar i { width: 11px; height: 11px; border-radius: 50%; }
.screen-bar i:nth-child(1) { background: #ff6b5f; } .screen-bar i:nth-child(2) { background: #ffc24b; } .screen-bar i:nth-child(3) { background: #3fd07a; }
.screen-bar span { margin-left: auto; font-family: var(--font-m); font-size: .75rem; color: var(--muted); }
.caption { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 16px; }

/* Cifras */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 80px; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255,255,255,.025); overflow: hidden;
}
.stat { text-align: center; padding: 28px 12px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-h); font-size: 2.3rem; font-weight: 800; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .9rem; }

/* Secciones */
section { padding-top: 120px; }
.sec-head { text-align: center; max-width: 700px; margin: 0 auto 54px; }
.kicker { display: inline-block; color: var(--orange); font-weight: 600; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; }
.sec-head h2 { font-family: var(--font-h); font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.12; letter-spacing: -.02em; margin: 12px 0 14px; }
.sec-head p { color: var(--muted); font-size: 1.06rem; }

/* Virtudes */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; padding: 30px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card);
  transition: transform .3s, border-color .3s, background .3s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 179, 92, .12), transparent 45%);
}
.card:hover { transform: translateY(-5px); border-color: rgba(255, 211, 110, .3); }
.card:hover::before { opacity: 1; }
.ico {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(255,138,76,.2), rgba(155,92,255,.2));
  border: 1px solid rgba(255,255,255,.1);
}
.card h3 { font-family: var(--font-h); font-size: 1.3rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .96rem; position: relative; }

/* Escaparate */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.tab {
  font: inherit; font-size: .92rem; font-weight: 500; color: var(--muted); cursor: pointer;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03);
  transition: color .2s, background .2s, border-color .2s;
}
.tab:hover { color: var(--text); border-color: rgba(255,255,255,.25); }
.tab.active { color: #1c1006; background: var(--grad); border-color: transparent; font-weight: 600; }
.showcase-body { display: grid; grid-template-columns: 1.7fr 1fr; gap: 44px; align-items: center; }
.shots { position: relative; aspect-ratio: 16 / 9; background: #000; cursor: zoom-in; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .5s ease; }
.shot.active { opacity: 1; }
.shot-text { position: relative; min-height: 220px; }
.desc { position: absolute; inset: 0; opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s; pointer-events: none; }
.desc.active { opacity: 1; transform: none; pointer-events: auto; }
.desc h3 { font-family: var(--font-h); font-size: 1.9rem; line-height: 1.2; margin-bottom: 14px; }
.desc p { color: var(--muted); font-size: 1.04rem; }

/* Capas */
.stack { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.layer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 20px 26px; border-radius: 16px; border: 1px solid var(--line);
  transition: transform .25s;
}
.layer:hover { transform: scale(1.015); }
.layer b { font-family: var(--font-h); font-size: 1.15rem; }
.layer span { color: var(--muted); font-family: var(--font-m); font-size: .82rem; }
.l5 { background: linear-gradient(90deg, rgba(196,107,255,.22), rgba(196,107,255,.04)); }
.l4 { background: linear-gradient(90deg, rgba(155,92,255,.16), rgba(155,92,255,.03)); }
.l3 { background: linear-gradient(90deg, rgba(79,214,255,.15), rgba(79,214,255,.03)); }
.l2 { background: linear-gradient(90deg, rgba(255,138,76,.2), rgba(255,138,76,.04)); border-color: rgba(255,138,76,.35); }
.l1 { background: linear-gradient(90deg, rgba(255,211,110,.12), rgba(255,211,110,.02)); }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad); color: #1c1006; font-weight: 800; margin-bottom: 18px;
}
.step h3 { font-family: var(--font-h); font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }
pre {
  margin-top: 16px; padding: 14px 16px; border-radius: 12px;
  background: #0a0814; border: 1px solid var(--line);
  font-family: var(--font-m); font-size: .8rem; color: #ddd5f7;
  overflow-x: auto; white-space: pre;
}
pre .c { color: #6f6890; }

.cta {
  position: relative; overflow: hidden;
  margin-top: 110px; padding: 80px 30px; text-align: center;
  border-radius: 28px; border: 1px solid rgba(255, 211, 110, .2);
  background:
    radial-gradient(700px 320px at 50% -10%, rgba(255, 138, 76, .22), transparent 70%),
    radial-gradient(700px 320px at 50% 110%, rgba(155, 92, 255, .22), transparent 70%),
    var(--bg-2);
}
.cta-moon {
  position: absolute; width: 360px; height: 360px; right: -120px; top: -140px; border-radius: 50%;
  box-shadow: inset 30px -24px 0 0 rgba(255, 211, 110, .18);
}
.cta h2 { position: relative; font-family: var(--font-h); font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 12px; }
.cta p { position: relative; color: var(--muted); margin-bottom: 30px; }

footer { margin-top: 100px; padding: 36px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer .brand { color: var(--text); font-size: 1.05rem; }
footer .brand img { width: 24px; height: 24px; }
footer a:hover { color: var(--text); }

/* Visor */
.lightbox {
  position: fixed; inset: 0; z-index: 50; display: none; cursor: zoom-out;
  background: rgba(3, 2, 8, .94); padding: 4vh 4vw; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; border-radius: 10px; border: 1px solid var(--line); }

/* Aparición suave */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.hero .screen.reveal.in { transform: perspective(1600px) rotateX(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero .screen { opacity: 1; transform: none; transition: none; }
  .corona, .ring { animation: none; }
}

/* Responsive */
.grid > *, .steps > *, .showcase-body > *, .stats > * { min-width: 0; }
@media (max-width: 960px) {
  nav ul { display: none; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .showcase-body { grid-template-columns: 1fr; gap: 26px; }
  .shot-text { min-height: 180px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .grid, .steps { grid-template-columns: 1fr; }
  .eclipse { width: 220px; height: 220px; margin-bottom: -20px; }
  .moon { inset: 44px; }
  section { padding-top: 80px; }
  .stat b { font-size: 1.8rem; }
  .desc h3 { font-size: 1.5rem; }
  .shot-text { min-height: 230px; }
  .layer { padding: 16px 18px; }
  pre { font-size: .72rem; }
}

/* Página de descargas */
.page-head { padding-top: 70px; margin-bottom: 44px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; margin-top: 18px; }
.link { color: var(--gold); }
.link:hover { text-decoration: underline; }
.release-current {
  padding: 34px; border-radius: 26px; border: 1px solid rgba(255, 211, 110, .22);
  background: radial-gradient(700px 300px at 0% 0%, rgba(255, 138, 76, .12), transparent 70%), var(--bg-2);
}
.release-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.release-top h3 { font-family: var(--font-h); font-size: 2rem; line-height: 1.2; margin: 10px 0 2px; }
.tag-latest { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; color: #1c1006; background: var(--grad); }
.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.dl-grid > * { min-width: 0; }
.dl {
  display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-radius: 18px;
  border: 1px solid var(--line); background: rgba(255,255,255,.035);
  transition: transform .2s, border-color .2s, background .2s;
}
.dl:hover { transform: translateY(-3px); border-color: rgba(255, 211, 110, .4); background: rgba(255,255,255,.06); }
.dl.featured { border-color: rgba(255, 211, 110, .45); box-shadow: 0 0 40px rgba(255, 138, 76, .12); }
.dl-arch { font-family: var(--font-m); font-size: .78rem; color: var(--orange); }
.dl b { font-family: var(--font-h); font-size: 1.35rem; }
.dl b::after { content: "  ↓"; color: var(--gold); }
.dl-desc { color: var(--muted); font-size: .94rem; }
.dl-meta { font-family: var(--font-m); font-size: .75rem; color: #7d769a; margin-top: 4px; overflow-wrap: anywhere; }
.release-current pre { margin-top: 24px; }
.older { padding-top: 70px; }
.older h3 { font-family: var(--font-h); font-size: 1.5rem; margin-bottom: 18px; }
.table { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 22px; }
.row + .row { border-top: 1px solid var(--line); }
.row b { font-family: var(--font-m); font-size: .95rem; margin-right: 12px; }
.row .muted { font-size: .85rem; }
.links { display: flex; gap: 8px; flex-wrap: wrap; }
.links a { font-size: .85rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); transition: border-color .2s; }
.links a:hover { border-color: rgba(255, 211, 110, .45); }
@media (max-width: 600px) {
  .dl-grid { grid-template-columns: 1fr; }
  .release-current { padding: 22px; }
  .release-top h3 { font-size: 1.6rem; }
}
