:root {
    --primary-color: #007bff; /* Azul Altertec */
    --accent-color: #ff3e3e;  /* Rojo Alerta */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-color: #ffffff;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a0a;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Fondo Dinámico */
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/aerogeneradores.jpg') no-repeat center center;
    background-size: cover;
    z-index: -2;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    z-index: -1;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Estilo Industrial */
.main-header {
    text-align: center;
    padding: 3rem 0;
}

.brand h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.brand h1 span {
    color: var(--primary-color);
}

.subtitle {
    font-size: 0.9rem;
    letter-spacing: 4px;
    opacity: 0.7;
    margin-top: 5px;
}

/* Dashboard Grid Adaptable */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    flex-grow: 1;
}

/* Tarjeta Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-icon {
    font-size: 2.5rem;
    margin-right: 1.5rem;
    min-width: 60px;
    text-align: center;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.card-content p {
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1.4;
}

/* Variación de Alerta */
.status-alert {
    border-left: 4px solid var(--accent-color);
}

.status-alert:hover {
    border-color: var(--accent-color);
    background: rgba(255, 62, 62, 0.1);
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 4rem 0 2rem;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Adaptación Móvil */
@media (max-width: 768px) {
    .wrapper { padding: 1rem; }
    .brand h1 { font-size: 1.8rem; }
    .dashboard-grid {
        grid-template-columns: 1fr; /* Una columna en móvil */
    }
    .glass-card { padding: 1.5rem; }
}
.admin-card {
    border: 1px solid rgba(255, 80, 80, 0.6);
    background: linear-gradient(135deg, rgba(255, 80, 80, 0.25), rgba(120, 0, 0, 0.25));
}

.admin-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: linear-gradient(135deg, rgba(255, 80, 80, 0.4), rgba(120, 0, 0, 0.4));
}