:root {
    --primary: #ff0080;
    --secondary: #00bfff;
    --accent: #ffdd00;
    --dark: #2d3436;
    --bg-color: #fff5fa;
    --font-main: 'Fredoka', sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    background-image: radial-gradient(rgba(255, 0, 128, 0.1) 15%, transparent 16%),
                      radial-gradient(rgba(0, 191, 255, 0.1) 15%, transparent 16%);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    color: var(--dark);
    margin: 0;
    padding: 20px;
    padding-top: 90px; /* Espacio para la barra fija */
}

/* --- BARRA DE NAVEGACIÓN GLOBAL --- */
.global-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-bottom: 2px solid #eee;
    z-index: 1000;
}

.global-nav .brand {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.user-status {
    display: flex;
    align-items: center;
    gap: 15px;
}

.credits-badge {
    background: #fff9c4;
    color: #fbc02d;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    border: 2px solid #fbc02d;
    box-shadow: 0 2px 0 #f9a825;
}

.avatar-mini {
    width: 40px; height: 40px;
    background-color: #ddd;
    background-image: url('https://cdn-icons-png.flaticon.com/512/4140/4140048.png');
    background-size: cover;
    border-radius: 50%;
    border: 2px solid var(--secondary);
    cursor: pointer;
}

/* --- ESTILOS COMUNES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 4px solid white;
}

h1 { text-align: center; color: var(--primary); margin-bottom: 10px; }
p.subtitle { text-align: center; color: #666; margin-bottom: 30px; }

/* Inputs y Controles */
label { display: block; font-weight: bold; margin-bottom: 8px; color: var(--dark); }
input, select {
    width: 100%; padding: 12px; border: 2px solid #dfe6e9;
    border-radius: 10px; font-family: var(--font-main);
    margin-bottom: 15px; box-sizing: border-box;
    transition: 0.3s;
}
input:focus, select:focus { border-color: var(--primary); outline: none; }

/* Botones */
.btn-action {
    width: 100%;
    background: var(--secondary);
    color: white; border: none;
    padding: 15px; font-size: 1.2rem; font-weight: bold;
    border-radius: 12px; cursor: pointer;
    transition: 0.2s; box-shadow: 0 5px 0 #0097a7;
    text-transform: uppercase;
}
.btn-action:hover { transform: translateY(-3px); filter: brightness(1.1); }
.btn-action:active { transform: translateY(2px); box-shadow: none; }

.btn-back {
    display: inline-block; text-decoration: none;
    color: #666; font-weight: bold; margin-bottom: 20px;
}
/* BOTÓN CERRAR SESIÓN */
.btn-logout {
    background: #ff7675;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    transition: 0.2s;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.btn-logout:hover {
    background: #d63031;
    transform: scale(1.1);
}
