* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body {
  background: linear-gradient(135deg, #0a0f2c, #111827);
  color: white;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #00e5ff;
}

.nav a{
  margin-left: 20px;
  text-decoration: none;
  color: white;
  transition: 0.3s;
}

.nav a:hover {
  color: #00e5ff;
}

.btn-volver {
  text-decoration: none;
  background: #00d4ff;
  padding: 10px 15px;
  border-radius: 8px;
  color: black;
  font-weight: bold;
}

.ranking-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  flex-wrap: wrap;
}

.card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  width: 250px;
  position: relative;
  transition: transform 0.3s;
}

.card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: scale(1.05);
}

.posicion {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 24px;
  font-weight: bold;
}

.foto {
  width: 100%;
  height: 200px;
  background: #555; 
  border-radius: 10px;
  margin-bottom: 10px;
}

.stats {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14px;
}


.top1 {
  border: 2px solid gold;
}

.top2 {
  border: 2px solid silver;
}

.top3 {
  border: 2px solid #cd7f32;
}

.lista {
  padding: 20px;
}

.lista h2 {
  margin-bottom: 15px;
}

.fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.05);
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.mini-foto {
  width: 40px;
  height: 40px;
  background: #777;
  border-radius: 50%;
}
img{
    max-width: 100%;
}

@media (max-width: 768px) {
  .ranking-container {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
  }

  .fila {
    font-size: 14px;
  }
}