:root {
    --bg-master: #1a1a1a;
    --console-bg: #000000;
    --text-color: #d9d9d9;
    --accent-red: #ff5f56;
    --accent-yellow: #ffbd2e;
    --accent-green: #27c93f;
    --border: #303030;
}

html, body {
    overflow: hidden;
    height: 100%;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg-master);
    color: var(--text-color);
    font-family: "Ubuntu Mono", monospace;
    display: flex;
    flex-direction: column;
}

/* HEADER */
header {
    background: var(--console-bg);
    border-bottom: 2px solid var(--accent-red);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    position: fixed;
    top: 0; width: 100%;
    z-index: 100;
}

/* GRID — T1 y T2 misma altura, T3 abarca ambas */
.container {
    margin-top: 60px;
    margin-bottom: 46px;
    padding: 10px;
    flex: 1;

    display: grid;
    grid-template-columns: 0.38fr 0.62fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
}

/* CONSOLAS */
.console {
    background: var(--console-bg);
    border: 1px solid var(--border);
    padding: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-size: 15px;
    box-shadow: 0 0 14px #00000066;
}

#output {
    overflow-y: auto;
    height: 100%;
}

/* POSICIONES */
#neofetch { grid-column: 1; grid-row: 1; }
#commands { grid-column: 1; grid-row: 2; }
#output { grid-column: 2; grid-row: 1 / span 2; }

/* BOTONES */
.console-header {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.console-btn {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}
.console-btn.red { background: var(--accent-red); }
.console-btn.yellow { background: var(--accent-yellow); }
.console-btn.green { background: var(--accent-green); }

/* INPUT */
#cmdInput {
    background: transparent;
    border: none;
    border-top: 1px solid var(--accent-yellow);
    padding: 6px;
    font-size: 16px;
    outline: none;
    width: 100%;
    margin-top: auto;
}

/* CRT EFFECT (T3) */
.crt {
    position: relative;
}

.crt:before {
    content:"";
    position:absolute;
    top:0; left:0;
    width:100%; height:100%;
    pointer-events:none;
    background: repeating-linear-gradient(
        rgba(255,255,255,0.05),
        rgba(255,255,255,0.01) 2px,
        rgba(0,0,0,0.05) 3px
    );
    mix-blend-mode: overlay;
    z-index: 2;
}

.crt:after {
    content:"";
    position:absolute;
    inset:0;
    box-shadow: inset 0 0 25px rgba(0,255,0,0.15);
    pointer-events:none;
    z-index: 2;
}
