body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 20px;
}

h1 {
    text-align: center;
    color: #333;
}

h2 {
    margin-top: 30px;
    color: #444;
}

form {
    margin: 10px 0;
}

input, textarea, button {
    padding: 6px;
    margin: 4px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

/* Tabla estilo ranking */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

table th, table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

table th {
    background-color: #007bff;
    color: white;
}

tr:nth-child(1) {
    background-color: #ffeeba; /* Destaca al líder */
    font-weight: bold;
}

/* Barra de categorías */
.categories-bar {
    margin: 20px 0;
}

.categories-bar a {
    display: inline-block;
    padding: 8px 15px;
    margin-right: 10px;
    background-color: #e9ecef;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.categories-bar a.active {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

/* Badges de posición */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: bold;
    color: white;
}
.gold { background-color: #FFD700; }
.silver { background-color: #C0C0C0; }
.bronze { background-color: #CD7F32; }
.normal { background-color: #007bff; }

/* Flechas de movimiento */
.up { color: green; font-weight: bold; }
.down { color: red; font-weight: bold; }
.same { color: gray; }
