/* --- ESTILOS WIKI --- */
.wiki-page {
    padding-top: 140px;
    padding-bottom: 80px;
}

.wiki-grid {
    display: flex;
    flex-direction: column; /* Lista vertical de personajes */
    gap: 40px;
}

/* Esto es lo que crea la "caja" de la wiki que viste en la captura anterior */

.wiki-card {
    display: grid;
    grid-template-columns: 300px 1fr; /* Imagen izquierda (300px), texto resto */
    background: #141e19;
    border: 2px solid #2a3a30;
    border-radius: 12px;
    margin-bottom: 40px;
    overflow: hidden;
}

.wiki-img {
    background: #050a07; /* Fondo negro de la imagen */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.wiki-img .pixel-img {
    height: 80%; /* El mono se verá grande y centrado */
    image-rendering: pixelated;
}

.wiki-content {
    padding: 30px;
}

.wiki-tag {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    padding: 5px 10px;
    margin-bottom: 10px;
    display: inline-block;
}

.wiki-tag.player { background: #f1c40f; color: #000; }
.wiki-tag.enemy { background: #e74c3c; color: #fff; }

.wiki-content h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    color: var(--primary-yellow);
    margin-bottom: 15px;
}

.wiki-content p {
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 20px;
}

.stats {
    list-style: none;
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 8px;
}

.stats li {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.stats strong {
    color: var(--primary-yellow);
}

.placeholder-wiki {
    font-size: 5rem;
}

/* Responsivo para móviles */
@media (max-width: 850px) {
    .wiki-card {
        grid-template-columns: 1fr; /* En pantallas pequeñas, imagen arriba y texto abajo */
    }
    .wiki-img {
        border-right: none;
        border-bottom: 2px solid #2a3a30;
        height: 200px;
    }
}

/* --- SECCIÓN DESARROLLADORES --- */
.dev-section {
    margin-top: 100px;
    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.dev-card {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a2a22 0%, #0d1a14 100%);
    border: 1px solid #3e5a4a;
    border-radius: 10px;
    padding: 20px;
    transition: 0.3s;
}

.dev-card:hover {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 20px rgba(241, 196, 15, 0.15);
}

.dev-avatar {
    width: 100px;
    height: 100px;
    background: #050a07;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid #2a3a30;
}

.dev-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-dev {
    font-size: 3rem;
}

.dev-info h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 5px;
}

.dev-role {
    display: block;
    color: var(--primary-yellow);
    font-family: 'Press Start 2P', cursive;
    font-size: 0.55rem;
    margin-bottom: 10px;
}

.dev-info p {
    font-size: 0.85rem;
    color: #bbb;
    margin-bottom: 15px;
}

.dev-socials a {
    color: #fff;
    font-size: 0.75rem;
    margin-right: 15px;
    text-decoration: underline;
    opacity: 0.7;
    transition: 0.3s;
}

.dev-socials a:hover {
    opacity: 1;
    color: var(--primary-yellow);
}

/* Ajuste móvil */
@media (max-width: 500px) {
    .dev-card {
        flex-direction: column;
        text-align: center;
    }
    .dev-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
}