/* ===== TEMA CYBERPUNK/NEON PARA WIKI DE LINKS LOCALES ===== */
/* Variables CSS para colores consistentes */
:root {
    --primary-gradient: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    --secondary-gradient: linear-gradient(135deg, #ff00ff 0%, #00d4ff 100%);
    --success-gradient: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%);
    --warning-gradient: linear-gradient(135deg, #ffaa00 0%, #ff6600 100%);
    --danger-gradient: linear-gradient(135deg, #ff0055 0%, #ff00ff 100%);
    --dark-card: rgba(0, 212, 255, 0.05);
    --glass-effect: rgba(0, 20, 40, 0.7);
    --border-glow: rgba(0, 212, 255, 0.4);
    --text-primary: #e0f7ff;
    --text-secondary: rgba(0, 255, 136, 0.9);
    --bg-primary: #0a0a1a;
    --bg-secondary: #0d1525;
    --border-color: rgba(0, 212, 255, 0.3);
    --accent-cyan: #00d4ff;
    --accent-green: #00ff88;
    --accent-magenta: #ff00ff;
}

/* Estilos base del cuerpo */
body {
    font-family: "Arial", sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow-x: hidden;
}

/* Efectos de particulas de fondo - Cyberpunk */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 60% 70%, rgba(0, 212, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(1deg); }
}

/* Título principal mejorado */
h1 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin: 30px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: titleGlow 2s ease-in-out infinite alternate;
    position: relative;
    z-index: 2;
}

@keyframes titleGlow {
    from { text-shadow: 2px 2px 4px rgba(0,0,0,0.5), 0 0 20px rgba(0, 212, 255, 0.6), 0 0 40px rgba(0, 255, 136, 0.3); }
    to { text-shadow: 2px 2px 4px rgba(0,0,0,0.5), 0 0 30px rgba(0, 212, 255, 0.9), 0 0 60px rgba(0, 255, 136, 0.5); }
}

/* Encabezados secundarios */
h2, h3, h4 {
    color: #00d4ff;
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

/* Titulos de categoria */
.category-title {
    color: #00ff88 !important;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.5), 0 0 30px rgba(0, 212, 255, 0.3);
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 4px solid #00d4ff;
}

/* Contenedor principal centrado */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Dropdown mejorado */
.dropdown {
    text-align: center;
    margin: 20px 0;
}

.dropdown-toggle {
    background: var(--glass-effect);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    cursor: pointer;
}

.dropdown-toggle:hover {
    background: var(--primary-gradient);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4), 0 0 20px rgba(0, 255, 136, 0.2);
}

.dropdown-menu {
    background: var(--glass-effect);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: none;
    position: absolute;
    min-width: 160px;
    z-index: 1;
}

.dropdown-menu a {
    color: var(--text-primary);
    padding: 10px 20px;
    transition: all 0.3s ease;
    border-radius: 10px;
    margin: 5px;
    text-decoration: none;
    display: block;
}

.dropdown-menu a:hover {
    background: var(--primary-gradient);
    transform: translateX(5px);
}

.show {
    display: block;
}

/* Barra de búsqueda mejorada */
.search-container {
    text-align: center;
    margin: 25px 0;
}

.search-input {
    width: 80%;
    max-width: 500px;
    padding: 15px 25px;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    font-size: 16px;
    background: var(--glass-effect);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow:
        0 8px 25px rgba(0,0,0,0.2),
        0 0 20px rgba(0, 212, 255, 0.4),
        0 0 40px rgba(0, 255, 136, 0.2);
    transform: scale(1.02);
}

/* Listado de elementos */
.list-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 0;
    margin: 20px;
}

/* Mejoras en las tarjetas de la lista */
.list-group-item {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 20px;
    margin-bottom: 15px;
    background: var(--glass-effect);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    padding: 20px;
    animation: slideInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.list-group-item::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;
}

.list-group-item:hover::before {
    left: 100%;
}

.list-group-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 15px 35px rgba(0,0,0,0.4),
        0 0 20px rgba(0, 212, 255, 0.4),
        0 0 40px rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 212, 255, 0.6);
}

/* Enlaces mejorados */
.list-group-item a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #e0f7ff;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.list-group-item a:hover {
    color: #00ff88;
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Iconos mejorados */
.icon {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    animation: iconFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(2deg); }
}

.list-group-item:hover .icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.7)) drop-shadow(0 0 25px rgba(0, 255, 136, 0.4));
}

/* Descripciones mejoradas */
.description {
    margin-top: 10px;
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.9em;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

/* Botón de tema mejorado */
#theme-toggle {
    background: var(--glass-effect);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
}

#theme-toggle:hover {
    background: var(--primary-gradient);
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5), 0 0 30px rgba(0, 255, 136, 0.3);
}

/* Contenedor de partículas flotantes */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(0, 212, 255, 0.7);
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
    box-shadow: 0 0 6px rgba(0, 212, 255, 0.5), 0 0 12px rgba(0, 255, 136, 0.3);
}

.particle:nth-child(odd) {
    background: rgba(0, 255, 136, 0.7);
    box-shadow: 0 0 6px rgba(0, 255, 136, 0.5), 0 0 12px rgba(0, 212, 255, 0.3);
}

.particle:nth-child(3n) {
    background: rgba(255, 0, 255, 0.5);
    box-shadow: 0 0 6px rgba(255, 0, 255, 0.4), 0 0 12px rgba(0, 212, 255, 0.2);
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* Animaciones de entrada para las tarjetas */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(50px);
    }
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
}

/* Estilos para los comandos */
.command-section {
    background: var(--glass-effect);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.command-code {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    font-family: 'Courier New', monospace;
    color: #00ff88;
    position: relative;
    overflow-x: auto;
}

.command-code::before {
    content: '$ ';
    color: #00d4ff;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    color: white;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.5), 0 0 20px rgba(0, 255, 136, 0.3);
}

/* Botón de regreso */
.back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: var(--glass-effect);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    padding: 15px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-btn:hover {
    background: var(--primary-gradient);
    transform: scale(1.1);
    color: white;
}

/* Secciones de contenido dinámico */
#contentSection {
    background: var(--glass-effect);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
}

/* Estilos para <ol> y <li> */
ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

ol li {
    margin-bottom: 10px;
    color: var(--text-primary);
}

/* Secciones de guías */
.guide-section,
.rdp-section,
.gui-section,
.rsa-section,
.docker-section,
.install-docker-section {
    background: var(--glass-effect);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    display: block;
}

.guide-section h2,
.rdp-section h2,
.gui-section h2,
.rsa-section h2,
.docker-section h2,
.install-docker-section h2 {
    color: #00d4ff;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

.guide-section ol,
.rdp-section ol,
.gui-section ol,
.rsa-section ol,
.docker-section ol,
.install-docker-section ol {
    padding-left: 20px;
}

.guide-section li,
.rdp-section li,
.gui-section li,
.rsa-section li,
.docker-section li,
.install-docker-section li {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.guide-section code,
.rdp-section code,
.gui-section code,
.rsa-section code,
.docker-section code,
.install-docker-section code {
    background: rgba(0, 0, 0, 0.3);
    color: #00ff88;
    padding: 2px 5px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 5px;
    font-family: 'Courier New', monospace;
}

/* Caja de advertencia personalizada */
.warning-box {
    background: linear-gradient(90deg, #ffe066 0%, #fff3cd 100%);
    color: #3a2c00;
    border: 1.5px solid #ffec99;
    border-left: 8px solid #ffc107;
    padding: 18px 20px 14px 20px;
    border-radius: 8px;
    margin: 24px 0 24px 0;
    font-size: 1.08em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.warning-box h4 {
    color: #b8860b;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.15em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-box p {
    color: #3a2c00;
    margin-bottom: 0;
}

/* Caja de consejo personalizada */
.note {
    background: linear-gradient(90deg, #d1ecf1 0%, #e3f6ff 100%);
    color: #0b3c5d;
    border: 1.5px solid #bee5eb;
    border-left: 8px solid #17a2b8;
    padding: 18px 20px 14px 20px;
    border-radius: 8px;
    margin: 24px 0 24px 0;
    font-size: 1.08em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.note strong {
    color: #138496;
    font-weight: bold;
    margin-right: 8px;
}

/* ===== TEMA CLARO ===== */
body.light {
    background-color: #f8f9fa;
    color: #212529;
}

body.light .list-group-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light .search-input {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

body.light .dropdown-toggle {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light .description {
    color: rgba(0, 0, 0, 0.7);
}

body.light .command-section {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light .command-code {
    background: rgba(0, 0, 0, 0.1);
    color: #0066cc;
}

body.light .guide-section,
body.light .rdp-section,
body.light .gui-section,
body.light .rsa-section,
body.light .docker-section,
body.light .install-docker-section {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #212529;
}

body.light .guide-section li,
body.light .rdp-section li,
body.light .gui-section li,
body.light .rsa-section li,
body.light .docker-section li,
body.light .install-docker-section li {
    color: #212529;
}

body.light .guide-section code,
body.light .rdp-section code,
body.light .gui-section code,
body.light .rsa-section code,
body.light .docker-section code,
body.light .install-docker-section code {
    background: rgba(0, 0, 0, 0.1);
    color: #0066cc;
}

/* Ajustes para el tema claro en cajas especiales */
body.light .warning-box {
    background: linear-gradient(90deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 1.5px solid #ffeaa7;
    border-left: 8px solid #fdcb6e;
}

body.light .warning-box h4 {
    color: #856404;
}

body.light .warning-box p {
    color: #856404;
}

body.light .note {
    background: linear-gradient(90deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border: 1.5px solid #bee5eb;
    border-left: 8px solid #17a2b8;
}

body.light .note strong {
    color: #138496;
}

/* Responsive design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .list-group {
        grid-template-columns: 1fr;
        margin: 10px;
    }
    
    .search-input {
        width: 90%;
    }
    
    .command-code {
        font-size: 0.9em;
        padding: 10px;
    }
}

/* Animaciones de entrada escalonadas para las tarjetas */
.list-group-item:nth-child(1) { animation-delay: 0.1s; }
.list-group-item:nth-child(2) { animation-delay: 0.2s; }
.list-group-item:nth-child(3) { animation-delay: 0.3s; }
.list-group-item:nth-child(4) { animation-delay: 0.4s; }
.list-group-item:nth-child(5) { animation-delay: 0.5s; }
.list-group-item:nth-child(6) { animation-delay: 0.6s; }
.list-group-item:nth-child(7) { animation-delay: 0.7s; }
.list-group-item:nth-child(8) { animation-delay: 0.8s; }
.list-group-item:nth-child(9) { animation-delay: 0.9s; }
.list-group-item:nth-child(10) { animation-delay: 1.0s; }
.list-group-item:nth-child(11) { animation-delay: 1.1s; }
.list-group-item:nth-child(12) { animation-delay: 1.2s; }
.list-group-item:nth-child(13) { animation-delay: 1.3s; }
.list-group-item:nth-child(14) { animation-delay: 1.4s; }
.list-group-item:nth-child(15) { animation-delay: 1.5s; }
.list-group-item:nth-child(16) { animation-delay: 1.6s; }
.list-group-item:nth-child(17) { animation-delay: 1.7s; }
.list-group-item:nth-child(18) { animation-delay: 1.8s; }
.list-group-item:nth-child(19) { animation-delay: 1.9s; }
.list-group-item:nth-child(20) { animation-delay: 2.0s; }
.list-group-item:nth-child(21) { animation-delay: 2.1s; }
.list-group-item:nth-child(22) { animation-delay: 2.2s; }
.list-group-item:nth-child(23) { animation-delay: 2.3s; }
.list-group-item:nth-child(24) { animation-delay: 2.4s; }
.list-group-item:nth-child(25) { animation-delay: 2.5s; }
.list-group-item:nth-child(26) { animation-delay: 2.6s; }
.list-group-item:nth-child(27) { animation-delay: 2.7s; } 