* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Navegación */
nav {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease, border-color 0.3s ease;
}

body.light-theme nav {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-left: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #fb923c, #ea580c);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: #fb923c;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Contenedor principal */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

/* Sección hero */
.hero-section {
    text-align: center;
    padding: 3rem 0 2rem;
    margin-bottom: 2rem;
}

.server-logo {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 20px 50px rgba(251, 146, 60, 0.4));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Índice de contenido */
.table-of-contents {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(251, 146, 60, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    transition: background 0.3s ease;
}

body.light-theme .table-of-contents {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.toc-title {
    font-size: 1.3rem;
    font-weight: bold;
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-list {
    list-style: none;
}

.toc-list li {
    margin-bottom: 0.75rem;
}

.toc-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
}

.toc-list a:hover {
    color: #fb923c;
    background: rgba(251, 146, 60, 0.1);
    padding-left: 1rem;
}

/* Secciones de guía */
.guide-section {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(251, 146, 60, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    scroll-margin-top: 100px;
    transition: background 0.3s ease;
}

body.light-theme .guide-section {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-number {
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

.section-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.section-content p {
    margin-bottom: 1rem;
}

.step-list {
    list-style: none;
    counter-reset: step-counter;
}

.step-item {
    counter-increment: step-counter;
    margin-bottom: 1.5rem;
    padding-left: 3rem;
    position: relative;
}

.step-item::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    color: white;
}

.code-block {
    background: rgba(251, 146, 60, 0.05);
    border: 1px solid rgba(251, 146, 60, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    color: #fb923c;
    overflow-x: auto;
    transition: background 0.3s ease;
}

.alert-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    transition: background 0.3s ease;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.alert-warning {
    background: rgba(251, 146, 60, 0.1);
    border: 1px solid rgba(251, 146, 60, 0.2);
    color: #fb923c;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.requirement-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.requirement-item {
    background: rgba(251, 146, 60, 0.05);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(251, 146, 60, 0.1);
    transition: background 0.3s ease;
}

.requirement-label {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.requirement-value {
    color: #fb923c;
    font-weight: 600;
    font-size: 1.1rem;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 1rem;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(251, 146, 60, 0.4);
}

/* Footer */
footer {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    margin-top: auto;
    transition: background 0.3s ease, border-color 0.3s ease;
}

body.light-theme footer {
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
}

.footer-center {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    flex: 1;
}

.footer-text {
    color: #22c55e;
    font-size: 0.95rem;
}

.footer-contact {
    color: var(--text-primary);
    font-size: 0.9rem;
    text-decoration: none;
    position: relative;
    width: fit-content;
    transition: all 0.3s;
}

.footer-contact::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #fb923c, #ea580c);
    transition: width 0.3s;
}

.footer-contact:hover {
    color: #fb923c;
}

.footer-contact:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(251, 146, 60, 0.1);
    border: 1px solid rgba(251, 146, 60, 0.3);
    border-radius: 12px;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    transform: translateY(-3px);
    background: rgba(251, 146, 60, 0.2);
    border-color: rgba(251, 146, 60, 0.5);
}

.social-icon {
    width: 28px;
    height: 28px;
}

/* Tabs y formularios */
.tab-button {
    padding: 0.75rem 2rem;
    background: rgba(251, 146, 60, 0.05);
    border: 1px solid rgba(251, 146, 60, 0.2);
    border-radius: 10px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-button:hover {
    background: rgba(251, 146, 60, 0.1);
    border-color: rgba(251, 146, 60, 0.4);
}

.tab-button.active {
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    border-color: transparent;
    color: white;
}

.auth-tab {
    display: none;
}

.auth-tab.active {
    display: block;
}

.auth-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(251, 146, 60, 0.05);
    border: 1px solid rgba(251, 146, 60, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #fb923c;
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.1);
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

/* Responsive */
@media (max-width: 768px) {
    .requirement-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }

    .guide-section {
        padding: 1.5rem;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .logo {
        position: static;
    }

    .nav-content {
        width: 100%;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-left {
        flex-direction: column;
        align-items: center;
    }

    .footer-contact::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .auth-button {
        width: 100%;
        text-align: center;
    }

    .card {
        padding: 1.5rem;
    }
}