@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;600;700&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
    --bg-deep: #020617;
    --bg-surface: #081225;
    --line-subtle: rgba(148, 163, 184, 0.16);
    --line-strong: rgba(6, 182, 212, 0.45);
    --accent-cyan: #06b6d4;
    --accent-blue: #3b82f6;
    --accent-amber: #f59e0b;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
}

body {
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
    color: var(--text-main);
}

.display-face {
    font-family: 'Chakra Petch', 'Segoe UI', sans-serif;
}

.mono-face {
    font-family: 'Chakra Petch', 'Segoe UI', sans-serif;
    letter-spacing: 0.02em;
}

/* FONDO */
.quantum-core {
    background-color: var(--bg-deep);
    background-image:
        radial-gradient(circle at 10% 8%, rgba(6, 182, 212, 0.14), transparent 32%),
        radial-gradient(circle at 86% 16%, rgba(59, 130, 246, 0.14), transparent 34%),
        linear-gradient(120deg, #020617 0%, #081126 45%, #030712 100%);
    position: relative;
    overflow-x: hidden;
}

.quantum-core::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to right, rgba(148, 163, 184, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(circle at center, black 15%, transparent 80%);
    mask-image: radial-gradient(circle at center, black 15%, transparent 80%);
    z-index: 0;
}

.section-reveal {
    animation: sectionReveal 0.8s ease-out both;
}

@keyframes sectionReveal {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.signal-panel {
    background: linear-gradient(180deg, rgba(8, 18, 37, 0.92), rgba(2, 6, 23, 0.88));
    border: 1px solid var(--line-subtle);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.5), 0 0 0 1px rgba(6, 182, 212, 0.08) inset;
    position: relative;
    transform-style: preserve-3d;
}

.signal-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(148, 163, 184, 0.08), transparent 35%);
}

.trust-strip {
    border-top: 1px solid var(--line-subtle);
    border-bottom: 1px solid var(--line-subtle);
    background: linear-gradient(90deg, rgba(8, 18, 37, 0.8), rgba(2, 6, 23, 0.72));
    box-shadow: 0 20px 36px rgba(2, 6, 23, 0.35);
}

.trust-chip {
    border: 1px solid rgba(6, 182, 212, 0.22);
    background: rgba(6, 182, 212, 0.05);
}

.depth-section {
    position: relative;
    isolation: isolate;
}

.depth-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.depth-plane-a::before {
    background:
        radial-gradient(circle at 18% 18%, rgba(6, 182, 212, 0.14), transparent 38%),
        radial-gradient(circle at 82% 82%, rgba(59, 130, 246, 0.1), transparent 42%);
}

.depth-plane-b::before {
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.1) 45%, rgba(2, 6, 23, 0.35)),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.08), transparent 30%);
}

.depth-plane-c::before {
    background:
        radial-gradient(circle at 25% 72%, rgba(6, 182, 212, 0.1), transparent 35%),
        radial-gradient(circle at 75% 28%, rgba(245, 158, 11, 0.08), transparent 30%);
}

.depth-divider {
    position: relative;
}

.depth-divider::after {
    content: '';
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.35), transparent);
    pointer-events: none;
}

.panel-lift {
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    box-shadow: 0 10px 20px rgba(2, 6, 23, 0.28);
}

.panel-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(2, 6, 23, 0.45);
    border-color: rgba(6, 182, 212, 0.35);
}

.quick-nav {
    border: 1px solid rgba(6, 182, 212, 0.2);
    background: linear-gradient(180deg, rgba(8, 18, 37, 0.82), rgba(2, 6, 23, 0.72));
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.32);
}

.quick-nav a {
    border: 1px solid rgba(6, 182, 212, 0.15);
    background: rgba(6, 182, 212, 0.04);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.quick-nav a:hover {
    transform: translateY(-2px);
    border-color: rgba(6, 182, 212, 0.45);
    background: rgba(6, 182, 212, 0.1);
}

.scan-note {
    border-left: 2px solid rgba(6, 182, 212, 0.4);
    padding-left: 0.75rem;
}

.sticky-guide {
    position: fixed;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 45;
    display: none;
    gap: 10px;
    flex-direction: column;
}

.sticky-guide a {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(6, 182, 212, 0.45);
    background: rgba(2, 6, 23, 0.7);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.08);
}

.sticky-guide a:hover {
    background: rgba(6, 182, 212, 0.6);
}

@media (min-width: 1024px) {
    .sticky-guide {
        display: flex;
    }
}

/* Legacy 3D classes (kept for compatibility) */
.scene-3d {
    perspective: 1000px;
    width: 300px;
    height: 300px;
}

.cube-3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 20s infinite linear;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(6, 182, 212, 0.3);
    background: rgba(6, 182, 212, 0.03);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.1);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.front {
    transform: rotateY(0deg) translateZ(100px);
}

.back {
    transform: rotateY(180deg) translateZ(100px);
    border-color: rgba(59, 130, 246, 0.3);
}

.right {
    transform: rotateY(90deg) translateZ(100px);
}

.left {
    transform: rotateY(-90deg) translateZ(100px);
    border-color: rgba(59, 130, 246, 0.3);
}

.top {
    transform: rotateX(90deg) translateZ(100px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

.cube-inner {
    width: 100px;
    height: 100px;
    position: absolute;
    top: 50px;
    left: 50px;
    transform-style: preserve-3d;
    animation: rotateCubeInner 10s infinite linear reverse;
}

.inner-face {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 1px dashed rgba(16, 185, 129, 0.55);
    background: rgba(16, 185, 129, 0.1);
}

.ifront {
    transform: rotateY(0deg) translateZ(50px);
}

.iback {
    transform: rotateY(180deg) translateZ(50px);
}

.iright {
    transform: rotateY(90deg) translateZ(50px);
}

.ileft {
    transform: rotateY(-90deg) translateZ(50px);
}

.itop {
    transform: rotateX(90deg) translateZ(50px);
}

.ibottom {
    transform: rotateX(-90deg) translateZ(50px);
}

@keyframes rotateCube {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes rotateCubeInner {
    0% {
        transform: rotateX(0deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateZ(360deg);
    }
}

.glow-border:hover {
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.25);
    border-color: rgba(6, 182, 212, 0.5) !important;
}

.pipeline-container {
    perspective: 1200px;
}

.pipeline-mesh {
    transform-style: preserve-3d;
    transform: rotateX(20deg) rotateY(-15deg);
}

.pipeline-node {
    transform-style: preserve-3d;
    transition: all 0.4s ease;
}

.pipeline-node:hover {
    transform: translateZ(15px) scale(1.02);
}

@keyframes dataPulse {
    0% {
        transform: translateX(0%) scale(0.8);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateX(350%) scale(0.8);
        opacity: 0;
    }
}

#scan-bar {
    width: 0%;
}

.data-particle {
    animation: dataPulse 6s infinite linear;
}

.data-particle-delayed {
    animation: dataPulse 6s infinite linear;
    animation-delay: 2s;
}

.data-particle-blocked {
    animation: dataPulseBlocked 4s infinite ease-in;
}

@keyframes dataPulseBlocked {
    0% {
        transform: translateX(0%);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    50% {
        transform: translateX(110%) translateY(10px) scale(0.5);
        opacity: 0.8;
        color: #ef4444;
    }

    100% {
        transform: translateX(110%) translateY(40px) scale(0);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}