@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
*/
body {
  font-family: "Inter", sans-serif;
  color: #1c1c1c;
  line-height: 1.6;
}

.boton .btn-discord {
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.card-container ul {
  flex-direction: column;
  list-style: none;
  padding: 1rem;
  margin: 0;
  gap: 1rem;
}

.single-card-container {
  display: flex;
  justify-content: center;
}

.float-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7rem;
  background-color: #eeeeea;
  padding: 4rem 0;
}
.float-container .center {
  align-self: center;
  text-align: center;
}
.float-container .left {
  align-self: flex-start;
  text-align: left;
}
.float-container .right {
  align-self: flex-end;
  text-align: right;
}

.margintop-small {
  margin-top: 2rem;
}

.margintop-medium {
  margin-top: 4rem;
}

.margintop-large {
  margin-top: 6rem;
}

.marginbottom-small {
  margin-bottom: 2rem;
}

.marginbottom-medium {
  margin-bottom: 4rem;
}

.marginbottom-large {
  margin-bottom: 6rem;
}

.pd-large {
  padding: 150px 0;
}

.pd-md {
  padding: 100px 0;
}

.pd-sm {
  padding: 50px 0;
}

.slogan p {
  font-size: 15px;
  text-align: center;
  margin: 16px 10px 0;
  color: #9a9586;
  font-style: italic;
  word-spacing: 0.2rem;
}

.titulo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-direction: column;
  text-align: center;
  gap: 2rem;
}
.titulo h1 {
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 2.5rem;
  margin: 16px 10px 0;
}
.titulo h2 {
  margin-top: 6px;
  font-size: 1.2rem;
  color: #6f6652;
  font-weight: 400;
  margin: 0 6px;
}
.titulo p {
  margin: 16px 10px 0;
  color: #9a9586;
  font-style: italic;
  word-spacing: 0.2rem;
  font-size: 18px;
}

.boton {
  margin: 4rem 0 3rem;
  display: grid;
  justify-items: center;
  padding: 16px;
}
.boton .btn-discord {
  color: #2e2e2e;
  background-color: #c2a44a;
  padding: 16px;
}
.boton .btn-discord:hover {
  padding: 19.2px;
  transition: padding 0.3s ease;
  background-color: #b3943f;
}
.boton p {
  margin-top: 10px;
  color: #6f6652;
  font-style: italic;
}

.card {
  min-height: 180px;
  background-color: #ffffff;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  padding: 16px;
  justify-items: center;
  align-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  will-change: transform, box-shadow, background-color;
}
.card img {
  width: 98px;
  height: 98px;
  margin-bottom: 10px;
  display: block;
}
.card h3 {
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.card p {
  color: #6f6652;
  line-height: 1.4;
}

.float-container .card {
  padding: 22.4px;
  max-width: 350px;
}
.float-container .card h4 {
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 1.5rem;
  margin-bottom: 10px;
  text-align: center;
}
.float-container .card p {
  color: #6f6652;
  text-align: left;
  max-width: 340px;
}

.menu-toggle {
  background: none;
  border: none;
  color: #1c1c1c;
  cursor: pointer;
  font-size: 32px;
  position: relative;
  z-index: 1300;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.2s ease;
}
.menu-toggle:hover {
  background: #eeeeea;
}
.menu-toggle .hamburger {
  display: block;
  width: 24px;
  height: 3px;
  background: #1c1c1c;
  border-radius: 2px;
  position: relative;
  transition: background 0.2s ease;
}
.menu-toggle .hamburger::before, .menu-toggle .hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #1c1c1c;
  border-radius: 2px;
  transition: transform 0.2s ease;
}
.menu-toggle .hamburger::before {
  top: -8px;
}
.menu-toggle .hamburger::after {
  bottom: -8px;
}

.logo {
  align-items: center;
  display: flex;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.logo:hover {
  opacity: 0.8;
}
.logo span {
  color: #1c1c1c;
  font-size: 16px;
  font-weight: bold;
  margin-left: 6px;
}
.logo img {
  height: 32px;
  width: auto;
  display: block;
}

.nav {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  background: linear-gradient(180deg, #ffffff 0%, #f8f8f6 100%);
  width: 70%;
  max-width: 420px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  align-items: stretch;
  padding: 1rem;
  z-index: 1100;
  justify-content: flex-start;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
}
.nav::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  z-index: -1;
  pointer-events: none;
}
.nav.active {
  transform: translateX(0);
}
.nav.active::before {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  width: 100%;
  align-items: stretch;
  justify-content: flex-start;
  flex: 1 1 auto;
  padding-bottom: 1.2rem;
}

.nav li {
  border-bottom: none;
}

.nav li + li {
  border-top: 1px solid #e3e1d8;
}

.nav a {
  font-size: 15px;
  display: block;
  padding: 16px 20px;
  color: #1c1c1c;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 6px;
}
.nav a:hover {
  background: #eeeeea;
  color: #c2a44a;
}
.nav a.active {
  background: #c2a44a;
  color: #fff;
}

.nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  padding: 16px 0 0 8px;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e3e1d8;
  padding-bottom: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  text-decoration: none;
}
.nav-brand img {
  height: 32px;
  width: auto;
  display: block;
  border-radius: 6px;
}
.nav-brand span {
  color: #1c1c1c;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
}

.nav-close {
  background: transparent;
  border: none;
  color: #1c1c1c;
  font-size: 27.2px;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-close:hover {
  background: #eeeeea;
  color: #c2a44a;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
  .nav {
    position: static;
    display: flex;
    width: auto;
    background: none;
    height: auto;
    transform: none;
    padding: 0;
    box-shadow: none;
    flex-direction: row;
    align-items: center;
  }
  .nav::before {
    display: none;
  }
  .nav-header {
    display: none;
  }
  .nav ul {
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 0;
  }
  .nav li {
    border: none;
  }
  .nav li + li {
    border: none;
  }
  .nav a {
    color: #1c1c1c;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
  }
  .nav a:hover {
    background: #eeeeea;
    color: #c2a44a;
  }
  .nav a.active {
    background: #c2a44a;
    color: #fff;
  }
}
@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden;
  }
}
footer {
  padding: 2.5rem 1.5rem;
  background: #eeeeea;
  text-align: center;
  border-top: 1px solid #e3e1d8;
}
footer ul {
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}
footer p {
  margin-bottom: 0.5rem;
  color: #6f6652;
}

footer .boton {
  margin: 0;
}

.footer {
  padding: 2.5rem 1.5rem;
  background: #eeeeea;
  text-align: center;
  border-top: 1px solid #e3e1d8;
}
.footer .footer-content {
  max-width: 600px;
  margin: 0 auto;
}
.footer .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.footer .btn.btn-secondary {
  background: #ffffff;
  color: #1c1c1c;
  border: 2px solid #e3e1d8;
}
.footer .btn.btn-secondary:hover {
  border-color: #c2a44a;
  color: #c2a44a;
}
.footer .btn.btn-primary {
  background: #c2a44a;
  color: #fff;
}
.footer .btn.btn-primary:hover {
  background: #b3943f;
}
.footer .footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  flex-wrap: wrap;
}
.footer .footer-links a {
  color: #6f6652;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.footer .footer-links a:hover {
  color: #c2a44a;
}
.footer .footer-links span {
  color: #9a9586;
  font-size: 0.9rem;
}
.footer .footer-links .separator {
  color: #c2a44a;
}
.footer .footer-copy,
.footer .footer-credit {
  font-size: 0.8rem;
  color: #9a9586;
  margin: 0.5rem 0;
}

.header {
  --header-height: 60px;
  height: var(--header-height);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 1rem;
  background: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  width: 100%;
  color: #1c1c1c;
  border-bottom: 1px solid #e3e1d8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: top, background;
  transform: none;
  transition: top 0.28s ease, background 0.18s ease, border 0.18s ease, box-shadow 0.18s ease;
}
.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

body.menu-open .header {
  top: calc(-1 * var(--header-height));
  background: transparent;
  border: none;
  box-shadow: none;
}

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

ul {
  list-style: none;
  display: flex;
}
ul li {
  list-style: none;
  cursor: pointer;
}

a {
  text-decoration: none;
  color: inherit;
}

body {
  background-color: #f6f6f3;
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #1c1c1c;
}

body {
  padding-top: calc(60px + env(safe-area-inset-top, 0px));
}

.img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

a {
  color: #c2a44a;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #b3943f;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: #c2a44a;
  color: #fff;
}

::-moz-selection {
  background: #c2a44a;
  color: #fff;
}

.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  margin-top: 0;
  background: linear-gradient(180deg, #f6f6f3 0%, #eeeeea 100%);
  text-align: center;
}
.hero .hero-content {
  max-width: 600px;
}
.hero .hero-title {
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 800;
  color: #1c1c1c;
  margin: 0 0 0.75rem;
  letter-spacing: 2px;
}
.hero .hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: #6f6652;
  margin: 0 0 2rem;
}
.hero .hero-hint {
  font-size: 0.85rem;
  color: #9a9586;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.btn.btn-primary {
  background: #c2a44a;
  color: #fff;
}
.btn.btn-primary:hover {
  background: #b3943f;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(194, 164, 74, 0.3);
}
.btn.btn-secondary {
  background: #ffffff;
  color: #1c1c1c;
  border: 2px solid #e3e1d8;
}
.btn.btn-secondary:hover {
  border-color: #c2a44a;
  color: #c2a44a;
}

.features-slogan {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1rem;
  background: #ffffff;
  border-top: 1px solid #e3e1d8;
  border-bottom: 1px solid #e3e1d8;
  flex-wrap: wrap;
}
.features-slogan span {
  font-size: 0.9rem;
  color: #6f6652;
  font-weight: 500;
}
.features-slogan span.separator {
  color: #c2a44a;
}

.features {
  padding: 4rem 1.5rem;
  background: #eeeeea;
}
.features .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.feature-card:hover {
  border-color: #c2a44a;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
.feature-card:hover .feature-link {
  color: #c2a44a;
}
.feature-card .feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card .feature-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1c1c1c;
  margin: 0;
  letter-spacing: 1px;
}
.feature-card p {
  font-size: 0.9rem;
  color: #6f6652;
  margin: 0;
  line-height: 1.5;
}
.feature-card .feature-link {
  font-size: 0.85rem;
  color: #9a9586;
  font-weight: 500;
  transition: color 0.2s ease;
  margin-top: auto;
}

.about-section,
.about {
  padding: 4rem 1.5rem;
  background: #ffffff;
}
.about-section .about-content,
.about-section .about-container,
.about .about-content,
.about .about-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.about-section .about-header,
.about .about-header {
  margin-bottom: 2rem;
}
.about-section h2,
.about h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1c1c1c;
  margin: 0 0 1rem;
}
.about-section p,
.about p {
  font-size: 1rem;
  color: #6f6652;
  line-height: 1.7;
  margin: 0 0 1rem;
}
.about-section p:last-of-type,
.about p:last-of-type {
  margin-bottom: 0;
}
.about-section .about-cards,
.about .about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.about-section .about-card,
.about .about-card {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 1.5rem;
  text-align: center;
}
.about-section .about-card .about-card-icon,
.about .about-card .about-card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.about-section .about-card p,
.about .about-card p {
  margin: 0;
  font-size: 0.95rem;
}

.status-section,
.status {
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, #f8f7f4 0%, #eeeeea 100%);
}
.status-section .status-card,
.status .status-card {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  max-width: 420px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(194, 164, 74, 0.2);
  position: relative;
}
.status-section .status-card::before,
.status .status-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d0bc7a, #c2a44a, #d0bc7a);
}
.status-section .status-card h3,
.status .status-card h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c2a44a;
  margin: 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(180deg, #fafaf8 0%, #f5f5f2 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.status-section .status-card h3::before,
.status .status-card h3::before {
  content: "⚡";
  font-size: 0.9rem;
}
.status-section .status-card .status-info h3,
.status .status-card .status-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1c1c1c;
  margin: 0 0 0.25rem;
}
.status-section .status-card .status-info p,
.status .status-card .status-info p {
  font-size: 0.85rem;
  color: #6f6652;
  margin: 0;
}
.status-section .status-card .status-indicator,
.status .status-card .status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.status-section .status-card .status-indicator .status-dot,
.status .status-card .status-indicator .status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2ecc71;
  animation: pulse 2s infinite;
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.5);
}
.status-section .status-card .status-indicator span,
.status .status-card .status-indicator span {
  font-size: 0.85rem;
  font-weight: 500;
  color: #2ecc71;
}
.status-section .status-card .status-list,
.status .status-card .status-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
  padding: 0.5rem 0;
}
.status-section .status-card .status-item,
.status .status-card .status-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.status-section .status-card .status-item:last-child,
.status .status-card .status-item:last-child {
  border-bottom: none;
}
.status-section .status-card .status-item:hover,
.status .status-card .status-item:hover {
  background: rgba(194, 164, 74, 0.03);
}
.status-section .status-card .status-item .status-icon,
.status .status-card .status-item .status-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border-radius: 10px;
  flex-shrink: 0;
}
.status-section .status-card .status-item span:last-child,
.status .status-card .status-item span:last-child {
  font-size: 0.95rem;
  font-weight: 500;
  color: #1c1c1c;
  flex: 1;
}
.status-section .status-card .status-item.completed .status-icon,
.status .status-card .status-item.completed .status-icon {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #28a745;
  font-weight: bold;
}
.status-section .status-card .status-item.completed span:last-child,
.status .status-card .status-item.completed span:last-child {
  color: #1e7e34;
}
.status-section .status-card .status-item.in-progress .status-icon,
.status .status-card .status-item.in-progress .status-icon {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
  color: #856404;
}
.status-section .status-card .status-item.in-progress span:last-child,
.status .status-card .status-item.in-progress span:last-child {
  color: #6f6652;
  font-style: italic;
}
.status-section .status-card .status-item.pending .status-icon,
.status .status-card .status-item.pending .status-icon {
  background: #f5f5f5;
  color: #aaa;
}
.status-section .status-card .status-item.pending span:last-child,
.status .status-card .status-item.pending span:last-child {
  color: #999;
}
.status-section .status-card .status-footer,
.status .status-card .status-footer {
  padding: 1rem 1.5rem;
  background: #fafaf8;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.75rem;
  color: #6f6652;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.status-section .status-card .status-footer .pulse-dot,
.status .status-card .status-footer .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ecc71;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.footer {
  padding: 2.5rem 1.5rem;
  background: #f6f6f3;
  text-align: center;
}
.footer .footer-content {
  max-width: 600px;
  margin: 0 auto;
}
.footer .footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}
.footer .footer-links a {
  color: #6f6652;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.footer .footer-links a:hover {
  color: #c2a44a;
}
.footer .footer-links span {
  color: #9a9586;
  font-size: 0.9rem;
}
.footer .footer-links .separator {
  color: #9a9586;
}
.footer .footer-copy,
.footer .footer-credit {
  font-size: 0.8rem;
  color: #9a9586;
  margin: 0.5rem 0;
}

.mobile:focus-visible,
.mobile[tabindex]:focus-visible {
  transform: translateY(-8px);
  outline: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 0 0 4px #c2a44a;
}

.mobile:active {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
}

.mobile[role=button],
.mobile[role=link],
.mobile.mobile-clickable {
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .mobile,
  .mobile:active,
  .mobile:focus-visible {
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
  }
}
.card-container .card {
  padding: 22.4px;
  max-width: 300px;
  width: 80%;
  margin: 0;
  text-align: center;
}
.card-container .card .objetivos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-direction: column;
  justify-items: center;
  padding: 2rem 0;
}
.card-container .card .objetivos h4 {
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 1.2rem;
  margin-bottom: 10px;
  text-align: center;
}
.card-container .card .objetivos p {
  color: #6f6652;
  text-align: left;
  max-width: 300px;
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-style: italic;
}
.card-container .card .objetivos ul {
  flex-direction: column;
  list-style: none;
  padding: 0;
  margin: 0;
}
.card-container .card .objetivos li {
  text-align: left;
  max-width: 300px;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
  font-size: 1rem;
  color: #1c1c1c;
  flex-direction: column;
}

.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;
}

.filter-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 1rem;
  background: #eeeeea;
}
.filter-section select {
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  border: 2px solid #e3e1d8;
  background-color: #ffffff;
  color: #1c1c1c;
  font-size: 1rem;
  font-weight: 500;
  min-width: 200px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-section select:hover {
  border-color: #c2a44a;
}
.filter-section select:focus {
  outline: none;
  border-color: #c2a44a;
  box-shadow: 0 0 0 3px rgba(194, 164, 74, 0.15);
}

/* Comparador de jugadores - moved here so animation lives in SCSS source
   (was previously added directly to styles.css which can be overwritten
   by the SCSS build). */
.comparador-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comparador-selects {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.comparador-select {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 200px;
  flex: 1 1 220px;
}

.comparador-select input[type=text] {
  padding: 0.5rem 0.6rem;
  border: 1px solid #e3e1d8;
  border-radius: 6px;
  font-size: 0.95rem;
  background: #ffffff;
  color: #1c1c1c;
}

.comparador-select select {
  padding: 0.35rem 0.45rem;
  border: 1px solid #e3e1d8;
  border-radius: 6px;
  font-size: 0.95rem;
  background: #ffffff;
  color: #1c1c1c;
}

/* Position the matches list absolutely to avoid layout shifts when it
   appears/disappears. The parent `.comparador-select` must be `position: relative`. */
.comparador-select {
  position: relative;
}

select.matches-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 60;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 260ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 220ms ease, transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
  transform-origin: top center;
  transform: translateY(-12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background: #ffffff;
  border: 1px solid #e3e1d8;
  border-radius: 6px;
  color: #1c1c1c;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  pointer-events: none;
  visibility: hidden;
}

select.matches-list.visible {
  max-height: 220px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.comparador-container .btn {
  align-self: flex-start;
}

/* Safety: ensure global comparator rules are present at top-level so the
   compiled CSS always contains them (prevents accidental nesting issues). */
.comparador-select {
  position: relative;
}

select.matches-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 60;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 260ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 220ms ease, transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
  transform-origin: top center;
  transform: translateY(-12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background: #ffffff;
  border: 1px solid #e3e1d8;
  border-radius: 6px;
  color: #1c1c1c;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  pointer-events: none;
  visibility: hidden;
}

select.matches-list.visible {
  max-height: 220px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.comparador-resultado {
  margin-top: 0.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem;
  }
}

.stat-card {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  min-height: 200px;
}
.stat-card:hover {
  border-color: #c2a44a;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}
.stat-card:hover .view-more {
  color: #c2a44a;
}
.stat-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1c1c1c;
  margin: 0 0 1rem;
  text-align: center;
  flex-shrink: 0;
}
.stat-card ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: ranking;
  flex: 1;
  overflow: hidden;
}
.stat-card ol li {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e3e1d8;
  font-size: 0.95rem;
  color: #1c1c1c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-card ol li::before {
  counter-increment: ranking;
  content: counter(ranking) ".";
  font-weight: 700;
  margin-right: 0.75rem;
  min-width: 24px;
  color: #6f6652;
  flex-shrink: 0;
}
.stat-card ol li:last-child {
  border-bottom: none;
}
.stat-card ol li.loading {
  justify-content: center;
  color: #9a9586;
}
.stat-card ol li.loading::before {
  display: none;
}
.stat-card .view-more {
  display: block;
  text-align: right;
  font-size: 0.85rem;
  color: #9a9586;
  font-weight: 500;
  transition: color 0.2s ease;
  margin-top: auto;
  flex-shrink: 0;
}

.player-spotlight {
  padding: 3rem 1.5rem;
  background: #ffffff;
  border-top: 1px solid #e3e1d8;
  border-bottom: 1px solid #e3e1d8;
}
.player-spotlight .spotlight-content {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}
.player-spotlight .spotlight-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
}
.player-spotlight .spotlight-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #c2a44a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.player-spotlight h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1c1c1c;
  margin: 0 0 0.5rem;
}
.player-spotlight .name {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #c2a44a;
  margin-bottom: 1.5rem;
}
.player-spotlight .spotlight-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.player-spotlight .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.player-spotlight .btn.btn-primary {
  background: #c2a44a;
  color: #fff;
}
.player-spotlight .btn.btn-primary:hover {
  background: #b3943f;
  transform: translateY(-2px);
}
.player-spotlight .btn.btn-secondary {
  background: #eeeeea;
  color: #1c1c1c;
  border: 2px solid #e3e1d8;
}
.player-spotlight .btn.btn-secondary:hover {
  border-color: #c2a44a;
  color: #c2a44a;
}

.disciplinary-section {
  padding: 2rem 1.5rem 3rem;
  background: #eeeeea;
}
.disciplinary-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1c1c1c;
  text-align: center;
  margin: 0 0 1.5rem;
}
.disciplinary-section .disciplinary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  /* Allow up to three cards inline on wider screens (3 * 260 = 780px)
     so increase max-width to accommodate three columns when space permits. */
  max-width: 1000px;
  margin: 0 auto;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  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: 400px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.modal.active .modal .modal-content {
  transform: scale(1);
}
.modal .modal-content.modal-lg {
  max-width: 600px;
}
.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 ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: modal-ranking;
}
.modal .modal-body ol li {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e3e1d8;
  font-size: 1rem;
  color: #1c1c1c;
}
.modal .modal-body ol li::before {
  counter-increment: modal-ranking;
  content: counter(modal-ranking) ".";
  font-weight: 700;
  margin-right: 1rem;
  min-width: 30px;
  color: #6f6652;
}
.modal .modal-body ol li:last-child {
  border-bottom: none;
}
.modal .modal-body ol li.ranking-item-clickable {
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}
.modal .modal-body ol li.ranking-item-clickable:hover {
  background-color: rgba(194, 164, 74, 0.1);
  transform: translateX(4px);
}
.modal .modal-body .paginacion {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e3e1d8;
}
.modal .modal-body .paginacion-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.modal .modal-body .paginacion-numeros {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.modal .modal-body .btn-pag {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #c2a44a, #b3943f);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.modal .modal-body .btn-pag:hover:not(.disabled) {
  background: linear-gradient(135deg, #b3943f, rgb(141.2768595041, 116.8099173554, 49.7231404959));
  transform: translateY(-1px);
}
.modal .modal-body .btn-pag.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.modal .modal-body .btn-pag-num {
  width: 36px;
  height: 36px;
  padding: 0;
  background: #eeeeea;
  color: #1c1c1c;
  border: 1px solid #e3e1d8;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.modal .modal-body .btn-pag-num:hover {
  background: #e3e1d8;
}
.modal .modal-body .btn-pag-num.active {
  background: linear-gradient(135deg, #c2a44a, #b3943f);
  color: white;
  border-color: transparent;
}
.modal .modal-body .paginacion-dots {
  color: #6f6652;
  padding: 0 0.25rem;
}
.modal .modal-body .paginacion-info {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #6f6652;
}

.filtro-estadisticas {
  display: flex;
  flex-direction: column;
  align-items: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

label {
  font-size: 1rem;
  color: #1c1c1c;
}

.single-card-container .single-card {
  width: 70%;
  max-width: 250px;
  padding: 12px;
}
.single-card-container .single-card ul {
  flex-direction: column;
}
.single-card-container .single-card ul li {
  font-size: 14px;
  padding: 5px 0;
  color: #1c1c1c;
  font-weight: 500;
}
.single-card-container .single-card img {
  width: 70px;
  height: 70px;
  margin: 0 auto;
}

.x2grid {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 1rem;
}
.x2grid .card {
  position: relative;
  width: 80%;
  max-width: 250px;
}
.x2grid .card span {
  color: #9a9586;
  font-size: 12px;
  font-weight: 300;
  font-style: italic;
  cursor: pointer;
  position: absolute;
  bottom: 10px;
  right: 10px;
}
.x2grid .card span:hover {
  text-decoration: underline;
}
.x2grid .card ol {
  margin-bottom: 12px;
}
.x2grid .card ol li {
  color: #1c1c1c;
  font-size: 13px;
  margin-bottom: 6px;
}
.x2grid .card h3 {
  color: #1c1c1c;
  font-size: 14px;
  margin-bottom: 10px;
  text-align: center;
}
.x2grid .card ul {
  flex-direction: column;
  text-align: center;
}
.x2grid .card ul li {
  color: #1c1c1c;
  font-size: 16px;
}

.columnreview {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #ffffff;
  border: 2px solid #e3e1d8;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  padding: 48px;
  border-radius: 16px;
}
.columnreview img {
  margin: 32px 0;
  border-radius: 50%;
  width: 110px;
  display: block;
  height: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.columnreview h3 {
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 22.4px;
  text-align: center;
  color: #1c1c1c;
}
.columnreview figcaption {
  color: #6f6652;
  font-size: 14px;
  max-width: 600px;
  text-align: center;
}

.disciplinary-container {
  padding: 5rem 0;
  gap: 16px;
  margin: 32px 0;
}
.disciplinary-container .main-card {
  width: 80%;
  max-width: 400px;
  align-items: center;
  height: auto;
  min-height: 100px;
  display: flex;
  justify-content: center;
  margin: 0 auto 4rem;
}
.disciplinary-container h2 {
  text-align: center;
  color: #1c1c1c;
  font-size: 20.8px;
}
.disciplinary-container h3 {
  color: #1c1c1c;
  font-size: 14px;
  margin-bottom: 10px;
  text-align: center;
}
.disciplinary-container .card {
  width: 80%;
  max-width: 250px;
}
.disciplinary-container article {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  margin: 0 1rem;
}
.disciplinary-container ol li {
  color: #1c1c1c;
  font-size: 13px;
  margin-bottom: 6px;
}
.disciplinary-container span {
  color: #9a9586;
  font-size: 11px;
  font-style: italic;
  cursor: pointer;
  display: block;
  text-align: right;
  margin-top: 6px;
}
.disciplinary-container span:hover {
  text-decoration: underline;
}

.results-container {
  padding: 3rem 0;
  gap: 16px;
  margin: 32px 0;
}
.results-container .main-card {
  width: 80%;
  max-width: 400px;
  align-items: center;
  height: auto;
  min-height: 100px;
  display: flex;
  justify-content: center;
  margin: 0 auto 3rem;
}
.results-container h2 {
  text-align: center;
  color: #1c1c1c;
  font-size: 20.8px;
}
.results-container h3 {
  color: #1c1c1c;
  font-size: 14px;
  margin-bottom: 10px;
  text-align: center;
}
.results-container .card {
  width: 80%;
  max-width: 250px;
  position: relative;
}
.results-container .x3grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 0 1rem;
}
@media (min-width: 768px) {
  .results-container .x3grid {
    gap: 3rem;
  }
}
.results-container ol {
  margin-bottom: 1.5rem;
}
.results-container ol li {
  color: #1c1c1c;
  font-size: 13px;
  margin-bottom: 6px;
}
.results-container span {
  color: #9a9586;
  font-size: 11px;
  font-style: italic;
  cursor: pointer;
  display: block;
  text-align: right;
}
.results-container span:hover {
  text-decoration: underline;
}

.comparador-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}
.comparador-container .btn {
  padding: 0.75rem 2rem;
}

.comparador-selects {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}
@media (max-width: 500px) {
  .comparador-selects {
    flex-direction: column;
    gap: 1rem;
  }
}

.comparador-select {
  flex: 1;
  min-width: 180px;
  max-width: 200px;
}
.comparador-select label {
  display: block;
  font-size: 0.85rem;
  color: #6f6652;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.comparador-select select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 2px solid #e3e1d8;
  background: #eeeeea;
  color: #1c1c1c;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.comparador-select select:focus {
  outline: none;
  border-color: #c2a44a;
}

.comparador-vs {
  font-size: 1.25rem;
  font-weight: 800;
  color: #9a9586;
}
@media (max-width: 500px) {
  .comparador-vs {
    display: none;
  }
}

.comparador-resultado {
  width: 100%;
}
.comparador-resultado .comparador-cards {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 500px) {
  .comparador-resultado .comparador-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
.comparador-resultado .comparador-player {
  text-align: center;
}
.comparador-resultado .comparador-player .player-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: #c2a44a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}
.comparador-resultado .comparador-player .player-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1c1c1c;
  margin-bottom: 1rem;
}
.comparador-resultado .comparador-player .player-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.comparador-resultado .comparador-player .player-stats .stat-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem;
  background: #eeeeea;
  border-radius: 6px;
}
.comparador-resultado .comparador-player .player-stats .stat-row .stat-label {
  color: #6f6652;
  font-size: 0.85rem;
}
.comparador-resultado .comparador-player .player-stats .stat-row .stat-value {
  font-weight: 700;
  color: #1c1c1c;
}
.comparador-resultado .comparador-player .player-stats .stat-row .stat-value.winner {
  color: #c2a44a;
}
.comparador-resultado .comparador-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #9a9586;
  padding-top: 4rem;
}
@media (max-width: 500px) {
  .comparador-resultado .comparador-divider {
    display: none;
  }
}

.jugadores-busqueda {
  margin-bottom: 1.5rem;
}
.jugadores-busqueda input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border-radius: 10px;
  border: 2px solid #e3e1d8;
  background: #eeeeea;
  color: #1c1c1c;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}
.jugadores-busqueda input::placeholder {
  color: #9a9586;
}
.jugadores-busqueda input:focus {
  outline: none;
  border-color: #c2a44a;
}

.jugadores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.jugador-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: #eeeeea;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}
.jugador-item:hover {
  border-color: #c2a44a;
  transform: translateY(-2px);
}
.jugador-item .jugador-avatar {
  width: 50px;
  height: 50px;
  background: #c2a44a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.jugador-item .jugador-nombre {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1c1c1c;
  text-align: center;
  word-break: break-word;
}
.jugador-item .jugador-stats-mini {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #6f6652;
}

.jugador-perfil .jugador-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.jugador-perfil .jugador-header .jugador-avatar-lg {
  width: 80px;
  height: 80px;
  background: #c2a44a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.jugador-perfil .jugador-header .jugador-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1c1c1c;
  margin: 0 0 0.25rem;
}
.jugador-perfil .jugador-header .jugador-info .jugador-club {
  color: #6f6652;
  font-size: 0.95rem;
}
.jugador-perfil .jugador-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 500px) {
  .jugador-perfil .jugador-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.jugador-perfil .jugador-stats-grid .stat-box {
  text-align: center;
  padding: 1rem;
  background: #eeeeea;
  border-radius: 10px;
}
.jugador-perfil .jugador-stats-grid .stat-box .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #c2a44a;
}
.jugador-perfil .jugador-stats-grid .stat-box .stat-label {
  font-size: 0.8rem;
  color: #6f6652;
  margin-top: 0.25rem;
}

.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;
}
.fila .equipo-nombre:hover {
  color: #c2a44a;
  text-decoration: underline;
}

/* Ú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%;
}
.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;
}
.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;
  }
}
.equipo-page {
  min-height: 100vh;
  background: #eeeeea;
}

.equipo-hero {
  position: relative;
  padding: 2rem 1.5rem 3rem;
  background: linear-gradient(135deg, #f6f6f3 0%, rgb(233.4368421053, 233.4368421053, 228.3631578947) 100%);
  overflow: hidden;
}
.equipo-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(194, 164, 74, 0.08) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(194, 164, 74, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.equipo-hero-content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.equipo-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #6f6652;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  transition: all 0.2s ease;
}
.equipo-back-link:hover {
  color: #c2a44a;
  background: rgba(194, 164, 74, 0.1);
}

.equipo-hero-main {
  display: flex;
  align-items: center;
  gap: 2rem;
}
@media (max-width: 600px) {
  .equipo-hero-main {
    flex-direction: column;
    text-align: center;
  }
}

.equipo-escudo {
  font-size: 5rem;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ffffff, #eeeeea);
  border-radius: 50%;
  border: 4px solid #c2a44a;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 8px rgba(194, 164, 74, 0.1);
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .equipo-escudo {
    width: 120px;
    height: 120px;
    font-size: 4rem;
  }
}

.equipo-hero-info {
  flex: 1;
}
.equipo-hero-info h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  color: #1c1c1c;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.equipo-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .equipo-badges {
    justify-content: center;
  }
}

.badge {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}
.badge.badge-posicion {
  background: #c2a44a;
  color: #f6f6f3;
}
.badge.badge-temporada {
  background: rgba(111, 102, 82, 0.15);
  color: #6f6652;
}

.equipo-stats {
  padding: 0 1.5rem;
  max-width: 900px;
  margin: -1.5rem auto 2rem;
  position: relative;
  z-index: 10;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 600px) {
  .stats-row {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.stat-card .stat-icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(194, 164, 74, 0.15), rgba(194, 164, 74, 0.05));
  border-radius: 10px;
  flex-shrink: 0;
}
.stat-card .stat-content {
  display: flex;
  flex-direction: column;
}
.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #1c1c1c;
  line-height: 1;
}
.stat-card .stat-title {
  font-size: 0.85rem;
  color: #6f6652;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}

.stats-record {
  display: flex;
  gap: 0.75rem;
}
@media (max-width: 600px) {
  .stats-record {
    flex-direction: column;
  }
}

.record-item {
  flex: 1;
  background-color: #ffffff;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.record-item .record-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.record-item .record-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1c1c1c;
}
.record-item .record-label {
  font-size: 0.8rem;
  color: #6f6652;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.record-item.victoria .record-icon {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
}
.record-item.empate .record-icon {
  background: rgba(255, 152, 0, 0.15);
  color: #ff9800;
}
.record-item.derrota .record-icon {
  background: rgba(244, 67, 54, 0.15);
  color: #f44336;
}

.equipo-seccion {
  padding: 2rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.seccion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e3e1d8;
}
.seccion-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1c1c1c;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.seccion-header .seccion-icon {
  font-size: 1.1rem;
}
.seccion-header .seccion-count {
  font-size: 0.85rem;
  color: #6f6652;
  background: #eeeeea;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
}

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

.jugador-card-equipo {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.25s ease;
}
.jugador-card-equipo:hover {
  border-color: #c2a44a;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.jugador-card-equipo .jugador-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c2a44a, #b3943f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: #f6f6f3;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(194, 164, 74, 0.3);
}
.jugador-card-equipo .jugador-info {
  flex: 1;
  min-width: 0;
}
.jugador-card-equipo .jugador-nombre {
  font-weight: 600;
  font-size: 1rem;
  color: #1c1c1c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.jugador-card-equipo .jugador-posicion {
  font-size: 0.8rem;
  color: #6f6652;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.2rem;
}
.jugador-card-equipo .jugador-posicion::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c2a44a;
}
.jugador-card-equipo .jugador-dorsal {
  font-weight: 800;
  font-size: 1.4rem;
  color: #c2a44a;
  opacity: 0.8;
}
.jugador-card-equipo .jugador-capitan {
  font-size: 1rem;
  margin-left: 0.25rem;
}

.partidos-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.partido-card-equipo {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 0;
  overflow: hidden;
  display: flex;
  transition: all 0.2s ease;
}
.partido-card-equipo:hover {
  transform: translateX(4px);
}
.partido-card-equipo .partido-indicator {
  width: 5px;
  flex-shrink: 0;
}
.partido-card-equipo .partido-indicator.victoria {
  background: #4caf50;
}
.partido-card-equipo .partido-indicator.empate {
  background: #ff9800;
}
.partido-card-equipo .partido-indicator.derrota {
  background: #f44336;
}
.partido-card-equipo .partido-content {
  flex: 1;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
@media (max-width: 600px) {
  .partido-card-equipo .partido-content {
    flex-direction: column;
    gap: 0.75rem;
  }
}
.partido-card-equipo .partido-fecha-info {
  min-width: 90px;
}
.partido-card-equipo .partido-fecha-info .partido-jornada {
  font-weight: 600;
  color: #1c1c1c;
  font-size: 0.9rem;
}
.partido-card-equipo .partido-fecha-info .partido-fecha {
  font-size: 0.8rem;
  color: #6f6652;
}
.partido-card-equipo .partido-versus {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.partido-card-equipo .partido-versus .equipo-local,
.partido-card-equipo .partido-versus .equipo-visitante {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.partido-card-equipo .partido-versus .equipo-local {
  justify-content: flex-end;
  text-align: right;
}
.partido-card-equipo .partido-versus .equipo-visitante {
  justify-content: flex-start;
  text-align: left;
}
.partido-card-equipo .partido-versus .equipo-nombre-partido {
  font-size: 0.95rem;
  color: #6f6652;
}
.partido-card-equipo .partido-versus .equipo-nombre-partido.destacado {
  font-weight: 600;
  color: #1c1c1c;
}
.partido-card-equipo .partido-versus .equipo-logo-mini {
  font-size: 1.2rem;
}
.partido-card-equipo .partido-versus .marcador {
  font-weight: 700;
  font-size: 1.2rem;
  color: #1c1c1c;
  padding: 0.4rem 0.75rem;
  background: #eeeeea;
  border-radius: 6px;
  min-width: 60px;
  text-align: center;
}
.partido-card-equipo .partido-resultado-badge {
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.partido-card-equipo .partido-resultado-badge.victoria {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
}
.partido-card-equipo .partido-resultado-badge.empate {
  background: rgba(255, 152, 0, 0.15);
  color: #ff9800;
}
.partido-card-equipo .partido-resultado-badge.derrota {
  background: rgba(244, 67, 54, 0.15);
  color: #f44336;
}

.loading-skeleton {
  display: contents;
}
.loading-skeleton .skeleton-card {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  height: 80px;
  background: linear-gradient(90deg, #ffffff 25%, #eeeeea 50%, #ffffff 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.loading-skeleton .skeleton-partido {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  height: 70px;
  background: linear-gradient(90deg, #ffffff 25%, #eeeeea 50%, #ffffff 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: #6f6652;
}
.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}
.empty-state .empty-text {
  font-size: 1rem;
}

.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 1.5rem;
  padding: 2rem;
  text-align: center;
}
.error-container .error-icon {
  font-size: 4rem;
  opacity: 0.5;
}
.error-container h2 {
  font-size: 1.5rem;
  color: #6f6652;
  margin: 0;
}

.jugador-perfil-modal {
  padding: 1rem 0;
}

.jugador-header-modal {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e3e1d8;
}
@media (max-width: 500px) {
  .jugador-header-modal {
    flex-direction: column;
    text-align: center;
  }
}

.jugador-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c2a44a, #b3943f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.8rem;
  color: #f6f6f3;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(194, 164, 74, 0.3);
}

.jugador-info-modal {
  flex: 1;
}
.jugador-info-modal h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1c1c1c;
  margin: 0 0 0.5rem 0;
}
.jugador-info-modal .jugador-posicion-modal {
  display: block;
  font-size: 0.9rem;
  color: #c2a44a;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.jugador-info-modal .jugador-club-modal {
  display: block;
  font-size: 0.85rem;
  color: #6f6652;
}

.jugador-numero-lg {
  font-size: 2.5rem;
  font-weight: 800;
  color: #c2a44a;
  opacity: 0.6;
}

.jugador-stats-modal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 600px) {
  .jugador-stats-modal {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: #eeeeea;
  border-radius: 10px;
}
.stat-item .stat-valor {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1c1c1c;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-item .stat-nombre {
  display: block;
  font-size: 0.8rem;
  color: #6f6652;
}

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

.trofeo-item {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.trofeo-item .trofeo-icono {
  font-size: 2rem;
  flex-shrink: 0;
}
.trofeo-item .trofeo-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.trofeo-item .trofeo-nombre {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1c1c1c;
}
.trofeo-item .trofeo-temp {
  font-size: 0.8rem;
  color: #6f6652;
}

.historico-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.historico-stat {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 1.25rem 1rem;
  text-align: center;
}
.historico-stat .stat-valor {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: #c2a44a;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.historico-stat .stat-label {
  display: block;
  font-size: 0.8rem;
  color: #6f6652;
}

.historico-records {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e3e1d8;
}
.historico-records span {
  font-size: 0.95rem;
  color: #6f6652;
}
.historico-records strong {
  color: #1c1c1c;
}

.historico-top-section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1c1c1c;
  margin-bottom: 1rem;
}

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

.top-historico-item {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.top-historico-item .top-pos {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #c2a44a;
  color: #f6f6f3;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.top-historico-item .top-nombre {
  flex: 1;
  font-weight: 500;
  color: #1c1c1c;
}
.top-historico-item .top-valor {
  font-weight: 600;
  color: #c2a44a;
  font-size: 0.9rem;
}

.btn-historico {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, rgba(194, 164, 74, 0.08) 100%);
  border: 2px solid rgba(194, 164, 74, 0.3);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-historico:hover {
  border-color: #c2a44a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(194, 164, 74, 0.15);
}
.btn-historico:hover .btn-historico-arrow {
  transform: translateX(4px);
}
.btn-historico .btn-historico-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}
.btn-historico .btn-historico-content {
  flex: 1;
  text-align: left;
}
.btn-historico .btn-historico-titulo {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1c1c1c;
  margin-bottom: 0.25rem;
}
.btn-historico .btn-historico-subtitulo {
  display: block;
  font-size: 0.85rem;
  color: #6f6652;
}
.btn-historico .btn-historico-arrow {
  font-size: 1.5rem;
  color: #c2a44a;
  transition: transform 0.3s ease;
}

.modal-xl {
  max-width: 800px;
  width: 95%;
}

.historico-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #eeeeea;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}
.historico-tabs::-webkit-scrollbar {
  height: 4px;
}
.historico-tabs::-webkit-scrollbar-thumb {
  background: #e3e1d8;
  border-radius: 2px;
}

.historico-tab {
  flex: 1;
  min-width: fit-content;
  padding: 0.75rem 1.25rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6f6652;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.historico-tab:hover {
  color: #1c1c1c;
  background: rgba(194, 164, 74, 0.1);
}
.historico-tab.active {
  background: #c2a44a;
  color: #f6f6f3;
}

.historico-tab-content {
  min-height: 300px;
}

.historico-general {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.historico-main-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 600px) {
  .historico-main-stats {
    grid-template-columns: 1fr;
  }
}

.main-stat-card {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 1.5rem;
  text-align: center;
}
.main-stat-card.highlight {
  background: linear-gradient(135deg, rgba(194, 164, 74, 0.15) 0%, #ffffff 100%);
  border-color: rgba(194, 164, 74, 0.3);
}
.main-stat-card.highlight .main-stat-value {
  color: #c2a44a;
}
.main-stat-card .main-stat-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.main-stat-card .main-stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: #1c1c1c;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.main-stat-card .main-stat-label {
  font-size: 0.85rem;
  color: #6f6652;
}

.historico-record-section h4,
.historico-goals-section h4,
.historico-special-records h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1c1c1c;
  margin-bottom: 1rem;
}

.historico-record-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 500px) {
  .historico-record-grid {
    grid-template-columns: 1fr;
  }
}

.record-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;
}
.record-card .record-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.record-card .record-label {
  font-size: 0.85rem;
  color: #6f6652;
}
.record-card.victoria .record-number {
  color: #4ade80;
}
.record-card.empate .record-number {
  color: #fbbf24;
}
.record-card.derrota .record-number {
  color: #f87171;
}

.goals-comparison {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 1.5rem;
}

.goals-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.goals-favor,
.goals-contra {
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
  transition: width 0.5s ease;
}
.goals-favor .goals-number,
.goals-contra .goals-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.goals-favor .goals-label,
.goals-contra .goals-label {
  font-size: 0.8rem;
  opacity: 0.8;
}

.goals-favor {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  color: #052e16;
}

.goals-contra {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  color: #450a0a;
}

.goals-diff {
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}
.goals-diff.positive {
  color: #4ade80;
}
.goals-diff.negative {
  color: #f87171;
}

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

.special-record {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.special-record .record-icon {
  font-size: 1.5rem;
}
.special-record .record-text {
  font-size: 0.9rem;
  color: #6f6652;
}
.special-record .record-text strong {
  color: #1c1c1c;
}

.historico-ranking .ranking-header {
  margin-bottom: 1.5rem;
}
.historico-ranking .ranking-header h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1c1c1c;
  margin: 0;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ranking-item {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
}
.ranking-item:hover {
  border-color: #c2a44a;
}
.ranking-item.top-1 {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, #ffffff 100%);
  border-color: rgba(255, 215, 0, 0.3);
}
.ranking-item.top-2 {
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.1) 0%, #ffffff 100%);
  border-color: rgba(192, 192, 192, 0.3);
}
.ranking-item.top-3 {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.1) 0%, #ffffff 100%);
  border-color: rgba(205, 127, 50, 0.3);
}

.ranking-position {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eeeeea;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  color: #6f6652;
  flex-shrink: 0;
}

.ranking-avatar {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c2a44a, #b3943f);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  color: #f6f6f3;
  flex-shrink: 0;
}

.ranking-info {
  flex: 1;
  min-width: 0;
}
.ranking-info .ranking-name {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: #1c1c1c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ranking-info .ranking-secondary {
  display: block;
  font-size: 0.8rem;
  color: #6f6652;
  margin-top: 0.15rem;
}

.ranking-value {
  text-align: right;
  flex-shrink: 0;
}
.ranking-value .value-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #c2a44a;
  line-height: 1;
}
.ranking-value .value-label {
  display: block;
  font-size: 0.75rem;
  color: #6f6652;
  margin-top: 0.25rem;
}

.historico-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}
.historico-empty .empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}
.historico-empty .empty-text {
  font-size: 1rem;
  color: #6f6652;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.animate-on-scroll {
  opacity: 0;
  transform: translateX(-24px);
  will-change: opacity, transform;
}

.animate-on-scroll.in-view {
  animation: fade-in 0.6s ease both;
}

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    animation: none !important;
    transition: none !important;
  }
}
/* Animación escalonada para el bloque .titulo */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Asegura estado inicial de las líneas del título cuando se usa animate-on-scroll en el contenedor */
.titulo.animate-on-scroll > * {
  opacity: 0;
  transform: translateY(12px);
  will-change: opacity, transform;
}

/* Run title animation immediately on page load (no scroll required) */
.titulo > * {
  opacity: 0;
  transform: translateY(12px);
  will-change: opacity, transform;
}

/* Play the animations on load */
.titulo > h1 {
  animation: fade-in-up 1s ease both;
  animation-delay: 0.3s;
}

.titulo > h2 {
  animation: fade-in-up 1s ease both;
  animation-delay: 0.9s;
}

.titulo > * {
  animation: fade-in-up 1s ease both;
  animation-delay: 0.9s;
}

/* Cuando el contenedor recibe .in-view, aparecen escalonadas */
.titulo.animate-on-scroll.in-view > h1 {
  animation: fade-in-up 1s ease both;
  animation-delay: 0.3s;
}

.titulo.animate-on-scroll.in-view > h2 {
  animation: fade-in-up 1s ease both;
  animation-delay: 0.9s;
}

.titulo.animate-on-scroll.in-view > * {
  animation: fade-in-up 1s ease both;
  animation-delay: 1.5s;
}

@media (prefers-reduced-motion: reduce) {
  .titulo.animate-on-scroll > * {
    animation: none !important;
    transition: none !important;
  }
  .titulo > * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
/* Slide-in animation for individual cards inside .x2grid */
.x2grid .card {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.9, 0.3, 1), transform 0.9s cubic-bezier(0.2, 0.9, 0.3, 1);
  will-change: opacity, transform;
}

.x2grid .card.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered transition delays so cards appear sequentially when multiple are visible */
.x2grid .card:nth-child(1) {
  transition-delay: 0.2s;
}

.x2grid .card:nth-child(2) {
  transition-delay: 0.2s;
}

.x2grid .card:nth-child(3) {
  transition-delay: 0.2s;
}

.x2grid .card:nth-child(4) {
  transition-delay: 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  .x2grid .card {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
@keyframes zoom-in {
  from {
    opacity: 1;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* Rebote con cambio a un amarillo más claro durante el aumento */
@keyframes bounce-highlight {
  0% {
    transform: scale(1);
    background-color: var(--btn-bg, #c2a44a);
  }
  40% {
    transform: scale(1.12);
    background-color: var(--btn-bg-highlight, #dbbd61);
  }
  70% {
    transform: scale(0.98);
    background-color: var(--btn-bg-highlight, #dbbd61);
  }
  100% {
    transform: scale(1);
    background-color: var(--btn-bg, #c2a44a);
  }
}
/* Animación aplicada al botón CTA: aparición + rebote/resaltado */
.zoom-in {
  animation: zoom-in 2s cubic-bezier(0.2, 0.9, 0.3, 1) 1.8s both, bounce-highlight 2s cubic-bezier(0.34, 1.56, 0.64, 1) 1.8s both;
  will-change: opacity, transform, background-color;
}

@media (prefers-reduced-motion: reduce) {
  .boton .btn-discord,
  .zoom-in {
    animation: none !important;
    transition: none !important;
  }
}
.left-scroll {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 2s cubic-bezier(0.2, 0.9, 0.3, 1), transform 1.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}

/* Right-side initial and in-view states */
.right-scroll {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 2s cubic-bezier(0.2, 0.9, 0.3, 1), transform 1.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}

/* Center card (fade-up) */
.float-container .center,
.center {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 3s cubic-bezier(0.2, 0.9, 0.3, 1), transform 1.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}

/* When intersection observer adds .in-view */
.left-scroll.in-view {
  opacity: 1;
  transform: translateX(0);
}

.right-scroll.in-view {
  opacity: 1;
  transform: translateX(0);
}

.center.in-view,
.float-container .center.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .left-scroll,
  .right-scroll,
  .center,
  .float-container .center {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
/* Ensure header has explicit translateY base so it animates smoothly when menu toggles */
.header {
  transform: none;
  transition: top 0.32s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.2s ease;
}

/*# sourceMappingURL=styles.css.map */
