/* Estilo general del sitio */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  color: #fff;
}

/* Encabezado */
header {
  background-color: #222;
  color: white;
  display: flex;
  align-items: center;
  padding: 10px;
  position: relative; /* para posicionar toggle en móvil */
}

h1 {
  text-align: center;
  padding: 1rem;
  color: #00ff99;
  font-size: 2rem;
  text-shadow: 1px 1px 2px #000;
}

/* Contenedor y scroll */
.scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
}

/* Logo */
.logo {
  height: 60px;
  margin-right: 20px;
}

nav {
  flex-grow: 1;
}

/* Botón del menú móvil (accesible) */
.menu-toggle {
  background: none;
  border: none;
  color: inherit;
  font-size: 28px;
  cursor: pointer;
  margin-left: auto;
  padding: 10px;
  display: none;
}

.menu-toggle:focus-visible {
  outline: 2px solid #0a7a5a;
  outline-offset: 3px;
}

/* Menú de navegación */
.menu {
  list-style: none;
  display: flex;
  justify-content: space-around;
  margin: 0;
  padding: 0;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.menu li a {
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  display: block;
  font-size: 18px;
}

#primary-menu a.active {
  font-weight: 700;
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid #0a7a5a;
  outline-offset: 3px;
}

.hero {
  text-align: center;
  padding: 20px;
}

.group-photo {
  max-width: 100%;
  height: auto;
}

.admin-dashboard {
  text-align: center;
  padding: 2rem;
}

.admin-dashboard h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.admin-dashboard p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #ccc;
}

.admin-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.admin-btn {
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: #fff;
  background: #0a7a5a;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.admin-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

/* Agrega esto a tu archivo CSS principal */

.admin-btn.crear { 
  background-color: #2e8b57; 
}

.admin-btn.editar { 
  background-color: #3a5f3a; 
}

.admin-btn.ranking { 
  background-color: #bfae3d; 
  color: #000; 
}

.admin-btn.cronica { 
  background-color: #445a7c; 
}

.admin-btn.participacion { 
  background-color: #8b4789; 
}

.admin-btn.editar-fecha { 
  background-color: #5a6b8f; 
}

.admin-btn.fasefinal { 
  background-color: #c9692d; 
}

.admin-btn.usuarios {
  background-color: #8e44ad;
}

.admin-btn.usuarios:hover {
  background-color: #9b59b6;
}

header {
  position: relative;
  z-index: 9999; /* El header y su contenido por encima de todo */
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 12px 0 24px;
  color: #9ca3af;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.footer-social-icons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.footer-social-icons a {
  font-size: 1.5rem;
  color: #fff;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social-icons a:hover {
  transform: scale(1.2);
  color: #ff4081;
}

/* Estilos para móviles */
@media (max-width: 768px) {
  /* Título más compacto pero claro */
  h1 {
    font-size: 1.6rem;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1001;
  }

  .menu {
    display: none;
    flex-direction: column;
    background-color: #333;
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 9999; /* 👈 Mucho más alto */
    margin-top: .5rem;
    transform: translateY(-10px);
    opacity: 0;
  }

  .menu.show {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }


  .menu li {
    text-align: right;
    border-bottom: 1px solid #444;
  }

  .menu li:last-child {
    border-bottom: none;
  }

  .footer-social-icons a {
    font-size: 1.3rem;
  }
}
