/* ============================================================
   main.css — Estilos de SPK FC
   Organizado por secciones para fácil navegación
   ============================================================ */

/* ---- Variables globales ---- */
:root {
  --purple-deep: #0d0420;
  --purple-dark: #1a0835;
  --purple-mid: #2d0f5e;
  --purple-brand: #5a12b0;
  --purple-light: #7b2fff;
  --green-neon: #39ff14;
  --white: #ffffff;
  --white-dim: rgba(255, 255, 255, 0.65);
  --white-muted: rgba(255, 255, 255, 0.35);
  --max-w: 1336px;
  --nav-h: 72px;
  --transition: 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- Reset base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Barlow", sans-serif;
  font-weight: 300;
  color: var(--white);
  background: linear-gradient(to bottom, #451660, #0d0114);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-attachment: fixed;
}

/* ---- Utilidades ---- */
.inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 60px);
}

.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in.delay-1 {
  transition-delay: 0.1s;
}
.fade-in.delay-2 {
  transition-delay: 0.22s;
}
.fade-in.delay-3 {
  transition-delay: 0.34s;
}
.fade-in.delay-4 {
  transition-delay: 0.46s;
}

section {
  padding-block: clamp(60px, 8vw, 120px);
  background: transparent;
}

.section-label {
  margin-bottom: clamp(32px, 4vw, 56px);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  height: var(--nav-h);
  transition: background 0.4s;
}
nav.scrolled {
  background: rgba(13, 4, 32, 0.92);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo .logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}
.logo-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.nav-logo .logo-text {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 40px;
}
.nav-links a {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color 0.25s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}
.nav-links a.active {
  padding-bottom: 2px;
  border-bottom: 2px solid var(--purple-light);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border: none;
  background: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: var(--transition);
}

.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  right: 0;
  left: 0;
  z-index: 99;
  display: none;
  flex-direction: column;
  gap: 24px;
  padding: 32px 24px;
  background: rgba(13, 4, 32, 0.97);
  backdrop-filter: blur(20px);
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 22px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-video-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      ellipse 80% 60% at 20% 50%,
      rgba(90, 18, 176, 0.35) 0%,
      transparent 70%
    ),
    linear-gradient(
      160deg,
      rgba(45, 15, 94, 0.28) 0%,
      rgba(13, 4, 32, 0.45) 60%
    );
}
.hero-video-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    transparent 60%,
    rgba(13, 1, 20, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
}
.hero-eyebrow {
  margin-bottom: 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(13px, 1.2vw, 15px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white-dim);
}
.hero-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(80px, 11vw, 180px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 0 60px rgba(123, 47, 255, 0.6);
}
.hero-sub {
  max-width: 380px;
  margin-top: 20px;
  margin-inline: auto;
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.6;
  color: var(--white-dim);
}
.hero-sub strong {
  color: var(--white);
  font-weight: 700;
}

/* ============================================================
   MATCHES
   ============================================================ */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* Skeleton loader */
.match-skeleton {
  border-radius: 6px;
  background: #2d0a41;
  overflow: hidden;
  min-height: 80px;
}
.skeleton-line {
  height: 12px;
  border-radius: 4px;
  margin: 12px 16px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 25%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.04) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.skeleton-line.short {
  width: 40%;
}
.skeleton-line.tall {
  height: 24px;
  width: 70%;
  margin-top: 16px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.matches-error {
  text-align: center;
  padding: 24px;
  color: var(--white-muted);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.match-card {
  overflow: hidden;
  border-radius: 6px;
  background: #2d0a41;
}
.match-event {
  padding: 10px 16px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-dim);
}
.match-date {
  padding: 4px 16px 8px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--white-muted);
}

.match-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.match-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

.match-team .score {
  font-family: "Bebas Neue", sans-serif;
  font-size: 32px;
  padding-inline: 20px;
}
.match-team .score.win {
  color: var(--purple-brand);
}
.match-team .score.loss {
  color: rgba(255, 255, 255, 0.45);
}

.match-divider {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.match-divider span {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.match-divider .dash {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.25);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

.about-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  background: var(--purple-mid);
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(123, 47, 255, 0.4);
  border-radius: 4px;
  pointer-events: none;
}

.about-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-muted);
}
.about-label {
  margin-bottom: 20px;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.about-body {
  margin-bottom: 32px;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.75;
  color: var(--white-dim);
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border: 1px solid var(--white);
  border-radius: 2px;
  background: transparent;
  color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.btn:hover {
  background: var(--white);
  color: var(--purple-deep);
}
.btn-primary {
  border-color: var(--purple-light);
  background: var(--purple-light);
  color: var(--white);
}
.btn-primary:hover {
  border-color: #9b5fff;
  background: #9b5fff;
  color: var(--white);
}
.btn-sm {
  padding: 9px 20px;
  font-size: 11px;
}

/* ============================================================
   PARTNERS — marquee
   ============================================================ */
.partners {
  overflow: hidden;
}
.partners .section-label {
  color: var(--white-dim);
}
.partners-inner {
  overflow: hidden;
  padding-inline: 0;
}
.partners-title {
  padding-inline: clamp(20px, 4vw, 60px);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-slide {
  display: flex;
  align-items: center;
  gap: clamp(48px, 6vw, 96px);
  padding-inline: clamp(24px, 3vw, 48px);
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: clamp(130px, 11vw, 170px);
  height: clamp(42px, 4vw, 56px);
  opacity: 0.55;
  transition: opacity 0.3s;
}
.partner-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.partner-logo:hover {
  opacity: 1;
}

/* ============================================================
   TEAMS
   ============================================================ */
.team-tabs {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-bottom: 40px;
}
.tab-btn {
  padding: 10px 30px;
  border: none;
  background: var(--purple-mid);
  color: var(--white-dim);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s;
}
.tab-btn.active,
.tab-btn:hover {
  background: var(--white);
  color: var(--purple-deep);
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.roster-hidden {
  display: none;
}

.player-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition:
    border-color 0.25s,
    background 0.25s;
}
.player-card:hover {
  border-color: rgba(123, 47, 255, 0.6);
  background: rgba(123, 47, 255, 0.08);
}

.player-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--purple-mid);
}
.player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.player-avatar-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: "Bebas Neue", sans-serif;
  font-size: 18px;
  color: var(--white-muted);
}

.player-info {
  flex: 1;
  min-width: 0;
}
.player-name {
  overflow: hidden;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.player-role {
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-muted);
}

/* ============================================================
   DISCORD CTA
   ============================================================ */
.discord-cta {
  padding-block: 0;
}
.discord-cta .inner {
  max-width: 1366px;
}

.discord-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 128px;
  padding-inline: clamp(24px, 2.2vw, 40px);
  padding-block: clamp(22px, 2.5vw, 30px);
  background: linear-gradient(to right, #4a0c6d, #381f43);
  border-radius: 0 16px 16px 0;
}
.discord-text {
  text-align: left;
}
.discord-text h3 {
  margin-bottom: 6px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.92;
  text-transform: uppercase;
  color: #ffffff;
}
.discord-text p {
  max-width: 520px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  color: #f3f3f3;
}

.discord-inner .btn {
  min-width: 170px;
  min-height: 48px;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 2px;
  background: #efefef;
  color: #1f1230;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
}
.discord-inner .btn:hover {
  background: #ffffff;
  color: #1f1230;
}

/* ============================================================
   NEWS
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(343px, 1fr));
  gap: 24px;
  max-width: 1322px;
  margin-inline: auto;
}

.news-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  background: #09050f;
  cursor: pointer;
  transition:
    transform 0.3s,
    border-color 0.3s;
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(123, 47, 255, 0.4);
}

.news-thumb {
  position: relative;
  height: 440px;
  overflow: hidden;
  background: #09050f;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-thumb-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--white-muted);
}

.news-body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 130px 22px 24px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.98) 0%,
    rgba(0, 0, 0, 0.72) 40%,
    rgba(0, 0, 0, 0) 100%
  );
}
.news-tag {
  display: inline-block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.news-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

/* ============================================================
   CLOSING
   ============================================================ */
.closing {
  padding-block: clamp(80px, 10vw, 160px);
  text-align: center;
}
.closing h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(36px, 6vw, 88px);
  letter-spacing: 0.06em;
  line-height: 1.05;
  text-transform: uppercase;
}
.closing h2 em {
  font-style: normal;
  color: #ac4dff;
  text-shadow: 0 0 30px rgba(172, 77, 255, 0.45);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-block: 56px 32px;
  background: transparent;
}

.footer-grid {
  display: grid;
  grid-template-columns: 180px repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-col h4 {
  margin-bottom: 16px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-dim);
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul a {
  font-size: 13px;
  color: var(--white-muted);
  transition: color 0.2s;
}
.footer-col ul a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.footer-copy {
  font-size: 12px;
  color: var(--white-muted);
}

.social-links {
  display: flex;
  gap: 16px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white-dim);
  font-size: 13px;
  transition:
    background 0.25s,
    color 0.25s;
}
.social-links a:hover {
  background: var(--purple-light);
  color: var(--white);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }

  .discord-inner {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 12px;
  }
  .discord-text p {
    max-width: none;
    font-size: 20px;
  }
  .discord-inner .btn {
    min-width: 160px;
    min-height: 46px;
    font-size: 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .players-grid {
    grid-template-columns: 1fr 1fr;
  }
}
