:root {
    --green-matrix: #0f0;
    --green-dim: #003300;
    --term-bg: #000000;
    --border-solid: solid 1px var(--green-matrix);
    --red-alert: #ff003c;
    --yellow-warn: #ffea00;
}

body {
    background-color: var(--term-bg) !important;
    color: var(--green-matrix);
    font-family: 'Fira Code', monospace;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

#matrix-canvas {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; opacity: 0.6;
}

main {
    position: relative; z-index: 10; max-width: 800px; margin: 0 auto; padding: 15px; padding-top: 40px;
    background: rgba(0, 0, 0, 0.9); min-height: 100vh; border-left: var(--border-solid); border-right: var(--border-solid);
    box-shadow: 0 0 50px rgba(0,255,0,0.1);
}

.marquee-container {
    width: 100%; overflow: hidden; background: var(--green-dim); color: var(--green-matrix);
    border-top: var(--border-solid); border-bottom: var(--border-solid); padding: 5px 0; font-size: 0.8rem; margin-bottom: 20px;
}
.marquee-content { display: inline-block; white-space: nowrap; animation: marquee 15s linear infinite; }
@keyframes marquee { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

.top-controls { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 20px; }
.lang-btn { background: black; color: var(--green-matrix); border: var(--border-solid); padding: 2px 8px; font-family: 'Fira Code', monospace; cursor: pointer; font-size: 0.8rem; }
.lang-btn.active { background: var(--green-matrix); color: black; }

header { margin-bottom: 30px; border-bottom: dashed 1px var(--green-dim); padding-bottom: 20px; }
.terminal-title { font-size: 1.8rem; font-weight: bold; margin: 10px 0; text-shadow: 0 0 8px rgba(0, 255, 0, 0.6); border-right: .15em solid var(--green-matrix); white-space: nowrap; overflow: hidden; animation: blink-cursor .75s step-end infinite; }
@keyframes blink-cursor { from, to { border-color: transparent } 50% { border-color: var(--green-matrix); } }
#meta-fecha { font-size: 0.7rem; color: rgba(0,255,0,0.6); }
#subtitulo { font-size: 0.8rem; margin-top: 10px; color: #aaa; }

nav { display: flex; gap: 10px; overflow-x: auto; margin-bottom: 30px; padding-bottom: 10px; }
.nav-button { padding: 8px 15px; background: black; border: var(--border-solid); color: var(--green-matrix); text-transform: uppercase; font-size: 0.75rem; font-family: 'Fira Code', monospace; cursor: pointer; white-space: nowrap; transition: all 0.2s ease; }
.nav-button:hover { background-color: var(--green-dim); }
.nav-button.active { background-color: var(--green-matrix); color: #000; font-weight: bold; }

#archive-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.archive-item { display: flex; flex-direction: column; text-decoration: none; color: var(--green-matrix); border: var(--border-solid); background-color: rgba(0, 15, 0, 0.9); position: relative; transition: all 0.2s ease; }
.archive-item:hover { border: solid 1px #fff; transform: translateY(-2px); box-shadow: 0 0 15px rgba(0, 255, 0, 0.3); background-color: rgba(0, 30, 0, 0.95); }
.item-restricted { position: absolute; top: -10px; right: 15px; background-color: black; color: var(--red-alert); border: solid 1px var(--red-alert); font-size: 0.7rem; padding: 2px 8px; font-weight: bold; z-index: 5;}
        
.item-content { padding: 20px 15px; display: flex; flex-direction: column; height: 100%;}
.item-title { font-weight: bold; margin-bottom: 8px; font-size: 1.1rem; color: #fff;}
.item-meta { font-size: 0.7rem; color: rgba(0, 255, 0, 0.7); margin-bottom: 15px; border-bottom: solid 1px var(--green-dim); padding-bottom: 5px;}
.item-desc { font-size: 0.8rem; line-height: 1.5; color: #ccc; border-left: solid 2px var(--green-matrix); padding-left: 10px; flex-grow: 1; }

footer { margin-top: 40px; text-align: center; border-top: var(--border-solid); padding-top: 20px; padding-bottom: 20px; }
footer a { color: var(--green-matrix); text-decoration: none; font-size: 0.8rem; transition: color 0.2s; }
footer a:hover { color: #fff; text-shadow: 0 0 5px var(--green-matrix); }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: black; border-left: 1px solid var(--green-dim); }
::-webkit-scrollbar-thumb { background: var(--green-matrix); }