/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0b0b12;
  color: #e0e0ff;
  line-height: 1.6;
  padding: 20px;
}

/* ENCABEZADO */
header {
  text-align: center;
  margin-bottom: 40px;
}

header h1 {
  font-size: 2.5em;
  color: #6e00ff;
  text-shadow: 0 0 10px #6e00ff;
}

header p {
  color: #999;
  margin-top: 10px;
}

nav {
  margin-top: 20px;
}

nav a {
  color: #00d9ff;
  margin: 0 10px;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #ff00d4;
  text-shadow: 0 0 5px #ff00d4;
}

/* PRINCIPAL */
main {
  max-width: 800px;
  margin: 0 auto;
  background-color: #141421;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 20px #181834;
}

main h2 {
  color: #00d9ff;
  margin-bottom: 20px;
}

main h3 {
  color: #ff00d4;
  margin-top: 20px;
}

main p {
  margin-bottom: 15px;
}

/* ARTÍCULOS */
article {
  background-color: #1b1b2f;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #00d9ff;
}

article h3 a {
  color: #6e00ff;
  text-decoration: none;
}

article h3 a:hover {
  text-shadow: 0 0 5px #6e00ff;
}

/* BOTÓN NEÓN */
.boton-neon {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 10px;
  font-weight: bold;
  color: #fff;
  background-color: transparent;
  border: 2px solid #00d9ff;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px #00d9ff;
}

.boton-neon:hover {
  background-color: #00d9ff;
  color: #000;
  box-shadow: 0 0 15px #00d9ff, 0 0 30px #00d9ff;
}

/* BOTÓN DESACTIVADO */
.boton-neon.desactivado {
  opacity: 0.4;
  pointer-events: none;
  border-style: dashed;
}

/* FORMULARIO */
.form-contacto {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-contacto label {
  font-weight: bold;
  color: #ccc;
}

.form-contacto input,
.form-contacto textarea {
  padding: 10px;
  border: none;
  border-radius: 6px;
  background-color: #222230;
  color: #fff;
  font-size: 1em;
}

.form-contacto input:focus,
.form-contacto textarea:focus {
  outline: 2px solid #6e00ff;
  box-shadow: 0 0 10px #6e00ff;
}

/* PIE DE PÁGINA */
footer {
  text-align: center;
  margin-top: 60px;
  color: #666;
  font-size: 0.9em;
}

.redes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.red-social {
  display: flex;
  align-items: center;
  background-color: #1a1a2e;
  border-left: 4px solid #00d9ff;
  padding: 12px;
  border-radius: 10px;
  transition: background 0.3s;
}

.red-social:hover {
  background-color: #222240;
}

.red-social img {
  width: 32px;
  height: 32px;
  margin-right: 15px;
  filter: drop-shadow(0 0 4px #00d9ff);
}

.red-social a {
  color: #00d9ff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: color 0.3s;
}

.red-social a:hover {
  color: #ff00d4;
  text-shadow: 0 0 5px #ff00d4;
}

.discord-card {
  display: flex;
  align-items: flex-start;
  background-color: #1b1b2f;
  border-left: 4px solid #5865f2;
  padding: 16px;
  border-radius: 12px;
  margin-top: 20px;
  gap: 15px;
  box-shadow: 0 0 10px #5865f2;
}

.discord-card img {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 4px #5865f2);
}

.discord-card p {
  margin-bottom: 10px;
  color: #d1d1ff;
}

a {
  text-decoration: none;
}

.entradas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.entrada {
  background-color: #1b1b2f;
  border-left: 4px solid #6e00ff;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(110, 0, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.entrada:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px #6e00ff, 0 0 30px #6e00ff33;
}

.entrada h3 {
  margin-bottom: 10px;
}

.entrada h3 a {
  color: #00d9ff;
  text-decoration: none;
  font-size: 1.2em;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.entrada h3 a:hover {
  color: #ff00d4;
  text-shadow: 0 0 5px #ff00d4;
}

.entrada p {
  color: #ccc;
  font-size: 0.95em;
  line-height: 1.4;
}

.entrada img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.entrada-detalle img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 0 12px rgba(0, 217, 255, 0.3);
}

.plataforma-card {
  display: flex;
  align-items: center;
  background-color: #1b1b2f;
  border-left: 4px solid #00d9ff;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  gap: 15px;
}

.plataforma-card img {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 0 4px #00d9ff);
}

.clips-slider {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 30px;
}

.clip-card {
  background-color: #1b1b2f;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 20px #181834;
  border-left: 4px solid #00d9ff;
  transition: transform 0.3s ease;
}

.clip-card:hover {
  transform: scale(1.02);
}

.clip-card iframe {
  width: 100%;
  height: 315px;
  border: none;
  border-radius: 8px;
  margin-bottom: 15px;
}

.clip-card h3 {
  color: #00d9ff;
  margin-bottom: 10px;
}

.clip-card p {
  color: #d1d1ff;
  margin-bottom: 15px;
}

/*easter egg*/
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Apartado Retos Semanales */
.comunidad-retos {
  background-color: #0b0b12;
  background-image: url('../Img/textura-glitch.jpg');
  background-size: cover;
  border-left: 5px solid #00d9ff;
  color: #e0f7ff;
  padding: 30px;
  margin-bottom: 40px;
  border-radius: 12px;
  box-shadow: 0 0 15px #00d9ff66;
}

.comunidad-retos h2 {
  font-size: 2em;
  color: #00d9ff;
  text-shadow: 0 0 8px #00d9ff;
  margin-bottom: 20px;
}

.retos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.reto-card {
  background-color: #141421;
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid #00d9ff;
  box-shadow: 0 0 10px #00d9ff22;
  transition: transform 0.3s, box-shadow 0.3s;
}

.reto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px #00d9ff88;
}

.reto-card h3 {
  color: #00d9ff;
  margin-bottom: 10px;
}

/* Layout básico general */
body {
  background-color: #0b0b12;
  color: #e0e0ff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 40px;
}

header h1 {
  font-size: 2.5em;
  color: #6e00ff;
  text-shadow: 0 0 10px #6e00ff;
}

nav a {
  color: #00d9ff;
  margin: 0 10px;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #ff00d4;
  text-shadow: 0 0 5px #ff00d4;
}

footer {
  text-align: center;
  margin-top: 60px;
  color: #666;
  font-size: 0.9em;
}

.comunidad-retos {
  background-color: rgba(11, 11, 18, 0.85);
  /* Semitransparente */
  background-image: url(../Img/textura-glich.jpg);
  background-size: cover;
  background-blend-mode: overlay;
  /* Mezcla el color con la imagen */
  color: #e0f7ff;
  padding: 30px;
  margin-bottom: 40px;
  border-radius: 12px;
  box-shadow: 0 0 15px #00d9ff66;
  border-left: 5px solid #00d9ff;
}

.comunidad-retos h2,
.comunidad-retos p,
.reto-card h3,
.reto-card p {
  text-shadow: 0 0 6px #000;
}

.comunidad-votacion {
  background: url('https://www.transparenttextures.com/patterns/diagonal-noise.png');
  background-size: cover;
  background-blend-mode: overlay;
  background-color: rgba(0, 0, 0, 0.85);
  padding: 30px;
  border-radius: 14px;
  border-left: 5px solid #00ffcc;
  box-shadow: 0 0 20px #00ffcc99;
  color: #ccffee;
  margin-bottom: 40px;
}

.comunidad-votacion h2 {
  color: #00ffcc;
  text-shadow: 0 0 10px #00ffcc;
  margin-bottom: 15px;
}

.juegos-votar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.juego-card {
  flex: 1 1 200px;
  background-color: #111820;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 12px #00ffcc55;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.juego-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px #00ffcc;
}

.juego-card h3 {
  color: #7effe0;
  margin-bottom: 10px;
  text-shadow: 0 0 6px #000;
}

.boton-votar {
  padding: 10px 18px;
  background-color: transparent;
  border: 2px solid #00ffcc;
  color: #00ffcc;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 6px #00ffcc;
}

.boton-votar:hover {
  background-color: #00ffcc;
  color: #000;
  box-shadow: 0 0 16px #00ffcc;
}

/* ESTILO EXCLUSIVO PARA PÁGINA DE VOTACIÓN */
body.votacion-juego {
  background:
    url('https://www.transparenttextures.com/patterns/diagonal-noise.png'),
    linear-gradient(135deg, #001f1f, #004d4d);
  background-size: cover;
  background-blend-mode: overlay;
  color: #d0ffd0;
  font-family: 'Orbitron', sans-serif;
}

.votacion-juego main {
  background-color: rgba(0, 50, 40, 0.7);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 0 40px #00ffcc70;
  max-width: 900px;
  margin: 50px auto;
}

.votacion-juego h1,
.votacion-juego h2 {
  color: #00ffcc;
  text-align: center;
  text-shadow: 0 0 10px #00ffcc;
}

.votacion-juego .opciones-juegos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.votacion-juego .juego {
  background-color: rgba(0, 80, 60, 0.5);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid #00ffcc30;
}

.votacion-juego .juego:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #00ffcce0;
}

.votacion-juego button {
  background-color: transparent;
  border: 2px solid #00ffcc;
  color: #00ffcc;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 15px;
  transition: background-color 0.3s ease;
}

.votacion-juego button:hover {
  background-color: #00ffcc;
  color: #003333;
}

main {
  max-width: 900px;
  margin: 0 auto;
  background-color: rgba(20, 20, 40, 0.95);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 0 20px #6600ff;
}

h1 {
  text-align: center;
  color: #00d9ff;
  text-shadow: 0 0 8px #00d9ff;
  margin-bottom: 20px;
}

.explicacion {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.1em;
  color: #ccc;
}

iframe {
  display: block;
  margin: 0 auto 40px auto;
  border: none;
  border-radius: 10px;
  box-shadow: 0 0 15px #00d9ff;
  width: 100%;
  height: 700px;
}

.resultados {
  text-align: center;
}

.resultados h2 {
  color: #ff00d4;
  margin-bottom: 15px;
}

.resultados iframe {
  width: 100%;
  height: 400px;
  max-width: 800px;
}

/* Header y menú */
.ranking-header {
  background: #222220;
  padding: 12px 20px;
  box-shadow: 0 0 15px #a27c00;
}

.menu-rank {
  list-style: none;
  display: flex;
  gap: 25px;
  justify-content: center;
}

.menu-rank li a {
  color: #a27c00;
  text-decoration: none;
  font-weight: bold;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.1em;
  padding: 6px 10px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.menu-rank li a:hover,
.menu-rank li a.activo {
  background-color: #a27c00;
  color: #222220;
  box-shadow: 0 0 10px #a27c00;
}

/* Main y tabla */
.ranking-main {
  padding: 30px 20px;
  max-width: 900px;
  margin: 0 auto;
  background: #1e1c16;
  border: 3px double #a27c00;
  border-radius: 15px;
  box-shadow: 0 0 20px #a27c00 inset;
  color: #fff3c4;
  font-family: 'Courier New', Courier, monospace;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 25px;
  font-size: 1.2em;
}

.ranking-table th,
.ranking-table td {
  border: 1px solid #a27c00;
  padding: 12px 15px;
  text-align: center;
}

.ranking-table th {
  background-color: #a27c00;
  color: #222220;
}

.ranking-table tbody tr:nth-child(odd) {
  background-color: #3d3714;
}

.ranking-table tbody tr:hover {
  background-color: #a27c00;
  color: #222220;
  cursor: pointer;
}

/* Botón volver */
.boton-neon.volver-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 25px;
  background: transparent;
  border: 2px solid #a27c00;
  border-radius: 8px;
  font-weight: bold;
  color: #a27c00;
  text-decoration: none;
  box-shadow: 0 0 15px #a27c00;
  transition: all 0.3s ease;
}

.boton-neon.volver-btn:hover {
  background-color: #a27c00;
  color: #222220;
  box-shadow: 0 0 30px #a27c00, 0 0 50px #a27c00;
}

.menu-fanart {
  background: rgba(0, 0, 0, 0.6);
  padding: 12px 0;
  text-align: center;
  border-bottom: 2px solid #fff2;
}

.menu-fanart ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 20px;
}

.menu-fanart a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}

.menu-fanart a:hover,
.menu-fanart a.activo {
  background: #fff;
  color: #000;
}

/* === MODO RETRO ACTIVADO === */
body.retro {
  background-color: #000;
  color: #0f0;
  font-family: 'Press Start 2P', monospace;
  image-rendering: pixelated;
}

body.retro header,
body.retro main,
body.retro footer {
  background-color: #111;
  border: 4px dashed #0f0;
  box-shadow: 0 0 10px #0f0;
}

body.retro a {
  color: #ff0;
  text-shadow: 0 0 5px #ff0;
}

/* Carga fuente retro desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

.aviso-cookies {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: #1b1b2f;
  color: #fff;
  padding: 15px;
  border: 2px solid #00d9ff;
  border-radius: 8px;
  z-index: 9999;
  box-shadow: 0 0 10px #00d9ff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.aviso-cookies button {
  background-color: #00d9ff;
  border: none;
  padding: 10px 15px;
  color: #000;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}

.aviso-cookies button:hover {
  background-color: #00b4cc;
}