:root {
    --neon-blue: #00d4ff;
    --neon-purple: #b347ff;
    --neon-pink: #ff0080;
    --neon-cyan: #00ffcc;
    --neon-green: #39ff14;
    --neon-orange: #ff6600;
    --dark-bg: #0a0a0f;
    --darker-bg: #050508;
    --navbar-bg: rgba(15, 15, 21, 0.95);
    --card-bg: rgba(21, 21, 32, 0.8);
    --text-light: #ffffff;
    --text-muted: #a0a0b8;
    --text-secondary: #6c6c8a;
    --border-glow: rgba(179, 71, 255, 0.3);
    --shadow-light: rgba(0, 0, 0, 0.15);
    --shadow-medium: rgba(0, 0, 0, 0.25);
    --shadow-strong: rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    font-family: 'Russo One', 'Inter', sans-serif;
    color: var(--text-light);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    line-height: 1.7;
}

    /* Fondo animado mejorado */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 20% 50%, rgba(179, 71, 255, 0.12) 0%, transparent 60%), radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.10) 0%, transparent 60%), radial-gradient(circle at 40% 80%, rgba(255, 0, 128, 0.08) 0%, transparent 60%);
        z-index: -2;
        animation: backgroundShift 25s ease-in-out infinite;
    }

@keyframes backgroundShift {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* ===== PARTÍCULAS MEJORADAS Y MÁS VISIBLES ===== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: float 12s linear infinite;
    filter: blur(0.5px);
}

    /* Partícula tipo 1 - Cyan brillante */
    .particle:nth-child(6n+1) {
        width: 4px;
        height: 4px;
        background: radial-gradient(circle, var(--neon-cyan) 0%, rgba(0, 255, 204, 0.4) 70%, transparent 100%);
        box-shadow: 0 0 15px var(--neon-cyan), 0 0 30px rgba(0, 255, 204, 0.5), 0 0 45px rgba(0, 255, 204, 0.3);
        animation-duration: 15s;
    }

    /* Partícula tipo 2 - Púrpura brillante */
    .particle:nth-child(6n+2) {
        width: 5px;
        height: 5px;
        background: radial-gradient(circle, var(--neon-purple) 0%, rgba(179, 71, 255, 0.4) 70%, transparent 100%);
        box-shadow: 0 0 18px var(--neon-purple), 0 0 35px rgba(179, 71, 255, 0.5), 0 0 50px rgba(179, 71, 255, 0.3);
        animation-duration: 18s;
    }

    /* Partícula tipo 3 - Rosa brillante */
    .particle:nth-child(6n+3) {
        width: 3px;
        height: 3px;
        background: radial-gradient(circle, var(--neon-pink) 0%, rgba(255, 0, 128, 0.4) 70%, transparent 100%);
        box-shadow: 0 0 12px var(--neon-pink), 0 0 25px rgba(255, 0, 128, 0.5), 0 0 40px rgba(255, 0, 128, 0.3);
        animation-duration: 20s;
    }

    /* Partícula tipo 4 - Azul brillante */
    .particle:nth-child(6n+4) {
        width: 6px;
        height: 6px;
        background: radial-gradient(circle, var(--neon-blue) 0%, rgba(0, 212, 255, 0.4) 70%, transparent 100%);
        box-shadow: 0 0 20px var(--neon-blue), 0 0 40px rgba(0, 212, 255, 0.5), 0 0 60px rgba(0, 212, 255, 0.3);
        animation-duration: 16s;
    }

    /* Partícula tipo 5 - Verde brillante */
    .particle:nth-child(6n+5) {
        width: 3.5px;
        height: 3.5px;
        background: radial-gradient(circle, var(--neon-green) 0%, rgba(57, 255, 20, 0.4) 70%, transparent 100%);
        box-shadow: 0 0 14px var(--neon-green), 0 0 28px rgba(57, 255, 20, 0.5), 0 0 42px rgba(57, 255, 20, 0.3);
        animation-duration: 22s;
    }

    /* Partícula tipo 6 - Naranja brillante */
    .particle:nth-child(6n) {
        width: 4.5px;
        height: 4.5px;
        background: radial-gradient(circle, var(--neon-orange) 0%, rgba(255, 102, 0, 0.4) 70%, transparent 100%);
        box-shadow: 0 0 16px var(--neon-orange), 0 0 32px rgba(255, 102, 0, 0.5), 0 0 48px rgba(255, 102, 0, 0.3);
        animation-duration: 14s;
    }

/* Animación de flotación mejorada */
@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0px) scale(0) rotate(0deg);
        opacity: 0;
    }

    5% {
        opacity: 1;
        transform: translateY(95vh) translateX(10px) scale(0.3) rotate(45deg);
    }

    25% {
        transform: translateY(75vh) translateX(-15px) scale(0.7) rotate(135deg);
    }

    50% {
        transform: translateY(50vh) translateX(20px) scale(1) rotate(225deg);
    }

    75% {
        transform: translateY(25vh) translateX(-10px) scale(1.1) rotate(315deg);
    }

    95% {
        opacity: 1;
        transform: translateY(5vh) translateX(5px) scale(0.8) rotate(405deg);
    }

    100% {
        transform: translateY(-5vh) translateX(0px) scale(0) rotate(450deg);
        opacity: 0;
    }
}

/* Partículas con movimiento ondulatorio */
.particle:nth-child(odd) {
    animation-name: floatWave;
}

@keyframes floatWave {
    0% {
        transform: translateY(100vh) translateX(0px) scale(0);
        opacity: 0;
    }

    5% {
        opacity: 1;
        transform: translateY(95vh) translateX(20px) scale(0.3);
    }

    15% {
        transform: translateY(85vh) translateX(-30px) scale(0.5);
    }

    30% {
        transform: translateY(70vh) translateX(40px) scale(0.8);
    }

    50% {
        transform: translateY(50vh) translateX(-20px) scale(1);
    }

    70% {
        transform: translateY(30vh) translateX(30px) scale(1.1);
    }

    85% {
        transform: translateY(15vh) translateX(-10px) scale(0.9);
    }

    95% {
        opacity: 1;
        transform: translateY(5vh) translateX(0px) scale(0.6);
    }

    100% {
        transform: translateY(-5vh) translateX(0px) scale(0);
        opacity: 0;
    }
}

/* Partículas pulsantes */
.particle:nth-child(4n) {
    animation: float 18s linear infinite, pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.3);
        filter: brightness(1.5);
    }
}

/* Navbar profesional mejorada */
.navbar {
    background: var(--navbar-bg) !important;
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(179, 71, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 1rem 0;
}

.navbar-brand {
    font-family: 'Press Start 2P', monospace !important;
    font-weight: 400 !important;
    font-size: 1.1rem !important;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(179, 71, 255, 0.5);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .navbar-brand .brand-icon {
        font-size: 1.4rem !important;
        background: linear-gradient(45deg, var(--neon-cyan), var(--neon-blue));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.6));
        animation: cloudFloat 3s ease-in-out infinite;
    }

@keyframes cloudFloat {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-3px);
    }
}

.navbar-brand:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 20px rgba(179, 71, 255, 0.6));
}

.nav-link {
    color: var(--text-light) !important;
    font-family: 'Russo One', sans-serif;
    font-weight: 400;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.75rem 1.25rem !important;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

    .nav-link::before {
        content: '';
        position: absolute;
        bottom: 4px;
        left: 50%;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--neon-cyan), var(--neon-blue));
        transition: all 0.3s ease;
        transform: translateX(-50%);
        border-radius: 2px;
    }

    .nav-link:hover {
        color: var(--neon-cyan) !important;
        background: rgba(0, 212, 255, 0.08);
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
    }

        .nav-link:hover::before {
            width: 70%;
        }

/* Botón mejorado */
.btn-primary {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink)) !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 0.75rem 2rem !important;
    font-family: 'Russo One', sans-serif !important;
    font-weight: 400 !important;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(179, 71, 255, 0.25);
}

    .btn-primary::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transform: rotate(45deg);
        transition: all 0.6s ease;
        opacity: 0;
    }

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(179, 71, 255, 0.4);
        background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple)) !important;
    }

        .btn-primary:hover::before {
            animation: shimmer 0.6s ease;
            opacity: 1;
        }

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Hero section mejorada */
.hero {
    padding: 6rem 0;
    position: relative;
}

    .hero .container {
        position: relative;
        z-index: 2;
    }

.gradient-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 3.5rem;
    font-weight: 400;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
    margin-bottom: 2rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes titleGlow {
    from {
        filter: drop-shadow(0 0 20px rgba(179, 71, 255, 0.3));
    }

    to {
        filter: drop-shadow(0 0 40px rgba(179, 71, 255, 0.6));
    }
}

.hero .lead {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
}

.hero .btn-lg {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(179, 71, 255, 0.3);
}

/* Cards profesionales */
.card {
    background: var(--card-bg) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(179, 71, 255, 0.2) !important;
    border-radius: 20px !important;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px var(--shadow-medium);
    overflow: hidden;
    position: relative;
}

    .card::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(179, 71, 255, 0.05) 0%, transparent 70%);
        opacity: 0;
        transition: all 0.4s ease;
    }

    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px var(--shadow-strong), 0 0 30px rgba(179, 71, 255, 0.2);
        border-color: var(--neon-cyan);
    }

        .card:hover::before {
            opacity: 1;
        }

.card-title {
    font-family: 'Russo One', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-text {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card .list-unstyled li {
    padding: 0.4rem 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.card .list-unstyled .bi-check-circle-fill {
    margin-right: 0.75rem;
    font-size: 1rem;
}

.card .h4 {
    font-family: 'Russo One', sans-serif;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--neon-cyan) !important;
    color: var(--neon-cyan) !important;
    background: transparent !important;
    border-radius: 25px !important;
    padding: 0.75rem 1.5rem !important;
    font-family: 'Russo One', sans-serif !important;
    font-weight: 400 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

    .btn-outline-primary:hover {
        background: var(--neon-cyan) !important;
        color: var(--dark-bg) !important;
        box-shadow: 0 0 20px rgba(0, 255, 204, 0.4);
        transform: translateY(-2px);
    }

/* Sección de servicios mejorada */
.services-section {
    padding: 5rem 0;
}

    .services-section .display-6 {
        font-family: 'Russo One', sans-serif;
        font-size: 2.5rem;
        font-weight: 400;
        color: var(--text-light);
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 1rem;
    }

    .services-section .text-muted {
        font-size: 1.2rem;
        color: var(--text-secondary) !important;
    }

/* CTA Section mejorada */
.cta-section {
    background: linear-gradient(135deg, rgba(21, 21, 32, 0.9), rgba(15, 15, 21, 0.9));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(179, 71, 255, 0.2);
    border-left: none;
    border-right: none;
    padding: 5rem 0;
    margin: 5rem 0;
}

    .cta-section .display-5 {
        font-family: 'Russo One', sans-serif;
        font-size: 2.2rem;
        color: var(--text-light);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

/* Footer profesional */
footer {
    background: linear-gradient(135deg, var(--darker-bg), var(--dark-bg));
    border-top: 1px solid rgba(179, 71, 255, 0.2);
    color: var(--text-muted);
}

    footer h5, footer h6 {
        font-family: 'Russo One', sans-serif;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    footer h5 {
        color: var(--neon-cyan);
    }

    footer a {
        color: var(--text-secondary);
        text-decoration: none;
        transition: all 0.3s ease;
    }

        footer a:hover {
            color: var(--neon-cyan);
        }

    footer .d-flex a {
        font-size: 1.3rem;
        padding: 0.5rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

        footer .d-flex a:hover {
            background: rgba(0, 212, 255, 0.1);
            box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
        }

.form-control {
    background: rgba(21, 21, 32, 0.8) !important;
    border: 1px solid rgba(179, 71, 255, 0.3) !important;
    color: var(--text-light) !important;
    border-radius: 10px !important;
}

    .form-control:focus {
        box-shadow: 0 0 0 0.2rem rgba(179, 71, 255, 0.25) !important;
        border-color: var(--neon-purple) !important;
    }

/* Responsive mejorado */
@media (max-width: 768px) {
    .particle {
        display: none;
    }

    .navbar-brand {
        font-size: 0.9rem !important;
    }

        .navbar-brand .brand-icon {
            font-size: 1.1rem !important;
        }

    .gradient-text {
        font-size: 2rem;
    }

    .hero {
        padding: 4rem 0;
    }

        .hero .lead {
            font-size: 1.1rem;
        }

    .services-section {
        padding: 3rem 0;
    }

        .services-section .display-6 {
            font-size: 2rem;
        }
}

/* Scrollbar mejorada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-purple), var(--neon-cyan));
    border-radius: 5px;
    border: 1px solid var(--dark-bg);
}

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, var(--neon-cyan), var(--neon-purple));
    }

/* Animaciones de entrada */
.fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Mejoras para el dropdown */
.navbar .dropdown-menu {
    background: var(--card-bg) !important;
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glow);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.navbar .dropdown-item {
    color: var(--text-light) !important;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 2px 5px;
}

    .navbar .dropdown-item:hover {
        background: rgba(179, 71, 255, 0.2) !important;
        color: var(--neon-cyan) !important;
    }

.navbar .dropdown-item-text {
    color: var(--text-muted) !important;
    font-size: 0.9rem;
}

/* Mejora visual para el menú de admin */
.navbar .nav-link[href="#"] {
    cursor: pointer;
}

/* Efecto hover en los dropdowns */
.navbar .dropdown-toggle::after {
    transition: transform 0.3s ease;
}

.navbar .dropdown-toggle.show::after {
    transform: rotate(180deg);
}

/* Mejoras para la tabla */
.table-hover tbody tr:hover {
    background: rgba(179, 71, 255, 0.1) !important;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

/* Badges modernos */
.badge {
    font-size: 0.75em;
    padding: 0.5em 0.75em;
    border-radius: 15px;
}

/* Cards con efecto hover */
.card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-glow);
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(179, 71, 255, 0.2);
    }

/* Botones de acción */
.btn-group .btn {
    border-radius: 8px;
    margin: 0 2px;
    transition: all 0.3s ease;
}

    .btn-group .btn:hover {
        transform: scale(1.1);
    }

/* SOLUCIÓN: Corregir z-index de partículas */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* MUY IMPORTANTE */
    z-index: -10; /* CAMBIADO: debe ser negativo */
    overflow: hidden;
}

/* Asegurar que los elementos del formulario estén por encima */
.form-control,
.form-select,
.btn,
.dropdown-menu,
.card,
.table {
    position: relative;
    z-index: 10; /* Por encima de las partículas */
}