/* ==========================================================================
   ALEXANDRIA - Hoja de estilos principal
   Inspirada en el sitio oficial de World of Warcraft: oscuro, dorado,
   tipografia grande en mayusculas y tarjetas con luz.
   ========================================================================== */

:root {
  --fondo:          #080b10;
  --fondo-2:        #0c1016;
  --fondo-3:        #11161d;
  --tarjeta:        #10151c;
  --tarjeta-borde:  #1e2a35;
  --tarjeta-borde-2:#2b3a47;

  --dorado:         #f8b700;
  --dorado-claro:   #ffd65c;
  --dorado-osc:     #b07c00;

  --verde:          #00c880;
  --verde-claro:    #4be0a0;
  --rojo:           #f05c5c;
  --ambar:          #f5b041;
  --discord:        #5865f2;

  --texto:          #eef4f8;
  --texto-suave:    #9db2c0;
  --texto-tenue:    #6b7d8c;

  --radio:          10px;
  --radio-grande:   16px;
  --sombra:         0 18px 50px rgba(0,0,0,.65);
  --transicion:     .18s ease;
  --max:            1240px;
}

/* --------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--verde-claro); text-decoration: none; transition: color var(--transicion); }
a:hover { color: var(--dorado-claro); }

h1, h2, h3 {
  margin: 0 0 .6rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--texto);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); text-transform: uppercase; letter-spacing: .04em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); text-transform: uppercase; letter-spacing: .05em; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1rem; }

.contenedor { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

.subtitulo { color: var(--texto-suave); font-size: 1.05rem; max-width: 70ch; margin-bottom: 2rem; }
.nota { color: var(--texto-tenue); font-size: .86rem; }

/* --------------------------------------------------------------- cabecera */
.cabecera {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(6, 9, 13, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.cabecera-fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.marca { display: flex; align-items: center; gap: .7rem; color: var(--texto); flex: 0 0 auto; }
.marca img { width: 44px; height: 44px; object-fit: contain; }
.marca-texto { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.marca-texto strong {
  font-size: 1.05rem; font-weight: 800; letter-spacing: .14em; color: var(--texto);
}
.marca-texto small {
  font-size: .62rem; color: var(--texto-tenue);
  letter-spacing: .09em; text-transform: uppercase; white-space: nowrap;
}

.navegacion { display: flex; align-items: center; gap: .1rem; flex-wrap: nowrap; }
.navegacion a {
  color: var(--texto-suave);
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .5rem .58rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: all var(--transicion);
}
.navegacion a:hover { color: var(--texto); background: rgba(255,255,255,.06); }
.navegacion .boton { padding: .55rem .9rem; font-size: .72rem; margin-left: .35rem; }

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: .84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  cursor: pointer;
  transition: all var(--transicion);
  font-family: inherit;
}

.boton-principal {
  background: linear-gradient(180deg, #ffcd46, var(--dorado) 55%, #c68c00);
  color: #1a1404;
  border-color: var(--dorado-claro);
  box-shadow: 0 6px 22px rgba(248,183,0,.28);
}
.boton-principal:hover {
  color: #1a1404;
  filter: brightness(1.08);
  box-shadow: 0 8px 30px rgba(248,183,0,.42);
}

.boton-secundario {
  background: rgba(255,255,255,.04);
  color: var(--texto);
  border-color: rgba(255,255,255,.22);
}
.boton-secundario:hover { background: rgba(255,255,255,.1); color: var(--texto); border-color: rgba(255,255,255,.4); }

.boton-discord { background: var(--discord); color: #fff; border-color: #7c86ff; }
.boton-discord:hover { background: #6c7aff; color: #fff; }

.boton-grande { padding: 1rem 2.4rem; font-size: .95rem; }
.boton:disabled { opacity: .5; cursor: not-allowed; }

/* menu movil */
#menuBoton {
  display: none;
  background: transparent;
  border: 1px solid var(--tarjeta-borde-2);
  color: var(--texto);
  font-size: 1.3rem;
  border-radius: 6px;
  padding: .3rem .7rem;
  cursor: pointer;
}

/* --------------------------------------------------------------- portada */
.portada {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  /* ruta absoluta: la hoja de estilos esta en /assets/css/ */
  background-image: url("/assets/img/alexandria-hero-web.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.portada::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,11,16,.35) 0%, rgba(8,11,16,.15) 40%, rgba(8,11,16,.92) 88%, var(--fondo) 100%);
}
.portada .contenedor { position: relative; z-index: 2; padding-top: 6rem; padding-bottom: 3.5rem; }

.portada-emblema { width: 96px; height: 96px; object-fit: contain; margin-bottom: 1.2rem; filter: drop-shadow(0 8px 26px rgba(0,0,0,.8)); }

.portada h1 { margin-bottom: .5rem; text-shadow: 0 6px 30px rgba(0,0,0,.85); }
.portada-etiqueta {
  display: inline-block;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dorado);
  border: 1px solid rgba(248,183,0,.5);
  border-radius: 99px;
  padding: .3rem 1rem;
  margin-bottom: 1.2rem;
  background: rgba(248,183,0,.08);
}
.portada-texto { font-size: 1.12rem; color: #d5e2ea; max-width: 60ch; margin-bottom: 2rem; text-shadow: 0 2px 14px rgba(0,0,0,.9); }
.portada-botones { display: flex; gap: .9rem; flex-wrap: wrap; align-items: center; }

.portada-pie {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(6,9,13,.72);
  backdrop-filter: blur(10px);
}
.portada-pie .contenedor {
  display: flex; gap: 2.5rem; flex-wrap: wrap; align-items: center;
  padding-top: 1rem; padding-bottom: 1rem;
  font-size: .85rem; color: var(--texto-suave);
}
.portada-pie strong { color: var(--texto); }

/* --------------------------------------------------------------- secciones */
.seccion { padding: 5rem 0; }
.seccion-alterna { background: var(--fondo-2); border-top: 1px solid rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.05); }

/* --------------------------------------------------------------- tarjetas */
.rejilla { display: grid; gap: 1.4rem; }
.rejilla-dos { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.rejilla-tres { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.rejilla-cuatro { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.rejilla-estado { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.tarjeta {
  background: linear-gradient(180deg, var(--tarjeta), #0b0f15);
  border: 1px solid var(--tarjeta-borde);
  border-radius: var(--radio-grande);
  padding: 1.6rem;
  transition: all var(--transicion);
  position: relative;
  overflow: hidden;
}
.tarjeta::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--dorado), transparent);
  opacity: 0; transition: opacity var(--transicion);
}
.tarjeta:hover { border-color: var(--tarjeta-borde-2); transform: translateY(-3px); box-shadow: var(--sombra); }
.tarjeta:hover::before { opacity: .75; }

.tarjeta h3 { color: var(--texto); margin-bottom: .5rem; }
.tarjeta p { color: var(--texto-suave); margin-bottom: .5rem; }

.tarjeta-estado { text-align: center; padding: 1.4rem 1rem; }
.tarjeta-estado h3 {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .16em;
  color: var(--texto-tenue); font-weight: 700; margin-bottom: .5rem;
}
.tarjeta-estado .dato {
  font-size: 1.5rem; font-weight: 800; color: var(--verde); margin: 0;
  letter-spacing: .01em;
}

.tarjeta-formulario { display: flex; flex-direction: column; gap: .35rem; }
.tarjeta-formulario label {
  font-size: .76rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--texto-tenue); margin-top: .6rem;
}
.tarjeta-formulario input, .tarjeta-formulario textarea {
  width: 100%;
  padding: .8rem .9rem;
  background: #080c11;
  color: var(--texto);
  border: 1px solid var(--tarjeta-borde-2);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transicion), box-shadow var(--transicion);
}
.tarjeta-formulario input:focus, .tarjeta-formulario textarea:focus {
  outline: none;
  border-color: var(--dorado);
  box-shadow: 0 0 0 3px rgba(248,183,0,.14);
}
.tarjeta-formulario small { color: var(--texto-tenue); font-size: .8rem; }
.tarjeta-formulario .boton { margin-top: 1.1rem; }

/* --------------------------------------------------------------- pasos */
.pasos {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  counter-reset: paso;
}
.pasos li {
  position: relative;
  background: linear-gradient(180deg, var(--tarjeta), #0b0f15);
  border: 1px solid var(--tarjeta-borde);
  border-radius: var(--radio-grande);
  padding: 2.6rem 1.6rem 1.6rem;
}
.pasos li::before {
  counter-increment: paso;
  content: counter(paso);
  position: absolute; top: -1px; left: 1.6rem;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, var(--dorado-claro), var(--dorado-osc));
  color: #1a1404; font-weight: 800; font-size: 1.1rem;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(248,183,0,.3);
}
.pasos h3 { margin-top: .4rem; }
.paso-numero { display: none; }

/* --------------------------------------------------------------- avisos */
.aviso, .mensaje {
  border-radius: var(--radio);
  padding: .95rem 1.15rem;
  margin: 1rem 0;
  font-size: .95rem;
  border: 1px solid var(--tarjeta-borde);
  background: var(--fondo-3);
  color: var(--texto-suave);
}
.mensaje.exito, .aviso.exito { border-color: rgba(0,200,128,.45); background: rgba(0,200,128,.1); color: var(--verde-claro); }
.mensaje.error, .aviso.error { border-color: rgba(240,92,92,.45); background: rgba(240,92,92,.1); color: #ffb3b3; }
.mensaje.info,  .aviso.info  { border-color: rgba(248,183,0,.4); background: rgba(248,183,0,.08); color: var(--dorado-claro); }

.tarjeta-aviso { border-left: 3px solid var(--dorado); background: rgba(248,183,0,.05); }
.tarjeta-aviso h3 { color: var(--dorado-claro); }

/* --------------------------------------------------------------- noticias */
.noticia {
  background: linear-gradient(180deg, var(--tarjeta), #0b0f15);
  border: 1px solid var(--tarjeta-borde);
  border-left: 3px solid var(--dorado);
  border-radius: var(--radio);
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.2rem;
}
.noticia h2 { font-size: 1.4rem; letter-spacing: .02em; }
.noticia-resumen {
  color: var(--dorado-claro); font-size: 1rem;
  border-left: 2px solid var(--tarjeta-borde-2);
  padding-left: .9rem; margin-bottom: 1rem;
}
.noticia-cuerpo { color: var(--texto-suave); }
.noticia .borrar { margin-top: 1.2rem; padding: .5rem 1rem; font-size: .78rem; }
.tarjeta-formulario small.nota { display: inline; color: var(--texto-tenue); font-weight: 400; }

/* --------------------------------------------------------------- pie */
.pie {
  background: #05080b;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 2.5rem 0;
  color: var(--texto-tenue);
  font-size: .86rem;
}
.pie-fila { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.pie strong { color: var(--texto-suave); }
.pie-enlaces { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.pie-enlaces a { color: var(--texto-tenue); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.pie-enlaces a:hover { color: var(--dorado); }

/* --------------------------------------------------------------- movil */
@media (max-width: 900px) {
  #menuBoton { display: block; }
  .navegacion {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: rgba(6,9,13,.98);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 1rem 1.5rem 1.5rem;
    display: none;
  }
  .navegacion.abierto { display: flex; }
  .navegacion a { padding: .8rem .6rem; font-size: .9rem; }
  .portada { min-height: 70vh; }
  .seccion { padding: 3.2rem 0; }
  .portada-pie .contenedor { gap: 1rem; }
}

/* ==========================================================================
   ACABADO CINEMATOGRÁFICO (para que parezca la web oficial)
   ========================================================================== */

/* --- vídeo o imagen de fondo de la portada --- */
.portada {
  min-height: 92vh;
  background-image: url("/assets/img/alexandria-hero-web.jpg");
  background-size: cover;
  background-position: center;
}

/* La capa de fondo (imagen o vídeo) ocupa toda la portada.
   El zoom lento se hace aqui con transform, para que la imagen
   siga cubriendo toda la pantalla (con background-size no funcionaba). */
.portada-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #05080b url("/assets/img/alexandria-hero-web.jpg") center/cover no-repeat;
  animation: acercar 34s ease-in-out infinite alternate;
}

@keyframes acercar {
  from { transform: scale(1); }
  to   { transform: scale(1.09); }
}

.portada-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;          /* 16:9, siempre más grande que la pantalla */
  height: 56.25vw;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

/* capa oscura encima del vídeo, para que el texto se lea siempre.
   A la izquierda (donde va el texto) oscurece; a la derecha deja ver el arte. */
.portada::after {
  background:
    linear-gradient(90deg, rgba(5,8,11,.90) 0%, rgba(5,8,11,.62) 42%, rgba(5,8,11,.20) 72%, rgba(5,8,11,.05) 100%),
    linear-gradient(180deg, rgba(5,8,11,.40) 0%, rgba(5,8,11,0) 32%, rgba(5,8,11,.55) 74%, rgba(5,8,11,.96) 94%, var(--fondo) 100%);
}

/* --- títulos con el aire de la web oficial --- */
.portada h1 {
  font-size: clamp(3rem, 8vw, 6.4rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 800;
  text-shadow: 0 10px 50px rgba(0,0,0,.95), 0 2px 6px rgba(0,0,0,.8);
  margin-bottom: .4rem;
}

.portada-etiqueta {
  letter-spacing: .3em;
  font-size: .7rem;
  padding: .35rem 1.1rem;
}

.portada-texto {
  font-size: 1.18rem;
  max-width: 54ch;
  color: #dbe7ee;
}

/* --- entrada suave de los elementos de la portada --- */
.portada .contenedor > * {
  animation: subir .9s cubic-bezier(.2,.7,.3,1) both;
}
.portada .contenedor > *:nth-child(1) { animation-delay: .05s; }
.portada .contenedor > *:nth-child(2) { animation-delay: .15s; }
.portada .contenedor > *:nth-child(3) { animation-delay: .25s; }
.portada .contenedor > *:nth-child(4) { animation-delay: .35s; }
.portada .contenedor > *:nth-child(5) { animation-delay: .45s; }

@keyframes subir {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- títulos de sección con la raya dorada de la web oficial --- */
.seccion h2 {
  position: relative;
  display: inline-block;
  padding-bottom: .7rem;
  margin-bottom: 1.4rem;
}
.seccion h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 74px; height: 3px;
  background: linear-gradient(90deg, var(--dorado), transparent);
  border-radius: 2px;
}

/* --- tarjetas más vivas --- */
.tarjeta {
  backdrop-filter: blur(2px);
}
.tarjeta::after {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(248,183,0,.14), transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.tarjeta:hover::after { opacity: 1; }

/* --- la barra de navegación, más pegada a la oficial --- */
.cabecera {
  box-shadow: 0 1px 0 rgba(255,255,255,.05), 0 12px 40px rgba(0,0,0,.55);
}
.cabecera .navegacion a {
  font-size: .74rem;
  letter-spacing: .1em;
}

/* --- botones con más presencia --- */
.boton-principal {
  box-shadow: 0 8px 26px rgba(248,183,0,.32), inset 0 1px 0 rgba(255,255,255,.5);
}
.boton-principal:hover { transform: translateY(-1px); }

/* --- franja de estado con aire de la web oficial --- */
.portada-pie {
  border-top: 1px solid rgba(248,183,0,.22);
  background: rgba(4,6,9,.86);
}

/* --- separadores entre secciones --- */
.seccion + .seccion { border-top: 1px solid rgba(255,255,255,.045); }

/* --- en pantallas pequeñas, nada de vídeo (gasta datos) --- */
@media (max-width: 900px) {
  .portada { min-height: 78vh; }
  .portada h1 { font-size: clamp(2.4rem, 12vw, 3.4rem); }
}

/* --- si el visitante ha pedido no ver animaciones --- */
@media (prefers-reduced-motion: reduce) {
  .portada .contenedor > * { animation: none; }
}

/* --- lista de personajes de "Mi cuenta" --- */
.personaje {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .6rem .8rem;
  margin-bottom: .5rem;
  border: 1px solid var(--tarjeta-borde);
  border-radius: 10px;
  background: linear-gradient(180deg, #10151c, #0b0f15);
  color: var(--texto);
  transition: all var(--transicion);
}
.personaje:hover {
  border-color: var(--dorado);
  background: #141b24;
  transform: translateX(3px);
  color: var(--texto);
}
.personaje .icono {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 2px solid var(--tarjeta-borde-2);
  flex: 0 0 auto;
  object-fit: cover;
}
.personaje .icono.vacio { background: #1a232c; display: block; }
.personaje .datos {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  line-height: 1.25;
  min-width: 0;
}
.personaje .datos strong {
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.personaje .nivel {
  color: var(--texto-tenue);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.personaje .etiqueta {
  color: var(--dorado);
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
  flex: 0 0 auto;
}
#panelPerfil h3 { margin-bottom: .8rem; }
/* --- arreglo: las etiquetas de los formularios tienen que ir en su linea --- */
.tarjeta-formulario label { display: block; }
.tarjeta-formulario small { display: block; margin-bottom: .2rem; }
/* --- el video de fondo se ve mas, pero el texto sigue leyendose --- */
.portada::after {
  background:
    linear-gradient(90deg, rgba(5,8,11,.86) 0%, rgba(5,8,11,.52) 40%, rgba(5,8,11,.12) 70%, rgba(5,8,11,.02) 100%),
    linear-gradient(180deg, rgba(5,8,11,.30) 0%, rgba(5,8,11,0) 30%, rgba(5,8,11,.45) 72%, rgba(5,8,11,.94) 92%, var(--fondo) 100%);
}
/* ==========================================================================
   TÍTULO CON EFECTO NEÓN
   ========================================================================== */
.portada h1 {
  color: #ffffff;
  text-shadow:
    0 0 6px  rgba(255,255,255,.90),
    0 0 16px rgba(0,200,128,.75),
    0 0 32px rgba(0,200,128,.60),
    0 0 58px rgba(0,200,128,.48),
    0 0 92px rgba(0,200,128,.34);
  animation: neon 3.8s ease-in-out infinite alternate;
}

@keyframes neon {
  from {
    text-shadow:
      0 0 6px  rgba(255,255,255,.88),
      0 0 16px rgba(0,200,128,.70),
      0 0 32px rgba(0,200,128,.55),
      0 0 58px rgba(0,200,128,.44),
      0 0 92px rgba(0,200,128,.30);
  }
  to {
    text-shadow:
      0 0 8px  rgba(255,255,255,1),
      0 0 22px rgba(0,200,128,.95),
      0 0 44px rgba(0,200,128,.80),
      0 0 78px rgba(0,200,128,.65),
      0 0 124px rgba(0,200,128,.48);
  }
}

/* Si el visitante no quiere animaciones, el neón se queda fijo */
@media (prefers-reduced-motion: reduce) {
  .portada h1 { animation: none; }
}

/* El emblema ya no se usa en la portada */
.portada-emblema { display: none; }
/* ==========================================================================
   FORO
   ========================================================================== */
.tema {
  display: flex; align-items: center; gap: 1rem;
  padding: .9rem 1.1rem; margin-bottom: .6rem;
  border: 1px solid var(--tarjeta-borde); border-radius: 10px;
  background: linear-gradient(180deg, #10151c, #0b0f15);
  color: var(--texto); transition: all var(--transicion);
}
.tema:hover { border-color: var(--dorado); background: #141b24; color: var(--texto); transform: translateX(3px); }
.tema .datos { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.tema .datos strong { font-size: 1.02rem; }
.tema .cuenta {
  display: flex; flex-direction: column; align-items: center;
  color: var(--dorado); font-weight: 800; font-size: 1.1rem; flex: 0 0 auto;
}
.tema .cuenta small { color: var(--texto-tenue); font-size: .64rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.tema .flecha { color: var(--texto-tenue); font-size: 1.1rem; }
.mensajeForo {
  border: 1px solid var(--tarjeta-borde); border-left: 3px solid var(--dorado);
  border-radius: 8px; padding: .9rem 1.1rem; margin: .8rem 0; background: #0d1219;
}
.mensajeForo .cabeceraMsg {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  margin-bottom: .5rem; border-bottom: 1px solid rgba(255,255,255,.06); padding-bottom: .4rem;
}
.mensajeForo .cuerpoMsg { color: var(--texto-suave); }
.mensajeForo .borrarMsg { margin-top: .7rem; padding: .35rem .8rem; font-size: .72rem; }
#formRespuesta textarea, #formTema textarea {
  width: 100%; padding: .8rem .9rem; background: #080c11; color: var(--texto);
  border: 1px solid var(--tarjeta-borde-2); border-radius: 8px;
  font-family: inherit; font-size: 1rem; margin-bottom: .8rem;
}
/* ==========================================================================
   EL TÍTULO YA NO LLEVA NEÓN: el protagonista es el vídeo de fondo.
   Letra blanca con una sombra suave para que se lea, nada más.
   ========================================================================== */
.portada h1 {
  color: #ffffff;
  text-shadow:
    0 4px 26px rgba(0,0,0,.85),
    0 2px 8px  rgba(0,0,0,.75);
  animation: none;
}
/* --- secciones del foro --- */
.secciones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: .9rem;
  margin: 1.6rem 0 2rem;
}
.seccionForo {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--tarjeta-borde);
  border-left: 3px solid var(--dorado);
  border-radius: 10px;
  background: linear-gradient(180deg, #10151c, #0b0f15);
  color: var(--texto);
  transition: all var(--transicion);
}
.seccionForo:hover {
  border-color: var(--dorado);
  background: #141b24;
  color: var(--texto);
  transform: translateY(-2px);
}
.seccionForo.activa { border-color: var(--dorado); background: #16202a; }
.seccionForo strong { font-size: 1.05rem; }
.seccionForo .cuenta {
  color: var(--dorado); font-size: .74rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
}
#tCategoria {
  width: 100%; padding: .8rem .9rem; background: #080c11; color: var(--texto);
  border: 1px solid var(--tarjeta-borde-2); border-radius: 8px;
  font-family: inherit; font-size: 1rem;
}
/* --- grupos de secciones del foro --- */
.grupoForo { margin-bottom: 1.8rem; }
.tituloGrupo {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .16em;
  color: var(--dorado); margin: 0 0 .7rem; padding-bottom: .45rem;
  border-bottom: 1px solid rgba(248,183,0,.22);
}
.rejillaSecciones {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: .8rem;
}
/* --- imagenes en los mensajes del foro y las noticias --- */
.imagenMensaje {
  display: block;
  max-width: 100%;
  height: auto;
  margin: .8rem 0;
  border-radius: 8px;
  border: 1px solid var(--tarjeta-borde-2);
}
.cajaImagen {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: -.4rem 0 .9rem;
  flex-wrap: wrap;
}
.botonImagen { padding: .45rem .9rem; font-size: .78rem; }
.cajaImagen .nota { font-size: .78rem; color: var(--texto-tenue); }
/* ==========================================================================
   ARREGLO: el boton dorado tiene que tener el texto OSCURO
   (antes heredaba el color claro del enlace y casi no se leia)
   ========================================================================== */
.boton-principal,
a.boton-principal,
.boton.boton-principal {
  color: #1a1206 !important;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
  letter-spacing: .06em;
}
.boton-principal:hover,
a.boton-principal:hover,
.boton.boton-principal:hover {
  color: #000000 !important;
}

/* El boton secundario (fondo oscuro) si lleva texto claro */
.boton-secundario,
a.boton-secundario,
.boton.boton-secundario {
  color: #ffffff !important;
}
.boton-secundario:hover,
a.boton-secundario:hover,
.boton.boton-secundario:hover {
  color: var(--dorado) !important;
}
/* ==========================================================================
   BOTON PRINCIPAL BRILLANTE
   Dorado mas claro, luz interior, resplandor y un destello que lo recorre.
   ========================================================================== */
.boton-principal,
.boton.boton-principal,
a.boton-principal {
  position: relative;
  overflow: hidden;
  color: #241704 !important;
  font-weight: 800;
  letter-spacing: .07em;
  background: linear-gradient(180deg,
              #fff3c4 0%,
              #ffe083 18%,
              #ffcb3d 45%,
              #ffbe0b 68%,
              #e0a000 100%);
  border: 1px solid #fff0b0;
  text-shadow: 0 1px 0 rgba(255,255,255,.65);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -2px 6px rgba(150,90,0,.35),
    0 0 18px rgba(255,205,0,.45),
    0 8px 28px rgba(255,190,0,.45);
  transition: transform .18s ease, box-shadow .25s ease, filter .2s ease;
}

/* El destello que recorre el boton */
.boton-principal::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -70%;
  width: 45%;
  height: 140%;
  background: linear-gradient(100deg,
              rgba(255,255,255,0) 0%,
              rgba(255,255,255,.75) 50%,
              rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  animation: destello 3.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes destello {
  0%,  62% { left: -70%; }
  88%, 100% { left: 135%; }
}

.boton-principal:hover,
.boton.boton-principal:hover,
a.boton-principal:hover {
  color: #120b00 !important;
  filter: brightness(1.12) saturate(1.1);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -2px 6px rgba(150,90,0,.3),
    0 0 30px rgba(255,215,0,.75),
    0 12px 40px rgba(255,195,0,.6);
}

/* Si el visitante no quiere animaciones, sin destello */
@media (prefers-reduced-motion: reduce) {
  .boton-principal::after { animation: none; display: none; }
}

/* En movil, el brillo tambien */
@media (max-width: 700px) {
  .boton-principal { box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 6px 20px rgba(255,190,0,.5); }
}
/* ==========================================================================
   ARREGLO IMPORTANTE
   Un elemento con "hidden" en el HTML tiene que estar OCULTO siempre.
   Si no se pone esto, cualquier regla con "display" lo anula y se ve
   cosas que no deberian verse (como el formulario de noticias).
   ========================================================================== */
[hidden] { display: none !important; }

/* Y las tarjetas ocultas tampoco muestran su adorno */
.tarjeta[hidden]::after { display: none !important; }
/* ==========================================================================
   EL USUARIO EN LA ESQUINA SUPERIOR DERECHA
   ========================================================================== */
.usuarioCaja {
  margin-left: auto;
  position: relative;
  display: flex;
  align-items: center;
}
.usuarioCargando { color: var(--texto-tenue); font-size: .8rem; padding: 0 .6rem; }
.usuarioEntrar { padding: .5rem 1.1rem; font-size: .74rem; }

.usuarioBoton {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .85rem;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--tarjeta-borde-2);
  border-radius: 9px;
  color: var(--texto);
  font-family: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transicion);
}
.usuarioBoton:hover { border-color: var(--dorado); background: rgba(248,183,0,.1); }
.usuarioIcono { font-size: .95rem; }
.usuarioNombre { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usuarioFlecha { color: var(--texto-tenue); font-size: .7rem; }

.usuarioMenu {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  width: 300px;
  max-width: 88vw;
  background: #0d1219;
  border: 1px solid var(--tarjeta-borde-2);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,.7);
  padding: .7rem;
  z-index: 300;
}
.usuarioCabecera {
  display: flex; flex-direction: column; gap: .1rem;
  padding: .5rem .6rem .6rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: .5rem;
}
.usuarioCabecera strong { font-size: .95rem; }
.usuarioSeccion {
  font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
  color: var(--dorado); padding: .5rem .6rem .3rem;
}
.usuarioPersonajes { max-height: 190px; overflow-y: auto; }
.usuarioPersonaje {
  display: flex; justify-content: space-between; align-items: baseline; gap: .5rem;
  padding: .42rem .6rem; border-radius: 7px; color: var(--texto); font-size: .84rem;
}
.usuarioPersonaje:hover { background: rgba(248,183,0,.12); color: var(--texto); }
.usuarioPersonaje.activo { background: rgba(248,183,0,.16); }
.usuarioPjNombre { font-weight: 700; }
.usuarioPjDatos { color: var(--texto-tenue); font-size: .72rem; }
.usuarioSinPj { padding: .3rem .6rem; font-size: .8rem; }
.usuarioOpcion {
  display: block; width: 100%; text-align: left;
  padding: .5rem .6rem; border-radius: 7px;
  background: none; border: none; color: var(--texto);
  font-family: inherit; font-size: .82rem; cursor: pointer;
}
.usuarioOpcion:hover { background: rgba(255,255,255,.07); color: var(--texto); }
.usuarioSalir { color: #ff8a8a; }
.usuarioSalir:hover { background: rgba(255,80,80,.14); color: #ff8a8a; }

/* En movil, que no estorbe */
@media (max-width: 900px) {
  .usuarioNombre { max-width: 80px; }
  .usuarioMenu { position: fixed; top: auto; bottom: 1rem; right: 1rem; left: 1rem; width: auto; }
}
/* ==========================================================================
   ETIQUETAS DE GM Y ADMINISTRADOR
   ========================================================================== */
.etiquetaGM {
  display: inline-block;
  margin-left: .4rem;
  padding: .08rem .38rem;
  border-radius: 4px;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  vertical-align: middle;
  line-height: 1.5;
  border: 1px solid transparent;
}
/* Game Master: verde */
.etiquetaGM.gm {
  background: rgba(0, 200, 128, .16);
  color: #34e39b;
  border-color: rgba(0, 200, 128, .45);
}
/* Administrador: dorado */
.etiquetaGM.admin {
  background: rgba(248, 183, 0, .18);
  color: var(--dorado);
  border-color: rgba(248, 183, 0, .5);
}
/* Ayudante: azul */
.etiquetaGM:not(.gm):not(.admin) {
  background: rgba(120, 170, 255, .15);
  color: #8fb8ff;
  border-color: rgba(120, 170, 255, .4);
}
.autorForo { font-weight: 700; }
.autorForo:hover { color: var(--dorado); text-decoration: underline; }
/* --- pestanas de la clasificacion --- */
.pestanas {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.4rem 0 1.2rem;
}
.pestanaClasificacion {
  padding: .55rem 1.1rem;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--tarjeta-borde-2);
  border-radius: 999px;
  color: var(--texto-tenue);
  font-family: inherit;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: all var(--transicion);
}
.pestanaClasificacion:hover { border-color: var(--dorado); color: var(--texto); }
.pestanaClasificacion.activa {
  background: linear-gradient(180deg, #ffe083, #ffbe0b);
  border-color: #fff0b0;
  color: #241704;
  box-shadow: 0 0 16px rgba(255,205,0,.4);
}
.tabla-clasificacion .puesto { font-size: 1.05rem; width: 70px; }
.tabla-clasificacion .nivelEquipo { color: var(--dorado); font-size: 1.05rem; }
/* ==========================================================================
   ARREGLO: el boton "Jugar gratis" de la CABECERA
   El resplandor del boton normal es grande y en la cabecera se cortaba,
   y ademas el boton se movia al pasar el raton, que quedaba raro.
   Aqui se le pone un brillo suave y fijo, sin moverse.
   ========================================================================== */
.cabecera { overflow: visible; }
.navegacion { overflow: visible; }

.navegacion .boton-principal,
.cabecera .boton-principal {
  transform: none !important;
  padding: .5rem 1.1rem;
  font-size: .72rem;
  border: 1px solid #fff0b0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 0 10px rgba(255,205,0,.35),
    0 3px 12px rgba(255,190,0,.35) !important;
  transition: box-shadow .2s ease, filter .2s ease;
}
.navegacion .boton-principal:hover,
.cabecera .boton-principal:hover {
  transform: none !important;
  filter: brightness(1.1);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 0 18px rgba(255,215,0,.6),
    0 4px 18px rgba(255,195,0,.5) !important;
}
/* El destello que recorre el boton: mas discreto en la cabecera */
.navegacion .boton-principal::after,
.cabecera .boton-principal::after { animation-duration: 6s; opacity: .7; }
/* --- barra del foro: buscador y filtros --- */
.barraForo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
  margin: 1rem 0 1.2rem;
  padding: .9rem 1rem;
  background: linear-gradient(180deg, #10151c, #0b0f15);
  border: 1px solid var(--tarjeta-borde);
  border-radius: 12px;
}
.barraForo input[type="search"] {
  flex: 1 1 220px;
  min-width: 180px;
  padding: .6rem .9rem;
  background: #080c11;
  color: var(--texto);
  border: 1px solid var(--tarjeta-borde-2);
  border-radius: 9px;
  font-family: inherit;
  font-size: .9rem;
}
.barraForo input[type="search"]:focus { outline: none; border-color: var(--dorado); }
.filtrosForo { display: flex; flex-wrap: wrap; gap: .35rem; }
.filtro {
  padding: .4rem .85rem;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--tarjeta-borde-2);
  border-radius: 999px;
  color: var(--texto-tenue);
  font-family: inherit;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transicion);
}
.filtro:hover { border-color: var(--dorado); color: var(--texto); }
.filtro.activo {
  background: linear-gradient(180deg, rgba(255,224,131,.9), rgba(255,190,11,.9));
  border-color: #fff0b0;
  color: #241704;
}
.barraForo #cuentaTemas { margin: 0; width: 100%; font-size: .74rem; }
/* ==========================================================================
   LOGIN MAS TRABAJADO
   Tarjeta con cabecera, campos mas comodos, y boton para ver la contrasena.
   ========================================================================== */
.tarjeta-formulario {
  background: linear-gradient(180deg, #111821, #0a0e14);
  border: 1px solid var(--tarjeta-borde-2);
  border-radius: 16px;
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05);
}
.tarjeta-formulario h3 {
  font-size: 1.25rem;
  margin: 0 0 1.2rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: relative;
}
.tarjeta-formulario h3::after {
  content: "";
  position: absolute; left: 0; bottom: -1px;
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--dorado), transparent);
}
.tarjeta-formulario label {
  display: block;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--dorado);
  margin: .9rem 0 .35rem;
}
.tarjeta-formulario input {
  width: 100%;
  padding: .8rem 1rem;
  background: #070a0f;
  border: 1px solid var(--tarjeta-borde-2);
  border-radius: 10px;
  color: var(--texto);
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.tarjeta-formulario input:focus {
  outline: none;
  border-color: var(--dorado);
  box-shadow: 0 0 0 3px rgba(248,183,0,.14);
}
.tarjeta-formulario small { display: block; margin-top: .3rem; font-size: .74rem; }

/* El boton de ver/ocultar la contrasena */
.campoClave { position: relative; }
.campoClave input { padding-right: 3rem; }
.verClave {
  position: absolute;
  right: .5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--texto-tenue);
  font-family: inherit;
  font-size: .7rem;
  font-weight: 700;
  cursor: pointer;
  padding: .3rem .5rem;
  border-radius: 6px;
}
.verClave:hover { color: var(--dorado); background: rgba(248,183,0,.1); }
/* ==========================================================================
   VENTANA DEL USUARIO
   ========================================================================== */
.ventanaUsuario { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.ventanaFondo { position: absolute; inset: 0; background: rgba(3,5,8,.82); backdrop-filter: blur(3px); }
.ventanaCaja {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #111821, #0a0e14);
  border: 1px solid var(--tarjeta-borde-2);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
}
.ventanaCerrar {
  position: absolute; top: .8rem; right: .8rem;
  width: 34px; height: 34px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--tarjeta-borde-2);
  border-radius: 9px;
  color: var(--texto-tenue);
  font-size: .9rem; cursor: pointer; z-index: 2;
}
.ventanaCerrar:hover { color: var(--texto); border-color: var(--dorado); }
.ventanaCabecera {
  display: flex; align-items: center; gap: .9rem;
  padding: 1.3rem 1.4rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.ventanaIcono {
  width: 46px; height: 46px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  background: rgba(248,183,0,.12);
  border: 1px solid rgba(248,183,0,.4);
  border-radius: 12px;
}
.ventanaCabecera strong { display: block; font-size: 1.15rem; }
.ventanaPestanas { display: flex; flex-wrap: wrap; gap: .3rem; padding: .8rem 1.4rem 0; }
.vpestana {
  padding: .45rem .9rem;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--tarjeta-borde-2);
  border-radius: 999px;
  color: var(--texto-tenue);
  font-family: inherit; font-size: .74rem; font-weight: 700; cursor: pointer;
}
.vpestana:hover { border-color: var(--dorado); color: var(--texto); }
.vpestana.activa { background: linear-gradient(180deg, #ffe083, #ffbe0b); border-color: #fff0b0; color: #241704; }
.ventanaCuerpo { padding: 1.2rem 1.4rem; overflow-y: auto; flex: 1 1 auto; }
.ventanaPie { padding: .9rem 1.4rem 1.2rem; border-top: 1px solid rgba(255,255,255,.07); display: flex; justify-content: flex-end; }

.vcuerpo label { display: block; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--dorado); margin: .9rem 0 .35rem; }
.vcuerpo input { width: 100%; padding: .75rem .9rem; background: #070a0f; border: 1px solid var(--tarjeta-borde-2); border-radius: 9px; color: var(--texto); font-family: inherit; font-size: .92rem; }
.vcuerpo input:focus { outline: none; border-color: var(--dorado); box-shadow: 0 0 0 3px rgba(248,183,0,.14); }
.vcuerpo .boton { margin-top: 1.1rem; }

.vpersonaje {
  display: flex; align-items: baseline; gap: .7rem;
  padding: .65rem .8rem; margin-bottom: .4rem;
  border: 1px solid var(--tarjeta-borde); border-radius: 10px;
  background: #0b1017; color: var(--texto);
}
.vpersonaje:hover { border-color: var(--dorado); color: var(--texto); transform: translateX(3px); }
.vpersonajeNombre { font-weight: 700; flex: 1 1 auto; }
.vpersonajeDatos { color: var(--texto-tenue); font-size: .78rem; }
.vpersonajeFlecha { color: var(--dorado); }

.vfila { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.vfila span { color: var(--texto-tenue); font-size: .85rem; }
.vfila strong { color: var(--texto); }

.boton-peligro {
  background: linear-gradient(180deg, #ff7b7b, #d32f2f);
  border-color: #ff9b9b; color: #fff; font-weight: 800;
}
.boton-peligro:hover { filter: brightness(1.1); color: #fff; }

@media (max-width: 700px) {
  .ventanaCaja { max-height: 92vh; }
  .ventanaCabecera, .ventanaPestanas, .ventanaCuerpo, .ventanaPie { padding-left: 1rem; padding-right: 1rem; }
}
/* --- boton de volver del foro --- */
.volverSecciones { font-size: .74rem; padding: .45rem .95rem; }
/* --- grupos de temas dentro de un apartado --- */
.grupoTemas { margin-bottom: 1.4rem; }
.tituloGrupoTemas {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--dorado);
  margin: 0 0 .6rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid rgba(248,183,0,.22);
}
.tema .cuenta { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; }
.tema .sinRespuesta {
  font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: #ffb36b; background: rgba(255,150,60,.12);
  border: 1px solid rgba(255,150,60,.35); border-radius: 5px; padding: .1rem .4rem;
}
.tema .conRespuesta {
  font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: #34e39b; background: rgba(0,200,128,.12);
  border: 1px solid rgba(0,200,128,.35); border-radius: 5px; padding: .1rem .4rem;
}
/* ==========================================================================
   ARREGLO DE LAS TARJETAS DE TEMA
   El contenido se salia de la tarjeta y quedaban muy pegadas unas a otras.
   Ahora: mas separacion, mas aire dentro, y nada se sale.
   ========================================================================== */
#listaTemas { display: flex; flex-direction: column; gap: .9rem; }

.tema {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "datos  cuenta"
    "datos  flecha";
  align-items: center;
  column-gap: 1.2rem;
  row-gap: .2rem;
  padding: 1.05rem 1.3rem;
  margin: 0;
  min-height: 84px;
  border: 1px solid var(--tarjeta-borde);
  border-left: 3px solid rgba(248,183,0,.5);
  border-radius: 12px;
  background: linear-gradient(180deg, #10151c, #0b0f15);
  color: var(--texto);
  overflow: hidden;
  box-sizing: border-box;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.tema:hover {
  border-color: var(--dorado);
  border-left-color: var(--dorado);
  background: #141b24;
  color: var(--texto);
  transform: translateX(4px);
}

/* La parte de la izquierda: titulo y datos */
.tema .datos {
  grid-area: datos;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  min-width: 0;
  overflow: hidden;
}
.tema .datos strong {
  font-size: 1.03rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
  display: block;
}
.tema .datos .nota {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem .45rem;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--texto-tenue);
}
.tema .datos .nota .autorForo { font-weight: 700; }
.tema .datos .nota .etiquetaGM { margin-left: 0; }

/* La parte de la derecha: la etiqueta de respuestas y la flecha */
.tema .cuenta {
  grid-area: cuenta;
  justify-self: end;
  align-self: end;
  display: block;
  font-size: 0;
}
.tema .flecha {
  grid-area: flecha;
  justify-self: end;
  align-self: start;
  color: var(--texto-tenue);
  font-size: 1.05rem;
  line-height: 1;
}
.tema:hover .flecha { color: var(--dorado); }

.tema .sinRespuesta,
.tema .conRespuesta {
  display: inline-block;
  font-size: .64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-radius: 6px;
  padding: .22rem .55rem;
  white-space: nowrap;
}
.tema .sinRespuesta {
  color: #ffb36b;
  background: rgba(255,150,60,.12);
  border: 1px solid rgba(255,150,60,.35);
}
.tema .conRespuesta {
  color: #34e39b;
  background: rgba(0,200,128,.12);
  border: 1px solid rgba(0,200,128,.35);
}

/* En pantallas pequeñas, la etiqueta pasa debajo */
@media (max-width: 700px) {
  .tema {
    grid-template-columns: 1fr;
    grid-template-areas: "datos" "cuenta" "flecha";
    row-gap: .6rem;
  }
  .tema .cuenta, .tema .flecha { justify-self: start; }
  .tema { padding: .95rem 1rem; }
}
/* ==========================================================================
   EL BOTON "JUGAR GRATIS" DE LA CABECERA - DORADO, SIEMPRE
   Se fuerza el fondo para que nada lo deje en negro.
   ========================================================================== */
.cabecera .navegacion .boton-principal,
.cabecera .boton-principal,
.navegacion .boton-principal {
  background: linear-gradient(180deg,
              #ffe89a 0%,
              #ffd24d 30%,
              #ffc21a 60%,
              #f0ad00 100%) !important;
  background-color: #ffc21a !important;
  color: #241704 !important;
  border: 1px solid #fff2bd !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.5) !important;
  transform: none !important;
  padding: .5rem 1.1rem !important;
  font-size: .72rem !important;
  font-weight: 800 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9),
              0 0 12px rgba(255,205,0,.4),
              0 3px 14px rgba(255,190,0,.35) !important;
}
.cabecera .navegacion .boton-principal:hover,
.cabecera .boton-principal:hover,
.navegacion .boton-principal:hover {
  background: linear-gradient(180deg,
              #fff4c4 0%,
              #ffe06a 30%,
              #ffcb2e 60%,
              #ffbb00 100%) !important;
  background-color: #ffd24d !important;
  color: #120b00 !important;
  transform: none !important;
  box-shadow: inset 0 1px 0 #ffffff,
              0 0 20px rgba(255,215,0,.65),
              0 4px 18px rgba(255,195,0,.5) !important;
}
/* Sin destello en la cabecera: ahi molesta */
.cabecera .navegacion .boton-principal::after,
.cabecera .boton-principal::after { display: none !important; }