* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 20px;
}

/* Header */
.header-icon {
  display: block;
  text-align: center;
  margin: 20px auto;
  font-size: 2.5em;
  color: var(--color-theme-primary);
  line-height: 1;
}

header {
  position: relative;
  padding-top: 10px;
}

.volver-link {
  position: absolute;
  top: 15px;
  left: 15px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-theme-primary);
  font-size: 0.85rem;
  padding: 6px 12px;
  border: 1px solid var(--color-theme-primary);
  border-radius: 4px;
  transition: all 0.3s ease;
  background: white;
}

.volver-link:hover {
  background: var(--color-theme-primary);
  color: white;
}

.volver-link::before {
  content: '←';
  margin-right: 8px;
  font-size: 1.2em;
}

.navbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.navbar nav {
  display: flex;
  justify-content: center;
}

.nav-links {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
}

.nav-links li {
  margin: 0 1rem;
}

.nav-links a {
  text-decoration: underline;
  color: darkblue;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #a6c8ff; /* Color claro para hover */
}

/* Estilo activo */
.nav-links a.active {
  font-weight: bold;
  border-bottom: 2px solid #ffffff; /* Subrayado blanco */
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem 0.5rem;
  }

  .logo {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .nav-links li {
    margin: 0.5rem;
  }

  .nav-links a {
    font-size: 1rem;
  }
}

footer {
  text-align: center;
  margin-top: 30px;
  font-size: 0.9em;
  color: #666;
}

h1 {
  font-size: 1.5em;
  color: #222;
}

h2 {
  font-size: 1em;
  color: #555;
}

.clasificacion {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.equipo {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.equipo img {
  height: 60px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.equipo h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #333;
}

.equipo p {
  margin: 5px 0;
  font-size: 0.9em;
}

.racha {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.partido {
  width: 15px;
  height: 15px;
  border-radius: 50%;
}

:root {
  --color-text-primary: #1c2a38;
  --color-text-secondary: #8a8f98;
  --color-text-alert: #d72641;
  --color-text-icon: #dbdade;
  --color-bg-primary: #fff;
  --color-bg-secondary: #f3f5f9;
  --color-bg-alert: #fdeaec;
  --color-theme-primary: #623ce6;
}
button, input, select, textarea {
  font: inherit;
}
img {
  display: block;
}
strong {
  font-weight: 600;
}
body {
  font-family: "Inter", sans-serif;
  line-height: 1.5;
  color: var(--color-text-primary);
  background-color: var(--color-bg-secondary);
}

#matches h3 {
  text-align: center;
  padding: 4px 0;
  color: white;
  background-color: lightslategrey;
  border-radius: 5px;
}

.match {
 background-color: var(--color-bg-primary);
 margin: 15px 0;
 display: flex;
 flex-direction: column;
 border-radius: 10px;
 box-shadow: 0 0 2px 0 rgba(48, 48, 48, 0.1), 0 4px 4px 0 rgba(48, 48, 48, 0.1);
}

.match-content {
 display: flex;
 position: relative;
}

.column {
 padding: 10px 8px;
 display: flex;
 justify-content: center;
 align-items: center;
 width: calc(100% / 3);
}

.team {
 display: flex;
 flex-direction: column;
 align-items: center;
}

.team-logo {
 display: flex;
 align-items: center;
 justify-content: center;
 background-color: var(--color-bg-primary);
 
}

.team-logo img {
 width: 50px;
}

.team-name {
 text-align: center;
 margin-top: 24px;
 font-size: 12px;
 font-weight: 600;
}

.match-details {
 display: flex;
 flex-direction: column;
 align-items: center;
}

.match-date {
 font-size: 14px;
 color: var(--color-text-secondary);
 text-align: center;
}

.match-date strong {
 color: var(--color-text-primary);
}

.match-score {
 margin-top: 12px;
 display: flex;
 align-items: center;
}

.match-score-number {
 font-size: 40px;
 font-weight: 600;
 line-height: 1;
}

.match-score-divider {
 font-size: 28px;
 font-weight: 700;
 line-height: 1;
 color: var(--color-text-icon);
 margin-left: 10px;
 margin-right: 10px;
}

.scorers-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.scorer-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 300px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
}

.scorer-card:hover {
  transform: scale(1.05);
}

.scorer-card img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  position: relative;
  left: 105px;
}

.scorer-card h2 {
  font-size: 1.2em;
  margin-bottom: 5px;
  color: #0275d8;
}

.scorer-card p {
  margin-bottom: 8px;
  font-size: 1em;
  color: #555;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.add-liga-btn {
  background: var(--color-theme-primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  margin-bottom: 30px;
  transition: background-color 0.3s ease;
}

.add-liga-btn:hover {
  background: #4e31b9;
}

.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  position: relative;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.close-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  border-color: var(--color-theme-primary);
  outline: none;
}

.submit-btn {
  background: var(--color-theme-primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  width: 100%;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background: #4e31b9;
}

.ligas-container {
  margin-top: 30px;
}

.ligas-container h2 {
  margin-bottom: 20px;
  color: #333;
  font-size: 1.5rem;
}

.ligas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.liga-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.liga-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.liga-nombre {
  font-size: 1.2rem;
  color: var(--color-theme-primary);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.liga-info {
  color: #666;
  margin: 5px 0;
  font-size: 0.9rem;
}

.liga-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.ver-clasificacion {
  background: #0275d8;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  flex: 1;
  transition: background-color 0.3s ease;
}

.ver-clasificacion:hover {
  background: #0056b3;
}

.borrar-liga {
  background: #dc3545;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.borrar-liga:hover {
  background: #c82333;
}
