/* Tablero: panel oscuro de enlaces (landing y panel de usuario). */
.heroe-tablero { margin-top: 2.5rem; }
.tablero { margin: 0 0 3.5rem; border-radius: 10px; overflow: hidden; background: #14113d; color: #ecebff; box-shadow: var(--sombra); }
.tablero-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1.5rem; padding: .75rem 1.5rem; background: linear-gradient(90deg, #4aa3ff, #8b6cff, #ff5fa2); color: #0d0b2b; }
.tablero-cab h2 { margin: 0; font-size: 1.35rem; }
.tablero-cab span { font-family: var(--fuente-mono); font-size: .85rem; font-weight: 700; }
.tablero-tabla { overflow-x: auto; }
.tablero table { width: 100%; border-collapse: collapse; min-width: 640px; }
.tablero th { padding: .75rem 1rem; text-align: left; font: 400 .8rem var(--fuente-mono); color: #b8b7e8; border-bottom: 1px solid #2d2873; white-space: nowrap; }
.tablero td { padding: .85rem 1rem; border-bottom: 1px solid #2d2873; vertical-align: middle; }
.tablero th:first-child, .tablero td:first-child { padding-left: 1.5rem; }
.tablero th:last-child, .tablero td:last-child { padding-right: 1.5rem; }
.tablero tbody tr:last-child td { border-bottom: 0; }
.tablero th.num { text-align: right; font: 400 .8rem var(--fuente-mono); }
.tablero td.num { text-align: right; font: 700 1.3rem var(--fuente-mono); font-variant-numeric: tabular-nums; }
.tablero .destino { font: .92rem var(--fuente-mono); color: #c9c8f0; overflow-wrap: anywhere; }
.fichas { display: inline-flex; gap: 4px; }
.ficha {
  display: grid; place-items: center; width: 32px; height: 46px; border-radius: 4px;
  background: linear-gradient(#0000 49%, #0009 49% 51%, #0000 51%), #2d2873; color: #ecebff; font: 700 1.6rem var(--fuente-mono);
}
.estado { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: .92rem; white-space: nowrap; }
.estado::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: currentColor; }
.estado-ok { color: #6ee7a0; }
.estado-aviso { color: #ffa94d; }
.estado-off { color: #ff6b8a; }
@media (prefers-reduced-motion: no-preference) {
  .ficha { animation: gira .5s ease-out both; }
  @keyframes gira { from { transform: rotateX(90deg); } }
}


/* Adaptaciones para usarlo dentro del panel (enlaces propios) */
.tablero { margin-bottom: 1.5rem; }
.tablero .tablero-cab { background: linear-gradient(90deg, #4aa3ff, #8b6cff, #ff5fa2); }
.tablero a { color: #8fc6ff; }
.tablero a:hover { color: #c3e0ff; }
.tablero th { background: transparent; }
.tablero th button { color: inherit; }
.tablero tbody tr:hover { background: #1d1950; }
.tablero td { color: #ecebff; font-size: .92rem; }
.tablero .titulo-fila { display: block; font-size: .85rem; color: #c9c8f0; margin-bottom: .3rem; }
.tablero .fichas { flex-wrap: wrap; }
.tablero .fichas-enlace { text-decoration: none; display: inline-block; }
.tablero .fichas-enlace:focus-visible { outline: 3px solid #8fc6ff; outline-offset: 3px; }
.tablero .ficha { width: 26px; height: 38px; font-size: 1.25rem; }
.tablero td.destino { max-width: 280px; }
.tablero .acciones-fila { display: flex; gap: .3rem; flex-wrap: wrap; }
.tablero .boton { background: #2d2873; border-color: #6f76d6; color: #ecebff; }
.tablero .boton:hover { background: #3a3590; color: #ecebff; }
.tablero .boton-peligro { background: #ff6b8a; border-color: #ff6b8a; color: #0d0b2b; }
.tablero .boton-peligro:hover { background: #ff6b8a; filter: brightness(.92); color: #0d0b2b; }
.tablero .tabla-vacia { color: #c9c8f0; }
.tablero td.fecha { white-space: nowrap; color: #c9c8f0; font-family: var(--fuente-mono); font-size: .85rem; }
