/* ==========================================================================
   CONFIGURACIÓN BASE + MODO SIMPLE
   ========================================================================== */
:root {
    --bg-body: url('../assets/index/SATIN01.png');
    --bg-container: url('../assets/index/cip60067.jpg');
    --bg-header: rgba(255,255,255,0.85); 
    --bg-nav: #fff;
    --col-text: #000;
    --cursor: url('../assets/index/spider-0038.gif'), auto;
    --font-heading: 'Comic Sans MS', cursive;
    --font-body: 'Courier New', monospace;
    --border-style: 3px solid #000;
}

[data-mode="simple"] {
    --bg-body: #f5f5dc; --bg-container: #ffffff; --col-text: #333;
    --font-heading: Arial, sans-serif; --font-body: Georgia, serif;
    --border-style: 1px solid #999;
}

body {
    margin: 0; padding: 10px; background-image: var(--bg-body);
    font-family: var(--font-body); color: var(--col-text);
    cursor: var(--cursor);
}

.main-container {
    max-width: 1400px; width: 95%; margin: 20px auto;
    background-image: var(--bg-container); border: var(--border-style);
    padding: 30px; position: relative; background-size: cover;
}
.main-container::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: #fff; opacity: 0.85; border: 1px solid #000;
}

/* APP COMPONENTS */
.dashboard-grid { display: grid; grid-template-columns: 360px 1fr; gap: 20px; }
.paper-note { border: 3px solid #000; background: #fff; padding: 20px; box-shadow: 8px 8px 0 rgba(0,0,0,0.1); }

.btn-retro { background: #e0e0e0; border: 3px solid #000; box-shadow: 4px 4px 0 #000; padding: 6px 12px; font-weight: bold; cursor: pointer; text-transform: uppercase; margin: 2px; font-family: inherit;}
.btn-retro:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }
.btn-retro-danger { background: #ffbaba; border: 3px solid #000; box-shadow: 4px 4px 0 #000; padding: 6px 12px; font-weight: bold; cursor: pointer;}

.input-group { margin-bottom: 12px; text-align: left; }
.input-group label { display: inline-block; background: #000; color: #fff; padding: 2px 6px; font-size: 0.75rem; font-weight: bold; margin-bottom: 4px; }
.input-group input, .input-group select, .input-group textarea { width: 100%; padding: 8px; border: 2px solid #000; font-family: monospace; font-size: 0.9rem; }

.canvas-wrapper { background: #fff; border: 4px solid #000; padding: 20px; display: inline-block; box-shadow: 12px 12px 0 #000; }
.retro-list { list-style: none; padding: 0; margin: 0; border: 3px solid #000; height: 300px; overflow-y: auto; background: #fff; }
.retro-list li { padding: 8px; border-bottom: 1px dashed #000; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }
.retro-list li.selected { background: #000; color: #0f0; }

.column-list { background: #eee; padding: 10px; border: 2px solid #000; margin-bottom: 10px; }
.col-config-item { display: flex; align-items: center; gap: 10px; padding: 5px; background: #fff; border: 1px solid #000; margin-bottom: 4px; cursor: grab; }

.header-box { border: 4px solid #000; padding: 20px; background: var(--bg-header); transform: rotate(-0.5deg); margin-bottom: 30px; }
.title-stack h1 { margin: 0; color: red; font-size: 3rem; letter-spacing: -2px; }

/* CRT Y CAOS */
.crt-overlay { position: fixed; inset: 0; pointer-events: none; z-index: 9999; background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03)); background-size: 100% 3px, 3px 100%; opacity: 0.4; }
#bios-screen { position: fixed; inset: 0; background: #000; color: #0f0; z-index: 10000; padding: 40px; font-family: monospace; }