/* ═══════════════════════════════════════════════════════════
   NOXUS — Estilos globales
   ═══════════════════════════════════════════════════════════ */

:root {
    --bg-primary: #080a0f;
    --bg-secondary: #0e1117;
    --bg-card: #121520;
    --accent: #00f2ff;
    --accent-dim: rgba(0, 242, 255, 0.12);
    --accent-glow: rgba(0, 242, 255, 0.35);
    --pink: #ff2d7b;
    --text-primary: #eef0f4;
    --text-secondary: #6b7280;
    --border: rgba(0, 242, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ─── CANVAS PARTÍCULAS ─── */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ─── CAPAS ─── */
.content-layer {
    position: relative;
    z-index: 1;
}

/* ─── RUIDO ─── */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.018;
    z-index: 2;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* ─── TIPOGRAFÍA ─── */
.font-orbitron {
    font-family: 'Orbitron', sans-serif;
}

.font-mono {
    font-family: 'Share Tech Mono', monospace;
}

.font-rajdhani {
    font-family: 'Rajdhani', sans-serif;
}

/* ─── GLITCH ─── */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.glitch::before {
    color: var(--accent);
    left: 2px;
    clip-path: inset(20% 0 60% 0);
    animation: glitch1 4s infinite steps(1);
}

.glitch::after {
    color: var(--pink);
    left: -2px;
    clip-path: inset(55% 0 15% 0);
    animation: glitch2 3.5s infinite steps(1);
}

@keyframes glitch1 {

    0%,
    94%,
    96%,
    100% {
        clip-path: inset(20% 0 60% 0);
        transform: translate(0);
    }

    95% {
        clip-path: inset(40% 0 40% 0);
        transform: translate(-3px, 1px);
    }
}

@keyframes glitch2 {

    0%,
    91%,
    93%,
    100% {
        clip-path: inset(55% 0 15% 0);
        transform: translate(0);
    }

    92% {
        clip-path: inset(30% 0 50% 0);
        transform: translate(3px, -1px);
    }
}

/* ─── TEXTO GRADIENTE ─── */
.grad-text {
    background: linear-gradient(90deg, var(--accent), #fff 40%, var(--accent) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradShift 3s ease infinite;
}

@keyframes gradShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ─── NAV ─── */
nav {
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    background: rgba(8, 10, 15, 0.7);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

nav.scrolled {
    background: rgba(8, 10, 15, 0.92);
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    transition: color 0.3s;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link:hover::after {
    width: 100%;
}

/* ─── BOTONES ─── */
.btn-primary {
    background: var(--accent);
    color: #080a0f;
    padding: 0.7rem 1.8rem;
    border-radius: 4px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 18px var(--accent-glow);
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    padding: 0.7rem 1.8rem;
    border-radius: 4px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border: 1px solid rgba(0, 242, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-outline:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
    box-shadow: 0 0 16px var(--accent-dim);
    transform: translateY(-2px);
}

/* ─── HERO RINGS ─── */
.hero-line {
    position: absolute;
    pointer-events: none;
}

.hero-line-1 {
    top: 15%;
    right: -5%;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(0, 242, 255, 0.06);
    border-radius: 50%;
    animation: spinSlow 40s linear infinite;
}

.hero-line-2 {
    top: 20%;
    right: 2%;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(255, 45, 123, 0.05);
    border-radius: 50%;
    animation: spinSlow 30s linear infinite reverse;
}

@keyframes spinSlow {
    to {
        transform: rotate(360deg);
    }
}

/* ─── STATS ─── */
.stat-block {
    text-align: center;
    padding: 1.5rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.stat-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
}

.stat-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-top: 6px;
}

/* ─── PALABRA DINÁMICA ─── */
#dynWord {
    display: inline-block;
    color: var(--accent);
    font-family: 'Orbitron', sans-serif;
    transition: opacity 0.25s, transform 0.25s;
}

#dynWord.hide {
    opacity: 0;
    transform: translateY(-8px);
}

/* ─── CARDS ─── */
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.4rem 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(.4, 0, .2, 1), border-color 0.4s, box-shadow 0.4s;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 242, 255, 0.22);
    box-shadow: 0 24px 48px rgba(0, 242, 255, 0.08);
}

.card-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--accent);
    border-style: solid;
}

.card-corner--tl {
    top: 10px;
    left: 10px;
    border-width: 1px 0 0 1px;
}

.card-corner--br {
    bottom: 10px;
    right: 10px;
    border-width: 0 1px 1px 0;
}

/* ─── ICONO WRAPPER ─── */
.icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border: 1px solid rgba(0, 242, 255, 0.15);
}

.icon-wrap.yellow {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.2);
}

/* ─── BADGES ─── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.badge-available {
    background: var(--accent-dim);
    border: 1px solid rgba(0, 242, 255, 0.25);
    color: var(--accent);
}

.badge-pending {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.25);
    color: #ffc107;
}

.badge-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.badge-available .badge-dot {
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
}

.badge-pending .badge-dot {
    background: #ffc107;
}

/* ─── CHECK ITEMS ─── */
.check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
}

.check-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ─── FILOSOFÍA ─── */
.phil-section {
    background: var(--bg-secondary);
    position: relative;
}

.phil-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ─── ICONOS SOCIALES ─── */
.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.social-icon:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
    transform: translateY(-2px);
}

/* ─── MODALES ─── */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #111418;
    border: 1px solid rgba(0, 242, 255, 0.18);
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    padding: 2.2rem;
    position: relative;
    overflow: hidden;
    transform: scale(0.93);
    transition: transform 0.3s;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, var(--accent));
}

.modal-input {
    width: 100%;
    background: #0e1117;
    border: 1px solid rgba(0, 242, 255, 0.15);
    border-radius: 6px;
    padding: 0.7rem 0.9rem;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.modal-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.modal-input::placeholder {
    color: #3a3f4a;
}

.modal-label {
    display: block;
    color: #9ca3af;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.google-btn {
    width: 100%;
    background: #fff;
    color: #1f2937;
    border: none;
    border-radius: 6px;
    padding: 0.7rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s, transform 0.2s;
}

.google-btn:hover {
    background: #e8eaed;
    transform: translateY(-1px);
}

/* ─── MENÚ MÓVIL ─── */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(8, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0.8rem 0;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: var(--accent);
}

/* ─── REVEAL ─── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(.4, 0, .2, 1),
        transform 0.7s cubic-bezier(.4, 0, .2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── FEAT TILES ─── */
.feat-tile {
    background: #0e1117;
    border: 1px solid rgba(0, 242, 255, 0.08);
    border-radius: 10px;
    padding: 1.2rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
    cursor: default;
}

.feat-tile:hover {
    border-color: rgba(0, 242, 255, 0.3);
    background: rgba(0, 242, 255, 0.04);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 242, 255, 0.08);
}

.feat-tile span {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.62rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ─── DIVIDER ─── */
.divider {
    width: 60px;
    height: 2px;
    margin: 0 auto;
    background: linear-gradient(90deg, var(--accent), var(--pink));
    border-radius: 1px;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: #1e2230;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}