/* ========================================================= */
/* DISEÑO BASE Y TOKENS DE ESTILO (Variables CSS) */
/* ========================================================= */
:root {
    --bg-dark: #0d1117;
    --card-bg: #161b22;
    --border-color: #30363d;
    --text-light: #e6edf3;
    --accent-main: #ffc300; /* Amarillo Neón - Principal */
    --accent-live: #58a6ff; /* Azul Neón - Live Data */
    --accent-gallery: #7ee787; /* Verde Neón - Galería */
    --accent-gear: #c993ff; /* Morado Neón - Herramientas */
    --accent-about: #ff7b72; /* Rojo Neón - Sobre Mí */
    --accent-wiki: var(--accent-live); /* Usamos el azul para el Wiki */
}
body {	
    overflow-X: hidden;
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-dark); 
    color: var(--text-light); 
    margin: 0;
    padding: 0; 
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px; 
}
h2 {
    color: var(--accent-wiki); 
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: 1px dashed var(--border-color);
    font-size: 1.8em;
    display: flex;
    align-items: center;
    gap: 10px;
}
h3 {
     font-size: 1.4em;
     color: var(--accent-main);
     margin-top: 25px;
     margin-bottom: 15px;
}
hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, var(--bg-dark), var(--accent-live), var(--bg-dark));
    margin: 40px 0;
}

/* HERO SECTION */
.hero-section {
    text-align: center;
    //padding: 50px 20px 60px;
    margin-bottom: 20px;
}
.hero-section h1 {
    color: var(--accent-main); 
    font-size: 2.5em;
    margin: 10px 0;
    text-shadow: 0 0 15px rgba(255, 195, 0, 0.5); 
}
.hero-logo {
    max-height: 60px; /* AJUSTE DEL TAMAÑO DEL LOGO */
    width: auto; 
    margin-bottom: 15px; 
    filter: drop-shadow(0 0 5px rgba(255, 195, 0, 0.4));
}
.hero-description {
    color: #8b949e; 
    font-size: 1.15em;
    max-width: 800px;
    margin: 15px auto 0;
}

/* NAVEGACIÓN */
#nav-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    border-bottom: 2px solid var(--card-bg); 
    margin-bottom: 30px;
}
.nav-link-btn {
    background: transparent;
    border: none;
    padding: 15px 25px; 
    cursor: pointer;
    color: var(--text-light);
    font-size: 1.2em;
    transition: color 0.3s ease;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px; 
    border-bottom: 3px solid transparent; 
    font-weight: normal;
}
.nav-link-btn:hover {
    background-color: #30363d !important;
    color: #ffc300 !important
}
.nav-link-btn.active-link-style {
    border-bottom: 3px solid var(--accent-main);
    color: var(--accent-main);
    font-weight: bold;
}

/* ========================================================= */
/* ESTILOS ESPECÍFICOS PARA LA WIKI */
/* ========================================================= */
.wiki-grid {
    display: grid;
    grid-template-columns: 280px 1fr; /* Índice y Contenido */
    gap: 30px;
}
@media (max-width: 900px) {
    .wiki-grid {
        grid-template-columns: 1fr; /* Columna única en móviles */
    }
}

.wiki-index {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 0;
    height: fit-content; 
}
.wiki-index h3 {
    color: var(--accent-wiki);
    padding: 0 20px 10px;
    margin-top: 0;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
}
.wiki-index ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.wiki-index li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-light);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}
.wiki-index li a:hover, .wiki-index li a.active-article {
    background-color: #21262d; 
    color: var(--accent-main);
    border-left: 3px solid var(--accent-main);
    font-weight: bold;
}
.wiki-content {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
}
.wiki-content h1 {
    color: var(--accent-wiki);
    font-size: 2.2em;
    margin-top: 0;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.wiki-content p {
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: justify;
}
.wiki-content b { color: var(--accent-main); font-weight: bold; }
.wiki-content i { color: #ccc; font-style: italic; }
.wiki-content ul {
    padding-left: 20px;
    margin: 15px 0;
}
.wiki-content li {
    margin-bottom: 8px;
    line-height: 1.5;
    list-style: disc;
}

.maxWidth{
max-width: 70%;
}

/* Footer */
footer {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid var(--card-bg);
    font-size: 0.9em;
    color: #6a737d; 
    text-align: center; 
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

/* Botón Back to Top (Volver Arriba) */
#back-to-top-btn {
display: none; /* Oculto por defecto */
position: fixed;
bottom: 20px;
right: 30px;
z-index: 999;
border: none;
outline: none;
background-color: #ffab4c; /* Naranja de alerta */
color: #0d1117;
cursor: pointer;
padding: 15px;
border-radius: 50%; /* Botón redondo */
font-size: 18px;
opacity: 0.8;
transition: opacity 0.3s, background-color 0.3s;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

#back-to-top-btn:hover {
background-color: #ff7b72; /* Rojo al pasar el ratón */
opacity: 1;
}



