:root {
            --bg-base: #000000;
            --bg-surface: #0a0a0a;
            --text-main: #ffffff;
            --text-muted: #888888;
            --accent: #9d00ff; /* Uso mínimo (Íconos y detalles sutiles) */
            --border-light: rgba(255, 255, 255, 0.1);
            
            --font-display: 'Space Grotesk', sans-serif;
            --font-body: 'Inter', sans-serif;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; }

        body {
            background-color: var(--bg-base);
            color: var(--text-main);
            font-family: var(--font-body);
            overflow-x: hidden;
            position: relative;
            /* Añadimos padding-bottom para que el footer no quede oculto por el dock */
            padding-bottom: 100px; 
        }

        /* --- MODO MANTENIMIENTO --- */
        #maintenance-screen {
            position: fixed; inset: 0; background: #000; z-index: 999999;
            display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
        }
        #maintenance-screen h1 { font-family: var(--font-display); font-size: 3rem; margin-bottom: 20px; }
        #maintenance-screen p { color: var(--text-muted); font-size: 1.2rem; }
        .lock-scroll { overflow: hidden !important; }

        /* --- FONDO DINÁMICO (Blobs) --- */
        .blob-1, .blob-2 {
            position: fixed; border-radius: 50%; filter: blur(100px); z-index: -2;
            animation: floatBlobs 20s infinite alternate ease-in-out;
            pointer-events: none;
        }
        .blob-1 { top: -10%; left: -10%; width: 45vw; height: 45vw; background: rgba(255, 255, 255, 0.03); }
        .blob-2 { bottom: -20%; right: -10%; width: 55vw; height: 55vw; background: rgba(157, 0, 255, 0.04); animation-delay: -5s; }
        @keyframes floatBlobs { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(10%, 15%) scale(1.1); } }

        /* --- HEADER BALANCED --- */
        header {
            position: fixed; top: 0; width: 100%; padding: 25px 5%;
            display: flex; justify-content: space-between; align-items: center;
            z-index: 1000; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(15px);
            border-bottom: 1px solid var(--border-light);
            transition: padding 0.3s;
        }
        header.scrolled { padding: 15px 5%; }
        
        .header-left { flex: 1; display: flex; justify-content: flex-start; }
        .header-center { flex: 2; display: flex; justify-content: center; }
        .header-right { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 25px; }

        .logo img { height: 60px; transition: transform 0.3s; }
        .logo img:hover { transform: scale(1.05); }

        nav ul { display: flex; list-style: none; gap: 40px; align-items: center; margin: 0; }
        nav a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s; }
        nav a:hover { color: var(--text-main); }

        .lang-switch { display: flex; gap: 10px; align-items: center; color: var(--border-light); }
        .lang-switch button { background: none; border: none; color: var(--text-muted); cursor: pointer; font-family: var(--font-body); font-weight: bold; transition: color 0.3s; }
        .lang-switch button.active, .lang-switch button:hover { color: var(--text-main); }

        /* --- BOTONES --- */
        .btn {
            display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 30px;
            border-radius: 4px; text-decoration: none; font-weight: 600; text-transform: uppercase;
            font-size: 0.85rem; letter-spacing: 1px; transition: all 0.3s ease; cursor: pointer;
            border: 1px solid var(--text-main);
        }
        .btn-primary { background: var(--text-main); color: var(--bg-base); }
        .btn-primary:hover { background: transparent; color: var(--text-main); box-shadow: 0 0 15px rgba(255,255,255,0.2); transform: translateY(-3px); }
        .btn-outline { background: transparent; color: var(--text-main); }
        .btn-outline:hover { background: var(--text-main); color: var(--bg-base); transform: translateY(-3px); }
        .btn-discord { border-color: #5865F2; color: #5865F2; }
        .btn-discord:hover { background: #5865F2; color: #fff; box-shadow: 0 0 15px rgba(88, 101, 242, 0.4); }

        /* --- ANIMACIONES --- */
        .reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
        .reveal.visible { opacity: 1; transform: translateY(0); }

        /* --- ESTRUCTURA --- */
        section { padding: 120px 5%; max-width: 1400px; margin: 0 auto; position: relative; }
        .section-title { font-family: var(--font-display); font-size: 3rem; margin-bottom: 60px; display: flex; align-items: center; gap: 20px; text-transform: uppercase; }
        .section-title::before { content: ''; display: block; width: 30px; height: 3px; background: var(--accent); opacity: 0.7; }

        /* --- HERO --- */
        .hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
        .hero h1 { font-family: var(--font-display); font-size: clamp(3.5rem, 8vw, 7rem); line-height: 1.1; margin-bottom: 25px; text-transform: uppercase; }
        .hero p { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--text-muted); max-width: 700px; margin-bottom: 40px; line-height: 1.6; }

        /* --- SERVICIOS --- */
        .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
        .service-card {
            background: var(--bg-surface); border: 1px solid var(--border-light); padding: 50px 40px;
            transition: transform 0.4s, border-color 0.4s; display: flex; flex-direction: column;
        }
        .service-card:hover { transform: translateY(-10px); border-color: #444; }
        .service-icon { font-size: 2.5rem; color: var(--text-main); margin-bottom: 25px; }
        .service-card h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 15px; text-transform: uppercase; }
        .service-card p { color: var(--text-muted); line-height: 1.7; font-size: 0.95rem; margin-bottom: 25px; }
        .service-features { list-style: none; margin-bottom: 35px; flex-grow: 1; }
        .service-features li { color: #bbb; margin-bottom: 12px; font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
        .service-features i { color: var(--accent); font-size: 0.8rem; }

        /* --- QUIENES SOMOS --- */
        .about-container {
            position: relative;
            background: linear-gradient(145deg, rgba(20,20,20,0.8) 0%, rgba(5,5,5,0.9) 100%);
            border: 1px solid var(--border-light);
            border-radius: 20px;
            padding: 60px;
            box-shadow: 0 20px 50px rgba(0,0,0,0.5);
            overflow: hidden;
            max-width: 1000px;
            margin: 0 auto;
            backdrop-filter: blur(10px);
        }
        .about-container::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(157,0,255,0.15) 0%, transparent 50%);
            pointer-events: none;
            z-index: 0;
            animation: slowPulse 8s infinite alternate ease-in-out;
        }
        @keyframes slowPulse { 0% { opacity: 0.5; } 100% { opacity: 1; } }
        .about-content { position: relative; z-index: 1; }
        .about-desc {
            color: #ececec;
            font-size: 1.15rem;
            line-height: 1.8;
            font-weight: 300;
            border-left: 4px solid var(--accent);
            padding-left: 25px;
            margin-top: 10px;
            letter-spacing: 0.5px;
        }
        @media (max-width: 768px) {
            .about-container { padding: 40px 30px; }
            .about-desc { font-size: 1.05rem; padding-left: 15px; }
        }

        /* --- EQUIPO (Carrusel Centralizado con Flechas) --- */
        .carousel-wrapper { position: relative; height: 450px; display: flex; justify-content: center; align-items: center; overflow: hidden; width: 100%; margin-top: 40px; }
        #teamCarousel { width: 100%; height: 100%; position: relative; display: flex; justify-content: center; align-items: center; }
        
        .carousel-slide {
            position: absolute; width: 320px; background: var(--bg-surface); border: 1px solid var(--border-light);
            padding: 50px 30px; text-align: center; transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
            opacity: 0; transform: scale(0.7) translateX(0); z-index: 0; pointer-events: none;
        }
        
        /* Solo las clases activas y vecinas tienen opacidad */
        .carousel-slide.active { opacity: 1; transform: scale(1) translateX(0); z-index: 3; pointer-events: auto; background: #111; border-color: var(--text-main); box-shadow: 0 20px 40px rgba(0,0,0,0.8); }
        .carousel-slide.prev { opacity: 0.4; transform: scale(0.8) translateX(-110%); z-index: 1; filter: blur(2px); }
        .carousel-slide.next { opacity: 0.4; transform: scale(0.8) translateX(110%); z-index: 1; filter: blur(2px); }
        
        .carousel-slide img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; margin-bottom: 25px; filter: grayscale(100%); transition: 0.3s; border: 2px solid #333; }
        .carousel-slide.active img { filter: grayscale(0%); border-color: var(--text-main); }
        .carousel-slide h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 5px; }
        .carousel-slide p { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

        /* Flechas del Carrusel */
        .carousel-arrow {
            position: absolute; top: 50%; transform: translateY(-50%);
            background: rgba(0,0,0,0.6); border: 1px solid var(--border-light); color: var(--text-main);
            width: 45px; height: 45px; border-radius: 50%; cursor: pointer; z-index: 10;
            display: flex; justify-content: center; align-items: center; transition: all 0.3s ease;
        }
        .carousel-arrow:hover { background: var(--text-main); color: var(--bg-base); border-color: var(--text-main); }
        .carousel-arrow.prev-btn { left: 10%; }
        .carousel-arrow.next-btn { right: 10%; }

        /* --- PROYECTOS --- */
        .projects-layout { display: flex; flex-direction: column; gap: 80px; }
        .project-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; }
        .project-row:nth-child(even) { direction: rtl; }
        .project-row:nth-child(even) > * { direction: ltr; }
        .project-info h3 { font-family: var(--font-display); font-size: 2.5rem; margin-bottom: 20px; text-transform: uppercase; }
        .project-info p { color: var(--text-muted); margin-bottom: 30px; line-height: 1.8; font-size: 1.05rem; }
        .project-image { width: 100%; aspect-ratio: 16/9; background-color: #111; border: 1px solid #222; overflow: hidden; position: relative; }
        .project-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: transform 0.6s, filter 0.6s; }
        .project-image:hover img { transform: scale(1.05); filter: grayscale(0%); }

        /* --- CLIENTES (Carrusel Cuadrado) --- */
        #clientsCarousel { width: 100%; height: 100%; position: relative; display: flex; justify-content: center; align-items: center; }
        
        .client-slide {
            position: absolute; width: 320px; background: var(--bg-surface); border: 1px solid var(--border-light);
            padding: 50px 30px; text-align: center; transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
            opacity: 0; transform: scale(0.7) translateX(0); z-index: 0; pointer-events: none;
            border-radius: 12px;
        }
        
        .client-slide.active { opacity: 1; transform: scale(1) translateX(0); z-index: 3; pointer-events: auto; background: #111; border-color: var(--text-main); box-shadow: 0 20px 40px rgba(0,0,0,0.8); }
        .client-slide.prev { opacity: 0.4; transform: scale(0.8) translateX(-110%); z-index: 1; filter: blur(2px); }
        .client-slide.next { opacity: 0.4; transform: scale(0.8) translateX(110%); z-index: 1; filter: blur(2px); }
        
        .client-slide img { 
            width: 140px; height: 140px; 
            border-radius: 20px; /* AQUÍ ESTÁ EL CAMBIO: Cuadrado con bordes redondeados */
            object-fit: cover; margin-bottom: 25px; filter: grayscale(100%); transition: 0.3s; border: 2px solid #333; 
        }
        .client-slide.active img { filter: grayscale(0%); border-color: var(--text-main); }
        .client-slide h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 5px; }
        .client-slide p { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

        @media (max-width: 900px) {
            .client-slide.prev { transform: scale(0.8) translateX(-70%); }
            .client-slide.next { transform: scale(0.8) translateX(70%); }
        }

        /* --- CTA --- */
        .cta-section { text-align: center; padding: 150px 5%; border-top: 1px solid var(--border-light); margin-top: 100px; }
        .cta-section h2 { font-family: var(--font-display); font-size: 3rem; margin-bottom: 40px; text-transform: uppercase; }

        /* --- FOOTER --- */
        footer { border-top: 1px solid var(--border-light); padding: 50px 5% 30px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
        .footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 15px; max-width: 300px; }
        .footer-links { display: flex; gap: 30px; }
        .footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: 0.3s; text-transform: uppercase; }
        .footer-links a:hover { color: var(--text-main); }

        /* ========================================== */
        /* --- DOCK FLOTANTE (KENTONO HUB) --- */
        /* ========================================== */
        .floating-dock {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 9999;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .hub-btn {
            position: relative;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background-color: var(--accent);
            display: flex;
            justify-content: center;
            align-items: center;
            text-decoration: none;
            color: white;
            font-size: 1.5rem;
            border: 2px solid transparent;
            box-shadow: 0 10px 25px rgba(157, 0, 255, 0.4);
            transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            overflow: hidden;
        }

        /* Efecto de Lámpara de Lava (Blob interno) */
        .hub-btn::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 60%);
            border-radius: 40%;
            animation: lavaFlow 4s infinite linear;
            z-index: 1;
            opacity: 0.8;
            mix-blend-mode: overlay;
        }

        @keyframes lavaFlow {
            0% { transform: rotate(0deg) scale(1); }
            50% { transform: rotate(180deg) scale(1.2); }
            100% { transform: rotate(360deg) scale(1); }
        }

        /* Efecto de Luz de Neón Blanca en los bordes */
        .hub-btn::after {
            content: '';
            position: absolute;
            inset: -2px; /* Ligeramente más grande que el botón */
            border-radius: 50%;
            background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 255, 255, 0.8) 90deg, transparent 360deg);
            animation: neonSpin 2s linear infinite;
            z-index: 0;
            opacity: 0.6;
        }

        @keyframes neonSpin {
            100% { transform: rotate(360deg); }
        }

        /* Icono para asegurar que esté sobre los efectos */
        .hub-btn i {
            position: relative;
            z-index: 2;
        }

        /* Hover: Botón crece ligeramente */
        .hub-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 15px 35px rgba(157, 0, 255, 0.6);
        }

        /* Tooltip (Texto que aparece al hover) */
        .hub-tooltip {
            position: absolute;
            bottom: calc(100% + 15px);
            background: rgba(0, 0, 0, 0.8);
            border: 1px solid var(--border-light);
            color: white;
            padding: 8px 15px;
            border-radius: 8px;
            font-family: var(--font-body);
            font-size: 0.85rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            pointer-events: none;
            box-shadow: 0 5px 15px rgba(0,0,0,0.5);
        }

        /* Flecha del tooltip */
        .hub-tooltip::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            border-width: 6px;
            border-style: solid;
            border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
        }

        .floating-dock:hover .hub-tooltip {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        /* ========================================== */
        /* --- ATENCIÓN PARA USUARIOS NUEVOS (HUB) --- */
        /* ========================================== */

        /* Aura morada que se expande desde el dock hacia toda la página */
        .dock-aura {
            position: fixed;
            bottom: 30px;
            left: 50%;
            width: 70px;
            height: 70px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(157,0,255,0.55) 0%, rgba(157,0,255,0.2) 35%, transparent 70%);
            transform: translate(-50%, 40%) scale(0);
            opacity: 0;
            z-index: 9998;
            pointer-events: none;
        }
        .dock-aura.pulse {
            animation: auraExpand 2.8s ease-out;
        }
        @keyframes auraExpand {
            0%   { transform: translate(-50%, 40%) scale(0);  opacity: 0.85; }
            50%  { opacity: 0.3; }
            100% { transform: translate(-50%, 40%) scale(50); opacity: 0; }
        }

        /* Entrada llamativa: el botón "nace" grande y rebota al asentarse */
        @keyframes hubEntrance {
            0%   { transform: scale(0) rotate(0deg); }
            55%  { transform: scale(1.6) rotate(10deg); }
            75%  { transform: scale(0.85) rotate(-6deg); }
            100% { transform: scale(1) rotate(0deg); }
        }
        .hub-btn.hub-entrance {
            animation: hubEntrance 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        }

        /* Animación continua tipo "personaje saludando": salto + vaivén + latido */
        @keyframes hubAttention {
            0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
            8%       { transform: translate(0, -14px) scale(1.12) rotate(-10deg); }
            16%      { transform: translate(-6px, 0) scale(1) rotate(8deg); }
            24%      { transform: translate(6px, -10px) scale(1.08) rotate(-8deg); }
            32%      { transform: translate(0, 0) scale(1) rotate(0deg); }
            45%      { transform: scale(1.22); }
            50%      { transform: scale(1); }
            55%      { transform: scale(1.15); }
            60%      { transform: scale(1); }
            75%      { transform: translate(-8px, -8px) scale(1.05) rotate(6deg); }
            88%      { transform: translate(8px, -6px) scale(1.05) rotate(-6deg); }
        }
        .hub-btn.hub-attention {
            animation: hubAttention 2.6s ease-in-out infinite;
        }
        .hub-btn.hub-attention::after {
            animation: neonSpin 1s linear infinite;
            opacity: 1;
        }

        @media (max-width: 900px) {
            .header-center { display: none; }
            .project-row { grid-template-columns: 1fr; }
            .project-row:nth-child(even) { direction: ltr; }
            .carousel-slide.prev { transform: scale(0.8) translateX(-70%); }
            .carousel-slide.next { transform: scale(0.8) translateX(70%); }
            .carousel-arrow.prev-btn { left: 0%; }
            .carousel-arrow.next-btn { right: 0%; }
            /* Ocultar tooltip en móviles para evitar parpadeos molestos */
            .hub-tooltip { display: none; } 
        }
        