/* ====================================
   KTNH ESPORTS - Official Colors
   Púrpura #8D3DF6 + Cyan #24D0F5
   ==================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colores del logo KTNH */
  --ktnh-purple: #8d3df6; /* Púrpura vibrante */
  --ktnh-cyan: #24d0f5; /* Cyan brillante */
  --ktnh-black: #09080b; /* Negro principal */
  --ktnh-dark-blue: #1f1c4a; /* Azul oscuro */
  --ktnh-purple-mid: #544f93; /* Púrpura medio */

  /* Variantes */
  --primary-color: var(--ktnh-purple);
  --secondary-color: var(--ktnh-cyan);
  --dark-navy: #0a1428;
  --darker-navy: #050b16;
  --white: #ffffff;
  --gray: #8b92a0;
  --light-gray: #c4c9d4;

  /* Gradientes KTNH */
  --gradient-primary: linear-gradient(135deg, #8d3df6 0%, #24d0f5 100%);
  --gradient-purple: linear-gradient(135deg, #544f93 0%, #8d3df6 100%);
  --gradient-dark: linear-gradient(180deg, #09080b 0%, #1f1c4a 100%);

  /* Sombras */
  --shadow-purple: 0 10px 40px rgba(141, 61, 246, 0.3);
  --shadow-cyan: 0 10px 40px rgba(36, 208, 245, 0.3);
  --shadow-card: 0 5px 20px rgba(0, 0, 0, 0.3);

  /* Tipografía */
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "Barlow", sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: var(--ktnh-black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

/* ====================================
   HEADER
   ==================================== */

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(9, 8, 11, 0.95);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(141, 61, 246, 0.2);
  transition: all 0.3s ease;
}

.main-header.scrolled {
  background: rgba(9, 8, 11, 0.98);
  box-shadow: 0 5px 30px rgba(141, 61, 246, 0.2);
}

.header-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  height: 45px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(141, 61, 246, 0.6));
}

.logo-text {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 2px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-link {
  color: var(--light-gray);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 0;
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ktnh-purple);
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-login {
  padding: 10px 30px;
  border: 2px solid var(--ktnh-purple);
  color: var(--ktnh-purple);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-login::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-login:hover {
  color: var(--white);
  box-shadow: var(--shadow-purple);
  transform: translateY(-2px);
  border-color: var(--ktnh-cyan);
}

.btn-login:hover::before {
  left: 0;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--ktnh-purple);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Mobile menu active state */
.main-nav.mobile-active {
  display: block !important;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background: rgba(9, 8, 11, 0.98);
  padding: 20px 0;
  z-index: 999;
  border-top: 1px solid rgba(141, 61, 246, 0.2);
}

.main-nav.mobile-active .nav-list {
  flex-direction: column;
  gap: 0;
}

.main-nav.mobile-active .nav-item {
  width: 100%;
  text-align: center;
  border-bottom: 1px solid rgba(141, 61, 246, 0.1);
}

.main-nav.mobile-active .nav-link {
  display: block;
  padding: 15px 20px;
}

/* ====================================
   HERO SECTION
   ==================================== */

.hero {
  position: relative;
  min-height: 100vh;
  background: var(--gradient-dark);
  padding-top: 80px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0; /* Start hidden */
  transition: opacity 1s ease-in-out;
}

.hero-video.loaded {
  opacity: 0.6; /* Final opacity once loaded */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(9, 8, 11, 0.7),
    rgba(9, 8, 11, 0.9)
  );
  z-index: 1;
}

/* Líneas diagonales con colores KTNH */
.diagonal-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.diagonal-line {
  position: absolute;
  width: 150%;
  height: 200px;
  transform: rotate(-15deg);
  animation: diagonalMove 20s ease-in-out infinite;
}

.diagonal-line.line-1 {
  top: 10%;
  left: -20%;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(141, 61, 246, 0.25) 50%,
    transparent 100%
  );
  animation-delay: 0s;
}

.diagonal-line.line-2 {
  top: 40%;
  left: -30%;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(36, 208, 245, 0.2) 50%,
    transparent 100%
  );
  opacity: 1;
  animation-delay: 3s;
}

.diagonal-line.line-3 {
  bottom: 10%;
  right: -30%;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(141, 61, 246, 0.2) 50%,
    transparent 100%
  );
  opacity: 0.8;
  animation-delay: 6s;
}

@keyframes diagonalMove {
  0%,
  100% {
    transform: rotate(-15deg) translateX(0);
  }
  50% {
    transform: rotate(-15deg) translateX(50px);
  }
}

/* Badge hexagonal */
.hero-badge {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.badge-hexagon {
  position: relative;
  width: 200px;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-hexagon::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  opacity: 0.15;
  animation: hexagonPulse 3s ease-in-out infinite;
}

@keyframes hexagonPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.15;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.25;
  }
}

.badge-logo {
  width: 150px;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 30px rgba(141, 61, 246, 0.8));
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 60px 0 40px;
  margin-top: 200px;
}

@media (max-width: 768px) {
  .hero-content {
    margin-top: 280px;
    padding: 40px 0 30px;
  }
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.title-brand {
  font-family: "Orbitron", sans-serif;
  font-size: 60px;
  color: var(--ktnh-purple);
  letter-spacing: 6px;
  font-weight: 800;
  text-transform: uppercase;
  animation: fadeInDown 1s ease-out;
}

.title-main {
  font-family: var(--font-display);
  font-size: 120px;
  color: var(--white);
  letter-spacing: 8px;
  font-weight: 700;
  text-transform: uppercase;
  font-style: italic;
  text-shadow: 0 5px 30px rgba(255, 255, 255, 0.2);
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.title-highlight {
  font-family: var(--font-display);
  font-size: 120px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 8px;
  font-weight: 700;
  text-transform: uppercase;
  font-style: italic;
  filter: drop-shadow(0 0 40px rgba(141, 61, 246, 0.6));
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====================================
   TEAM SHOWCASE
   ==================================== */

.team-showcase {
  position: relative;
  z-index: 3;
  padding: 60px 0 80px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.team-card {
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: cardFadeIn 0.6s ease-out forwards;
}

.team-card:nth-child(1) {
  animation-delay: 0.1s;
}
.team-card:nth-child(2) {
  animation-delay: 0.2s;
}
.team-card:nth-child(3) {
  animation-delay: 0.3s;
}
.team-card:nth-child(4) {
  animation-delay: 0.4s;
}
.team-card:nth-child(5) {
  animation-delay: 0.5s;
}
.team-card:nth-child(6) {
  animation-delay: 0.6s;
}
.team-card:nth-child(7) {
  animation-delay: 0.7s;
}
.team-card:nth-child(8) {
  animation-delay: 0.8s;
}

@keyframes cardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.team-card-inner {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4;
  border: 2px solid transparent;
  background: linear-gradient(var(--ktnh-black), var(--ktnh-black)) padding-box,
    var(--gradient-primary) border-box;
  transition: all 0.4s ease;
  cursor: pointer;
}

.team-card-inner:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-purple);
  border-width: 3px;
}

.team-card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.team-card-inner img.error {
  display: none !important;
}

/* Placeholder for missing player images */
.player-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(141, 61, 246, 0.15), rgba(36, 208, 245, 0.1));
  color: var(--ktnh-purple);
  transition: all 0.4s ease;
}

.player-image-placeholder i {
  font-size: 5rem;
  opacity: 0.25;
  filter: drop-shadow(0 0 15px rgba(141, 61, 246, 0.4));
  transition: all 0.4s ease;
}

.team-card-inner:hover .player-image-placeholder i {
  transform: scale(1.15);
  opacity: 0.4;
}

.team-card-inner:hover img {
  transform: scale(1.1);
}

.team-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(9, 8, 11, 0.95), transparent);
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.team-card-inner:hover .team-overlay {
  transform: translateY(0);
}

.team-info h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.team-role {
  font-size: 13px;
  color: var(--ktnh-cyan);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ====================================
   NEWS SECTION
   ==================================== */

.news-section {
  position: relative;
  padding: 100px 0;
  background: var(--darker-navy);
}

.news-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to bottom, var(--ktnh-black), var(--darker-navy));
}

.section-title {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 60px;
  position: relative;
  display: inline-block;
}

.title-decoration {
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 120px;
  height: 5px;
  background: var(--gradient-primary);
  border-radius: 3px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  position: relative;
  z-index: 2;
}

.news-card {
  background: var(--ktnh-dark-blue);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 2px solid transparent;
  opacity: 0;
  transform: translateY(30px);
}

.news-card:nth-child(1) {
  animation: cardFadeIn 0.6s ease-out 0.2s forwards;
}
.news-card:nth-child(2) {
  animation: cardFadeIn 0.6s ease-out 0.4s forwards;
}
.news-card:nth-child(3) {
  animation: cardFadeIn 0.6s ease-out 0.6s forwards;
}

.news-card:hover {
  transform: translateY(-15px);
  border-color: var(--ktnh-purple);
  box-shadow: var(--shadow-purple);
}

.news-card-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.15);
}

.news-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(9, 8, 11, 0.6), transparent 60%);
}

.news-badge {
  position: absolute;
  bottom: 25px;
  left: 25px;
  background: var(--gradient-primary);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 5px 15px rgba(141, 61, 246, 0.5);
}

.news-card-content {
  padding: 30px 25px;
}

.news-card-content h3 {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: 1px;
  line-height: 1.2;
}

.news-card-content p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.6;
}

/* ====================================
   CYBERPUNK ABOUT PAGE
   ==================================== */

/* Hero Section */
.cp-hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ktnh-black);
}

.cp-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(141, 61, 246, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(36, 208, 245, 0.15) 0%,
      transparent 50%
    );
  z-index: 1;
}

.cp-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cp-glitch-title {
  font-family: var(--font-display);
  font-size: 120px;
  line-height: 0.9;
  color: var(--white);
  position: relative;
  animation: glitch-skew 3s infinite linear alternate-reverse;
}

.cp-glitch-title::before,
.cp-glitch-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ====================================
   UTILITY CLASSES (Refactoring)
   ==================================== */

.news-section-padding {
  padding-top: 50px;
  background: var(--ktnh-black);
}

.text-center {
  text-align: center;
}

.news-link {
  text-decoration: none;
  display: block;
}

.news-placeholder {
  width: 100%;
  height: 100%;
  background: var(--dark-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-placeholder-icon {
  font-size: 3rem;
  color: var(--ktnh-purple-mid);
}

.news-date {
  color: var(--ktnh-cyan);
  font-size: 0.85rem;
  margin-bottom: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news-date-icon {
  margin-right: 5px;
}

.news-btn-wrapper {
  text-align: center;
  margin-top: 50px;
}

.news-btn-link {
  display: inline-block;
  padding: 15px 40px;
}

.news-btn-icon {
  margin-left: 10px;
}

.cp-glitch-title::before {
  left: 2px;
  text-shadow: -2px 0 var(--ktnh-purple);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.cp-glitch-title::after {
  left: -2px;
  text-shadow: -2px 0 var(--ktnh-cyan);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

.cp-subtitle {
  font-size: 24px;
  letter-spacing: 8px;
  margin-top: 20px;
  text-transform: uppercase;
  color: var(--light-gray);
}

.cp-highlight {
  color: var(--ktnh-cyan);
  font-weight: 700;
}

.cp-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  opacity: 0.7;
}

.cp-scroll-indicator span {
  font-size: 12px;
  letter-spacing: 4px;
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--ktnh-cyan), transparent);
}

/* Story Section */
.cp-story-section {
  padding: 150px 0;
  background: var(--darker-navy);
  position: relative;
}

.cp-story-block {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-bottom: 150px;
}

.cp-story-block.reverse {
  flex-direction: row-reverse;
}

.cp-story-text {
  flex: 1;
}

.cp-story-visual {
  flex: 1;
  position: relative;
}

.cp-section-title {
  font-family: var(--font-display);
  font-size: 64px;
  margin-bottom: 30px;
  color: var(--white);
  line-height: 1;
}

.cp-section-title.center {
  text-align: center;
  margin-bottom: 80px;
}

.cp-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--light-gray);
}

/* Image Frame */
.cp-image-frame {
  position: relative;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cp-img {
  width: 100%;
  display: block;
  filter: grayscale(100%) contrast(1.2);
  transition: all 0.5s ease;
}

.cp-image-frame:hover .cp-img {
  filter: grayscale(0%) contrast(1);
}

.cp-frame-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--ktnh-cyan);
  transition: all 0.3s ease;
}

.top-left {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
}
.bottom-right {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
}
.top-right {
  top: -2px;
  right: -2px;
  border-left: none;
  border-bottom: none;
}
.bottom-left {
  bottom: -2px;
  left: -2px;
  border-right: none;
  border-top: none;
}

.cp-image-frame:hover .cp-frame-corner {
  width: 100%;
  height: 100%;
  border-color: var(--ktnh-purple);
}

/* Stats Bar */
.cp-stats-bar {
  display: flex;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0 auto 150px;
  max-width: 1000px;
}

.cp-stat {
  text-align: center;
}

.cp-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 56px;
  color: var(--ktnh-cyan);
  line-height: 1;
}

.cp-stat-label {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
}

/* Info Cards */
.cp-info-card {
  background: rgba(31, 28, 74, 0.3);
  border-left: 4px solid var(--ktnh-purple);
  padding: 30px;
  transition: transform 0.3s ease;
}

.cp-info-card:hover {
  transform: translateX(10px);
  background: rgba(31, 28, 74, 0.5);
}

.cp-icon {
  font-size: 32px;
  margin-bottom: 15px;
}

.cp-info-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 10px;
  color: var(--white);
}

.cp-info-card p {
  font-size: 16px;
  color: var(--light-gray);
  margin: 0;
}

.mt-4 {
  margin-top: 2rem;
}

/* Abstract Visual */
.cp-abstract-visual {
  height: 400px;
  background: var(--ktnh-dark-blue);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cp-circle {
  width: 200px;
  height: 200px;
  border: 2px solid var(--ktnh-purple);
  border-radius: 50%;
  position: absolute;
  animation: pulse-glow 4s infinite;
}

.cp-line {
  width: 2px;
  height: 100%;
  background: var(--ktnh-cyan);
  transform: rotate(45deg);
}

/* Values Grid */
.cp-values-section {
  padding: 100px 0;
  background: var(--ktnh-black);
}

.cp-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.cp-value-card {
  perspective: 1000px;
  height: 300px;
}

.cp-card-inner {
  height: 100%;
  background: linear-gradient(145deg, #0f0f1a, #050508);
  padding: 40px 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.cp-value-card:hover .cp-card-inner {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--ktnh-cyan);
  box-shadow: 0 10px 30px rgba(36, 208, 245, 0.1);
}

.cp-value-icon {
  font-size: 48px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px rgba(141, 61, 246, 0.5));
}

.cp-card-inner h4 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--white);
}

.cp-card-inner p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}

/* CTA Section */
.cp-cta-section {
  padding: 150px 0;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.cp-cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(141, 61, 246, 0.2) 0%,
    var(--ktnh-black) 70%
  );
  z-index: 1;
}

.cp-cta-content {
  position: relative;
  z-index: 2;
}

.cp-cta-title {
  font-family: var(--font-display);
  font-size: 80px;
  margin-bottom: 20px;
  color: var(--white);
}

.cp-cta-text {
  font-size: 24px;
  color: var(--light-gray);
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cp-btn-glitch {
  display: inline-block;
  padding: 20px 60px;
  background: var(--white);
  color: var(--ktnh-black);
  font-family: var(--font-display);
  font-size: 24px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cp-btn-glitch:hover {
  background: var(--ktnh-cyan);
  box-shadow: 0 0 30px var(--ktnh-cyan);
  letter-spacing: 4px;
}

/* Animations Keyframes */
@keyframes glitch-anim {
  0% {
    clip: rect(34px, 9999px, 11px, 0);
  }
  20% {
    clip: rect(68px, 9999px, 89px, 0);
  }
  40% {
    clip: rect(12px, 9999px, 56px, 0);
  }
  60% {
    clip: rect(94px, 9999px, 23px, 0);
  }
  80% {
    clip: rect(45px, 9999px, 67px, 0);
  }
  100% {
    clip: rect(5px, 9999px, 92px, 0);
  }
}

@keyframes glitch-anim2 {
  0% {
    clip: rect(14px, 9999px, 91px, 0);
  }
  20% {
    clip: rect(58px, 9999px, 29px, 0);
  }
  40% {
    clip: rect(82px, 9999px, 16px, 0);
  }
  60% {
    clip: rect(24px, 9999px, 73px, 0);
  }
  80% {
    clip: rect(65px, 9999px, 37px, 0);
  }
  100% {
    clip: rect(95px, 9999px, 42px, 0);
  }
}

@keyframes glitch-skew {
  0% {
    transform: skew(3deg);
  }
  10% {
    transform: skew(-2deg);
  }
  20% {
    transform: skew(1deg);
  }
  30% {
    transform: skew(-1deg);
  }
  40% {
    transform: skew(2deg);
  }
  50% {
    transform: skew(-3deg);
  }
  60% {
    transform: skew(1deg);
  }
  70% {
    transform: skew(-2deg);
  }
  80% {
    transform: skew(3deg);
  }
  90% {
    transform: skew(-1deg);
  }
  100% {
    transform: skew(0deg);
  }
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(141, 61, 246, 0.4);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(141, 61, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(141, 61, 246, 0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .cp-glitch-title {
    font-size: 60px;
  }
  .cp-story-block,
  .cp-story-block.reverse {
    flex-direction: column;
    gap: 40px;
  }
  .cp-values-grid {
    grid-template-columns: 1fr;
  }
  .cp-stats-bar {
    flex-direction: column;
    gap: 30px;
  }
  .cp-cta-title {
    font-size: 48px;
  }
}

/* ====================================
   FOOTER
   ==================================== */

.main-footer {
  position: relative;
  background: var(--ktnh-black);
  padding: 60px 0 30px;
  border-top: 2px solid var(--ktnh-purple);
}

.footer-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.social-link {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(141, 61, 246, 0.1);
  border: 2px solid var(--ktnh-purple);
  border-radius: 50%;
  color: var(--ktnh-purple);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transform: scale(0);
  transition: transform 0.3s ease;
  border-radius: 50%;
}

.social-link:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-purple);
  border-color: var(--ktnh-cyan);
}

.social-link:hover::before {
  transform: scale(1);
}

.social-link svg {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.social-link:hover svg {
  color: var(--white);
}

.footer-sponsors {
  display: flex;
  gap: 50px;
  align-items: center;
  flex-wrap: wrap;
}

.sponsor-logo {
  height: 45px;
  width: auto;
  opacity: 0.7;
  filter: grayscale(0.3);
  transition: all 0.3s ease;
}

.sponsor-logo:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: translateY(-5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
}

.footer-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--ktnh-purple),
    var(--ktnh-cyan),
    transparent
  );
  margin-bottom: 20px;
}

.footer-copyright {
  color: var(--gray);
  font-size: 14px;
  letter-spacing: 1px;
}

/* About Us Animations */
.text-reveal {
  opacity: 0;
  visibility: hidden; /* Ensure it's hidden */
}

.text-reveal {
  transform: none; /* Typewriter doesn't need slide up */
}

.about-card:nth-child(1) {
  animation-delay: 0.2s;
}
.about-card:nth-child(2) {
  animation-delay: 0.4s;
}

.value-item:nth-child(1) {
  animation-delay: 0.6s;
}
.value-item:nth-child(2) {
  animation-delay: 0.7s;
}
.value-item:nth-child(3) {
  animation-delay: 0.8s;
}
.value-item:nth-child(4) {
  animation-delay: 0.9s;
}

/* ====================================
   RESPONSIVE
   ==================================== */

@media (max-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .title-main,
  .title-highlight {
    font-size: 90px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .title-brand {
    font-size: 40px;
  }

  .title-main,
  .title-highlight {
    font-size: 60px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 48px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-sponsors {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .title-brand {
    font-size: 30px;
  }

  .title-main,
  .title-highlight {
    font-size: 45px;
    letter-spacing: 3px;
  }

  .hero-badge {
    top: 120px;
    transform: translateX(-50%) scale(1.2);
  }

  .badge-hexagon {
    width: 200px;
    height: 230px;
  }

  .badge-logo {
    width: 150px;
    filter: drop-shadow(0 0 25px rgba(141, 61, 246, 1)) brightness(1.2);
  }

  .btn-login {
    padding: 8px 20px;
    font-size: 12px;
  }
}

/* ====================================
   UTILIDADES
   ==================================== */

.fade-in {
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

html {
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--ktnh-black);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ktnh-purple);
}

::selection {
  background: var(--ktnh-purple);
  color: var(--white);
}

::-moz-selection {
  background: var(--ktnh-purple);
  color: var(--white);
}

/* ====================================
   TEAMS PAGE STYLES
   ==================================== */

/* Teams Hero Section */
.teams-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--darker-navy);
  overflow: hidden;
  padding-top: 80px;
}

.teams-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.teams-hero-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(141, 61, 246, 0.1) 0%,
    transparent 70%
  );
}

.teams-hero-grid {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image: linear-gradient(
      rgba(36, 208, 245, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(36, 208, 245, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(500px) rotateX(60deg);
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: perspective(500px) rotateX(60deg) translateY(0);
  }
  100% {
    transform: perspective(500px) rotateX(60deg) translateY(50px);
  }
}

.teams-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.teams-title-wrapper {
  position: relative;
  display: inline-block;
}

.teams-title-main {
  font-family: var(--font-display);
  font-size: 100px;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 2px var(--white);
  text-transform: uppercase;
  letter-spacing: 10px;
  position: relative;
  z-index: 2;
}

.teams-title-overlay {
  position: absolute;
  top: 5px;
  left: 5px;
  font-family: var(--font-display);
  font-size: 100px;
  line-height: 0.9;
  color: var(--ktnh-purple);
  text-transform: uppercase;
  letter-spacing: 10px;
  z-index: 1;
  opacity: 0.7;
  filter: blur(5px);
}

.teams-subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--ktnh-cyan);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-top: 20px;
  font-weight: 600;
}

/* Team Section Styling */
.team-section {
  margin-bottom: 100px;
  position: relative;
}

.team-section-header {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(141, 61, 246, 0.2);
  position: relative;
}

.team-section-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100px;
  height: 3px;
  background: var(--gradient-primary);
  box-shadow: 0 0 10px var(--ktnh-purple);
}

.team-name {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--white);
  margin: 0;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.team-game {
  font-family: var(--font-body);
  color: var(--ktnh-cyan);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 1.2rem;
  margin-bottom: 8px;
  padding: 5px 15px;
  background: rgba(36, 208, 245, 0.1);
  border: 1px solid rgba(36, 208, 245, 0.3);
  border-radius: 4px;
}

/* Enhanced Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
}

/* Enhanced Team Card */
.team-card-inner {
  border: 1px solid rgba(141, 61, 246, 0.3);
  background: rgba(9, 8, 11, 0.6);
  backdrop-filter: blur(5px);
}

.team-card-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(141, 61, 246, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.team-card-inner:hover::before {
  opacity: 1;
}

.team-info {
  position: relative;
  z-index: 2;
}

.team-info h3 {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.team-role {
  display: inline-block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .teams-title-main,
  .teams-title-overlay {
    font-size: 60px;
  }

  .team-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
  }

  /* Always visible player info on mobile */
  .team-card-inner .team-overlay {
    transform: translateY(0);
    padding: 12px 15px;
    background: linear-gradient(to top, rgba(9, 8, 11, 0.95), rgba(9, 8, 11, 0.6) 50%, transparent 100%);
  }

  .team-info h3 {
    font-size: 18px;
    margin-bottom: 2px;
  }

  .team-role {
    font-size: 11px;
  }
}

/* Substitutes Section */
.substitutes-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px dashed rgba(141, 61, 246, 0.2);
}

.substitutes-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--light-gray);
  margin-bottom: 25px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.8;
}

.substitutes-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.substitute-card .team-card-inner {
  border-color: rgba(141, 61, 246, 0.15);
  background: rgba(9, 8, 11, 0.4);
}

.substitute-card .team-info h3 {
  font-size: 18px;
}

.substitute-card .team-role {
  font-size: 12px;
  color: var(--gray);
  background: none;
  -webkit-text-fill-color: var(--gray);
}

/* Homepage Team Grid Override */
.homepage-team-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.homepage-team-grid .team-card-inner {
  border-width: 1px;
}

.homepage-team-grid .team-info h3 {
  font-size: 18px;
}

.homepage-team-grid .team-role {
  font-size: 12px;
}

/* ====================================
   DISCORD CTA SECTION
   ==================================== */

.discord-cta {
  position: relative;
  padding: 120px 0;
  background-image: url("../images/discord_cta_bg.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  overflow: hidden;
}

.discord-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 8, 11, 0.85);
  z-index: 1;
}

.discord-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.discord-icon-large {
  font-size: 80px;
  color: #5865f2; /* Discord Color */
  margin-bottom: 30px;
  filter: drop-shadow(0 0 30px rgba(88, 101, 242, 0.5));
  animation: float 6s ease-in-out infinite;
}

.discord-title {
  font-family: var(--font-display);
  font-size: 80px;
  color: var(--white);
  line-height: 1;
  margin-bottom: 20px;
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.discord-subtitle {
  font-size: 20px;
  color: var(--light-gray);
  margin-bottom: 50px;
  font-weight: 500;
}

.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 20px 50px;
  background: #5865f2;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 2px;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.3);
}

.discord-btn:hover {
  background: var(--white);
  color: #5865f2;
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(88, 101, 242, 0.5);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@media (max-width: 768px) {
  .discord-title {
    font-size: 50px;
  }
  .discord-subtitle {
    font-size: 16px;
  }
  .discord-btn {
    padding: 15px 30px;
    font-size: 20px;
  }
}

/* ====================================
   LOGIN PAGE STYLES
   ==================================== */

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ktnh-black);
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(141, 61, 246, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(36, 208, 245, 0.1) 0%,
      transparent 50%
    );
  z-index: 1;
}

.login-box {
  position: relative;
  z-index: 2;
  background: rgba(10, 20, 40, 0.8);
  backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 15px;
  width: 100%;
  max-width: 400px;
  border: 1px solid rgba(141, 61, 246, 0.3);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  animation: fadeInDown 0.8s ease-out;
}

.login-title {
  font-family: var(--font-display);
  font-size: 48px;
  text-align: center;
  margin-bottom: 30px;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--gray);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(141, 61, 246, 0.2);
  border-radius: 6px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--ktnh-cyan);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(36, 208, 245, 0.2);
}

.login-box .btn-primary {
  width: 100%;
  padding: 12px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 6px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.login-box .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(141, 61, 246, 0.4);
}

/* ====================================
   FLOATING SOCIAL BUTTONS
   ==================================== */

.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: float 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.floating-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.floating-btn:hover::before {
    opacity: 1;
}

.floating-btn.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    animation-delay: 0s;
}

.floating-btn.discord {
    background: linear-gradient(135deg, #5865F2, #404EED);
    animation-delay: 0.5s;
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.floating-btn.whatsapp:hover {
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

.floating-btn.discord:hover {
    box-shadow: 0 12px 32px rgba(88, 101, 242, 0.5);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Pulse animation on hover */
.floating-btn:hover {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

