/* --- 1. CONFIGURACIÓN GLOBAL --- */
body {
    margin: 0;
    padding: 0;
    height: 100vh;
    background: radial-gradient(circle at center, #1a1a2e 0%, #000000 100%);
    overflow: hidden;
    color: #00ffcc;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Capa de efecto retro (Scanlines) */
body::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    z-index: 10;
}

/* --- 2. AMBIENTE (Burbujas) --- */
.bubble {
    position: absolute;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), transparent);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(110vh) scale(1); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: translateY(-20vh) scale(1.2); opacity: 0; }
}

/* --- 3. COMPONENTES (La Ventana) --- */
.window {
    width: 90%;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.6);
    margin: 100px auto;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 204, 0.3);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 5;
}

.window-header {
    background: linear-gradient(to bottom, rgba(50, 50, 50, 0.9), rgba(20, 20, 20, 0.9));
    padding: 10px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    display: flex;
    align-items: center;
}

.dot {
    height: 12px; width: 12px;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 5px rgba(255,255,255,0.2);
}
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.title {
    font-size: 12px;
    color: #888;
    margin-left: 10px;
    letter-spacing: 1px;
}

.window-body {
    padding: 20px;
    line-height: 1.6;
}

/* --- 4. EFECTOS ESPECIALES --- */
.glitch {
    font-size: 1.5rem;
    color: #00ffcc;
    text-transform: uppercase;
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0% { transform: skew(0deg); }
    20% { transform: skew(2deg); color: #ff00ff; }
    21% { transform: skew(-5deg); }
    23% { transform: skew(0deg); color: #00ffcc; }
    100% { transform: skew(0deg); }
}