@charset "UTF-8";

/* =============================== 
   PALETA DE COLORES - PEGEGHE AUREUS
   Blanco & Dorado (elegante / no impactante)
   =============================== */
/* Colores base */
/* Texto */
/* Verde principal (CTA → Dorado) */
/* Acentos secundarios (variaciones doradas) */
/* Estados (misma familia cromática) */
/* Bordes y sombras */
/* Espaciados */
/* Transiciones */
/* Mixin: stat-tile
   Uso: crear tarjetas de estadística (icono, valor, etiqueta) con tipografía fluida
   Parámetros:
     $accent: color acento para iconos/valores
     $bg: fondo de la tarjeta
     $radius: radio de borde
     $padding: padding interno
*/
.page-header {
  text-align: center;
  padding: 4rem 2rem 3rem;
  background: linear-gradient(180deg, #f6f6f3 0%, #eeeeea 100%);
}

.page-header h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  color: #1c1c1c;
  margin: 0 0 0.75rem 0;
  padding: 0;
  letter-spacing: 1px;
}

.page-header p {
  color: #6f6652;
  font-size: 1.1rem;
  margin: 0;
  padding: 0;
}

.liga-main {
  min-height: calc(100vh - 60px);
}

.liga-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1rem;
  flex-wrap: wrap;
}

.liga-controls select {
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  border: 2px solid #e3e1d8;
  background: #ffffff;
  color: #1c1c1c;
  font-size: 1rem;
  font-weight: 500;
  min-width: 200px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.liga-controls select:hover {
  border-color: #c2a44a;
}

.liga-controls select:focus {
  outline: none;
  border-color: #c2a44a;
  box-shadow: 0 0 0 3px rgba(194, 164, 74, 0.2);
}

.liga-controls .btn {
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.liga-controls .btn.btn-secondary {
  background: #ffffff;
  border: 2px solid #e3e1d8;
  color: #1c1c1c;
}

.liga-controls .btn.btn-secondary:hover {
  border-color: #c2a44a;
  background: #eeeeea;
}

.liga-estado {
  padding: 0 1rem 1rem;
}

.liga-estado .estado-card {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 1.25rem;
  margin: 0 auto;
  display: flex;
  width: fit-content;
}

.liga-estado .estado-card .estado-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.liga-estado .estado-card .estado-item .estado-label {
  font-size: 0.85rem;
  color: #6f6652;
}

.liga-estado .estado-card .estado-item .estado-valor {
  font-size: 1rem;
  font-weight: 700;
  color: #1c1c1c;
}

.liga-clasificacion {
  padding: 2rem 1rem;
}

.liga-clasificacion h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1c1c1c;
  margin-bottom: 1.5rem;
}

.tabla-posiciones {
  display: grid;
  grid-auto-rows: minmax(42px, auto);
  font-size: 16px;
  text-align: center;
  justify-content: stretch;
  margin: 0 10px;
  padding: 1rem 0;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

/* TODAS las filas usan la MISMA grid */
.fila {
  display: grid;
  grid-template-columns: 35px 4fr repeat(8, 1fr);
  align-items: center;
  background: #ffffff;
  color: #1c1c1c;
  padding: 10px 12px;
  border-bottom: 1px solid #e3e1d8;
  transition: background 0.2s ease;
}

.fila:hover:not(.encabezado) {
  background: #eeeeea;
}

/* Encabezado */
.encabezado {
  background: #eeeeea;
  font-weight: bold;
  border-radius: 0;
  border-bottom: 2px solid #e3e1d8;
}

.encabezado span {
  color: #6f6652;
  font-size: 0.85rem;
}

/* Centrado general */
.fila span {
  text-align: center;
  font-weight: 400;
}

/* Nombre del equipo clickeable */
.fila .equipo-nombre {
  cursor: pointer;
  transition: color 0.2s ease;
  text-align: left;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fila .equipo-nombre:hover {
  color: #c2a44a;
  text-decoration: underline;
}

.fila .equipo-nombre .club-logo-img {
  flex-shrink: 0;
}

/* Última fila sin borde */
.tabla-posiciones .fila:last-child {
  border-bottom: none;
  box-shadow: none;
}

/* Ajustar también el pseudo-elemento */
.tabla-posiciones .fila:last-child::before {
  border-radius: 0 0 0 6px;
}

.fila span:nth-child(1) {
  text-align: center;
  font-weight: 700;
}

/* Nombre del equipo alineado a la izquierda */
.fila span:nth-child(2) {
  text-align: left;
  margin-left: 4px;
}

.fila span:nth-child(10) {
  font-weight: 700;
}

@media (max-width: 550px) {
  .fila {
    grid-template-columns: 30px 1fr 40px 40px 45px;
  }

  /* OCULTAR columnas innecesarias */
  .fila span:nth-child(4),
  .fila span:nth-child(5),
  .fila span:nth-child(6),
  .fila span:nth-child(7),
  .fila span:nth-child(8) {
    /* GC */
    display: none;
  }
}

.fila {
  position: relative;
}

/* Línea decorativa izquierda */
.fila::before {
  content: "";
  position: absolute;
  left: 0;
  width: 4px;
  height: 100%;
  background: transparent;
}

/* Colores de posición - claros */
.fila.pos-1::before,
.fila.lider::before {
  background: #c2a44a;
}

.fila.pos-2::before,
.fila.pos-3::before {
  background: #c2a44a;
  opacity: 0.6;
}

.fila.repechaje::before {
  background: #d0bc7a;
}

.fila.zona-descenso::before,
.fila.descenso::before {
  background: #9c7a3a;
}

@media (min-width: 1000px) {
  .tabla-posiciones {
    margin: 0 120px;
  }
}

.liga-proximos {
  padding: 2rem 1rem;
  background: #eeeeea;
}

.liga-proximos h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1c1c1c;
  margin-bottom: 1.5rem;
}

.liga-proximos .carousel-container {
  position: relative;
  width: 90%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 3.5rem;
  --carousel-gap: 16px;
}

.liga-proximos .carousel-container .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e3e1d8;
  color: #1c1c1c;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.liga-proximos .carousel-container .carousel-btn:hover {
  background: #c2a44a;
  border-color: #c2a44a;
  color: #fff;
}

.liga-proximos .carousel-container .carousel-btn.prev {
  left: 0;
}

.liga-proximos .carousel-container .carousel-btn.next {
  right: 0;
}

.liga-proximos .carousel-container .carousel-viewport {
  overflow: hidden;
  border-radius: 14px;
  width: 100%;
}

.liga-proximos .carousel-container .carousel-track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.3s ease;
  overflow: visible;
  gap: var(--carousel-gap);
  width: max-content;
}

@media (min-width: 768px) {
  .liga-proximos .carousel-container {
    max-width: 980px;
  }
}

@media (min-width: 1024px) {
  .liga-proximos .carousel-container {
    max-width: 1400px;
  }
}

.liga-proximos .carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.liga-proximos .carousel-dots .carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e3e1d8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.liga-proximos .carousel-dots .carousel-dot:hover {
  background: rgba(194, 164, 74, 0.5);
}

.liga-proximos .carousel-dots .carousel-dot.active {
  background: #c2a44a;
  transform: scale(1.2);
}

.liga-proximos .partido-card {
  flex: 0 0 auto;
  box-sizing: border-box;
  margin: 0;
  background-color: #ffffff;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: none;
  filter: none;
}

.liga-proximos .partido-card:hover,
.liga-proximos .partido-card:focus,
.liga-proximos .partido-card:focus-within {
  box-shadow: none;
  filter: none;
}

.liga-proximos .partido-card .partido-fecha {
  text-align: center;
  font-size: 0.85rem;
  color: #6f6652;
  margin-bottom: 1rem;
  font-weight: 500;
}

.liga-proximos .partido-card .partido-equipos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.liga-proximos .partido-card .partido-equipos .partido-equipo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.liga-proximos .partido-card .partido-equipos .partido-equipo .partido-equipo-logo {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: #eeeeea;
  border-radius: 50%;
  overflow: hidden;
}

.liga-proximos .partido-card .partido-equipos .partido-equipo .partido-equipo-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.liga-proximos .partido-card .partido-equipos .partido-equipo .partido-equipo-nombre {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1c1c1c;
  text-align: center;
}

.liga-proximos .partido-card .partido-equipos .partido-vs {
  font-size: 1rem;
  font-weight: 700;
  color: #9a9586;
}

.liga-proximos .loading-placeholder {
  text-align: center;
  padding: 2rem;
  color: #6f6652;
}

.liga-mvp {
  padding: 2rem 1rem;
}

.liga-mvp h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1c1c1c;
  margin-bottom: 1.5rem;
}

.liga-mvp .mvp-card {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 500px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

.liga-mvp .mvp-card .mvp-avatar .avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c2a44a 0%, rgb(143.229338843, 119.4896694215, 48.270661157) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.liga-mvp .mvp-card .mvp-info {
  flex: 1;
}

.liga-mvp .mvp-card .mvp-info .mvp-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #c2a44a;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.liga-mvp .mvp-card .mvp-info .mvp-nombre {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1c1c1c;
  margin: 0.25rem 0;
}

.liga-mvp .mvp-card .mvp-info .mvp-club {
  font-size: 0.9rem;
  color: #6f6652;
  display: block;
  margin-bottom: 0.75rem;
}

.liga-mvp .mvp-card .mvp-info .mvp-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #1c1c1c;
}

.liga-mvp .mvp-card .mvp-info .mvp-stats span {
  font-weight: 500;
}

.liga-mvp .mvp-card .mvp-info .btn-ver-stats {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid #c2a44a;
  color: #c2a44a;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.liga-mvp .mvp-card .mvp-info .btn-ver-stats:hover {
  background: #c2a44a;
  color: #fff;
}

.liga-mvp .mvp-card .loading-placeholder {
  width: 100%;
  text-align: center;
  color: #6f6652;
}

.liga-resultados {
  padding: 2rem 1rem;
  background: #eeeeea;
}

.liga-resultados h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1c1c1c;
  margin-bottom: 1.5rem;
}

.liga-resultados .resultados-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 80%;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .liga-resultados .resultados-grid {
    width: 100%;
    max-width: 700px;
  }
}

.liga-resultados .resultado-card {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 0.75rem 1rem;
}

.liga-resultados .resultado-card .resultado-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e3e1d8;
}

.liga-resultados .resultado-card .resultado-header span {
  font-size: 0.8rem;
  color: #6f6652;
  font-weight: 500;
}

.liga-resultados .resultado-card .resultado-equipos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.liga-resultados .resultado-card .resultado-equipos .resultado-equipo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.liga-resultados .resultado-card .resultado-equipos .resultado-equipo .equipo-nombre {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1c1c1c;
  cursor: pointer;
}

@media (min-width: 551px) {
  .liga-resultados .resultado-card .resultado-equipos .resultado-equipo .equipo-nombre {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
}

@media (max-width: 550px) {
  .liga-resultados .resultado-card .resultado-equipos .resultado-equipo .equipo-nombre {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.liga-resultados .resultado-card .resultado-equipos .resultado-equipo .equipo-nombre .nombre-largo {
  display: inline;
}

.liga-resultados .resultado-card .resultado-equipos .resultado-equipo .equipo-nombre .nombre-corto {
  display: none;
}

@media (max-width: 550px) {
  .liga-resultados .resultado-card .resultado-equipos .resultado-equipo .equipo-nombre .nombre-largo {
    display: none;
  }

  .liga-resultados .resultado-card .resultado-equipos .resultado-equipo .equipo-nombre .nombre-corto {
    display: inline;
  }
}

.liga-resultados .resultado-card .resultado-equipos .resultado-equipo .equipo-nombre:hover {
  color: #c2a44a;
}

.liga-resultados .resultado-card .resultado-equipos .resultado-equipo .partido-equipo-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eeeeea;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  width: 32px;
  height: 32px;
}

.liga-resultados .resultado-card .resultado-equipos .resultado-equipo .partido-equipo-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.liga-resultados .resultado-card .resultado-equipos .resultado-equipo:last-child {
  justify-content: flex-end;
  text-align: right;
}

.liga-resultados .resultado-card .resultado-equipos .resultado-marcador {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1c1c1c;
  background: #2d2b27;
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  min-width: 70px;
  text-align: center;
}

.liga-resultados .loading-placeholder {
  text-align: center;
  padding: 2rem;
  color: #6f6652;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1rem;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal .modal-content {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.active .modal .modal-content {
  transform: scale(1);
}

.modal .modal-content.modal-lg {
  max-width: 700px;
}

.modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e3e1d8;
}

.modal .modal-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1c1c1c;
  margin: 0;
}

.modal .modal-header .modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: #6f6652;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal .modal-header .modal-close:hover {
  background: #eeeeea;
  color: #1c1c1c;
}

.modal .modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

.modal .modal-body .loading-placeholder {
  text-align: center;
  padding: 2rem;
  color: #6f6652;
}

.equipos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.equipos-grid .equipo-card {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.equipos-grid .equipo-card:hover {
  border-color: #c2a44a;
  transform: translateY(-2px);
}

.equipos-grid .equipo-card .equipo-card-logo {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.equipos-grid .equipo-card .equipo-card-nombre {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1c1c1c;
}

.equipo-perfil .equipo-perfil-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e3e1d8;
}

.equipo-perfil .equipo-perfil-header .equipo-perfil-logo {
  font-size: 3.5rem;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eeeeea;
  border-radius: 10px;
}

.equipo-perfil .equipo-perfil-header .equipo-perfil-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1c1c1c;
  margin: 0 0 0.25rem;
}

.equipo-perfil .equipo-perfil-header .equipo-perfil-info span {
  font-size: 0.9rem;
  color: #6f6652;
}

.equipo-perfil .equipo-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.equipo-perfil .equipo-stats-grid .equipo-stat {
  background: #eeeeea;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.equipo-perfil .equipo-stats-grid .equipo-stat .equipo-stat-valor {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1c1c1c;
}

.equipo-perfil .equipo-stats-grid .equipo-stat .equipo-stat-label {
  font-size: 0.75rem;
  color: #6f6652;
  text-transform: uppercase;
}

.equipo-perfil h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1c1c1c;
  margin-bottom: 0.75rem;
}

.equipo-perfil .equipo-seccion {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e3e1d8;
}

.equipo-perfil .equipo-seccion h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1c1c1c;
  margin-bottom: 1rem;
}

.equipo-perfil .trofeos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.equipo-perfil .trofeo-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(194, 164, 74, 0.1) 0%, transparent 100%);
  border: 1px solid rgba(194, 164, 74, 0.3);
  border-radius: 10px;
}

.equipo-perfil .trofeo-item .trofeo-icono {
  font-size: 1.75rem;
}

.equipo-perfil .trofeo-item .trofeo-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.equipo-perfil .trofeo-item .trofeo-info .trofeo-nombre {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1c1c1c;
}

.equipo-perfil .trofeo-item .trofeo-info .trofeo-temp {
  font-size: 0.75rem;
  color: #6f6652;
}

.equipo-perfil .historico-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.equipo-perfil .historico-stats-grid .historico-stat {
  background: #eeeeea;
  border-radius: 6px;
  padding: 0.75rem;
  text-align: center;
}

.equipo-perfil .historico-stats-grid .historico-stat .stat-valor {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1c1c1c;
}

.equipo-perfil .historico-stats-grid .historico-stat .stat-label {
  font-size: 0.7rem;
  color: #6f6652;
  text-transform: uppercase;
}

.equipo-perfil .historico-records {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.75rem;
  background: #eeeeea;
  border-radius: 6px;
}

.equipo-perfil .historico-records span {
  font-size: 0.85rem;
  color: #6f6652;
}

.equipo-perfil .historico-records span strong {
  color: #c2a44a;
}

.equipo-perfil .top-historico-lista {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.equipo-perfil .top-historico-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: #eeeeea;
  border-radius: 6px;
}

.equipo-perfil .top-historico-item .top-pos {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #c2a44a;
  color: #000;
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 50%;
}

.equipo-perfil .top-historico-item .top-nombre {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1c1c1c;
}

.equipo-perfil .top-historico-item .top-valor {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c2a44a;
}

.equipo-perfil .plantilla-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.jugador-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #eeeeea;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.jugador-card:hover {
  border-color: #c2a44a;
  background: #ffffff;
}

.jugador-card .jugador-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c2a44a 0%, rgb(143.229338843, 119.4896694215, 48.270661157) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.jugador-card .jugador-info {
  flex: 1;
}

.jugador-card .jugador-info .jugador-nombre {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1c1c1c;
}

.jugador-card .jugador-info .jugador-posicion {
  font-size: 0.75rem;
  color: #6f6652;
}

.jugador-card .jugador-numero {
  font-size: 1.25rem;
  font-weight: 700;
  color: #9a9586;
}

.jugador-perfil .jugador-perfil-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e3e1d8;
}

.jugador-perfil .jugador-perfil-header .jugador-perfil-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c2a44a 0%, rgb(143.229338843, 119.4896694215, 48.270661157) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
}

.jugador-perfil .jugador-perfil-header .jugador-perfil-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1c1c1c;
  margin: 0 0 0.25rem;
}

.jugador-perfil .jugador-perfil-header .jugador-perfil-info .posicion {
  display: block;
  font-size: 0.9rem;
  color: #c2a44a;
  font-weight: 600;
}

.jugador-perfil .jugador-perfil-header .jugador-perfil-info .club {
  display: block;
  font-size: 0.85rem;
  color: #6f6652;
}

.jugador-perfil .jugador-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.jugador-perfil .jugador-stats-grid .jugador-stat {
  background: #eeeeea;
  border-radius: 10px;
  padding: 0.75rem;
  text-align: center;
}

.jugador-perfil .jugador-stats-grid .jugador-stat .jugador-stat-valor {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1c1c1c;
}

.jugador-perfil .jugador-stats-grid .jugador-stat .jugador-stat-label {
  font-size: 0.7rem;
  color: #6f6652;
}

.jugador-perfil h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1c1c1c;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .page-header {
    padding: 2rem 1rem 1.5rem;
  }

  .liga-controls {
    flex-direction: column;
  }

  .liga-controls select {
    width: 100%;
    max-width: 300px;
  }

  .liga-estado .estado-card {
    gap: 2rem;
    padding: 1.25rem;
  }

  .liga-proximos .carousel-container {
    padding: 0 2.5rem;
  }

  .liga-mvp .mvp-card {
    flex-direction: column;
    text-align: center;
  }

  .liga-mvp .mvp-card .mvp-info .mvp-stats {
    justify-content: center;
  }

  .equipo-perfil .equipo-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .jugador-perfil .jugador-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal .modal-content {
    max-height: 85vh;
  }
}