@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

:root {
    --primary: #FDCB02;
    --bg: #050505;
    --danger: #ff4d4d;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--primary);
    font-family: 'Space Mono', monospace;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

/* Efectos de Pantalla Vieja e Industrial */
.overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 20%, black 150%);
    pointer-events: none; z-index: 100;
}

.scanline {
    width: 100%; height: 100px; z-index: 110;
    background: linear-gradient(0deg, rgba(253, 203, 2, 0) 0%, rgba(253, 203, 2, 0.05) 50%, rgba(253, 203, 2, 0) 100%);
    opacity: 0.1; position: absolute; bottom: 100%;
    animation: scan 4s linear infinite;
}

.container {
    width: 95%; max-width: 1100px;
    border: 4px solid var(--primary);
    padding: 40px; position: relative;
    background: rgba(0,0,0,0.8);
    box-shadow: 0 0 50px rgba(0,0,0,1);
}

/* Header Estilo Dashboard */
header {
    display: flex; justify-content: space-between;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 20px; margin-bottom: 40px;
}

.brand { display: flex; align-items: center; gap: 15px; font-weight: 700; font-size: 14px; }
.warning-icon { font-size: 24px; animation: flash 0.5s infinite; }

/* Tipografía Principal */
h1 {
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 900; line-height: 0.85;
    letter-spacing: -4px; margin-bottom: 10px;
    color: var(--primary); font-style: italic;
}

.sub-text {
    font-size: 14px; letter-spacing: 5px; color: white;
    margin-bottom: 40px; opacity: 0.8;
}

.highlight { color: var(--primary); font-weight: 900; }

/* Terminal */
.terminal-box {
    background: rgba(253, 203, 2, 0.05);
    border: 1px solid rgba(253, 203, 2, 0.2);
    margin-bottom: 40px;
}

.terminal-header {
    background: rgba(253, 203, 2, 0.1);
    padding: 5px 15px; font-size: 10px; font-weight: 700;
}

.terminal {
    height: 120px; padding: 15px;
    font-size: 11px; color: rgba(253, 203, 2, 0.8);
    overflow: hidden; line-height: 1.5;
}

/* Barra de Carga Mecánica */
.work-status { display: flex; flex-direction: column; gap: 10px; }
.loader-group { display: flex; justify-content: space-between; align-items: flex-end; }
.pct { font-size: 32px; font-weight: 900; color: white; }

.loading-bar-container {
    width: 100%; height: 12px; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(253, 203, 2, 0.3);
}

.loading-bar {
    height: 100%; background: var(--primary); width: 0%;
    box-shadow: 0 0 20px var(--primary);
}

/* Footer */
footer {
    margin-top: 50px; display: grid;
    grid-template-columns: repeat(3, 1fr); gap: 20px;
}

.footer-item span { font-size: 9px; opacity: 0.4; margin-bottom: 5px; display: block; }
.footer-item p { font-size: 11px; font-weight: 700; color: white; }

/* Animaciones */
@keyframes scan { from { bottom: 100%; } to { bottom: -100%; } }
@keyframes flash { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

@keyframes flash-text {
    0% { color: var(--primary); }
    50% { color: white; }
    100% { color: var(--primary); }
}

.glitch { animation: flash-text 2s infinite step-end; }