/* Reset básico */
/* RESET Y ESTILOS GLOBALES - Colocar al inicio del archivo */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    overflow-x: hidden; /* Evitar scroll horizontal */
}

/* HEADER FIJADO CORRECTAMENTE */
.dashboard-header {
    background: #667eea;
    color: white;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed; /* Cambié de sticky a fixed */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.user-info h1 {
    margin: 0;
    font-size: 1.5em;
    font-weight: bold;
}

.user-details {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.logout-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* MENÚ DE NAVEGACIÓN */
.dashboard-menu {
    background: #f8f9fa;
    padding: 10px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    position: fixed; /* Fijar el menú también */
    top: 70px; /* Ajustar según altura del header */
    left: 0;
    right: 0;
    z-index: 999;
}

.menu-btn {
    background: white;
    color: #333;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid #dee2e6;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
}

.menu-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* AJUSTAR EL CONTENIDO PRINCIPAL PARA EL HEADER FIJADO */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 20px 20px 20px; /* Más padding-top para el header fijo */
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Login */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.login-box h1 {
    text-align: center;
    color: #333;
    margin-bottom: 5px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

.login-btn:hover {
    transform: translateY(-2px);
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.demo-accounts {
    margin-top: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 5px;
    font-size: 12px;
    color: #666;
}

.demo-accounts p {
    margin-bottom: 5px;
}

