/*

TemplateMo 594 nexus flow

https://templatemo.com/tm-594-nexus-flow

*/

@charset "utf-8";
/* CSS Document */

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

        :root {
            --primary-grey: #e5e7eb;
            --primary-orange: #f97316;
            --primary-purple: #7c3aed;
            --secondary-amber: #fbbf24;
            --dark-bg: #1a0b2e;
            --darker-bg: #0f051a;
            --card-bg: rgba(229, 231, 235, 0.03);
            --border-color: rgba(229, 231, 235, 0.2);
            --text-primary: #ffffff;
            --text-secondary: #a1a1aa;
            --primary-cyan: #00ffff;
            --primary-pink: #ff00ff;
        }

        body {
            font-family: 'JetBrains Mono', 'Fira Code', monospace;
            background: var(--darker-bg);
            color: var(--text-primary);
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* Enhanced Cyberpunk Background */
        .cyber-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--darker-bg);
            overflow: hidden;
            z-index: -5;
        }

        /* Animated gradient background */
        .cyber-gradient {
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: 
                radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(255, 0, 255, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 60% 20%, rgba(249, 115, 22, 0.15) 0%, transparent 50%);
            animation: gradientRotate 30s linear infinite;
            filter: blur(40px);
        }

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

        /* Matrix rain effect */
        .matrix-rain {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            opacity: 0.15;
        }

        .matrix-column {
            position: absolute;
            top: -100vh;
            font-family: 'Courier New', monospace;
            font-size: 14px;
            color: var(--primary-cyan);
            text-shadow: 0 0 5px var(--primary-cyan);
            animation: matrixFall linear infinite;
            writing-mode: vertical-rl;
            text-orientation: upright;
            background: linear-gradient(to bottom, transparent 0%, var(--primary-cyan) 50%, transparent 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .matrix-column:nth-child(3n) {
            color: var(--primary-pink);
            text-shadow: 0 0 5px var(--primary-pink);
            background: linear-gradient(to bottom, transparent 0%, var(--primary-pink) 50%, transparent 100%);
        }

        .matrix-column:nth-child(5n) {
            color: var(--primary-purple);
            text-shadow: 0 0 5px var(--primary-purple);
            background: linear-gradient(to bottom, transparent 0%, var(--primary-purple) 50%, transparent 100%);
        }

        @keyframes matrixFall {
            0% { transform: translateY(0); }
            100% { transform: translateY(200vh); }
        }

        /* Animated grid overlay */
        .grid-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -2;
        }

        .grid-lines {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                linear-gradient(rgba(0, 255, 255, 0.05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 255, 255, 0.05) 1px, transparent 1px);
            background-size: 50px 50px;
            animation: gridMove 20s linear infinite;
        }

        .grid-glow {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                linear-gradient(rgba(255, 0, 255, 0.03) 2px, transparent 2px),
                linear-gradient(90deg, rgba(255, 0, 255, 0.03) 2px, transparent 2px);
            background-size: 100px 100px;
            animation: gridMove 30s linear infinite reverse;
        }

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

        /* Floating particles */
        .particles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: -3;
        }

        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: var(--primary-cyan);
            border-radius: 50%;
            box-shadow: 0 0 10px var(--primary-cyan);
            animation: float 20s infinite;
            opacity: 0;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .particle:nth-child(odd) {
            background: var(--primary-pink);
            box-shadow: 0 0 10px var(--primary-pink);
            animation-duration: 25s;
        }

        @keyframes float {
            0% {
                transform: translateY(100vh) translateX(0);
                opacity: 0;
            }
            10% {
                opacity: 1;
            }
            90% {
                opacity: 1;
            }
            100% {
                transform: translateY(-100vh) translateX(100px);
                opacity: 0;
            }
        }

        /* Glowing orbs */
        .orb {
            position: fixed;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.5;
            animation: orbFloat 20s ease-in-out infinite;
            pointer-events: none;
            z-index: -4;
        }

        .orb1 {
            width: 300px;
            height: 300px;
            background: var(--primary-cyan);
            top: 10%;
            left: -150px;
            animation-delay: 0s;
        }

        .orb2 {
            width: 400px;
            height: 400px;
            background: var(--primary-pink);
            bottom: 10%;
            right: -200px;
            animation-delay: 5s;
        }

        .orb3 {
            width: 250px;
            height: 250px;
            background: var(--primary-purple);
            top: 50%;
            left: 50%;
            animation-delay: 10s;
        }

        @keyframes orbFloat {
            0%, 100% {
                transform: translate(0, 0) scale(1);
            }
            33% {
                transform: translate(100px, -50px) scale(1.1);
            }
            66% {
                transform: translate(-50px, 100px) scale(0.9);
            }
        }

        /* Scanlines effect */
        .scanlines {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
        }

        .scanlines::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                transparent 0%,
                rgba(0, 255, 255, 0.03) 50%,
                transparent 100%
            );
            background-size: 100% 4px;
            animation: scanline 8s linear infinite;
        }

        .scanlines::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
            pointer-events: none;
        }

        /* Noise texture overlay */
        .noise-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0.03;
            z-index: -1;
            pointer-events: none;
            background-image: 
                repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px),
                repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(0, 255, 255, 0.02) 2px, rgba(0, 255, 255, 0.02) 4px);
        }

        @keyframes scanline {
            0% { transform: translateY(-100%); }
            100% { transform: translateY(100%); }
        }

        /* Navigation */
        nav {
            position: fixed;
            top: 0;
            width: 100%;
            padding: 1rem 2rem;
            background: rgba(15, 15, 35, 0.9);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-color);
            z-index: 10000;
            transition: all 0.3s ease;
        }

        .nav-container {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        /* Mobile Menu Button */
        .mobile-menu-button {
            display: none;
            background: none;
            border: none;
            color: var(--primary-cyan);
            font-size: 1.5rem;
            cursor: pointer;
            position: relative;
            width: 30px;
            height: 30px;
            transition: all 0.3s ease;
        }

        .mobile-menu-button:hover {
            color: var(--primary-orange);
            transform: scale(1.1);
        }

        .hamburger {
            position: relative;
            width: 25px;
            height: 20px;
            margin: auto;
        }

        .hamburger span {
            display: block;
            position: absolute;
            height: 2px;
            width: 100%;
            background: var(--primary-cyan);
            border-radius: 1px;
            opacity: 1;
            left: 0;
            transform: rotate(0deg);
            transition: all 0.25s ease-in-out;
            box-shadow: 0 0 5px var(--primary-cyan);
            transform-origin: center;
        }

        .hamburger span:nth-child(1) {
            top: 0px;
        }

        .hamburger span:nth-child(2) {
            top: 9px;
        }

        .hamburger span:nth-child(3) {
            top: 18px;
        }

        .mobile-menu-button.active .hamburger span:nth-child(1) {
            top: 9px;
            transform: rotate(135deg);
            background: var(--primary-orange);
        }

        .mobile-menu-button.active .hamburger span:nth-child(2) {
            opacity: 0;
            left: -25px;
        }

        .mobile-menu-button.active .hamburger span:nth-child(3) {
            top: 9px;
            transform: rotate(-135deg);
            background: var(--primary-orange);
        }

        /* Mobile Menu */
        .mobile-menu {
            position: fixed;
            top: 78px;
            right: -100%;
            width: 80%;
            max-width: 350px;
            height: calc(100vh - 78px);
            background: var(--darker-bg);
            backdrop-filter: blur(20px);
            border-left: 2px solid var(--border-color);
            z-index: 9999;
            transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
            overflow-y: auto;
            box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
            display: flex;
            flex-direction: column;
        }

        .mobile-menu.active {
            right: 0;
        }

        .mobile-menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: rgba(0, 0, 0, 0.7);
            z-index: 9998;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

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

        .mobile-menu-header {
            padding: 2rem;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
        }

        .mobile-menu-logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-cyan);
            text-shadow: 0 0 15px var(--primary-cyan);
            text-decoration: none;
            display: inline-block;
            transition: all 0.3s ease;
        }

        .mobile-menu-logo::before {
            content: '>';
            margin-right: 0.5rem;
            color: var(--primary-orange);
            transition: all 0.3s ease;
        }

        .mobile-menu-logo::after {
            content: '_';
            animation: blink 1s infinite;
            color: var(--primary-cyan);
        }

        .mobile-menu-logo:hover {
            text-shadow: 0 0 25px var(--primary-cyan);
            transform: scale(1.05);
        }

        .mobile-menu-logo:hover::before {
            margin-right: 0.8rem;
            text-shadow: 0 0 10px var(--primary-orange);
        }

        .mobile-menu-close {
            background: none;
            border: none;
            color: var(--primary-cyan);
            font-size: 1.5rem;
            cursor: pointer;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .mobile-menu-close:hover {
            color: var(--primary-orange);
            transform: rotate(90deg);
        }

        .mobile-menu-nav {
            padding: 0;
            flex-grow: 1;
        }

        .mobile-menu-nav ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .mobile-menu-nav li {
            margin: 0;
        }

        .mobile-menu-nav a {
            display: block;
            padding: 1.5rem 2rem;
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            position: relative;
            border-bottom: 1px solid rgba(229, 231, 235, 0.1);
        }

        .mobile-menu-nav a:hover {
            color: var(--primary-cyan);
            background: rgba(0, 255, 255, 0.05);
            padding-left: 3rem;
            text-shadow: 0 0 10px var(--primary-cyan);
        }

        .mobile-menu-nav a::before {
            content: '>';
            position: absolute;
            left: 2rem;
            opacity: 0;
            transform: translateX(-10px);
            transition: all 0.3s ease;
            color: var(--primary-orange);
        }

        .mobile-menu-nav a:hover::before {
            opacity: 1;
            transform: translateX(0);
        }

        .mobile-menu-nav li:last-child a {
            border-bottom: none;
        }

        .mobile-menu-cta {
            padding: 2rem;
            flex-shrink: 0;
            border-bottom: 1px solid var(--border-color);
        }

        .cyber-button {
            display: inline-block;
            background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
            color: var(--darker-bg);
            padding: 1rem 2rem;
            text-decoration: none;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
            transition: all 0.3s ease;
            clip-path: polygon(15px 0%, 100% 0%, calc(100% - 15px) 100%, 0% 100%);
            box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
            width: 100%;
            text-align: center;
        }

        .cyber-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
        }

        /* Animation keyframes for mobile menu */
        @keyframes slideInLeft {
            from {
                opacity: 0;
                transform: translateX(20px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Desktop Navigation Layout */
        @media (min-width: 769px) {
            .mobile-menu-button {
                display: none !important;
            }
            
            .nav-container {
                flex-direction: row;
                align-items: center;
                gap: 0;
            }
            
            .nav-top {
                flex: 0 0 auto;
            }
            
            .nav-links {
                flex: 1;
                display: flex;
                flex-direction: row;
                justify-content: center;
                margin: 0 2rem;
                max-width: none;
            }
            
            .nav-links a {
                padding: 0;
                border-bottom: none;
                font-size: 0.9rem;
            }
            
            .nav-links a:hover {
                background: none;
                transform: none;
                padding-left: 0;
            }
            
            .nav-links a::before {
                display: none;
            }
            
            .nav-bottom {
                flex: 0 0 auto;
            }
            
            .cyber-button {
                width: auto;
                max-width: none;
            }
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--primary-cyan);
            text-shadow: 0 0 20px var(--primary-cyan);
            position: relative;
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
            transition: all 0.3s ease;
        }

        .logo:hover {
            text-shadow: 0 0 30px var(--primary-cyan);
            transform: scale(1.05);
        }

        .logo::before {
            content: '>';
            margin-right: 0.5rem;
            color: var(--primary-orange);
            transition: all 0.3s ease;
        }

        .logo:hover::before {
            margin-right: 0.8rem;
            text-shadow: 0 0 10px var(--primary-orange);
        }

        .logo::after {
            content: '_';
            animation: blink 1s infinite;
            color: var(--primary-cyan);
        }

        @keyframes blink {
            0%, 50% { opacity: 1; }
            51%, 100% { opacity: 0; }
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 2.5rem;
        }

        .nav-links a {
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
            text-transform: uppercase;
            font-size: 0.9rem;

            letter-spacing: 1px;
        }

        .nav-links a:hover {
            color: var(--primary-cyan);
            text-shadow: 0 0 10px var(--primary-cyan);
        }

        .nav-links a::before {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple));
            transition: width 0.3s ease;
            box-shadow: 0 0 10px var(--primary-cyan);
        }

        .nav-links a:hover::before {
            width: 100%;
        }

        /* Hero Section */
        .hero {
            padding: 150px 2rem 100px;
            text-align: center;
            position: relative;
            min-height: 100vh;
            display: flex;
            align-items: center;
        }

        .hero-container {
            max-width: 1400px;
            margin: 0 auto;
            width: 100%;
        }

        .hero-title {
            font-size: clamp(3rem, 8vw, 6rem);
            font-weight: 900;
            margin-bottom: 2rem;
            text-transform: uppercase;
            letter-spacing: 3px;
            position: relative;
            cursor: pointer;
            line-height: 1.2;
        }

        .hero-nexus {
            background: linear-gradient(135deg, var(--primary-cyan), #00ccff);
            background: -webkit-linear-gradient(135deg, var(--primary-cyan), #00ccff);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            display: inline-block;
            transition: all 0.3s ease;
            animation: cyanPulse 3s ease-in-out infinite;
            position: relative;
        }

        .hero-flow {
            background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
            background: -webkit-linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-left: 0.1em;
            display: inline-block;
            transition: all 0.3s ease;
            animation: purplePulse 3s ease-in-out infinite;
            animation-delay: 1.5s;
            position: relative;
        }

        @keyframes cyanPulse {
            0%, 100% { 
                filter: brightness(1) drop-shadow(0 0 15px rgba(0, 255, 255, 0.6));
                transform: translateY(0) scale(1);
            }
            50% { 
                filter: brightness(1.1) drop-shadow(0 0 25px rgba(0, 255, 255, 0.8));
                transform: translateY(-2px) scale(1.01);
            }
        }

        @keyframes purplePulse {
            0%, 100% { 
                filter: brightness(1) drop-shadow(0 0 15px rgba(255, 0, 255, 0.6));
                transform: translateY(0) scale(1);
            }
            50% { 
                filter: brightness(1.1) drop-shadow(0 0 25px rgba(255, 0, 255, 0.8));
                transform: translateY(-2px) scale(1.01);
            }
        }

        /* Clean hover effect */
        .hero-title:hover .hero-nexus {
            transform: translateX(-3px) scale(1.02);
            filter: brightness(1.2) drop-shadow(0 0 30px rgba(0, 255, 255, 0.9));
        }

        .hero-title:hover .hero-flow {
            transform: translateX(3px) scale(1.02);
            filter: brightness(1.2) drop-shadow(0 0 30px rgba(255, 0, 255, 0.9));
        }

        /* Subtle background glow for each word */
        .hero-nexus::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(0, 255, 255, 0.08) 0%, transparent 60%);
            filter: blur(50px);
            z-index: -1;
            animation: glowPulse 4s ease-in-out infinite;
            pointer-events: none;
        }

        .hero-flow::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 0, 255, 0.08) 0%, transparent 60%);
            filter: blur(50px);
            z-index: -1;
            animation: glowPulse 4s ease-in-out infinite;
            animation-delay: 2s;
            pointer-events: none;
        }

        @keyframes glowPulse {
            0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.9); }
            50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
        }

        /* Apply animation pause on hover */
        .hero-title:hover .hero-nexus,
        .hero-title:hover .hero-flow {
            animation-play-state: paused;
        }

        /* Border animation */
        .hero-nexus::after,
        .hero-flow::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 0;
            height: 3px;
            transition: width 0.3s ease;
        }

        .hero-nexus::after {
            background: linear-gradient(90deg, var(--primary-cyan), transparent);
        }

        .hero-flow::after {
            background: linear-gradient(90deg, transparent, var(--primary-pink));
            left: auto;
            right: 0;
        }

        .hero-title:hover .hero-nexus::after,
        .hero-title:hover .hero-flow::after {
            width: 100%;
        }

        /* Typing effect for hero text on load */
        @keyframes typeIn {
            0% { 
                opacity: 0;
                transform: translateY(20px);
            }
            100% { 
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Remove scanner line for cleaner look */

        .hero-subtitle {
            font-size: 1.5rem;
            color: var(--text-secondary);
            margin-bottom: 3rem;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
            font-weight: 300;
            opacity: 0.9;
            background: linear-gradient(135deg, var(--text-secondary), var(--primary-grey));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .hero-buttons {
            display: flex;
            gap: 2rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
            color: var(--darker-bg);
            padding: 1.2rem 3rem;
            border: none;
            text-decoration: none;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
            clip-path: polygon(20px 0%, 100% 0%, calc(100% - 20px) 100%, 0% 100%);
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(0, 255, 255, 0.4);
        }

        .btn-secondary {
            background: transparent;
            color: var(--primary-cyan);
            padding: 1.2rem 3rem;
            border: 2px solid var(--primary-cyan);
            text-decoration: none;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            clip-path: polygon(20px 0%, 100% 0%, calc(100% - 20px) 100%, 0% 100%);
        }

        .btn-secondary:hover {
            background: var(--primary-cyan);
            color: var(--darker-bg);
            box-shadow: 0 0 30px var(--primary-cyan);
        }

        /* Features Section */
        .features {
            padding: 120px 2rem;
            position: relative;
        }

        .features-container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .section-header {
            text-align: center;
            margin-bottom: 5rem;
        }

        .section-title {
            font-size: 3rem;
            font-weight: 800;
            color: var(--primary-cyan);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 1rem;
            position: relative;
            text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 3px;
            background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple));
            box-shadow: 0 0 20px var(--primary-cyan);
        }

        .section-subtitle {
            font-size: 1.2rem;
            color: var(--text-secondary);
            max-width: 600px;
            margin: 0 auto;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 3rem;
        }

        .feature-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            padding: 3rem;
            position: relative;
            transition: all 0.4s ease;
            backdrop-filter: blur(10px);
            clip-path: polygon(20px 0%, 100% 0%, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0% 100%, 0% 20px);
        }

        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, var(--primary-cyan), var(--primary-pink));
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: -1;
        }

        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 50px rgba(0, 255, 255, 0.2);
        }

        .feature-card:hover::before {
            opacity: 0.1;
        }

        .feature-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 2rem;
            font-size: 2rem;
            clip-path: polygon(15px 0%, 100% 0%, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0% 100%, 0% 15px);
            box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
        }

        .feature-card h3 {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-cyan);
            margin-bottom: 1rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .feature-card p {
            color: var(--text-secondary);
            line-height: 1.8;
        }

        /* Stats Section */
        .stats {
            padding: 80px 2rem;
            background: rgba(0, 255, 255, 0.02);
            border-top: 1px solid var(--border-color);
            border-bottom: 1px solid var(--border-color);
        }

        .stats-container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 3rem;
            text-align: center;
        }

        .stat-item {
            position: relative;
        }

        .stat-number {
            font-size: 4rem;
            font-weight: 900;
            background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            display: block;
            margin-bottom: 0.5rem;
            filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.3));
        }

        .stat-label {
            font-size: 1.1rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* Pricing Section */
        .pricing {
            padding: 120px 2rem;
        }

        .pricing-container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .pricing-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 3rem;
            margin-top: 5rem;
        }

        .pricing-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            padding: 3rem;
            text-align: center;
            position: relative;
            transition: all 0.4s ease;
            backdrop-filter: blur(10px);
            clip-path: polygon(30px 0%, 100% 0%, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0% 100%, 0% 30px);
        }

        .pricing-card.featured {
            border-color: var(--primary-cyan);
            background: rgba(0, 255, 255, 0.05);
            transform: scale(1.05);
            box-shadow: 0 0 50px rgba(0, 255, 255, 0.3);
        }

        .pricing-card.featured::before {
            content: 'MOST POPULAR';
            position: absolute;
            top: 15px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, var(--primary-cyan), var(--primary-pink));
            color: var(--darker-bg);
            padding: 0.5rem 2rem;
            font-size: 0.8rem;
            font-weight: 700;
            letter-spacing: 2px;
            clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
        }

        .pricing-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 50px rgba(0, 255, 255, 0.2);
        }

        .pricing-card.featured:hover {
            transform: scale(1.05) translateY(-10px);
        }

        .plan-name {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-cyan);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 2rem;
            text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
        }

        .plan-price {
            font-size: 4rem;
            font-weight: 900;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
            text-shadow: 0 0 20px var(--primary-cyan);
        }

        .plan-period {
            color: var(--text-secondary);
            margin-bottom: 3rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .plan-features {
            list-style: none;
            margin-bottom: 3rem;
            text-align: left;
        }

        .plan-features li {
            padding: 1rem 0;
            color: var(--text-secondary);
            position: relative;
            padding-left: 2rem;
            border-bottom: 1px solid rgba(0, 255, 255, 0.1);
        }

        .plan-features li::before {
            content: '▶';
            position: absolute;
            left: 0;
            color: var(--primary-cyan);
            font-size: 0.8rem;
        }

        /* Contact Section */
        .contact {
            padding: 120px 2rem;
            background: rgba(0, 255, 255, 0.02);
            border-top: 1px solid var(--border-color);
        }

        .contact-container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .contact-form-wrapper {
            max-width: 600px;
            margin: 0 auto;
            margin-top: 4rem;
        }

        .contact-form {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            padding: 3rem;
            backdrop-filter: blur(10px);
            clip-path: polygon(30px 0%, 100% 0%, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0% 100%, 0% 30px);
            box-shadow: 0 0 30px rgba(0, 255, 255, 0.1);
        }

        .form-group {
            margin-bottom: 2rem;
        }

        .form-group label {
            display: block;
            color: var(--primary-cyan);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-size: 0.9rem;
            margin-bottom: 0.8rem;
            text-shadow: 0 0 10px var(--primary-cyan);
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 1rem 1.5rem;
            background: rgba(0, 255, 255, 0.05);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            font-family: inherit;
            font-size: 1rem;
            transition: all 0.3s ease;
            clip-path: polygon(10px 0%, 100% 0%, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0% 100%, 0% 10px);
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: var(--text-secondary);
            opacity: 0.7;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary-cyan);
            background: rgba(0, 255, 255, 0.08);
            box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
        }

        .form-group textarea {
            resize: vertical;
            min-height: 120px;
        }

        .btn-submit {
            width: 100%;
            cursor: pointer;
            font-size: 1rem;
            margin-top: 1rem;
            border: none;
            transition: all 0.3s ease;
        }

        .btn-submit:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(229, 231, 235, 0.4);
        }

        /* Footer */
        .footer {
            padding: 60px 2rem 40px;
            border-top: 1px solid var(--border-color);
            text-align: center;
            background: rgba(0, 0, 0, 0.5);
            margin-top: 80px;
        }

        .footer-content {
            max-width: 1400px;
            margin: 0 auto;
        }

        .footer-links {
            margin-bottom: 2rem;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .footer-links a {
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            position: relative;
            padding: 0 0.5rem;
        }

        .footer-links a:hover {
            color: var(--primary-cyan);
            text-shadow: 0 0 10px var(--primary-cyan);
            transform: translateY(-2px);
        }

        .footer-links a::after {
            content: '';
            position: absolute;
            bottom: -3px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 1px;
            background: var(--primary-cyan);
            transition: width 0.3s ease;
            box-shadow: 0 0 5px var(--primary-cyan);
        }

        .footer-links a:hover::after {
            width: 80%;
        }

        .footer-separator {
            color: var(--primary-cyan);
            opacity: 0.5;
            font-size: 0.8rem;
            margin: 0 0.2rem;
        }

        .footer-bottom {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .footer-bottom p {
            margin: 0.5rem 0;
        }

        .footer-credit {
            font-size: 0.85rem;
            opacity: 0.8;
            margin-top: 0.5rem;
        }

        .footer-credit a {
            color: var(--primary-cyan);
            text-decoration: none;
            transition: all 0.3s ease;
            font-weight: 600;
        }

        .footer-credit a:hover {
            color: var(--primary-pink);
            text-shadow: 0 0 10px var(--primary-pink);
            text-decoration: underline;
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            /* Adjust grid minimum widths to avoid horizontal overflow on very narrow screens */
            .features-grid, .pricing-grid {
                grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
                gap: 1.5rem;
            }

            /* Feature icons responsive sizing (override inline width="20%") */
            .feature-card img {
                /* Even larger icons on mobile per user request: increase min and max
                   and allow a larger viewport-based size so icons become prominent */
                width: clamp(96px, 28vw, 180px) !important;
                height: auto !important;
                display: block;
                margin: 0 auto 1rem auto;
            }

            /* Make chat window responsive on small devices */
            :root{
                --chat--window--width: 92vw;
                --chat--window--height: 78vh;
                --chat--toggle--size: clamp(56px, 12vw, 90px);
            }
            .mobile-menu-button {
                display: block !important;
            }
            
            .nav-links {
                display: none;
            }
            
            .nav-bottom .cyber-button {
                display: none;
            }
            
            .hero-title {
                font-size: 2.5rem;
            }
            
            .hero-buttons {
                flex-direction: column;
                align-items: center;
            }
            
            .btn-primary, .btn-secondary {
                width: 100%;
                max-width: 300px;
            }
            
            .features-grid {
                grid-template-columns: 1fr;
            }
            
            .pricing-grid {
                grid-template-columns: 1fr;
            }
            
            .pricing-card.featured {
                transform: none;
            }
            
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .contact {
                padding: 80px 1rem;
            }

            /* Fix overflow of stat numbers on small screens */
            .stats {
                padding: 40px 1rem;
            }

            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 1.2rem;
            }

            .stat-number {
                font-size: clamp(2rem, 8vw, 3.25rem) !important;
                line-height: 1 !important;
                margin-bottom: 0.4rem !important;
                text-wrap: balance;
            }

            /* On very narrow screens, stack stats to 1 column */
            @media (max-width: 420px) {
                .stats-grid {
                    grid-template-columns: 1fr;
                }
                .stat-number {
                    font-size: clamp(1.8rem, 10vw, 2.6rem) !important;
                }
            }
            
            .contact-form {
                padding: 2rem;
            }
            
            .footer-links {
                flex-direction: column;
                gap: 1rem;
            }
            
            .footer-links a {
                padding: 0.5rem 1rem;
            }
            
            .footer-separator {
                display: none;
            }
            
            .footer {
                margin-top: 40px;
                padding: 40px 1rem 30px;
            }

            /* Make the "MOST POPULAR" badge smaller and reposition it on mobile to avoid overlapping the card title */
            .pricing-card.featured::before {
                top: 6px !important;
                left: auto !important;
                right: 12px !important;
                transform: none !important;
                padding: 0.35rem 1rem !important;
                font-size: 0.65rem !important;
                letter-spacing: 1px !important;
                border-radius: 6px !important;
                z-index: 2 !important;
                clip-path: none !important;
            }

            /* Ensure the plan title has enough top padding when the badge is present */
            .pricing-card.featured .plan-name {
                padding-top: 1.25rem !important;
            }

            /* Center pricing container and cards on small screens */
            .pricing-container {
                padding-inline: 1rem !important;
                box-sizing: border-box !important;
                margin-inline: auto !important;
            }

            .pricing-container {
                padding-inline: 4px !important; /* reduced gutter so cards appear wider */
                box-sizing: border-box !important;
                margin-inline: auto !important;
                max-width: 1000px !important;
            }

            /* On very small phones, remove container padding so card borders touch the viewport edges */
            @media (max-width: 480px) {
                .pricing-container { padding-inline: 0 !important; }
            }

            /* Ensure the card interior has padding and center key elements */
            .pricing-card {
                padding-inline: 16px !important; /* internal padding so text doesn't touch the edge */
                display: block !important;
            }

            /* Center the title, price and period inside the card */
            .pricing-card .plan-name,
            .pricing-card .plan-price,
            .pricing-card .plan-period {
                text-align: center !important;
                margin-left: auto !important;
                margin-right: auto !important;
            }

            /* Keep features list left-aligned but with internal padding so it doesn't start at the edge */
            .pricing-card .plan-features {
                text-align: left !important;
                padding-inline-start: 1rem !important;
                padding-inline-end: 1rem !important;
                margin: 0 auto !important;
            }

            .pricing-card .plan-features li {
                padding-left: 0 !important; /* use ul padding instead of li hack */
            }

            .pricing-grid {
                display: flex !important;
                flex-direction: column !important;
                align-items: stretch !important;
                gap: 1rem !important;
                margin: 0 auto !important;
                padding-inline: 0 !important;
            }

            .pricing-card {
                width: 100% !important; /* fills container minus container padding */
                max-width: none !important;
                margin: 0 auto !important;
                box-sizing: border-box !important;
                padding-inline: 0 !important; /* remove internal padding so total gutter equals container padding (8px) */
            }

            /* Strong mobile fixes: remove decorative clip-paths that cut text and ensure overflow visible */
            .pricing-card, .pricing-card.featured, .feature-card, .contact-form, .feature-card::before, .pricing-card::before {
                clip-path: none !important;
                -webkit-clip-path: none !important;
                mask: none !important;
                -webkit-mask: none !important;
                overflow: visible !important;
                transform: none !important;
                border-radius: 14px !important;
            }

            /* Fix: Triangles (bullets) overlapping text on narrow screens
               Strategy: ensure the list has left padding and move the pseudo-element
               a bit to the left while reducing its size so it no longer covers the first
               letter. These rules target pricing cards on small devices only. */
            .pricing-card .plan-features {
                padding-inline-start: 1.5rem !important; /* space for bullets */
            }

            .pricing-card .plan-features li {
                position: relative !important;
                padding-left: 1.25rem !important; /* keep text clear of bullet */
            }

            .pricing-card .plan-features li::before {
                left: -0.45rem !important; /* nudge bullet left so it doesn't cover text */
                font-size: 0.85rem !important; /* slightly smaller triangle */
                line-height: 1 !important;
                top: 50% !important;
                transform: translateY(-50%) !important; /* vertically center the marker */
                display: inline-block !important;
                width: 1rem !important;
                text-align: center !important;
                color: var(--primary-cyan) !important;
            }

            /* Make CTA buttons readable and avoid decorative clipping */
            .btn-primary, .btn-secondary {
                clip-path: none !important;
                padding: 0.9rem 1.25rem !important;
                display: inline-block !important;
                max-width: 92% !important;
                white-space: normal !important;
                word-break: keep-all;
            }

            /* Reduce and reposition chat toggle on small screens so it doesn't cover important content */
            #n8n-chat .chat-toggle,
            #n8n-chat button,
            #n8n-chat [class*="toggle"] {
                width: clamp(48px, 12vw, 72px) !important;
                height: clamp(48px, 12vw, 72px) !important;
                right: 12px !important;
                bottom: 12px !important;
                transform: none !important;
                pointer-events: auto !important;
                z-index: 10002 !important; /* keep above most content but allow menu overlay at 10003 */
            }

            /* If the chat still overlaps important CTAs, hide it on very small screens (optional) */
            @media (max-width: 360px) {
                #n8n-chat .chat-toggle { display: none !important; }
            }

            /* Ensure mobile menu overlays above everything */
            .mobile-menu-overlay { z-index: 10004 !important; }
            .mobile-menu { z-index: 10005 !important; }
        }

        @media (max-width: 480px) {
            .mobile-menu {
                width: 90%;
                max-width: none;
            }
            
            .mobile-menu-header {
                padding: 1.5rem;
            }
            
            .mobile-menu-nav a {
                padding: 1.2rem 1.5rem;
                font-size: 1rem;
            }
            
            .mobile-menu-cta {
                padding: 1.5rem;
            }
            
            .cyber-button {
                padding: 0.8rem 1.5rem;
                font-size: 0.9rem;
            }
            
            .hero-title {
                font-size: 2rem;
            }
            
            .hero-nexus, .hero-flow {
                display: block;
                margin: 0;
            }
        }

        /* Scroll animations */
        .fade-up {
            opacity: 0;
            transform: translateY(50px);
            transition: all 0.8s ease;
        }

        .fade-up.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Data streams */
        .data-streams {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: -3;
            pointer-events: none;
        }

        .data-stream {
            position: absolute;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
            opacity: 0;
            animation: dataFlow 3s ease-in-out infinite;
        }

        .data-stream:nth-child(odd) {
            background: linear-gradient(90deg, transparent, var(--primary-pink), transparent);
            animation-duration: 4s;
        }

        @keyframes dataFlow {
            0% {
                width: 0;
                opacity: 0;
                transform: translateX(0);
            }
            50% {
                width: 300px;
                opacity: 0.8;
            }
            100% {
                width: 0;
                opacity: 0;
                transform: translateX(100vw);
            }
        }

        /* Performance optimization for mobile */
        @media (max-width: 768px) {
            .matrix-rain {
                display: none;
            }
            
            .particles {
                opacity: 0.5;
            }
            
            .particle {
                animation-duration: 30s !important;
            }
            
            .orb {
                filter: blur(100px);
                opacity: 0.3;
            }
            
            .scanlines::before {
                animation: none;
                transform: translateY(0);
            }
            
            .data-streams {
                display: none;
            }
            
            .noise-overlay {
                display: none;
            }
        }

        /* Reduced motion for accessibility */
        @media (prefers-reduced-motion: reduce) {
            .cyber-gradient,
            .grid-lines,
            .grid-glow,
            .particle,
            .orb,
            .matrix-column,
            .scanlines::before,
            .data-stream {
                animation: none !important;
            }
        }

        /* Custom scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
        }

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

        ::-webkit-scrollbar-thumb {
            background: linear-gradient(var(--primary-cyan), var(--primary-pink));
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(var(--primary-pink), var(--primary-cyan));
        }

        /* ===== CONTENIDO ORIGINAL COMPLETO DE TU templatemo-nexus-style.css ===== */
/* (Lo mantengo igual. Añado fixes al final del archivo) */

/* … todo tu CSS original aquí … */


/* ===== FIXES MÓVIL (overlays/recortes) ===== */
@media (max-width: 768px){
  .scanlines, .scanlines::before, .scanlines::after,
  .grid-overlay, .noise-overlay { display: none !important; }

  .pricing-card.featured { transform: none !important; }
  .pricing-card { clip-path: none !important; border-radius: 16px !important; }

  .hero { text-align: center !important; }
  .hero-title { margin-left: auto !important; margin-right: auto !important; }

  .plan-features li { padding-left: 1.25rem !important; line-height: 1.6 !important; }

  .pricing, .features, .stats, .contact { position: relative; z-index: 1; }
}

/* ===== MEGA-FIX para recortes/desalineados en móvil ===== */
@media (max-width: 768px){

  /* 0) Asegura scroll completo del documento */
  html, body{
    height: auto !important;
    min-height: 100% !important;
    overflow-y: auto !important;
  }

  /* 1) Apaga overlays/efectos que “muerden” el texto */
  .scanlines, .scanlines::before, .scanlines::after,
  .grid-overlay, .noise-overlay,
  [class*="overlay"]{
    display: none !important;
  }

  /* 2) Nada de clip, mask ni overflow oculto en secciones */
  section, .section, .container, .wrapper,
  .hero, .features, .stats, .pricing, .contact,
  .card, .pricing-card, .feature-card{
    overflow: visible !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
    mask: none !important;
    -webkit-mask: none !important;
  }

  /* 3) Evita alturas fijas que cortan (100vh típico) */
  .hero, .features, .stats, .pricing, .contact,
  .vh-100, .h-100vh{
    height: auto !important;
    max-height: none !important;
        /* quitar min-height forzado en móvil para evitar huecos gigantes */
        min-height: auto !important;
  }
  /* Si hay estilos inline con 100vh, esto ayuda a anularlos */
  [style*="100vh"]{ height:auto !important; min-height:100svh !important; }

  /* 4) Desactiva transforms que desplazan y causan “mordidas” */
  .pricing-card, .pricing-card.featured,
  .hero *[style*="transform"],
  .stats *[style*="transform"]{
    transform: none !important;
  }

  /* 5) Tarjetas sin recorte y con bordes normales */
  .pricing-card{
    border-radius: 16px !important;
  }

  /* 6) Alineaciones y respiración */
  .hero{ text-align: center !important; }
  .hero-title{ margin-left:auto !important; margin-right:auto !important; }
  .plan-features li{ padding-left:1.25rem !important; line-height:1.6 !important; }

  /* 7) Poner contenido por encima de cualquier capa residual */
  .pricing, .features, .stats, .contact{
    position: relative !important; z-index: 1 !important;
  }

    /* 8) Reducir espacios verticales en móvil para evitar huecos gigantes */
        /* increase spacing: hero x2, others +50% */
        .hero { padding-top: 112px !important; padding-bottom: 56px !important; }
        .features { padding-top: 60px !important; padding-bottom: 42px !important; }
        .stats { padding-top: 42px !important; padding-bottom: 42px !important; }
        .pricing { padding-top: 54px !important; padding-bottom: 54px !important; }
        .contact { padding-top: 42px !important; padding-bottom: 42px !important; }

        /* Ajustar gap entre secciones (si usan margin) */
        section { margin-top: 0 !important; margin-bottom: 0 !important; }

        /* Transición suave al cambiar paddings en móvil */
        .hero, .features, .stats, .pricing, .contact {
            transition: padding 320ms ease-in-out;
            -webkit-transition: padding 320ms ease-in-out;
        }

            /* Give extra breathing room after the hero buttons on mobile
               doubled per request so there's noticeably more space */
            .hero .hero-buttons {
                margin-bottom: 4.5rem !important; /* doubled (~72px) */
            }

            /* Double the extra bottom padding on very small screens to match the increased gap */
            @media (max-width: 420px) {
                .hero { padding-bottom: 144px !important; }
            }
}

/* Botón de chat fijo por encima de cualquier menú móvil (por si acaso) */
#n8n-chat .chat-toggle,
#n8n-chat [class*="toggle"],
#n8n-chat button[aria-haspopup="dialog"]{
  position: fixed !important;
  right: 16px !important;
  bottom: 16px !important;
  z-index: 10001 !important;
}


/* Forzar que el toggle SIEMPRE esté visible por defecto */
#n8n-chat .chat-toggle,
#n8n-chat [class*="toggle"],
.n8n-chat-widget__toggle{
  display: grid !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* ÚNICA forma en que lo ocultamos: con esta clase */
#n8n-chat .toggle-hidden{
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Si tienes esta regla en otro archivo, la neutralizamos */
@media (max-width: 360px){
  #n8n-chat .chat-toggle{ display: grid !important; }
}


/* Ocultar el botón del chat SOLO cuando la ventana está abierta */
#n8n-chat .chat-toggle[aria-expanded="true"],
#n8n-chat [class*="toggle"][aria-expanded="true"]{
  display: none !important;
}