:root {
    --oscuro: #0D1B5E;
    --principal: #1A4CC8;
    --acento: #00C8FF;
    --suave: #EBF5FF;
    --offwhite: #F8FAFF;
    --texto-claro: #0D1B5E;
    --texto-oscuro: #FFFFFF;
}

* {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    background-color: var(--offwhite);
    color: var(--texto-claro);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--suave);
}
::-webkit-scrollbar-thumb {
    background: var(--principal);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--acento);
}

/* Hero glow effect */
.hero-title {
    text-shadow:
        0 0 20px rgba(0, 200, 255, 0.5),
        0 0 40px rgba(0, 200, 255, 0.3),
        0 0 60px rgba(0, 200, 255, 0.2);
}

/* Neon pulse animation */
@keyframes neonPulse {
    0%, 100% {
        text-shadow:
            0 0 20px rgba(0, 200, 255, 0.5),
            0 0 40px rgba(0, 200, 255, 0.3),
            0 0 60px rgba(0, 200, 255, 0.2);
    }
    50% {
        text-shadow:
            0 0 30px rgba(0, 200, 255, 0.7),
            0 0 60px rgba(0, 200, 255, 0.5),
            0 0 90px rgba(0, 200, 255, 0.3);
    }
}

.neon-pulse {
    animation: neonPulse 3s ease-in-out infinite;
}

/* Fade in up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
}

.animate-on-scroll.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Stagger delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* Card hover effect */
.product-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 200, 255, 0.2);
}

/* Button hover */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.btn-primary:hover::before {
    left: 100%;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(26, 76, 200, 0.4);
}

/* Tab active indicator */
.tab-btn.active {
    background-color: var(--principal);
    color: white;
}
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--acento);
    border-radius: 2px;
}

/* Floating particles canvas */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Badge pulse */
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 200, 255, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(0, 200, 255, 0); }
}
.badge-pulse {
    animation: badgePulse 2s ease-in-out infinite;
}

.badge-delay-1 { animation-delay: 0.5s; }
.badge-delay-2 { animation-delay: 1s; }

/* Focus states */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.5);
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.mobile-menu.open {
    transform: translateX(0);
}

/* Stat counter */
.stat-number {
    background: linear-gradient(135deg, var(--acento), #00E5FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 0.1em;
    display: inline-block;
}

/* Sector card hover */
.sector-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.sector-card:hover {
    border-color: var(--acento);
    background: rgba(0, 200, 255, 0.1);
}

/* Form input focus */
.form-input:focus {
    border-color: var(--principal);
    box-shadow: 0 0 0 3px rgba(26, 76, 200, 0.2);
}

/* Navbar scrolled state */
.navbar-scrolled {
    background: rgba(13, 27, 94, 0.95) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-hidden {
    transform: translateY(-100%);
}

/* Gradient overlay */
.gradient-overlay {
    background: linear-gradient(180deg,
        rgba(13, 27, 94, 0) 0%,
        rgba(13, 27, 94, 0.3) 50%,
        rgba(13, 27, 94, 0.8) 100%
    );
}
