/* Estilo base */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #333;
    color: white;
}

/* Header */
.navbar {
    background-color: #0a0a0a;
    padding: 1px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

#name-logo {
    font-family: monospace;
    font-size: 20px;
    display: flex;
    gap: 3px;
    color: white;
}

.logo img {
    height: auto;
    width: 80px;            /* O el valor que tú quieras */
    max-width: 100%;
    object-fit: contain;
    background-color: #222;
    padding: 5px;
    border-radius: 8px;
    cursor: pointer;
}

.logo {
    padding: 15px 25px;
}


/* Navegación */
.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px; /* <- aquí defines el tamaño del texto */
    transition: color 0.5s ease-in-out; /* controla cuánto tarda en volver al color original */
}

.nav-links a:hover {
    color: #7512b8;
}

/* Idioma */
.language-switcher {
    position: relative;
    cursor: pointer;
}

.language-switcher img {
    width: 30px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid white;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #333;
    padding: 5px 0;
    flex-direction: column;
    border-radius: 4px;
    border: 1px solid white;
}

.dropdown .flag {
    width: 30px;
    height: 20px;
    margin: 2px;
    cursor: pointer;
}

.language-switcher:hover .dropdown {
    display: flex;
}

/* Hero */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 70vh;
    background-color: #222;
    padding: 20px;
}

.hero-content {
    max-width: 600px;
}

.static-text {
    font-size: 20px;
    color: #ccc;
}


/* Secciones */
.section {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    text-align: center;
}

h2 {
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: #19161b;
    text-align: center;
    padding: 1px;
    font-size: 14px;
}

footer a {
  color: #7512b8;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}




/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    text-align: left;
  }

  .logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .logo-text {
    font-size: 12px;
  }

  .nav-menu {
    margin-left: auto;
    overflow-x: auto;
  }

  .nav-links {
    flex-direction: row;
    flex-wrap: nowrap; /* <- esto es la clave */
    gap: 12px;
    white-space: nowrap;
  }

  .nav-links a {
    font-size: 13px;
    white-space: nowrap; /* <- evita saltos de línea */
  }
}

.partidos {
  margin-bottom: 30px;
}

.partido {
  background-color: #222;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.clasificacion {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.clasificacion th, .clasificacion td {
  border: 1px solid #555;
  padding: 8px;
  text-align: center;
}

.clasificacion th {
  background-color: #444;
}

.nav-links a.activo {
  color: #7512b8;
}

.patrocinadores {
  margin-top: 40px;
  text-align: center;
  font-size: 16px;
  color: #fff;
}

.logos-patrocinadores {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.logos-patrocinadores img {
  height: 80px;
  object-fit: contain;
  border-radius: 0;
  padding: 4px;
  max-width: 150px;
}

.logo-wrapper {
  width: 100px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.section img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
}

.minijuego-card {
  display: flex;
  align-items: center;
  background: #432b6c;
  border-radius: 15px;
  padding: 20px;
  margin: 30px auto;
  color: #fff;
  max-width: 90%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.minijuego-card:hover {
  transform: scale(1.03);
  background-color: #593c8e;
}

.minijuego-icono {
  font-size: 48px;
  margin-right: 20px;
}

.minijuego-texto h3 {
  margin: 0;
  font-size: 18px;
}

.minijuego-texto p {
  margin: 5px 0 0;
  font-size: 14px;
}

body {
    background-color: #000000;
    color: #fff;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/images/stardust.png') repeat;
    opacity: 0.5;
    z-index: -1;
    animation: moveStars 100s linear infinite;
}

@keyframes moveStars {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -10000px 5000px;
    }
}

/* Carrusel contenedor */
.swiper {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Cada slide (escudo) */
.swiper-slide {
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

/* Imagen del escudo */
.swiper-slide img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* Efecto de escala en el escudo central */
.swiper-slide-active img {
  transform: scale(1.4);
}

.novedad-card {
  background-color: #f6f6f6;
  border-left: 5px solid #6c3bb1;
  padding: 15px;
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.novedad-card h3 {
  margin-top: 0;
}
.novedad-card .fecha {
  font-size: 0.9em;
  color: #666;
}

.minijuego-icono img.icono-img {
  width: 40px;      /* o el tamaño que uses normalmente para los emojis */
  height: 40px;
  object-fit: contain;
}

/* Estilos para el bloque de legalidad */
.legal-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #3d2c54;
  color: #fff;
  padding: 1rem;
  border-radius: 8px;
  user-select: none;
  font-weight: bold;
  margin-top: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  transition: background-color 0.3s ease;
}

.legal-toggle:hover {
  background-color: #594076;
}

.legal-content {
  margin-top: 1rem;
  background-color: #f9f9f9;
  color: #000;
  border-left: 4px solid #999;
  padding: 1rem;
  border-radius: 0 8px 8px 8px;
  display: none;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.legal-icon {
  font-size: 1.2rem;
}

.section:first-of-type {
    margin-top: 5px;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2e1a47;
  color: white;
  padding: 15px;
  text-align: center;
  z-index: 9999;
  display: none;
  font-size: 14px;
}
.cookie-banner button {
  background: #6c3bb1;
  color: white;
  border: none;
  padding: 8px 16px;
  margin-left: 10px;
  cursor: pointer;
  border-radius: 5px;
}
.cookie-banner button:hover {
  background: #4a267a;
}

.novedad-card {
  background-color: #1e1e1e; /* fondo gris oscuro para mejor contraste */
  color: #fff; /* texto blanco sobre fondo oscuro */
  border-left: 5px solid #7512b8;
  text-align: left;
  padding: 15px;
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.novedad-card .fecha {
  font-size: 0.9em;
  color: #aaa; /* gris claro */
}

.novedad-card h3 {
  color: #fff;
}

.partido {
            background-color: #222;
            padding: 12px;
            border-radius: 10px;
            margin-bottom: 10px;
            text-align: center;
            font-size: 1.1rem;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
        }

        .partido p {
            margin: 0;
            color: white;
        }

        .clasificacion {
            margin-bottom: 40px;
        }

        .eliminatorias-bracket {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 40px;
            flex-wrap: wrap;
            margin-top: 40px;
        }

        .fase {
            flex: 1 1 200px;
            text-align: center;
            background: #222;
            border-radius: 8px;
            padding: 15px;
            color: white;
        }

        .final {
            flex: 1 1 300px;
            text-align: center;
            background: #3a2a50;
            border-radius: 12px;
            padding: 20px;
            font-weight: bold;
        }
#celebracion {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none; /* Para que se pueda interactuar con lo que hay debajo */
  z-index: 999;
}

#fireworksCanvas {
  width: 100%;
  height: 100%;
  display: block;
  background: transparent !important;
}


@keyframes subirBajar {
  0% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-20px); }
  100% { transform: translate(-50%, -50%) translateY(0); }
}

.ganador-animado {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: #bb66ff;
  font-weight: bold;
  text-align: center;
  animation: subirBajar 2s infinite ease-in-out;
}


@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-15px); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main, .section {
  flex: 1;
}

.retro-mode {
  background-color: #000022 !important;
  color: #00ffcc !important;
  font-family: 'Press Start 2P', cursive !important;
}

.retro-mode .tarjeta {
  background-color: #111144 !important;
  border: 3px solid #00ffcc !important;
  box-shadow: none !important;
}

.retro-mode button,
.retro-mode .votos,
.retro-mode .nombre-equipo {
  background-color: #222255 !important;
  color: #00ffcc !important;
  border: 2px dashed #00ffcc !important;
}
