/* === Estilos para FutbolPlay === */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#video-fondo {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: blur(10px) brightness(0.7);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0d1117;
  color: #ffffff;
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-bottom: 60px;
}

header {
  background-color: rgba(0, 0, 0, 0.85);
  padding: 20px;
  text-align: center;
  border-bottom: 2px solid #1f6feb;
}

header h1 {
  font-size: 3rem;
  color: #eb1f1f;
  margin-bottom: 10px;
}

header p {
  font-size: 1.2rem;
  color: #c9d1d9;
}


button img {
  margin-right: 10px;
  max-width: 24px;
  max-height: 24px;
}


.imagen-competiciones {
  width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
  border-radius: 8px;
}

.titulo-evento {
  color: white; /* Cambia el color del texto a blanco */
  text-align: center; /* Centra el texto */
  font-size: 30px; /* Ajusta el tamaño de la fuente (opcional) */
}

footer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%; /* Hace que ocupe todo el ancho */
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 10px 0;
  z-index: 10; /* Asegura que el footer quede encima de otros elementos */
}


.imagen-competiciones {
  width: 80%;  /* Puedes cambiar este porcentaje a cualquier valor que desees */
  max-width: 200px;  /* Esto asegura que la imagen no se estire más allá de 800px */
  height: auto;  /* Mantiene la proporción de la imagen */
  display: block;
  margin: 20px auto;  /* Centra la imagen en la página */
  border-radius: 8px;  /* Si deseas bordes redondeados */
}

/* CONTENEDOR → sigue transparente */
.button-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background-color: transparent;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* BOTONES → ahora fondo blanco con transparencia */
.button-container button {
  width: 150px;
  height: 150px;
  padding: 10px;
  margin: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 2px solid #fff;
  background-color: rgba(255, 255, 255, 0.658); /* ← Aquí el cambio importante */
  color: #000; /* Letras negras para mejor contraste */
  border-radius: 10px; /* Opcional, para que se vean más estéticos */
  transition: transform 0.2s ease; /* Animación suave al pasar el mouse */
}

/* Imágenes dentro del botón */
.button-container button img {
  max-width: 50px;
  max-height: 50px;
  margin-bottom: 10px;
}

/* Efecto al pasar el mouse (opcional) */
.button-container button:hover {
  transform: scale(1.05); /* Hace que el botón crezca un poco */
}

/* Encabezado */
header {
  background-color: rgba(0, 0, 0, 0.85);
  padding: 20px;
  text-align: center;
  border-bottom: 2px solid #1f6feb;
}

header h1 {
  font-size: 3rem;
  color: #eb1f1f;
  margin-bottom: 10px;
}

header p {
  font-size: 1.2rem;
  color: #c9d1d9;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 15px;
}

nav ul li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #eb1f1f;
}

/* Sección principal */
section h1 {
  color: #f0f6fc;
  margin-bottom: 30px;
  text-shadow: 1px 1px 4px #000;
}

/* === Estilos combinados para NAVBAR con hamburguesa en móviles === */

/* Botón hamburguesa (solo visible en móviles) */
.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* NAVBAR responsive presentable */
.navbar-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  padding-left: 0;
  flex-wrap: wrap;
}

.navbar-nav .nav-link,
.nav-item .nav-link,
header nav ul.nav li a {
  font-size: 0.95rem;
  color: #ffffff !important;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 6px;
  transition: all 0.3s ease;
  background-color: transparent;
  text-decoration: none;
}

.navbar-nav .nav-link:hover,
.nav-item .nav-link:hover,
header nav ul.nav li a:hover {
  color: #eb1f1f !important;
}

/* NAVBAR colapsado en móviles */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: transparent !important;
    padding: 0;
    margin: 0;
    border: none;
  }

  .navbar-nav .nav-link {
    display: block;
    padding: 12px;
    margin: 2px auto;
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
  }

  .navbar-nav .nav-link:hover {
    color: #eb1f1f !important;
  }
}

/* NAVBAR destacada heredada */
.nav-destacada {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
}

.nav-destacada li a {
  color: #58a6ff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-destacada li a:hover {
  color: #f0f6fc;
}

/* NAVBAR MEJORADO Y ESTILO COMPATIBLE CON TU TEMA */
.custom-navbar {
  background-color: rgba(0, 0, 0, 0.9);
  border-bottom: none;
  padding: 12px 0;
  z-index: 999;
}

.custom-navbar .nav-link {
  color: #ffffff !important;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
  background-color: transparent;
  text-decoration: none;
}

.custom-navbar .nav-link:hover {
  color: #eb1f1f !important;
  background-color: rgba(255, 255, 255, 0.05);
  transform: scale(1.05);
}

/* Cambia el color del icono hamburguesa */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-nav .dropdown {
  position: relative;
}

.dropdown-item {
  color: white;
  padding: 12px 20px;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
}

.dropdown-item:hover {
  background-color: #eb1f1f;
  color: white;
}

@media (min-width: 992px) {
  .navbar-nav .dropdown-menu {
    display: block;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    z-index: 1000;
    border-radius: 0.5rem;
    background-color: #000;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    padding: 0.3rem 0;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
  }

  .navbar-nav .dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  .dropdown-menu {
    display: none;
    position: static;
    float: none;
    transform: none;
    box-shadow: none;
    background-color: #000;
    opacity: 1;
    visibility: visible;
    padding: 0.3rem 0;
    border-radius: 0.5rem;
  }

  .dropdown.show .dropdown-menu {
    display: block;
  }
}
