/* ==============================================
   GROWTH ENGINE PREMIUM - CSS STYLES
   Complete redesign with 3D effects, glassmorphism,
   and advanced animations
   ============================================== */

/* ========== COLOR PALETTE ========== */
:root {
    /* Core Colors */
    --core-red: #E60000;
    --core-black: #0a0a0a;
    --core-white: #ffffff;

    /* Node Colors */
    --color-blue: #0066FF;
    --color-red: #E60000;
    --color-gold: #FFD700;
    --color-silver: #C0C0C0;
    --color-violet: #7C3AED;

    /* Gradients */
    --gradient-fire: linear-gradient(135deg, #E60000 0%, #FF4444 50%, #E60000 100%);
    --gradient-energy: linear-gradient(135deg, #E60000 0%, #FF6B00 50%, #FFD700 100%);
    --gradient-neon: linear-gradient(135deg, #00FFE5 0%, #E60000 50%, #FF00E5 100%);

    /* Glow Effects */
    --shadow-intense: 0 0 100px rgba(230, 0, 0, 0.6), 0 0 50px rgba(230, 0, 0, 0.4);
    --shadow-depth: 0 20px 60px rgba(0, 0, 0, 0.8), 0 10px 40px rgba(230, 0, 0, 0.3);
    --glow-pulse: 0 0 60px rgba(230, 0, 0, 0.8), 0 0 30px rgba(255, 255, 255, 0.3);
}

/* ========== BASE CONTAINER ========== */
.ecosystem-premium {
    position: relative;
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    min-height: 700px;
}

/* ========== BACKGROUND EFFECTS ========== */

/* Animated Grid */
.bg-grid-animated {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridMove 20s linear infinite;
    opacity: 0.5;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(40px, 40px);
    }
}

/* Floating Particles */
.bg-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.4;
}

.bg-particles::before,
.bg-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(230, 0, 0, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatParticle 15s ease-in-out infinite;
}

.bg-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.bg-particles::after {
    top: 60%;
    right: 15%;
    animation-delay: 7s;
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    50% {
        transform: translate(100px, -100px) scale(1.5);
        opacity: 0.8;
    }

    90% {
        opacity: 0.6;
    }
}

/* Scanlines */
.bg-scanlines {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%,
            rgba(230, 0, 0, 0.03) 50%);
    background-size: 100% 4px;
    animation: scanlines 8s linear infinite;
    pointer-events: none;
    opacity: 0.3;
}

@keyframes scanlines {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(4px);
    }
}

/* ========== CORE ENGINE - 3 LAYERS ========== */

.core-container {
    width: 180px;
    height: 180px;
    z-index: 10;
}

/* Layer 1: Energy Ring (Outer) */
.energy-ring {
    position: absolute;
    inset: 0;
    width: 180px;
    height: 180px;
    animation: rotateRing 30s linear infinite;
}

.ring-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            rgba(230, 0, 0, 0.4) 90deg,
            transparent 180deg,
            rgba(255, 68, 68, 0.6) 270deg,
            transparent 360deg);
    filter: blur(8px);
    animation: pulseRing 3s ease-in-out infinite;
}

@keyframes rotateRing {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseRing {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Layer 2: Glass Shield (Middle) */
.glass-shield {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid;
    border-image: linear-gradient(135deg,
            rgba(230, 0, 0, 0.6),
            rgba(255, 215, 0, 0.4),
            rgba(230, 0, 0, 0.6)) 1;
    box-shadow:
        0 0 30px rgba(230, 0, 0, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.glass-inner {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg,
            rgba(230, 0, 0, 0.1) 0%,
            transparent 50%,
            rgba(255, 68, 68, 0.1) 100%);
}

/* Layer 3: Core Sphere (Inner) */
.core-sphere {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%,
            rgba(255, 68, 68, 0.9) 0%,
            rgba(230, 0, 0, 1) 50%,
            rgba(139, 0, 0, 1) 100%);
    box-shadow: var(--glow-pulse);
    animation: breatheCore 4s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes breatheCore {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 60px rgba(230, 0, 0, 0.8), 0 0 30px rgba(255, 255, 255, 0.3);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.08);
        box-shadow: 0 0 80px rgba(230, 0, 0, 1), 0 0 40px rgba(255, 255, 255, 0.5);
    }
}

.core-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 0, 0, 0.4) 0%, transparent 70%);
    filter: blur(20px);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.holographic-text {
    position: relative;
    z-index: 2;
    text-align: center;
}

.holographic-text span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.375rem;
    font-weight: 900;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #ffcccc 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow:
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 40px rgba(230, 0, 0, 0.3);
    animation: holographicShift 5s ease-in-out infinite;
}

@keyframes holographicShift {

    0%,
    100% {
        filter: hue-rotate(0deg);
    }

    50% {
        filter: hue-rotate(10deg);
    }
}

/* Energy Waves */
.energy-waves {
    position: absolute;
    inset: -40px;
    pointer-events: none;
}

.energy-waves .wave {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(230, 0, 0, 0.3);
    border-radius: 50%;
    animation: expandWave 4s ease-out infinite;
}

.energy-waves .wave:nth-child(2) {
    animation-delay: 1.3s;
}

.energy-waves .wave:nth-child(3) {
    animation-delay: 2.6s;
}

@keyframes expandWave {
    0% {
        transform: scale(0.8);
        opacity: 0;
        border-color: rgba(230, 0, 0, 0.6);
    }

    50% {
        opacity: 0.4;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
        border-color: rgba(230, 0, 0, 0);
    }
}

/* ========== PREMIUM NODES ========== */

.nodes-container {
    position: absolute;
    inset: 0;
}

.premium-node {
    position: absolute;
    width: 200px;
    top: 50%;
    left: 50%;
    margin-top: -100px;
    margin-left: -100px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 20;
}

/* Orbital Positioning */
.premium-node {
    animation: orbitDynamic 40s linear infinite;
}

.crm-node {
    animation-delay: 0s;
}

.ai-node {
    animation-delay: -8s;
}

.ventas-node {
    animation-delay: -16s;
}

.ops-node {
    animation-delay: -24s;
}

.marketing-node {
    animation-delay: -32s;
}

@keyframes orbitDynamic {
    0% {
        transform: rotate(0deg) translateX(260px) translateY(0px) rotate(0deg);
    }

    25% {
        transform: rotate(90deg) translateX(280px) translateY(-15px) rotate(-90deg);
    }

    50% {
        transform: rotate(180deg) translateX(260px) translateY(0px) rotate(-180deg);
    }

    75% {
        transform: rotate(270deg) translateX(280px) translateY(15px) rotate(-270deg);
    }

    100% {
        transform: rotate(360deg) translateX(260px) translateY(0px) rotate(-360deg);
    }
}

/* Background Numbers */
.node-bg-number {
    position: absolute;
    top: -10px;
    right: -10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 6rem;
    font-weight: 900;
    opacity: 0.05;
    z-index: 1;
    pointer-events: none;
    line-height: 1;
}

/* Node Glow */
.node-glow {
    position: absolute;
    inset: -15px;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

/* Glassmorphic Card */
.node-glass {
    position: relative;
    padding: 1.5rem;
    border-radius: 18px;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}

/* Icon Wrapper */
.node-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.node-icon {
    font-size: 2rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

/* Typography */
.node-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.125rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.node-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    line-height: 1.4;
    transition: color 0.3s ease;
}

/* Color Variants */

/* CRM - Blue */
.crm-node .node-icon-wrapper {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.2), rgba(0, 191, 255, 0.1));
}

.crm-node .node-glow {
    background: radial-gradient(circle, rgba(0, 102, 255, 0.4) 0%, transparent 70%);
    filter: blur(20px);
}

.crm-node .node-glass {
    border-color: rgba(0, 102, 255, 0.2);
}

/* AI Agents - Red */
.ai-node .node-icon-wrapper {
    background: linear-gradient(135deg, rgba(230, 0, 0, 0.2), rgba(255, 68, 68, 0.1));
}

.ai-node .node-glow {
    background: radial-gradient(circle, rgba(230, 0, 0, 0.4) 0%, transparent 70%);
    filter: blur(20px);
}

.ai-node .node-glass {
    border-color: rgba(230, 0, 0, 0.2);
}

/* Ventas - Gold */
.ventas-node .node-icon-wrapper {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.1));
}

.ventas-node .node-glow {
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
    filter: blur(20px);
}

.ventas-node .node-glass {
    border-color: rgba(255, 215, 0, 0.2);
}

/* Operación - Silver */
.ops-node .node-icon-wrapper {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2), rgba(232, 232, 232, 0.1));
}

.ops-node .node-glow {
    background: radial-gradient(circle, rgba(192, 192, 192, 0.4) 0%, transparent 70%);
    filter: blur(20px);
}

.ops-node .node-glass {
    border-color: rgba(192, 192, 192, 0.2);
}

/* Marketing - Violet */
.marketing-node .node-icon-wrapper {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(168, 85, 247, 0.1));
}

.marketing-node .node-glow {
    background: radial-gradient(circle, rgba(124, 58, 237, 0.4) 0%, transparent 70%);
    filter: blur(20px);
}

.marketing-node .node-glass {
    border-color: rgba(124, 58, 237, 0.2);
}

/* ========== HOVER STATES ========== */

.premium-node:hover {
    z-index: 30;
}

.premium-node:hover .node-glass {
    transform: translateY(-8px) scale(1.05);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 40px currentColor,
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.premium-node:hover .node-glow {
    opacity: 1;
}

.premium-node:hover .node-icon {
    transform: scale(1.15) translateY(-3px);
    animation: levitate 1.5s ease-in-out infinite;
}

@keyframes levitate {

    0%,
    100% {
        transform: scale(1.15) translateY(-3px);
    }

    50% {
        transform: scale(1.15) translateY(-8px);
    }
}

.premium-node:hover .node-desc {
    color: rgba(255, 255, 255, 0.8);
}

/* Color-specific hover effects */
.crm-node:hover .node-glass {
    border-color: rgba(0, 102, 255, 0.6);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(0, 102, 255, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ai-node:hover .node-glass {
    border-color: rgba(230, 0, 0, 0.6);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(230, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ventas-node:hover .node-glass {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(255, 215, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ops-node:hover .node-glass {
    border-color: rgba(192, 192, 192, 0.6);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(192, 192, 192, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.marketing-node:hover .node-glass {
    border-color: rgba(124, 58, 237, 0.6);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(124, 58, 237, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ========== MOBILE RESPONSIVE ========== */

@media (max-width: 768px) {
    .ecosystem-premium {
        min-height: auto;
        padding: 2rem 0;
    }

    /* Disable orbital animation on mobile */
    .premium-node {
        position: relative !important;
        width: 100% !important;
        max-width: 300px;
        margin: 1rem auto !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        animation: none !important;
    }

    .nodes-container {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 3rem;
    }

    .core-container {
        position: relative !important;
        margin: 0 auto 2rem !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
    }

    /* Hide background effects on mobile for performance */
    .bg-grid-animated,
    .bg-particles,
    .bg-scanlines {
        display: none;
    }

    /* Hide energy waves on mobile */
    .energy-waves {
        display: none;
    }

    /* Hide orbit paths */
    .orbit-paths {
        display: none;
    }
}

/* ==============================================
   SALES WORKFLOW STYLES
   Premium glassmorphism workflow cards
   ============================================== */

/* Desktop Workflow Cards */
.workflow-card {
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.workflow-number {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #E60000, #FF4444);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 900;
    color: white;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.4);
}

.workflow-glass {
    position: relative;
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-height: 240px;
}

.workflow-card:hover .workflow-glass {
    transform: translateY(-8px);
    border-color: rgba(230, 0, 0, 0.4);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(230, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.workflow-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.workflow-card:hover .workflow-icon-wrapper {
    transform: scale(1.1) translateY(-4px);
}

.workflow-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.125rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: #ffffff;
}

.workflow-desc {
    font-size: 0.875rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.workflow-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: auto;
}

.pill {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.pill-red {
    background: rgba(230, 0, 0, 0.15);
    border-color: rgba(230, 0, 0, 0.3);
    color: #FF6B6B;
}

.pill-blue {
    background: rgba(0, 102, 255, 0.15);
    border-color: rgba(0, 102, 255, 0.3);
    color: #66B3FF;
}

.pill-gold {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
    color: #FFD700;
}

/* Workflow Arrows */
.workflow-arrow {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* Mobile Workflow Cards */
.workflow-card-mobile {
    position: relative;
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.workflow-card-mobile:active {
    transform: scale(0.98);
    border-color: rgba(230, 0, 0, 0.4);
}

.workflow-icon-wrapper-mobile {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pill-mobile {
    padding: 0.375rem 0.875rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    display: inline-block;
}

.pill-mobile-red {
    background: rgba(230, 0, 0, 0.15);
    border-color: rgba(230, 0, 0, 0.3);
    color: #FF6B6B;
}

.pill-mobile-blue {
    background: rgba(0, 102, 255, 0.15);
    border-color: rgba(0, 102, 255, 0.3);
    color: #66B3FF;
}

.pill-mobile-gold {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
    color: #FFD700;
}

.mobile-arrow {
    text-align: center;
    font-size: 2rem;
    color: rgba(230, 0, 0, 0.4);
    margin-top: 1rem;
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    50% {
        transform: translateY(5px);
        opacity: 1;
    }
}