/* Reset y tipografía base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #0f0f0f;
  color: #f0f0f0;
  line-height: 1.6;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 40px;
}

header h1 {
  font-size: 2rem;
  color: #00ff5e;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

nav a {
  text-decoration: none;
  color: #ccc;
  padding: 6px 12px;
  border-radius: 6px;
  transition: 0.3s;
}

nav a:hover, nav a.active {
  background-color: #00ff5e;
  color: #000;
}

/* Línea de tiempo */
.timeline-container {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.timeline-box {
  display: flex;
  gap: 40px;
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 12px;
  overflow-x: auto;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.timeline-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 8px;
}

.timeline-year {
  font-size: 0.9rem;
  color: #aaa;
}

/* Clubes detalles */
.club-detail {
  display: flex;
  flex-direction: column;
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 0 8px rgba(0, 255, 94, 0.3);
}

.club-detail.horizontal {
  flex-direction: row;
  align-items: center;
  gap: 30px;
}

.club-left {
  flex: 1;
  display: flex;
  justify-content: center;
}

.club-left img.club-escudo {
  width: 120px;
  height: auto;
  object-fit: contain;
}

.club-right {
  flex: 3;
}

.club-right h2 {
  color: #00ff5e;
  margin-bottom: 10px;
}

.logros {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 10px 0;
}

.logros li {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #2a2a2a;
  padding: 6px 12px;
  border-radius: 8px;
}

.logros img {
  width: 30px;
  height: 24px;
  object-fit: contain;
}

.btn {
  display: inline-block;
  background-color: #00ff5e;
  color: #000;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 10px;
  transition: 0.3s;
}

.btn:hover {
  background-color: #00cc4a;
}

footer {
  text-align: center;
  margin-top: 60px;
  color: #555;
  font-size: 0.9rem;
}
.season-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.season-box {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 0 6px rgba(0, 255, 94, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}

.season-box h4 {
  color: #00ff5e;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.final-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 4px;
}

.score {
  font-size: 1.4rem;
  color: #f0f0f0;
  font-weight: bold;
}

.final-info p {
  font-size: 0.85rem;
  margin: 2px 0;
  color: #ccc;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

table th, table td {
  text-align: left;
  padding: 6px;
  font-size: 0.85rem;
}

table th {
  background-color: #00ff5e;
  color: #000;
}

table tr:nth-child(even) {
  background-color: #2a2a2a;
}

.pos-1 td {
  background-color: #00ff5e;
  color: #000;
}

.pos-2 td {
  background-color: #aaffc6;
  color: #000;
}

.pos-3 td {
  background-color: #ffff99;
  color: #000;
}
