
        /* --- 1. VARIABLES & RESET --- */
        :root {
            --primary: #fca311;
            --primary-glow: rgba(252, 163, 17, 0.6);
            --danger: #ff4d4d;
            --bg: #050505;
            --bg-card: #0a0a0a;
            --text-main: #ffffff;
            --text-dim: #9ca3af;
            --font-display: 'Space Grotesk', sans-serif;
            --font-code: 'Fira Code', monospace;
            --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }

        body {
            background-color: var(--bg);
            color: var(--text-main);
            font-family: var(--font-display);
            overflow-x: hidden;
            width: 100vw;
            text-align: center;
            line-height: 1.6;
        }

        /* --- CURSOR PERSONALIZADO --- */
        .cursor-dot, .cursor-outline {
            position: fixed; top: 0; left: 0;
            transform: translate(-50%, -50%); border-radius: 50%;
            z-index: 9999; pointer-events: none;
        }
        .cursor-dot { width: 8px; height: 8px; background-color: var(--primary); }
        .cursor-outline {
            width: 40px; height: 40px;
            border: 1px solid rgba(252, 163, 17, 0.5);
            transition: width 0.2s, height 0.2s, background-color 0.2s;
        }

        /* Scrollbar */
        ::-webkit-scrollbar { width: 8px; }
        ::-webkit-scrollbar-track { background: var(--bg); }
        ::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
        ::-webkit-scrollbar-thumb:hover { background: var(--primary); }

        /* Red Neuronal */
        #neural-canvas {
            position: fixed; top: 0; left: 0;
            width: 100%; height: 100%;
            z-index: -1; opacity: 0.4;
            pointer-events: none;
        }

        /* --- UTILIDADES --- */
        h1, h2, h3 { font-weight: 700; text-transform: uppercase; letter-spacing: -1px; line-height: 1.1; }
        .code-text { font-family: var(--font-code); color: var(--primary); font-size: 0.85rem; display: block; margin-bottom: 10px; }
        .section-padding { padding: 120px 24px; max-width: 1300px; margin: 0 auto; position: relative; z-index: 1; }
        .text-dim { color: var(--text-dim); font-size: 1.05rem; }
        .text-highlight { color: #fff; font-weight: 600; }
        
        .reveal-up { opacity: 0; transform: translateY(40px); transition: all 0.8s var(--ease-out); }
        .reveal-up.active { opacity: 1; transform: translateY(0); }

        /* Separador */
        .section-separator {
            width: 100%; height: 1px;
            background: linear-gradient(90deg, transparent, #333, var(--primary), #333, transparent);
            opacity: 0.4; margin: 0; position: relative; z-index: 2;
            box-shadow: 0 0 10px rgba(252, 163, 17, 0.2);
        }

        /* --- BOTONES --- */
        .btn-cyber {
            position: relative; padding: 16px 32px; background: rgba(252, 163, 17, 0.05);
            border: 1px solid var(--primary); color: var(--primary); font-family: var(--font-code);
            font-weight: 700; text-transform: uppercase; font-size: 0.8rem; display: inline-block;
            transition: 0.3s; overflow: hidden; cursor: none;
        }
        .btn-cyber::before {
            content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
            background: var(--primary); transition: transform 0.4s var(--ease-out); z-index: -1;
            transform: skewX(-20deg);
        }
        .btn-cyber:hover { color: #000; box-shadow: 0 0 30px var(--primary-glow); }
        .btn-cyber:hover::before { transform: translateX(100%) skewX(-20deg); left: 0; }
        
        .btn-ghost { border-color: #444; color: #fff; background: transparent; }
        .btn-ghost:hover { background: #fff; color: #000; border-color: #fff; }

        /* --- HEADER --- */
        header {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1100px;
    padding: 12px 30px;
    display: flex;
    justify-content: space-between; /* Distribuye Logo, Nav y Lang */
    align-items: center;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(15px);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
        .logo { font-size: 1.4rem; font-weight: 700; letter-spacing: -1px; color: #fff; }
        .logo span { color: var(--primary); }
        nav {
    display: flex;
    gap: 25px;
    margin: 0 auto; /* Empuja el menú al centro */
}
        nav a { font-family: var(--font-code); font-size: 0.8rem; color: #aaa; transition: 0.3s; text-transform: uppercase; }
        nav a:hover { color: var(--primary); }

        /* --- IDIOMA SELECTOR --- */
        .lang-switcher {
    position: static; /* Importante: quita el fixed anterior */
    display: flex;
    gap: 8px;
    margin-left: 15px;
}
        .lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    color: #888;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.7rem;
    font-family: var(--font-code);
    transition: 0.3s;
}
        .lang-btn.active {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(252, 163, 17, 0.1);
}
        .lang-btn:hover { background: var(--primary); color: #000; }

        /* --- HERO --- */
        .hero {
            min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center;
            padding: 160px 20px 60px; position: relative; z-index: 1;
            background-image: 
                linear-gradient(to bottom, rgba(5, 5, 5, 0.7), #050505),
                url('https://images.unsplash.com/photo-1558494949-ef526b0042a0?q=80&w=2070&auto=format&fit=crop');
            background-size: cover; background-position: center;
        }
        .hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 5rem); /* Valores más seguros */
    width: 100%;
    max-width: 100vw;
    word-wrap: break-word;
    margin-left: auto;
    margin-right: auto;
}

/* 3. Centrar el párrafo del hero correctamente */
.hero p {
    display: block; /* Cambiar de inline-block a block */
    margin: 0 auto 40px;
    text-align: center; /* Centrar texto */
    border-left: none; 
    border-bottom: 2px solid var(--primary); /* Estilo alternativo más limpio */
    padding-left: 0;
    padding-bottom: 10px;
}
        
        /* --- TRUST SECTION --- */
        .trust-bar { margin-top: 80px; width: 100%; max-width: 1100px; position: relative; padding-top: 40px; }
        .trust-bar::before { 
            content:''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 80%; height: 1px; 
            background: linear-gradient(90deg, transparent, #333, var(--primary), #333, transparent); opacity: 0.5;
        }
        .trust-label { font-family: var(--font-code); font-size: 0.75rem; color: var(--primary); margin-bottom: 30px; display: block; letter-spacing: 3px; text-shadow: 0 0 10px rgba(252, 163, 17, 0.3); }
        .trust-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; }
        
        .client-badge {
            display: flex; align-items: center; gap: 12px; background: rgba(10, 10, 10, 0.6); backdrop-filter: blur(5px);
            padding: 15px 25px; border-radius: 4px; border: 1px solid #222; text-decoration: none;
            position: relative; overflow: hidden; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); min-width: 220px; justify-content: center;
        }
        .client-badge span { font-family: 'Space Grotesk', sans-serif; font-size: 0.9rem; font-weight: 700; color: #ccc; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
        .client-badge i { color: #555; font-size: 1.1rem; transition: 0.3s; }
        .client-badge:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: 0 5px 20px rgba(252, 163, 17, 0.15); background: rgba(252, 163, 17, 0.05); }
        .client-badge:hover span { color: #fff; }
        .client-badge:hover i { color: var(--primary); text-shadow: 0 0 10px var(--primary); }
        .client-badge::after {
            content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            transform: skewX(-25deg); transition: 0.5s;
        }
        .client-badge:hover::after { left: 100%; transition: 0.5s; }
        
        .more-badge { font-family: var(--font-code); color: var(--text-dim); font-size: 0.85rem; display: flex; align-items: center; padding: 10px 15px; border: 1px dashed #333; border-radius: 4px; cursor: default; }

        /* --- TABS SYSTEM --- */
        .tabs-container { display: flex; justify-content: center; gap: 20px; margin-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; flex-wrap: wrap; }
        .tab-btn { background: transparent; border: 1px solid transparent; color: #666; font-family: var(--font-code); font-size: 1rem; padding: 10px 20px; cursor: pointer; transition: 0.3s; text-transform: uppercase; }
        .tab-btn.active { color: var(--primary); border: 1px solid var(--primary); background: rgba(252, 163, 17, 0.05); box-shadow: 0 0 15px rgba(252, 163, 17, 0.1); }
        .tab-content { display: none; animation: fadeIn 0.5s ease; }
        .tab-content.active { display: block; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

        /* --- MANIFIESTO --- */
        .manifesto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; text-align: left; }
        .manifesto-text p { margin-bottom: 20px; color: var(--text-dim); }
        .manifesto-highlight { font-size: 1.5rem; color: #fff; font-weight: 700; line-height: 1.4; border-left: 2px solid var(--primary); padding-left: 20px; margin-bottom: 30px; }
        .dna-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 40px; text-align: left; }
        .dna-card { background: rgba(255,255,255,0.03); padding: 25px; border: 1px solid #222; border-top: 2px solid var(--primary); }
        .dna-card h4 { color: #fff; margin-bottom: 10px; font-size: 1.1rem; }
        .dna-card p { font-size: 0.85rem; color: #888; }
        .dna-card i { color: var(--primary); font-size: 1.5rem; margin-bottom: 15px; }

        /* --- PROCESS --- */
        .process-timeline { position: relative; padding-left: 50px; }
        .process-timeline::before {
            content: ''; position: absolute; top: 0; left: 15px; width: 2px; height: 100%;
            background: linear-gradient(to bottom, transparent, #333, var(--primary), #333, transparent); z-index: 0;
        }
        .process-card {
            background: rgba(10, 10, 10, 0.6); border: 1px solid #222; padding: 40px; margin-bottom: 40px;
            position: relative; border-radius: 4px; transition: all 0.4s ease;
            overflow: hidden; backdrop-filter: blur(5px); text-align: left;
        }
        .process-card::before {
            content: ''; position: absolute; top: 50%; left: -56px; width: 12px; height: 12px;
            background: #000; border: 2px solid #444; border-radius: 50%; transform: translateY(-50%); z-index: 1; transition: 0.3s;
        }
        .process-card:hover { transform: translateX(10px); border-color: var(--primary); background: rgba(252, 163, 17, 0.03); box-shadow: 0 10px 40px -10px rgba(0,0,0,0.8); }
        .process-card:hover::before { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 15px var(--primary); }
        .p-number {
            position: absolute; top: 10px; right: 20px; font-size: 6rem; font-weight: 900;
            font-family: 'Space Grotesk', sans-serif; color: rgba(255, 255, 255, 0.03);
            line-height: 1; pointer-events: none; transition: 0.3s;
        }
        .process-card:hover .p-number { color: rgba(252, 163, 17, 0.1); transform: scale(1.1); }
        .process-card h3 { font-size: 1.8rem; color: #fff; margin-bottom: 15px; position: relative; z-index: 2; }
        .process-card p { font-size: 1rem; color: #999; line-height: 1.6; position: relative; z-index: 2; max-width: 85%; }
        .process-icon { font-size: 1.5rem; color: var(--primary); margin-bottom: 15px; display: block; }

        /* --- PAIN POINTS --- */
        .pain-section { padding: 100px 24px; position: relative; }
        .pain-bg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 80%; background: radial-gradient(circle, rgba(255, 77, 77, 0.03) 0%, transparent 60%); z-index: -1; pointer-events: none; }
        .pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; margin-top: 60px; }
        .pain-card { background: rgba(10, 5, 5, 0.8); border: 1px solid rgba(255, 77, 77, 0.15); padding: 35px 25px; border-radius: 6px; text-align: left; transition: all 0.3s ease; position: relative; overflow: hidden; }
        .pain-card:hover { transform: translateY(-5px); border-color: var(--danger); box-shadow: 0 10px 30px rgba(255, 77, 77, 0.1); }
        .pain-icon { font-size: 1.8rem; color: var(--danger); margin-bottom: 20px; display: block; text-shadow: 0 0 10px rgba(255, 77, 77, 0.5); }
        .pain-card h4 { font-size: 1.2rem; color: #fff; margin-bottom: 10px; }
        .pain-card p { font-size: 0.9rem; color: #aaa; line-height: 1.5; }

        /* --- SERVICES (2 FILAS DE 3 COLUMNAS) --- */
        .services-wrapper {
            position: relative;
            padding: 120px 24px;
            background: radial-gradient(circle at center, rgba(252, 163, 17, 0.1) 0%, transparent 60%);
            z-index: 10;
        }

        .grid-services {
            display: grid;
            /* DESKTOP: 3 COLUMNAS FIJAS */
            grid-template-columns: repeat(3, 1fr);
            gap: 35px;
            margin-top: 60px;
            position: relative;
            z-index: 2;
            text-align: left;
            max-width: 1300px;
            margin-left: auto;
            margin-right: auto;
        }

        .s-card {
            background: rgba(15, 15, 15, 0.85);
            border: 1px solid rgba(252, 163, 17, 0.2);
            padding: 45px 35px;
            border-radius: 16px;
            position: relative;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            overflow: hidden;
            backdrop-filter: blur(10px);
            display: flex; flex-direction: column; height: 100%;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        }
        .s-card:hover {
            transform: translateY(-12px) scale(1.02);
            border-color: var(--primary);
            box-shadow: 0 20px 50px -10px rgba(0,0,0,0.9), 0 0 30px rgba(252, 163, 17, 0.2);
            background: rgba(25, 25, 25, 0.95);
        }
        .s-card-content { position: relative; z-index: 2; display: flex; flex-direction: column; height: 100%; }
        .s-icon-box {
            width: 65px; height: 65px; background: rgba(255,255,255,0.05);
            border-radius: 14px; display: flex; align-items: center; justify-content: center;
            margin-bottom: 25px; transition: 0.4s; border: 1px solid rgba(255,255,255,0.1);
        }
        .s-icon-box i { font-size: 2rem; color: #ccc; transition: 0.4s; }
        .s-card:hover .s-icon-box {
            background: var(--primary); border-color: var(--primary);
            transform: rotate(-10deg) scale(1.1); box-shadow: 0 0 25px var(--primary-glow);
        }
        .s-card:hover .s-icon-box i { color: #000; transform: rotate(10deg); }
        .s-card h3 { font-size: 1.7rem; color: var(--primary); margin-bottom: 15px; font-weight: 700; letter-spacing: -0.5px; }
        .s-card p { font-size: 1rem; color: #bbb; margin-bottom: 25px; line-height: 1.6; flex-grow: 0; }
        .s-card ul { list-style: none; margin-bottom: 30px; flex-grow: 1; padding: 0; }
        .s-card li {
            font-family: var(--font-code); font-size: 0.85rem; color: #888;
            margin-bottom: 12px; display: flex; align-items: center; gap: 10px; transition: 0.3s;
        }
        .s-card:hover li { color: #ddd; }
        .s-card li i { color: var(--primary); font-size: 0.8rem; }
        .card-btn {
            margin-top: auto; font-family: var(--font-code); font-size: 0.85rem; color: #fff;
            text-transform: uppercase; display: flex; align-items: center; gap: 10px; transition: 0.3s; width: fit-content;
            border-bottom: 1px solid var(--primary); padding-bottom: 5px;
        }
        .card-btn i { transition: 0.3s; color: var(--primary); }
        .card-btn:hover { color: var(--primary); gap: 15px; }

        /* --- TECH MARQUEE --- */
        .tech-wrapper { background: var(--primary); padding: 15px 0; margin: 120px 0; transform: rotate(-2deg) scale(1.02); width: 105vw; position: relative; left: -2.5vw; border-top: 4px solid #fff; border-bottom: 4px solid #fff; box-shadow: 0 0 50px rgba(252, 163, 17, 0.3); overflow: hidden; }
        .marquee { display: flex; white-space: nowrap; animation: scroll 25s linear infinite; align-items: center; }
        .tech-item { margin: 0 40px; display: flex; align-items: center; justify-content: center; }
        .tech-item img { height: 35px; width: auto; display: block; filter: brightness(0); }
        @keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

        /* --- IMPACT --- */
        .impact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; alignItems: center; text-align: left; }
        .benefits-list li { margin-bottom: 15px; display: flex; gap: 10px; color: #ddd; font-family: var(--font-code); font-size: 0.9rem; }
        .benefits-list i { color: var(--primary); }
        .testimonial-box { background: #111; border: 1px solid var(--primary); padding: 40px; position: relative; }
        .quote-text { font-size: 1.2rem; font-style: italic; color: #fff; margin-bottom: 20px; line-height: 1.5; }

        /* --- CONTACTO --- */
        .terminal { background: #080808; border: 1px solid #333; border-radius: 8px; padding: 50px; max-width: 800px; margin: 0 auto; text-align: left; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
        .terminal-header { display: flex; gap: 8px; margin-bottom: 30px; border-bottom: 1px solid #222; padding-bottom: 15px; }
        .dot { width: 10px; height: 10px; border-radius: 50%; }
        .dot.r { background: #ff5f56; } .dot.y { background: #ffbd2e; } .dot.g { background: #27c93f; }
        .form-row { display: flex; gap: 20px; margin-bottom: 20px; }
        .input-group { flex: 1; }
        input, textarea, select { width: 100%; background: #0e0e0e; border: 1px solid #333; color: #fff; padding: 12px; font-family: var(--font-code); font-size: 0.95rem; }
        input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); }

        /* Footer */
        footer { border-top: 1px solid #222; padding: 80px 20px; margin-top: 100px; position: relative; z-index: 1;}
        .footer-links a { color: #666; margin: 0 15px; font-family: var(--font-code); font-size: 0.8rem; transition: 0.3s; }
        .footer-links a:hover { color: var(--primary); }
        .social-btn { color: #fff; font-size: 1.5rem; border: 1px solid #333; width: 50px; height: 50px; display: inline-flex; justify-content: center; align-items: center; border-radius: 50%; transition: 0.3s; background: #0a0a0a; margin-top: 20px; text-decoration: none; }
        .social-btn:hover { color: var(--primary); border-color: var(--primary); box-shadow: 0 0 15px var(--primary-glow); }

        /* --- CHATBOT WIDGET --- */
        .chat-widget { position: fixed; bottom: 30px; right: 30px; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; cursor: auto !important; }
        .chat-widget *, .chat-window * { cursor: auto !important; }
        .chat-widget button, .chat-widget .option-btn, .close-chat, .refresh-chat { cursor: pointer !important; }
        .chat-input { cursor: text !important; }
        
        .chat-button { width: 60px; height: 60px; background: rgba(10, 10, 10, 0.8); backdrop-filter: blur(10px); border: 2px solid var(--primary); border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 0 20px rgba(252, 163, 17, 0.4); transition: 0.3s; animation: pulse-glow 2s infinite; cursor: pointer !important; }
        .chat-button:hover { transform: scale(1.1); background: var(--primary); }
        .chat-button i { font-size: 1.5rem; color: var(--primary); transition: 0.3s; }
        .chat-button:hover i { color: #000; }
        @keyframes pulse-glow { 0% { box-shadow: 0 0 0 0 rgba(252, 163, 17, 0.4); } 70% { box-shadow: 0 0 0 15px rgba(252, 163, 17, 0); } 100% { box-shadow: 0 0 0 0 rgba(252, 163, 17, 0); } }

        .chat-window { width: 350px; height: 450px; background: rgba(5, 5, 5, 0.95); border: 1px solid #333; border-radius: 12px; margin-bottom: 20px; display: none; flex-direction: column; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.8); transform-origin: bottom right; animation: open-chat 0.3s ease-out; cursor: default !important; }
        .chat-window.open { display: flex; }
        @keyframes open-chat { from { opacity: 0; transform: scale(0.8) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }

        .chat-header { background: #111; padding: 15px; border-bottom: 1px solid #222; display: flex; justify-content: space-between; align-items: center; }
        .chat-title { font-family: var(--font-code); font-size: 0.9rem; color: var(--primary); font-weight: 700; }
        .close-chat, .refresh-chat { color: #666; font-size: 1rem; cursor: pointer; margin-left: 10px; }
        .close-chat:hover, .refresh-chat:hover { color: #fff; }
        .chat-body { flex: 1; padding: 20px; overflow-y: auto; font-family: var(--font-code); font-size: 0.85rem; scroll-behavior: smooth; }
        .msg { padding: 10px 12px; border-radius: 8px; margin-bottom: 10px; max-width: 85%; font-size: 0.85rem; line-height: 1.4; word-wrap: break-word; }
        .bot-msg { background: rgba(252, 163, 17, 0.1); color: #ddd; border-left: 2px solid var(--primary); text-align: left; align-self: flex-start; }
        .user-msg { background: #333; color: #fff; align-self: flex-end; text-align: right; margin-left: auto; border-right: 2px solid #fff; }
        .typing-indicator { display: none; align-self: flex-start; margin-bottom: 10px; background: rgba(255,255,255,0.05); padding: 10px; border-radius: 8px; }
        .typing-indicator span { width: 6px; height: 6px; background: #aaa; display: inline-block; border-radius: 50%; margin: 0 2px; animation: typing 1.4s infinite ease-in-out both; }
        .typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
        .typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
        @keyframes typing { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }
        .chat-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 5px; margin-bottom: 15px; }
        .option-btn { background: transparent; border: 1px solid var(--primary); color: var(--primary); font-family: var(--font-code); font-size: 0.75rem; padding: 6px 12px; border-radius: 20px; transition: 0.2s; }
        .option-btn:hover { background: var(--primary); color: #000; }
        .chat-input-area { padding: 15px; border-top: 1px solid #222; display: flex; gap: 10px; }
        .chat-input { width: 100%; background: #000; border: 1px solid #333; color: #fff; padding: 8px; border-radius: 4px; font-size: 0.8rem; cursor: text !important; }
        .chat-input:focus { border-color: var(--primary); outline: none; }
        .send-btn { background: var(--primary); color: #000; border: none; padding: 0 15px; border-radius: 4px; font-weight: 700; cursor: pointer; }

        /* ==========================================================================
   RESPONSIVE DESIGN (OPTIMIZADO)
   ========================================================================== */

/* --- TABLETS (Laptops pequeñas / iPads) --- */
@media (max-width: 1100px) {
    .grid-services { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 25px;
    }
    .manifesto-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- MÓVILES GENERAL (Android / iPhone Pro Max) --- */
@media (max-width: 900px) {
    /* 1. Reset de UX: Desactivar efectos pesados o molestos en táctil */
    .cursor-dot, .cursor-outline { display: none !important; }
    * { cursor: auto !important; }

    /* 2. Header Compacto: Logo e Idiomas a los extremos */
    header {
        top: 15px;
        width: 94%;
        padding: 10px 20px;
        border-radius: 40px;
        justify-content: space-between;
    }
    .logo { font-size: 1.1rem; }
    nav { display: none; } /* Navegación oculta (SEO: Google prefiere botones claros) */

    /* 3. Selector de Idiomas integrado en la cápsula */
    .lang-switcher {
        position: static;
        margin-left: 10px;
        display: flex;
        gap: 5px;
    }
    .lang-btn { 
        padding: 5px 10px; 
        font-size: 0.7rem; 
        border-radius: 15px;
    }

    /* 4. Hero Section: Máximo impacto sin desbordes */
    .hero {
        padding: 120px 20px 50px;
    }
    .hero h1 { 
        font-size: clamp(2rem, 8vw, 2.5rem); 
        line-height: 1.2;
        margin-bottom: 20px;
    }
    .hero p {
        font-size: 1rem;
        text-align: center;
        border-left: none;
        border-bottom: 1px solid var(--primary);
        padding: 0 0 15px 0;
        margin-bottom: 30px;
    }
    
    /* Botones del Hero en Stack */
    .hero div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .btn-cyber { 
        width: 100%; 
        text-align: center; 
        padding: 16px;
    }

    /* 5. Trust Bar: Cuadrícula limpia de 2 columnas */
    .trust-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
        margin-top: 20px;
    }
    .client-badge {
        min-width: unset !important;
        padding: 12px 8px;
        font-size: 0.75rem;
        background: rgba(255, 255, 255, 0.03);
    }
    .more-badge {
        grid-column: span 2;
        width: 100%;
        justify-content: center;
        border-style: solid;
        border-width: 1px;
    }

    /* 6. Grillas de Contenido a 1 columna */
    .grid-services, .pain-grid, .dna-grid, .impact-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    /* 7. Proceso: Simplificación del Timeline */
    .process-timeline { padding-left: 0; }
    .process-timeline::before, .process-card::before { display: none; }
    .process-card {
        padding: 30px 20px;
        border-left: 4px solid var(--primary); /* Indicador visual de paso */
    }
    .p-number { 
        font-size: 3rem; 
        top: 5px; 
        right: 15px; 
        opacity: 0.1; 
    }

    /* 8. Chatbot: Ajuste para que no tape el contenido importante */
    .chat-window {
        width: calc(100vw - 30px);
        height: 65vh;
        right: 15px;
        bottom: 85px;
    }
    .chat-button {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
}

/* --- CELULARES PEQUEÑOS (iPhone SE / Modelos antiguos) --- */
@media (max-width: 450px) {
    .hero h1 { font-size: 1.8rem; }
    .trust-label { font-size: 0.65rem; }
    
    /* Logos en una sola columna para evitar que el texto se rompa */
    .trust-grid { grid-template-columns: 1fr !important; }
    .client-badge, .more-badge { grid-column: span 1; }
    
    .terminal {
        padding: 25px 15px;
    }
}

/* --- FIX DE SEGURIDAD PARA IPHONE (Evita el scroll horizontal) --- */
html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}