/* ==========================================================================
   Zavira Global Advisory — CSS Experimental Extraterrestre (/css/site.css)
   Paleta: Verde Ácido, Magenta Intenso, Violeta Eléctrico, Cyan Brillante, Naranja Neón
   ========================================================================== */

:root {
    --z-space-black: #030008;
    --z-deep-violet: #120024;
    --z-acid-green: #00FF66;
    --z-magenta: #FF007F;
    --z-electric-violet: #8A2BE2;
    --z-cyan-bright: #00F0FF;
    --z-orange-neon: #FF6600;
    --z-yellow-neon: #CCFF00;
    --z-text: #E0E7FF;
    --z-muted: #94A3B8;
    --font-head: 'Orbitron', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
}

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

html.alien-dim {
    background-color: var(--z-space-black);
    color: var(--z-text);
    font-family: var(--font-mono);
    overflow-x: hidden;
    cursor: none !important;
}

body.body-alien {
    background: radial-gradient(circle at 50% 20%, var(--z-deep-violet) 0%, var(--z-space-black) 80%);
    min-height: 100vh;
    position: relative;
}

/* --- Loader Extraterrestre --- */
.alien-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--z-space-black);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.alien-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-core {
    text-align: center;
}

.quantum-ring {
    width: 80px;
    height: 80px;
    border: 3px solid rgba(0, 255, 102, 0.2);
    border-top: 3px solid var(--z-acid-green);
    border-radius: 50%;
    animation: quantumSpin 0.8s linear infinite;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 0 20px var(--z-acid-green);
}

.signal-text {
    color: var(--z-acid-green);
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.loading-bar-alien {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    margin: 0 auto;
    border-radius: 2px;
    overflow: hidden;
}

.bar-fill {
    width: 100%;
    height: 100%;
    background: var(--z-cyan-bright);
    animation: loadBar 0.5s ease forwards;
}

@keyframes quantumSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes loadBar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0%); }
}

/* --- Cursor Biológico --- */
.alien-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    mix-blend-mode: difference;
}

.cursor-reticle {
    width: 24px;
    height: 24px;
    border: 1px solid var(--z-cyan-bright);
    border-radius: 50%;
    animation: reticlePulse 2s infinite;
}

.cursor-label {
    font-size: 0.65rem;
    color: var(--z-acid-green);
    font-family: var(--font-head);
    letter-spacing: 0.1em;
}

@keyframes reticlePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(0,240,255,0); }
    50% { transform: scale(1.15); box-shadow: 0 0 10px var(--z-cyan-bright); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(0,240,255,0); }
}

/* --- Navbar Holográfica --- */
.alien-nav {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9000;
    background: rgba(18, 0, 36, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(138, 43, 226, 0.4);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.2);
}

.nav-cluster {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-node {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--z-text);
    font-size: 0.75rem;
    font-family: var(--font-head);
    transition: 0.3s ease;
}

.node-dot {
    width: 6px;
    height: 6px;
    background: var(--z-muted);
    border-radius: 50%;
    transition: 0.3s ease;
}

.nav-node:hover .node-dot,
.nav-node.active .node-dot {
    background: var(--z-acid-green);
    box-shadow: 0 0 8px var(--z-acid-green);
}

.nav-node:hover,
.nav-node.active {
    color: var(--z-acid-green);
}

/* --- Canvas y Glitch Global --- */
.alien-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

.interference-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(rgba(18, 0, 36, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 8000;
    opacity: 0.3;
}

/* --- Layout Contenedor & Secciones No Convencionales --- */
.alien-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.alien-section {
    min-height: 90vh;
    padding: 8rem 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-tag {
    font-size: 0.7rem;
    font-family: var(--font-head);
    color: var(--z-magenta);
    letter-spacing: 0.3em;
    margin-bottom: 2rem;
    border-left: 2px solid var(--z-magenta);
    padding-left: 0.75rem;
}

.top-disclaimer-float {
    background: rgba(255, 102, 0, 0.1);
    border: 1px solid var(--z-orange-neon);
    color: var(--z-orange-neon);
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
    margin-bottom: 3rem;
    display: inline-block;
    letter-spacing: 0.05em;
}

/* --- Hero Composición --- */
.hero-composition {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.alien-orb-container {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-orb {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle at 30% 30%, var(--z-cyan-bright), var(--z-electric-violet));
    border-radius: 50%;
    box-shadow: 0 0 60px var(--z-cyan-bright), inset 0 0 30px var(--z-magenta);
    animation: orbFloat 6s ease-in-out infinite alternate;
}

@keyframes orbFloat {
    0% { transform: translateY(-20px) scale(0.98); }
    100% { transform: translateY(20px) scale(1.02); }
}

.glitch-title {
    font-family: var(--font-head);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px var(--z-magenta), -2px -2px var(--z-cyan-bright);
}

.alien-lead {
    color: var(--z-muted);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.btn-alien-magnetic {
    display: inline-block;
    background: transparent;
    color: var(--z-acid-green);
    border: 1px solid var(--z-acid-green);
    padding: 1rem 2.5rem;
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-decoration: none;
    transition: 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.2);
}

.btn-alien-magnetic:hover {
    background: var(--z-acid-green);
    color: var(--z-space-black);
    box-shadow: 0 0 30px var(--z-acid-green);
}

/* --- Sección Transmisión --- */
.transmission-screen {
    background: rgba(18, 0, 36, 0.9);
    border: 1px solid var(--z-electric-violet);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(138, 43, 226, 0.2);
}

.screen-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: 0.8rem;
    color: var(--z-cyan-bright);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--z-acid-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--z-acid-green);
}

.transmission-body h2 {
    font-family: var(--font-head);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.waveform-visualizer {
    display: flex;
    gap: 8px;
    margin-top: 2rem;
    height: 40px;
    align-items: flex-end;
}

.wave-bar {
    flex: 1;
    background: var(--z-cyan-bright);
    animation: wavePulse 1.2s infinite ease-in-out alternate;
}

.wave-bar:nth-child(2) { animation-delay: 0.2s; background: var(--z-magenta); }
.wave-bar:nth-child(3) { animation-delay: 0.4s; background: var(--z-acid-green); }
.wave-bar:nth-child(4) { animation-delay: 0.6s; background: var(--z-orange-neon); }
.wave-bar:nth-child(5) { animation-delay: 0.3s; background: var(--z-cyan-bright); }
.wave-bar:nth-child(6) { animation-delay: 0.5s; background: var(--z-magenta); }

@keyframes wavePulse {
    0% { height: 10px; }
    100% { height: 40px; }
}

/* --- Planeta Interactivo --- */
.planet-interactive-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.planet-sphere {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle at 30% 30%, var(--z-magenta), var(--z-space-black));
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
    box-shadow: inset -20px -20px 50px rgba(0,0,0,0.8), 0 0 50px rgba(255,0,127,0.4);
}

.hotspot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--z-acid-green);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px var(--z-acid-green);
}

.hs-1 { top: 30%; left: 40%; }
.hs-2 { bottom: 30%; right: 30%; }

.hotspot-data-box {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 240, 255, 0.05);
    border-left: 2px solid var(--z-cyan-bright);
    color: var(--z-cyan-bright);
    font-size: 0.9rem;
}

/* --- Organismo --- */
.organism-composition {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.organic-blob-image img {
    width: 100%;
    height: 400px;
    object-file: cover;
    border-radius: 200px 100px 200px 100px;
    filter: hue-rotate(90deg) contrast(1.2);
    border: 1px solid var(--z-acid-green);
}

.alien-specs-list {
    list-style: none;
    margin-top: 1.5rem;
}

.alien-specs-list li {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.alien-specs-list span {
    color: var(--z-cyan-bright);
}

/* --- Mapa Estelar --- */
.starmap-container {
    height: 450px;
    background: rgba(3, 0, 8, 0.8);
    border: 1px dashed var(--z-electric-violet);
    position: relative;
    border-radius: 12px;
    padding: 3rem;
}

.star-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--z-cyan-bright);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--z-cyan-bright);
}

.starmap-hud {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    max-width: 400px;
}

/* --- Archivo Caótico --- */
.chaotic-archive-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.archive-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    filter: grayscale(0.5) sepia(0.5) hue-rotate(200deg);
}

.item-code {
    display: block;
    font-size: 0.75rem;
    color: var(--z-magenta);
    margin-top: 0.5rem;
}

/* --- Portal Dimensional --- */
.dimensional-portal-wrap {
    text-align: center;
    position: relative;
    padding: 6rem 0;
}

.portal-ring-outer {
    width: 300px;
    height: 300px;
    border: 2px dashed var(--z-cyan-bright);
    border-radius: 50%;
    margin: 0 auto 2rem auto;
    animation: portalSpin 10s linear infinite;
    box-shadow: 0 0 50px rgba(0,240,255,0.3);
}

@keyframes portalSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(1); }
}

/* --- Alerta y Nexus --- */
.alert-pulse-box {
    background: rgba(255, 102, 0, 0.08);
    border: 1px solid var(--z-orange-neon);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 30px rgba(255,102,0,0.15);
}

.nexus-composition {
    text-align: center;
    padding: 4rem 0;
}

.nexus-title {
    font-family: var(--font-head);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.domain-stamp {
    margin-top: 3rem;
    font-size: 0.75rem;
    color: var(--z-acid-green);
    letter-spacing: 0.2em;
}

@media(max-width: 1024px) {
    .hero-composition, .planet-interactive-wrap, .organism-composition, .chaotic-archive-grid {
        grid-template-columns: 1fr;
    }
}