body {
  background: url('/forum/assets/img/foro.png') no-repeat center fixed;
  background-size: cover;
  color: #e0e0e0;
  font-family: sans-serif;
}

.fondo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: -1;
}

.titulo-glow {
  font-family: 'warcraft', sans-serif;
  font-size: 2.5em;
  color: #ffe879;
  text-shadow: 0 0 10px #ffe879, 0 0 20px #ffca1f;
  text-align: center;
  margin: 40px 0;
}

.foro-contenedor {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.foro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.foro-card {
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid #444;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.foro-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(255, 200, 30, 0.6);
}

.foro-card-icono {
  background: #2f2f2f;
  padding: 10px;
  text-align: center;
}

.foro-card-icono img {
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.foro-card-info {
  padding: 12px;
  border-top: 1px solid #444;
}

.foro-card-info h3 {
  color: #55bfff;
  font-size: 1.3em;
  margin: 0 0 8px;
}

.foro-count {
  display: inline-block;
  background: #333;
  color: #ffe879;
  padding: 4px 8px;
  border-radius: 4px;
}

/* Sidebar / Usuario */
.sidebar-user {
  position: fixed;
  top: 140px;
  right: 20px;
  width: 200px;
  z-index: 1000;
}

.sidebar-box {
  background: rgba(10, 10, 10, 0.9);
  padding: 15px;
  border-radius: 10px;
  color: #eee;
  text-align: center;
  box-shadow: 0 0 10px #000;
}

.sidebar-box h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #ffe066;
}

/* Avatar en el panel */
.avatar-panel {
  margin: 40px auto 20px;
  text-align: center;
}

.avatar-panel img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #33ccff;
  background: #1a1a1a;
  box-shadow: 0 0 12px #0ff;
  display: block;
  margin: auto;
}

.avatar-small {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid #33ccff;
  object-fit: cover;
  margin-bottom: 10px;
}

.boton-peque {
  display: inline-block;
  margin: 4px 2px;
  padding: 6px 12px;
  font-size: 0.9em;
  background: #444;
  color: #ffe066;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
}

.boton-peque:hover {
  background: #666;
}

/* Formulario del panel */
.main-foro form {
  margin-top: 40px;
  text-align: center;
}

.main-foro input[type="file"],
.main-foro input[type="submit"] {
  margin: 10px 0;
}

.main-foro input[type="file"] {
  color: #eee;
  background: #222;
  padding: 8px;
  border: 1px solid #444;
  border-radius: 5px;
}

.main-foro input[type="submit"] {
  background: #00ccff;
  border: none;
  color: #141414;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.main-foro input[type="submit"]:hover {
  background: #00ffff;
}

/* Responsive */
@media(max-width: 800px) {
  .sidebar-user {
    position: static;
    margin-bottom: 20px;
  }
}
