/* ═══════════════════════════════════════════
   VORTEX STUDIOS — GLOBAL STYLES
   (Variables, Reset, Navbar & Base Layout)
   Shared across index, blog and articles
   ═══════════════════════════════════════════ */

/* Fonts críticas */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/bebas-neue-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal; font-weight: 100 1000; font-display: swap;
  src: url('fonts/dm-sans-latin.woff2') format('woff2');
}

/* Variables */
:root {
  --black: #06050C; 
  --white: #f0ece3; 
  --accent: #00e5ff;
  --muted: #7a7a82; 
  --card-bg: #0d0d1c; 
  --border: rgba(200,210,255,0.08);
}

/* Reset mínimo */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; overflow-x: hidden; width: 100vw; }

body {
  background: #06050C;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  width: 100%;
  cursor: default;
}

ul { list-style-type: none; margin: 0; padding: 0; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 3rem; mix-blend-mode: difference;
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem;
  letter-spacing: .15em; color: var(--white); text-decoration: none;
  z-index: 101; display: flex; align-items: center; gap: 12px; cursor: pointer;
}
.nav-logo-img { height: 35px; width: auto; border-radius: 4px; }
.menu-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 101; }
.menu-toggle span { width: 30px; height: 2px; background: var(--white); transition: all 0.4s ease; transform-origin: left center; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--white); text-decoration: none; opacity: .6; transition: opacity .25s;
}
.nav-links a:hover {
  opacity: 1;
  color: var(--accent);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  background: var(--accent);
}
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  background: var(--accent);
}

/* ─── STARFIELD ─── */
#starfield { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

@keyframes starDrift {
  from { transform: translateY(0); }
  to   { transform: translateY(-3000px); }
}

/* ─── CURSOR ─── */
#cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, background .2s;
  mix-blend-mode: difference;
}
#cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(232, 255, 62, .4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
}
body:has(a:hover) #cursor,
body:has(button:hover) #cursor {
  width: 20px;
  height: 20px;
}

/* ─── KEYFRAMES ─── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  nav { padding: 1rem; mix-blend-mode: normal; }
  .nav-logo { font-size: 0.85rem; }
  .nav-logo-img { height: 36px; }
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--black); flex-direction: column; align-items: center;
    justify-content: center; gap: 3rem;
    clip-path: circle(0% at right 2.5rem top 2.5rem);
    transition: clip-path 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    pointer-events: none; z-index: 100;
  }
  .nav-links.active { clip-path: circle(150% at right 2.5rem top 2.5rem); pointer-events: auto; }
}
