/* ── Reset Global ── */
* {
    box-sizing: border-box;
}

/* ── Bloqueo de Fuerza Bruta contra el CSS Nativo de RPGUI ── */
html,
body {
    background-color: #0d0e15 !important;
    margin: 0 !important;
    padding: 0 !important;
    /* Devolvemos el control del scroll al navegador principal */
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    min-height: 100vh !important;
}

/* Blindamos la clase de RPGUI para que deje de actuar como capa absoluta/fija */
body .rpgui-content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
    display: block !important;
}

/* Evitamos que los contenedores colapsen o se auto-ajusten incorrectamente */
body .rpgui-container {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: min-content !important;
    margin-bottom: 25px !important;
    background: #141622 !important;
    box-sizing: border-box !important;
}

#page-wrapper .rpgui-container {
    width: calc(100% - 0px) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Contenedor de la página */
#page-wrapper {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 30px 80px 30px;
    position: relative;
    overflow-x: hidden;
}

/* ── Paleta Pixel Neon ── */
:root {
    --neon-cyan: #00f0ff;
    --neon-magenta: #ff007f;
    --neon-gold: #ffd700;
    --pixel-shadow-cyan: 3px 3px 0px #00a8b5;
    --pixel-shadow-magenta: 3px 3px 0px #b50059;

}

.neon-text-cyan {
    color: var(--neon-cyan) !important;
    text-shadow: var(--pixel-shadow-cyan);
}

.neon-text-magenta {
    color: var(--neon-magenta) !important;
    text-shadow: var(--pixel-shadow-magenta);
}

.neon-text-gold {
    color: var(--neon-gold) !important;
    text-shadow: 3px 3px 0px #b59500;
}

/* Brillo Neón en bordes dorados antiguos */
.rpgui-container.framed-golden {
    border-image-source: url('../assets/images/border-image-golden.png') !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2), inset 0 0 15px rgba(255, 215, 0, 0.1) !important;
}

/* ── Menú de Navegación Neón ── */
#nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 35px;
}

#nav button {
    font-size: 11px !important;
    padding: 10px 16px !important;
    cursor: pointer;
}

#nav button.active {
    box-shadow: 0 0 12px var(--neon-cyan) !important;
    filter: brightness(1.2);
}

.lang-btn {
    min-width: 40px !important;
    padding: 4px 8px !important;
    font-size: 10px !important;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn.active {
    box-shadow: 0 0 10px var(--neon-gold) !important;
    border-color: var(--neon-gold) !important;
}

.lang-btn p {
    font-size: 10px !important;
    margin: 0 !important;
}

/* ── Control de Visibilidad de Pestañas ── */
.section {
    display: none;
    width: 100%;
}

.section.active {
    display: block !important;
}

/* ── Estilos del Contenido ── */
h1 {
    font-size: 28px;
    margin-bottom: 12px;
    text-align: center;
}

h2 {
    font-size: 18px;
    margin-bottom: 18px;
}

h3 {
    font-size: 13px;
    color: var(--neon-cyan);
    margin-bottom: 12px;
}

p,
li {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 14px;
    line-height: 1.6;
    color: #e0e2ed;
}

ul {
    padding-left: 20px;
    margin-top: 8px;
}

ul li {
    margin-bottom: 8px;
    list-style: '▸ ';
    color: #e0e2ed;
}

ul li::marker {
    color: var(--neon-magenta);
}

a {
    color: var(--neon-cyan);
    text-decoration: none;
}

a:hover {
    text-shadow: 0 0 4px var(--neon-cyan);
    text-decoration: underline;
}

.blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

/* Tags del Inventario */
.inv-category {
    margin-bottom: 22px;
}

.inv-label {
    font-size: 10px;
    color: var(--neon-magenta);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.inv-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inv-tag {
    font-size: 10px;
    padding: 6px 12px;
    border: 2px solid var(--neon-cyan);
    background: #0d0e15;
    color: var(--neon-cyan);
    box-shadow: 2px 2px 0px rgba(0, 240, 255, 0.3);
}

.inv-tag.primary {
    border-color: var(--neon-gold);
    color: var(--neon-gold);
    box-shadow: 2px 2px 0px rgba(255, 215, 0, 0.3);
}

/* Estructura de Quests */
.quest {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px dashed rgba(255, 0, 127, 0.2);
}

.quest:last-child {
    border-bottom: none;
}

.quest-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.quest-title {
    font-size: 14px;
    color: var(--neon-gold);
}

.quest-company {
    font-size: 11px;
    color: var(--neon-cyan);
}

.quest-date {
    font-size: 10px;
    color: #a0a4b8;
}

.quest-badge {
    font-size: 9px;
    border: 2px solid #55ff55;
    color: #55ff55;
    padding: 2px 8px;
    background: rgba(0, 50, 0, 0.4);
    box-shadow: 2px 2px 0px rgba(85, 255, 85, 0.3);
}

.quest-badge.completed {
    border-color: #a0a4b8;
    color: #a0a4b8;
    background: rgba(40, 44, 52, 0.4);
    box-shadow: 2px 2px 0px rgba(160, 164, 184, 0.2);
}

/* Formulario */
.contact-field {
    margin-bottom: 18px;
}

.contact-field label {
    font-size: 10px;
    color: var(--neon-cyan);
    display: block;
    margin-bottom: 6px;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    font-family: monospace;
    font-size: 14px;
    background: #0d0e15 !important;
    color: #fff !important;
    border: 2px solid #3c3f58 !important;
}

/* Avatar */
.pixel-avatar {
    image-rendering: pixelated;
    width: 120px;
    height: auto;
    border: 3px solid var(--pixel-shadow-cyan);
    background: #000;
    padding: 4px;
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.4);
}

/* Imágenes responsive */
img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 600px) {
    h1 {
        font-size: 22px;
    }

    .quest-header {
        flex-direction: column;
    }

    header > div:first-child {
        margin-bottom: 20px;
    }

    .lang-btn {
        min-width: 36px !important;
        padding: 3px 6px !important;
        font-size: 9px !important;
    }

    .lang-btn p {
        font-size: 9px !important;
    }

    #about .rpgui-container > div:first-of-type {
        flex-direction: column;
    }

    #about .rpgui-container > div:first-of-type img {
        max-width: 100%;
        height: auto;
    }

    #about .rpgui-container > div:first-of-type > div:last-child {
        min-width: 100% !important;
    }
}
