/* ======================= GENERAL & VARIABLES ======================= */
:root {
    --primary-dark-bg: #0a192f;
    --secondary-dark-bg: #112240;
    --light-text: #ccd6f6;
    --medium-text: #8892b0;
    --accent-color: #e83e8c; /* Un rosa/rojo vibrante del PDF */
    --accent-hover: #ff66b3;
    --card-bg: rgba(23, 42, 69, 0.7);
    --border-color: #233554;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    letter-spacing: 1px;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary-dark-bg);
    color: var(--light-text);
    font-family: var(--font-family);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3, h4 {
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

h2 i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--medium-text);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

ul {
    list-style: none;
}

.titulo-goal {
  font-family: 'Poppins', sans-serif;
  font-size: 60px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  margin: 0.5em 0 0.2em 0;
  line-height: 1.1;
  font-weight: 700;
}

.titulo-goal .rojo {
    background-image: linear-gradient(to top, #ff0038 0%, #ff466f 36%, #ffb2bd 100%);
    -webkit-background-clip: text;
    background-clip: text; /* For older browsers */
    -webkit-text-fill-color: transparent;
    color: transparent; /* For older browsers */
    filter: brightness(1.15);
}

.titulo-goal .amarillo {
    background-image: linear-gradient(to top, #ff5a32 0%,  #ff8162 38%, #ffcba3 100%);
    -webkit-background-clip: text;
    background-clip: text; /* For older browsers */
    -webkit-text-fill-color: transparent;
    color: transparent; /* For older browsers */
    filter: brightness(1.15);
}

/* ======================= HEADER / NAVEGACIÓN ======================= */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    transition: top 0.3s;
}

#main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
}

.logo p {
    margin: 0 0 0 15px;
    color: rgb(140, 127, 255);
    font-size: 28px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--light-text);
    font-weight: 400;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.lang-switcher {
    background-color: var(--accent-color);
    color: #fff;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-links a.lang-switcher::after {
    display: none;
}

.nav-links a.lang-switcher:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* ======================= EFECTO PARALLAX ======================= */
.parallax-section {
    position: relative;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    height: 50vh;
}

.parallax-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.1); /* Superposición oscura */
}

/* ======================= HERO SECTION ======================= */
#hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content {
    z-index: 2;
    color: #fff;
}

.hero-logo {
    max-width: 250px;
    margin-bottom: 1rem;
}

#hero .subtitle {
    font-size: 1.5rem;
    color: var(--light-text);
    font-weight: 300;
}

/* ======================= SECCIONES DE CONTENIDO ======================= */
.content-section {
    padding: 80px 0;
}

.dark-section {
    background-color: var(--secondary-dark-bg);
}

.phases-container {
    display: flex;
    justify-content: space-around;
    gap: 1.5rem;
    margin-top: 3rem;
}

.phase-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    flex: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phase-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
}

.phase-card h3 {
    color: var(--accent-color);
}

/* ======================= SOSTENIBILIDAD ======================= */
.oracle-box {
    background: var(--card-bg);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

/* ======================= LISTA DIVISIONES ======================= */
.lista-divisiones {
  list-style: none;
  padding: 0 0 32px 0;
  margin: 40px 0 40px 0;
  max-width: 700px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

.lista-divisiones li {
  position: relative;
  background: rgba(17,34,64,0.85);
  border-radius: 14px;
  padding: 18px 32px 18px 100px;
  color: var(--light-text);
  font-size: 1em;
  font-family: var(--font-family);
  box-shadow: 0 0 24px 8px var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  transition:
    background 0.2s,
    box-shadow 0.3s,
    font-size 0.25s,
    transform 0.25s;
  animation: brillo-pulse-li 2s infinite alternate;
}

.lista-divisiones li i {
  position: absolute;
  left: 5px;
  font-size: 1em;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-color) 0%, #3498db 100%);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px 8px var(--accent-color);
  animation: brillo-pulse 2s infinite alternate;
  transition:
    background 0.3s,
    box-shadow 0.3s,
    width 0.25s,
    height 0.25s;
}

@keyframes brillo-pulse-li {
  0% {
    box-shadow: 0 0 16px 4px var(--accent-color), 0 0 0 0 var(--accent-color);
  }
  100% {
    box-shadow: 0 0 36px 16px var(--accent-color), 0 0 0 0 var(--accent-color);
  }
}

.lista-divisiones li:hover {
  box-shadow: 0 4px 64px 0 var(--accent-hover);
  font-size: 1.03em;
  transform: scale(1.01);
  animation: none; /* Detiene el pulso en hover para efecto inmediato */
}

.lista-divisiones li i {
  position: absolute;
  left: 22px;
  font-size: 1.3em;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-color) 0%, #3498db 100%);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Sin sombra ni animación */
  box-shadow: none;
  transition:
    background 0.3s,
    width 0.25s,
    height 0.25s;
}

.lista-divisiones li:hover i {
  background: linear-gradient(135deg, var(--accent-hover) 0%, #3498db 100%);
  width: 40px;
  height: 40px;
}

/* ======================= Lista entrenador ======================= */
.lista-entrenador {
  list-style: none;
  padding: 0;
  margin: 28px auto 28px auto;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

/* ======================= TABLA ======================= */
.tabla-niveles {
  width: 100%;
  max-width: 600px;
  margin: 36px auto 48px auto;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(17,34,64,0.92);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 32px 0 var(--accent-color);
  font-family: var(--font-family);
}

.tabla-niveles th,
.tabla-niveles td {
  padding: 16px 18px;
  text-align: center;
}

.tabla-niveles th {
  background: var(--accent-color);
  color: #fff;
  font-weight: 600;
  font-size: 1.08em;
  letter-spacing: 1px;
  border-bottom: 2px solid #233554;
}

.tabla-niveles tbody tr {
  transition: background 0.2s;
}

.tabla-niveles tbody tr:nth-child(even) {
  background: rgba(23,42,69,0.7);
}

.tabla-niveles tbody tr:nth-child(odd) {
  background: rgba(17,34,64,0.85);
}

.tabla-niveles td {
  color: var(--light-text);
  font-size: 1em;
  border-bottom: 1px solid #233554;
}

.tabla-niveles tbody tr:last-child td {
  border-bottom: none;
}

.tabla-niveles tbody tr:hover {
  background: rgba(232,62,140,0.10);
}

/* ======================= lista penaltys ======================= */
.lista-penaltis {
  list-style: none;
  padding: 0;
  margin: 32px auto 32px auto;
  max-width: 650px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.lista-penaltis li {
  color: var(--light-text);
  font-size: 1em;
  font-family: var(--font-family);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px 14px 48px;
  width: 100%;
  max-width: 540px;
  position: relative;
}

/* ======================= LISTA EQUIPAMIENTO   ======================= */
.lista-equipamiento {
  list-style: none;
  padding: 0;
  margin: 32px auto 32px auto;
  max-width: 650px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.lista-equipamiento li {
 color: var(--light-text);
  font-size: 1em;
  font-family: var(--font-family);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px 14px 48px;
  width: 100%;
  max-width: 540px;
  position: relative;
}

/* ======================= FOOTER ======================= */
#main-footer {
    background: var(--secondary-dark-bg);
    padding: 2rem 0;
    text-align: center;
}
.social-links {
    margin-top: 1rem;
}
.social-links a {
    font-size: 1.5rem;
    margin: 0 0.75rem;
}

/* ======================= ANIMACIONES DE SCROLL ======================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======================= RESPONSIVE DESIGN ======================= */
@media (max-width: 768px) {
    h2 { font-size: 2rem; }
    .nav-links { display: none; } /* Para un futuro menú hamburguesa */

    .roadmap::before { left: 30px; }
    .roadmap-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .roadmap-item:nth-child(even) { left: 0; }
    .roadmap-item:nth-child(odd) { text-align: left; }
    .roadmap-item::after { left: 18px; }

    .token-distribution { flex-direction: column; }
    .p2e-methods { flex-direction: column; }
}

/* Estilos para la Hero Section de la Guía */
#hero-guia .hero-logo {
    max-width: 200px; /* Un poco más pequeño para diferenciar */
}

/* Estilo para la conversión principal en la sección de economía */
.main-conversion {
    text-align: center;
    margin: 2rem 0;
}
.main-conversion span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-text);
    background: var(--accent-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    display: inline-block;
}


/* Estilos para la Tabla de Recompensas de Penaltis */
.rewards-table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
    background-color: var(--primary-dark-bg);
}

.rewards-table th, .rewards-table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.rewards-table thead th {
    background-color: var(--accent-color);
    color: var(--primary-dark-bg);
    font-weight: 700;
}

.rewards-table tbody tr:hover {
    background-color: var(--border-color);
}

.rewards-table td:first-child {
    font-weight: 600;
    color: var(--light-text);
}

/* Estilos para la Rejilla de Equipamiento */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.equipment-item {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}
.equipment-item h4 i {
    margin-right: 0.5rem;
}

.equipment-item ul {
    margin-top: 1rem;
}
.equipment-item li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

/* Puntos de colores para equipamiento */
.dot.naranja { background-color: #e67e22; }
.dot.verde { background-color: #2ecc71; }
.dot.plata { background-color: #bdc3c7; }
.dot.dorada { background-color: #f1c40f; }


/* Estilos para las Taquillas (Loot Boxes) */
.lockers-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.locker-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    border-top: 4px solid;
    transition: transform 0.3s ease;
}
.locker-card:hover {
    transform: translateY(-10px);
}

.locker-header {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}
.locker-header i {
    margin-right: 0.75rem;
}

/* Colores de borde y texto para las taquillas */
.locker-card .gold { border-color: #f1c40f; color: #f1c40f; }
.locker-card .silver { border-color: #bdc3c7; color: #bdc3c7; }
.locker-card .bronze { border-color: #cd7f32; color: #cd7f32; }

.locker-card p {
    font-size: 0.9rem;
    color: var(--medium-text);
}

.level-dist {
    margin-top: 1rem;
    font-size: 0.85rem;
    line-height: 1.5;
}
.level-dist div {
    margin-bottom: 0.5rem;
}

.floating-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  background: linear-gradient(135deg, #1abc9c 0%, #00ffe7 100%);
  color: #1a1a2e;
  font-size: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px #00ffe799;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}
.floating-btn:hover {
  background: linear-gradient(135deg, #00ffe7 0%, #1abc9c 100%);
  transform: scale(1.08);
  color: #fff;
}
