:root {
    /* Paleta */
    --bg-main: #010308;
    --bg-secondary: transparent;
    --bg-glass: rgba(5, 10, 20, 0.6);
    --brand-cyan: #00e5ff;
    --brand-blue: #0055ff;
    --text-primary: #f8fafc;
    --text-muted: #a0aec0;

    /* Tipografías Modernas y Tecnológicas */
    --font-ui: 'Urbanist', system-ui, sans-serif;
    --font-head: 'Space Grotesk', sans-serif;
    --font-code: 'JetBrains Mono', monospace;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: transparent;
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100vw;
    max-width: 100%;
}

/* Tipografía de Encabezados */
h1,
h2,
h3,
.nav-links a,
.btn-contact,
.logo,
.badge,
.stat-number {
    font-family: var(--font-head);
}

/* =========================================
   FONDO GLOBAL GLASSMORPHISM NEÓN
   ========================================= */
.global-glass-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #010308;
    z-index: -2;
    overflow: hidden;
}

.glass-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    /* La opacidad estática se eliminó, ahora la controla la animación para el efecto de atenuado */
    animation: orbFloat 25s infinite ease-in-out;
}

.orb-1 {
    width: 45vw;
    height: 45vw;
    background-color: var(--brand-blue);
    top: -10%;
    left: -10%;
    animation-duration: 16s;
    /* Reducido de 25s para más velocidad */
}

.orb-2 {
    width: 35vw;
    height: 35vw;
    background-color: var(--brand-cyan);
    bottom: -5%;
    right: -5%;
    animation-delay: -5s;
    animation-duration: 13s;
    /* Reducido de 22s */
}

.orb-3 {
    width: 30vw;
    height: 30vw;
    background-color: #001a4d;
    top: 40%;
    left: 30%;
    animation-delay: -10s;
    animation-duration: 19s;
    /* Reducido de 28s */
}

/* Animación ajustada: Opacidades más altas para mayor iluminación */
@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.35;
        /* Antes 0.2 - El punto más oscuro ahora es más claro */
    }

    25% {
        opacity: 0.85;
        /* Antes 0.6 - Mayor brillo */
    }

    50% {
        transform: translate(15%, 15%) scale(1.15);
        opacity: 0.45;
        /* Antes 0.3 */
    }

    75% {
        opacity: 0.95;
        /* Antes 0.7 - Casi opacidad total en el pico de luz */
    }

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

.glass-overlay {
    position: fixed;
    inset: 0;
    background: rgba(1, 3, 8, 0.5);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    z-index: -1;
}

/* Layout Compacto */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: clamp(60px, 8vw, 100px) 0;
}

/* Tipografía Útiles */
.text-gradient {
    background: linear-gradient(135deg, #ffffff, var(--brand-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: clamp(1rem, 4vw, 2rem);
    letter-spacing: -1px;
    line-height: 1.1;
}

.section-title.left-align {
    text-align: left;
}

.lead-text {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Panel de Cristal */
.glass-panel {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

/* =========================================
   NAVEGACIÓN
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 35px 0;
    z-index: 1000;
    transition: all 0.4s var(--ease-out-expo);
    pointer-events: none;
}

.nav-container {
    pointer-events: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    transition: all 0.4s var(--ease-out-expo);
    border-radius: 60px;
    padding: 10px 30px;
    background: transparent;
    border: 1px solid transparent;
}

.logo img {
    height: clamp(35px, 5vw, 55px);
    transition: height 0.3s;
    z-index: 1001;
    position: relative;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: clamp(25px, 3.5vw, 50px);
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--brand-cyan);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-cyan);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--brand-cyan);
}

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

.btn-contact {
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
    color: #fff;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 1px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.2);
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.4);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.menu-toggle .bar {
    width: 28px;
    height: 3px;
    background-color: var(--text-primary);
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: inline-block;
}

header.scrolled {
    padding: 20px 0;
}

header.scrolled .nav-container {
    background: rgba(5, 10, 20, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 229, 255, 0.2);
    padding: 15px 35px;
    width: 90%;
    max-width: 1100px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* =========================================
   INICIO / HERO
   ========================================= */
.hero-section {
    position: relative;
    min-height: 95vh;
    display: flex;
    align-items: center;
    padding: 180px 5% 80px 5%;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 0 8%;
    text-align: left;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 35px;
    background: rgba(0, 229, 255, 0.05);
    backdrop-filter: blur(10px);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: var(--brand-cyan);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--brand-cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.5);
    }

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

.hero-content h1 {
    font-size: clamp(3.5rem, 8vw, 7.5rem);
    font-weight: 700;
    margin-bottom: 40px;
    color: #ffffff;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 1);
    line-height: 1.05;
    letter-spacing: -2px;
}

.text-neon {
    color: var(--brand-cyan);
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.6), 0 0 35px rgba(0, 229, 255, 0.4);
    font-weight: 800;
}

.terminal-prompt {
    font-family: var(--font-code);
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--text-primary);
    padding: 20px 30px;
    display: inline-block;
    max-width: 100%;
}

.prompt-arrow {
    color: var(--brand-cyan);
    margin-right: 10px;
    font-weight: bold;
}

.cursor-blink {
    color: var(--brand-cyan);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* =========================================
   DISEÑO DIVIDIDO (PERFIL) MODIFICADO
   ========================================= */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 50px);
    align-items: center;
}

.relative-z {
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: flex;
    gap: clamp(15px, 3vw, 25px);
    margin-top: 25px;
    flex-wrap: wrap;
}

.stat-box {
    padding: 20px 25px;
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: border-color 0.3s, background 0.3s, transform 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-box:hover {
    border-color: rgba(0, 229, 255, 0.5);
    background: rgba(0, 229, 255, 0.05);
    transform: translateY(-5px);
}

.stat-icon {
    color: var(--brand-cyan);
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 8px;
    display: inline-flex;
}

.stat-number {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.4;
}

/* LOGO INTERACTIVO */
.logo-interactive-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 450px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.hologram-glow {
    position: absolute;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.4) 0%, rgba(0, 85, 255, 0.1) 40%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.3);
        opacity: 0.8;
    }
}

.orbit-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(0, 229, 255, 0.2);
}

.ring-1 {
    width: 70%;
    height: 70%;
    border-top: 2px solid var(--brand-cyan);
    border-bottom: 2px solid var(--brand-blue);
    animation: spin 15s linear infinite;
}

.ring-2 {
    width: 85%;
    height: 85%;
    border-left: 1px solid rgba(0, 229, 255, 0.5);
    border-right: 1px solid rgba(0, 85, 255, 0.5);
    animation: spin-reverse 20s linear infinite;
}

.ring-3 {
    width: 100%;
    height: 100%;
    border-top: 1px dashed var(--brand-cyan);
    animation: spin 25s linear infinite;
    opacity: 0.5;
}

@keyframes spin {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes spin-reverse {
    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

.interactive-logo {
    position: relative;
    width: 60%;
    height: 60%;
    z-index: 3;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    cursor: crosshair;
}

.motor-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.4));
    transform: translateZ(30px);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateZ(30px) translateY(0px);
    }

    50% {
        transform: translateZ(30px) translateY(-10px);
    }
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15%;
    background: linear-gradient(to bottom, transparent, rgba(0, 229, 255, 0.3), transparent);
    z-index: 4;
    animation: scan 3s linear infinite;
    pointer-events: none;
    transform: translateZ(40px);
}

@keyframes scan {
    0% {
        top: -20%;
        opacity: 0;
    }

    20%,
    80% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.tech-labels {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 5;
}

.tech-label {
    position: absolute;
    font-family: var(--font-code);
    font-size: 0.65rem;
    color: var(--brand-cyan);
    background: rgba(0, 229, 255, 0.1);
    padding: 4px 8px;
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 4px;
    backdrop-filter: blur(4px);
    letter-spacing: 1px;
}

/* =========================================
   NUESTRO PROCESO (2x2 CORPORATIVO Y RESPONSIVO)
   ========================================= */
.process-grid {
    display: grid;
    /* Fuerza estrictamente 2 columnas sin importar el dispositivo */
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(15px, 3vw, 30px);
    position: relative;
    margin-top: 40px;
    align-items: stretch;
}

.process-step {
    padding: clamp(20px, 4vw, 45px) clamp(15px, 3vw, 35px);
    text-align: center;
    position: relative;
    z-index: 1;
    transition: transform 0.4s var(--ease-out-expo), border-color 0.4s, box-shadow 0.4s;
    overflow: hidden;
    /* Cajas más grandes y simétricas */
    min-height: clamp(240px, 35vw, 380px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.process-step:hover {
    transform: translateY(-8px);
    border-color: var(--brand-cyan);
    box-shadow: 0 15px 35px rgba(0, 229, 255, 0.15);
}

.step-icon {
    width: clamp(45px, 7vw, 75px);
    height: clamp(45px, 7vw, 75px);
    margin: 0 auto clamp(15px, 3vw, 25px) auto;
    background: rgba(1, 3, 8, 0.9);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    padding: clamp(10px, 2vw, 18px);
}

.process-step:hover .step-icon {
    background: rgba(0, 229, 255, 0.15);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.4);
    transform: scale(1.15);
}

.step-number {
    position: absolute;
    top: -15px;
    right: -10px;
    font-family: var(--font-code);
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.02);
    z-index: 0;
    transition: color 0.4s ease;
    user-select: none;
    line-height: 1;
}

.process-step:hover .step-number {
    color: rgba(0, 229, 255, 0.05);
}

.process-step h3 {
    font-size: clamp(0.95rem, 2vw, 1.4rem);
    margin-bottom: clamp(10px, 2vw, 15px);
    color: #fff;
    line-height: 1.3;
    z-index: 2;
}

.process-step p {
    font-size: clamp(0.75rem, 1.5vw, 1rem);
    color: var(--text-muted);
    line-height: 1.5;
    z-index: 2;
    margin: 0;
}

/* =========================================
   SERVICIOS
   ========================================= */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 50px;
}

.service-row {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 400px;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s, box-shadow 0.4s;
    background: rgba(255, 255, 255, 0.02);
}

.service-row.reverse {
    flex-direction: row-reverse;
}

.service-row:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 20px 50px rgba(0, 229, 255, 0.15);
}

.service-img {
    width: 50%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-row:hover .service-img {
    transform: scale(1.08);
}

.service-content {
    width: 50%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(1, 3, 8, 0.6);
    z-index: 1;
}

.service-content .icon-wrapper {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--brand-cyan);
    transition: all 0.4s;
}

.service-row:hover .icon-wrapper {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--brand-cyan);
    transform: scale(1.1);
}

.service-content h3 {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.service-content p {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 400;
}

/* =========================================
   PROYECTOS
   ========================================= */
.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #010308, transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #010308, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scroll-horizontal 40s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.project-item {
    width: clamp(400px, 45vw, 700px);
    aspect-ratio: 16/9;
    margin: 0 15px;
    border-radius: 16px;
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo), filter 0.6s;
    filter: grayscale(40%) brightness(0.7);
}

.project-glow {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 30px rgba(0, 229, 255, 0);
    z-index: 1;
    transition: box-shadow 0.3s, border 0.3s;
}

.project-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1.1);
}

.project-item:hover .project-glow {
    box-shadow: inset 0 0 60px rgba(0, 229, 255, 0.5);
    border: 2px solid rgba(0, 229, 255, 0.8);
}

@keyframes scroll-horizontal {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 15px));
    }
}

/* =========================================
   CONTACTO Y REDES SOCIALES TECH
   ========================================= */
.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.4s var(--ease-out-expo);
}

.social-links a svg {
    width: 24px;
    height: 24px;
    transition: transform 0.4s, stroke 0.4s;
}

.social-links a:hover {
    border-color: var(--brand-cyan);
    background: rgba(0, 229, 255, 0.1);
    color: var(--brand-cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
    transform: translateY(-5px);
}

.social-links a:hover svg {
    transform: scale(1.15);
}

.whatsapp-action-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(30px, 5vw, 50px);
}

.glowing-btn {
    position: relative;
    padding: 18px 25px;
    background: transparent;
    color: var(--brand-cyan);
    border: 1px solid var(--brand-cyan);
    border-radius: 10px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    overflow: hidden;
    transition: color 0.3s ease;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}

.glowing-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--brand-cyan);
    transition: left 0.3s var(--ease-out-expo);
    z-index: -1;
}

.glowing-btn:hover {
    color: var(--bg-main);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.5);
}

.glowing-btn:hover::before {
    left: 0;
}

.glowing-btn span {
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
}

/* =========================================
   CONTENEDOR WHATSAPP ANIMADO
   ========================================= */
.wa-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
}

.wa-message {
    font-family: var(--font-ui);
    background: rgba(10, 15, 30, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 229, 255, 0.4);
    color: #fff;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 5px 20px rgba(0, 229, 255, 0.2);
    animation: floatMessage 3s ease-in-out infinite;
    pointer-events: none;
}

.wa-message::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(0, 229, 255, 0.4);
}

@keyframes floatMessage {

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

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

.floating-wa {
    width: 65px;
    height: 65px;
    background-color: #000;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
    transition: all 0.3s var(--ease-out-expo);
    animation: glowPulse 2s infinite, shake 6s infinite;
}

.floating-wa svg {
    width: 35px;
    height: 35px;
    transition: transform 0.3s;
}

.floating-wa:hover {
    background-color: #111;
    border-color: var(--brand-cyan);
    color: var(--brand-cyan);
    transform: scale(1.1);
    animation: none;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.8);
}

.floating-wa:hover svg {
    transform: scale(1.1);
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.6);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 229, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0);
    }
}

@keyframes shake {

    0%,
    90% {
        transform: rotate(0deg);
    }

    92% {
        transform: rotate(15deg);
    }

    94% {
        transform: rotate(-15deg);
    }

    96% {
        transform: rotate(10deg);
    }

    98% {
        transform: rotate(-10deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* ANIMACIONES GLOBALES */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s var(--ease-out-expo);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.delay-3 {
    transition-delay: 0.45s;
}

/* =========================================
   MEDIA QUERIES
   ========================================= */
@media (max-width: 900px) {
    .orb-1 {
        width: 90vw;
        height: 90vw;
        top: 5%;
        left: -20%;
        filter: blur(70px);
        opacity: 0.65;
    }

    .orb-2 {
        width: 85vw;
        height: 85vw;
        bottom: 5%;
        right: -20%;
        filter: blur(70px);
        opacity: 0.65;
    }

    .orb-3 {
        width: 75vw;
        height: 75vw;
        top: 45%;
        left: 10%;
        filter: blur(60px);
        opacity: 0.6;
    }

    .glass-overlay {
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        background: rgba(1, 3, 8, 0.65);
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        margin: 0 auto;
        text-align: center;
    }

    .section-title.left-align {
        text-align: center;
    }

    .stats-grid {
        justify-content: center;
    }

    .menu-toggle {
        display: flex;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
        text-align: center;
        margin-top: 15px;
        width: 100%;
        font-size: 1.1rem;
    }

    header {
        padding: 15px 0;
    }

    header .nav-container,
    header.scrolled .nav-container {
        width: 95%;
        border-radius: 50px;
        padding: 15px 25px;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 15px);
        left: 0;
        width: 100%;
        background: rgba(5, 10, 20, 0.95);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        padding: 35px 5%;
        border: 1px solid rgba(0, 229, 255, 0.15);
        border-radius: 20px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        font-size: 1.2rem;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .service-row,
    .service-row.reverse {
        flex-direction: column;
        height: auto;
    }

    .service-img {
        width: 100%;
        height: 250px;
    }

    .service-content {
        width: 100%;
        padding: 40px 25px;
        align-items: center;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .wa-container {
        bottom: 20px;
        right: 20px;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }

    .wa-message::after {
        right: 20px;
        top: 100%;
        border-width: 6px 6px 0 6px;
        border-color: rgba(0, 229, 255, 0.4) transparent transparent transparent;
        transform: none;
    }
}

/* FOOTER */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 30px 0;
    position: relative;
    z-index: 10;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-family: var(--font-head);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.social-item svg {
    width: 22px;
    height: 22px;
    transition: stroke 0.3s ease, transform 0.3s ease;
}

.social-item:hover {
    color: var(--brand-cyan);
    border-color: rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
    transform: translateY(-4px);
}

.social-item:hover svg {
    stroke: var(--brand-cyan);
    transform: scale(1.1);
}

.footer-copy {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    padding-top: 30px;
}

.footer-copy p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-ui);
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .footer-socials {
        flex-direction: column;
        align-items: center;
    }

    .social-item {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}