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

html, body {
    margin: 0;
    padding: 0;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto; /* Permitir scroll vertical */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 25%, #16213e 50%, #0f0f23 75%, #0c0c0c 100%);
    color: #fff;
    min-height: 100vh;
    position: relative;
}

/* Elegant Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, transparent 49%, rgba(59, 130, 246, 0.03) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(147, 51, 234, 0.03) 50%, transparent 51%);
    background-size: 100px 100px, 150px 150px, 20px 20px, 20px 20px;
    background-position: 0 0, 100px 100px, 0 0, 10px 10px;
    animation: backgroundShift 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes backgroundShift {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-10px) translateY(-10px); }
    50% { transform: translateX(10px) translateY(10px); }
    75% { transform: translateX(-5px) translateY(15px); }
}

/* Floating Geometric Shapes */
.geometric-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border: 1px solid rgba(59, 130, 246, 0.2);
    animation: floatShape 15s ease-in-out infinite;
}

.shape:nth-child(1) {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.05), rgba(147, 51, 234, 0.05));
}

.shape:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 20%;
    right: 15%;
    animation-delay: 3s;
    transform: rotate(45deg);
    background: linear-gradient(45deg, rgba(147, 51, 234, 0.05), rgba(59, 130, 246, 0.05));
}

.shape:nth-child(3) {
    width: 120px;
    height: 60px;
    border-radius: 30px;
    bottom: 20%;
    left: 20%;
    animation-delay: 6s;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.05), transparent);
}

.shape:nth-child(4) {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    top: 60%;
    right: 25%;
    animation-delay: 9s;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.1), transparent);
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
    25% { transform: translateY(-20px) rotate(90deg); opacity: 0.6; }
    50% { transform: translateY(-10px) rotate(180deg); opacity: 0.4; }
    75% { transform: translateY(-30px) rotate(270deg); opacity: 0.7; }
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(12, 12, 12, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #3b82f6;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
    cursor: pointer;
    user-select: none;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.3));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    user-select: none;
    padding: 8px 12px;
    border-radius: 6px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #9333ea);
    transition: width 0.3s ease;
}

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

.nav-links a:hover {
    color: #3b82f6;
}

.nav-links a.active {
    color: #3b82f6;
}

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

.login-btn {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.6);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(12, 12, 12, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 1rem 2rem;
    gap: 1rem;
}

.mobile-nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: #3b82f6;
}

.mobile-nav-links a:last-child {
    border-bottom: none;
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 100;
    min-height: calc(100vh - 160px); /* Ajustar para footer */
    padding-top: 80px;
    padding-bottom: 120px;
}

/* Page Sections - Simplificado para páginas separadas */
.page-section {
    display: block; /* Siempre visible en páginas separadas */
    animation: fadeIn 0.5s ease-in-out;
}

.page-section.active {
    display: block;
}

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

/* Home Page Styles */
.home-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
}

.hero-card {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.15) 0%, 
        rgba(37, 99, 235, 0.1) 25%,
        rgba(147, 51, 234, 0.1) 75%,
        rgba(59, 130, 246, 0.15) 100%);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 420px;
    width: 90%;
    margin: auto;
    position: relative;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(147, 51, 234, 0.3));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

.hero-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    color: #cbd5e1;
}

.server-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(45deg, #10b981, #22c55e);
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.server-ip {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
    margin: 0.5rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.server-ip:hover {
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.2);
    transform: scale(1.02);
}

.server-description {
    font-size: 0.8rem;
    margin-bottom: 1rem;
    opacity: 0.8;
    line-height: 1.4;
    color: #e2e8f0;
}

.discord-btn {
    background: linear-gradient(135deg, #5865f2, #4338ca);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    border: 1px solid rgba(88, 101, 242, 0.3);
}

.discord-btn:hover {
    background: linear-gradient(135deg, #4338ca, #3730a3);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(88, 101, 242, 0.3);
}

.server-details {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.8rem;
    margin: 1rem 0;
    font-size: 0.75rem;
    opacity: 0.9;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.server-details p {
    margin: 0.2rem 0;
    color: #cbd5e1;
}

/* Content Pages Styles */
.content-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #cbd5e1;
    opacity: 0.8;
}

/* Card Styles for Content */
.content-card {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(37, 99, 235, 0.08) 25%,
        rgba(147, 51, 234, 0.08) 75%,
        rgba(59, 130, 246, 0.1) 100%);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Forums Specific Styles */
.forum-category {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.forum-category:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.05);
}

.forum-title {
    font-size: 1.3rem;
    color: #3b82f6;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.forum-desc {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.forum-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Store Specific Styles */
.store-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(147, 51, 234, 0.2);
    transition: all 0.3s ease;
}

.store-item:hover {
    border-color: rgba(147, 51, 234, 0.4);
    background: rgba(147, 51, 234, 0.05);
    transform: translateY(-3px);
}

.store-item-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.store-item-title {
    font-size: 1.2rem;
    color: #9333ea;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.store-item-price {
    font-size: 1.1rem;
    color: #22c55e;
    font-weight: bold;
    margin-bottom: 1rem;
}

.store-btn {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.store-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(147, 51, 234, 0.3);
}

/* Vote Specific Styles */
.vote-site {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(34, 197, 94, 0.2);
    transition: all 0.3s ease;
}

.vote-site:hover {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.05);
}

.vote-reward {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.vote-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
}

.vote-btn:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
}

/* Footer */
.footer-info {
    position: relative; /* Cambiado de fixed a relative */
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(12, 12, 12, 0.98);
    backdrop-filter: blur(15px);
    padding: 0.6rem;
    text-align: center;
    font-size: 0.75rem;
    z-index: 1002;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    margin-top: auto;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.4rem;
}

.social-icons a {
    color: #60a5fa;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    text-decoration: none;
    display: inline-block;
}

.social-icons a:hover {
    transform: translateY(-3px) scale(1.1);
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.footer-text {
    opacity: 0.7;
    line-height: 1.2;
    color: #94a3b8;
}

.footer-text p {
    margin: 0.1rem 0;
}

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: linear-gradient(45deg, #3b82f6, #9333ea);
    border-radius: 50%;
    animation: particleFloat 8s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0; }
    25% { transform: translateY(-50px) rotate(90deg); opacity: 0.8; }
    50% { transform: translateY(-100px) rotate(180deg); opacity: 1; }
    75% { transform: translateY(-75px) rotate(270deg); opacity: 0.6; }
}

/* Responsive */
@media (max-width: 768px) {
    html, body {
        margin: 0;
        padding: 0;
        height: auto;
        overflow: auto;
    }   
    
    .nav-links {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    .login-btn {
        display: none !important;
    }
    
    .hero-card {
        padding: 1.2rem;
        margin: 0.5rem;
        max-width: 340px;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
    }

    .footer-info {
        padding: 0.6rem;
        font-size: 0.65rem;
    }

    .social-icons a {
        font-size: 1rem;
        padding: 6px;
    }

    .social-icons {
        gap: 0.8rem;
        margin-bottom: 0.3rem;
    }

    .server-ip {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
    }

    nav {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .content-page {
        padding: 1rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding-bottom: 20px; /* Reducido ya que el footer no es fijo */
    }
}

@media (min-width: 769px) {
    .nav-links {
        display: flex !important;
    }

    .mobile-menu-btn {
        display: none !important;
    }

    .login-btn {
        display: block !important;
    }

    .mobile-nav {
        display: none !important;
    }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #9333ea);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}