html, body {
    height: 100%;
    margin: 0;
}

header a {
    color: white;
    text-decoration: none;
    display: inline-block;
    width: 100%;
}

header:hover {
    cursor: pointer;
    background: #034b5f;
}

body {
    display: flex;
    flex-direction: column;
    background: url('../images/fondopantalla.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #ffffff;
}

/* capa oscura encima del fondo */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: -1;
}

header {
    text-align:center;
    padding:20px;
    font-size:28px;
    font-weight:bold;
    background: #023848;
    backdrop-filter: blur(5px);
}

/* ?? CLAVE: empuja el footer abajo */
.container {
    display:grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
    padding:20px;
    flex: 1;
}

.card {
    background: rgba(15,23,42,0.85);
    border-radius:16px;
    padding:20px;
    box-shadow:0 10px 25px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    transition:0.3s;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
}

.button {
    display:inline-block;
    margin-top:10px;
    padding:10px 15px;
    background: linear-gradient(135deg,#3b82f6,#06b6d4);
    color:white;
    text-decoration:none;
    border-radius:8px;
}

/* barras */
.bar {
    background:#111;
    border-radius:8px;
    margin-bottom:10px;
    overflow:hidden;
}

.bar-fill {
    height:10px;
    width:0%;
    transition: width 0.5s ease;
}

.cpu { background:#3b82f6; }
.ram { background:#22c55e; }

/* estado */
#status {
    margin-top:10px;
    font-weight:bold;
    text-align:center;
}

.footer {
    text-align: center;
    padding: 15px;
    background: transparent;
    color: #ccc;
}