/* Variables CSS */
:root {
    --primary: #8147f2;
    --secondary: #FF9C2B;
    --accent: #FF9C2B;
    --success: #10B981;
    --danger: #f2242e;
    --dark: #1F2937;
    --darker: #111827;
    --light: #F3F4F6;
    --white: #FFFFFF;
    --gray: #6B7280;

    --gradient-primary: linear-gradient(135deg, #8147f2 0%, #FF9C2B 100%);
    --gradient-accent: linear-gradient(135deg, #FF9C2B 0%, #f2242e 100%);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--darker);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Particles Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(180deg, var(--darker) 0%, #0F172A 100%);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(9, 9, 14, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(88, 101, 242, 0.1);
    padding: 0.6rem 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.2px;
}

.nav-brand i {
    color: var(--primary);
    font-size: 1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-menu a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    transition: color 0.18s, background 0.18s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid transparent;
}

.nav-menu a i { font-size: 0.78rem; }

.nav-menu a:hover {
    background: rgba(88, 101, 242, 0.09);
    color: rgba(255,255,255,0.88);
    border-color: rgba(88,101,242,0.15);
}

.nav-menu a.active {
    background: rgba(88, 101, 242, 0.12);
    color: #a097ff;
    border-color: rgba(88,101,242,0.25);
}


.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #5865F2;
    color: var(--white);
}

.btn-primary:hover {
    background: #4752c4;
}

.btn-discord {
    background: #5865F2;
    color: var(--white);
}

.btn-discord:hover {
    background: #4752C4;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-success {
    background: #3ba55d;
    color: var(--white);
}

.btn-success:hover {
    background: #2d8049;
}

.btn-danger {
    background: #ed4245;
    color: var(--white);
}

.btn-danger:hover {
    background: #c73033;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    position: relative;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(90deg, #8147f2, #FF9C2B, #8147f2, #FF9C2B);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
    position: relative;
}

.gradient-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,0), rgba(255,255,255,0.8));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes shine {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--light);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.server-ip-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ip-label {
    font-weight: 600;
    color: var(--gray);
}

.ip-address {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(88, 101, 242, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.btn-copy-ip {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-copy-ip:hover {
    background: var(--secondary);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary);
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.stat-content p {
    color: var(--gray);
}

/* Sections */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
}

/* Mission & Vision */
.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.mv-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.mv-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-xl);
}

.mv-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.mv-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Gamemodes */
.gamemodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gamemode-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.gamemode-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(129, 71, 242, 0.3);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.gamemode-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.gamemode-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.gamemode-features {
    list-style: none;
    margin: 1.5rem 0;
}

.gamemode-features li {
    padding: 0.5rem 0;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gamemode-features i {
    color: var(--success);
}

/* CTA Section */
.cta {
    text-align: center;
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(129, 71, 242, 0.15) 0%, rgba(255, 156, 43, 0.15) 100%);
    border-top: 1px solid rgba(129, 71, 242, 0.3);
    border-bottom: 1px solid rgba(129, 71, 242, 0.3);
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #FF9C2B, #f2242e, #8147f2, #FF9C2B);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease-in-out infinite;
    font-weight: 800;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: rgba(17, 24, 39, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 0 2rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary);
}

.server-ip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.server-ip code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    color: var(--primary);
}

.btn-copy {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-copy:hover {
    background: var(--secondary);
}

.stats-mini {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
}

.stat-item i {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
}

.footer-bottom i {
    color: var(--danger);
}

/* User Authentication Menu */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu {
    position: relative;
}

.user-info-dropdown {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.75rem 0.35rem 0.35rem;
    background: rgba(88, 101, 242, 0.07);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 99px;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
}

.user-info-dropdown:hover {
    background: rgba(88, 101, 242, 0.13);
    border-color: rgba(129, 71, 242, 0.4);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid rgba(129, 71, 242, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(88,101,242,.25);
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar i {
    color: white;
    font-size: 0.9rem;
}

.user-name {
    font-weight: 600;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.88);
}

.user-info-dropdown i.fa-chevron-down {
    font-size: 0.75rem;
    color: var(--gray);
    transition: transform 0.3s ease;
}

.user-menu:hover .user-info-dropdown i.fa-chevron-down {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 220px;
    background: #111119;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(88, 101, 242, 0.18);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}

.user-menu:hover .user-dropdown,
.user-menu.open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 14px 14px 12px;
}

.dropdown-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid rgba(129, 71, 242, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(88,101,242,.2);
    flex-shrink: 0;
}

.dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropdown-avatar i {
    color: white;
    font-size: 1.1rem;
}

.dropdown-username {
    font-weight: 700;
    font-size: 0.88rem;
    color: #fff;
}

.dropdown-role {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.dropdown-role.owner {
    background: linear-gradient(135deg, #8147f2 0%, #FF9C2B 100%);
    color: white;
}

.dropdown-role.manager {
    background: linear-gradient(135deg, #FF9C2B 0%, #f2242e 100%);
    color: white;
}

.dropdown-role.admin {
    background: linear-gradient(135deg, #10B981 0%, #8147f2 100%);
    color: white;
}

.dropdown-role.mod {
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    color: white;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.9rem;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.16s, color 0.16s;
    border-radius: 8px;
    margin: 1px 4px;
}

.dropdown-item:hover {
    background: rgba(88, 101, 242, 0.1);
    color: #a097ff;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    color: rgba(139,156,247,0.5);
    font-size: 0.82rem;
}
.dropdown-item:hover i { color: #8b9cf7; }

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 968px) {
    .navbar .container {
        position: relative;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(17, 24, 39, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0.5rem;
        transition: left 0.3s ease;
        z-index: 1001;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        width: 100%;
        padding: 1rem 1.5rem;
        border-radius: 0.75rem;
        font-size: 1.1rem;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background: rgba(129, 71, 242, 0.2);
    }

    .nav-toggle {
        display: flex;
        z-index: 1002;
        padding: 0.5rem;
        border-radius: 0.5rem;
        transition: var(--transition);
    }

    .nav-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
    }

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

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

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

    /* Overlay cuando el menú está abierto */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .btn-discord {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .btn-discord span {
        display: none;
    }
}

@media (max-width: 768px) {
    .user-name {
        display: none;
    }

    .user-info-dropdown i.fa-chevron-down {
        display: none;
    }

    .user-info-dropdown {
        padding: 0.5rem;
    }

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

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

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

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

    .mv-card {
        padding: 2rem;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .server-ip {
        justify-content: center;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 0 3rem;
    }

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

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

    .hero-description {
        font-size: 1rem;
    }

    .server-ip-box {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .nav-brand span {
        font-size: 1.2rem;
    }

    .btn-discord {
        padding: 0.5rem;
    }

    .btn-discord i {
        margin: 0;
    }
}
