/* h5.gormaticaweb.es · backoffice interno sobre Bootstrap 5.3
   Barra lateral oscura y acento ámbar para no confundirlo con el panel de clientes (blanco y verde). */
:root {
  --h5-oscuro: #15181d;
  --h5-oscuro-2: #1f242b;
  --h5-acento: #e3a33b;
  --h5-acento-suave: rgb(227 163 59 / .14);
  --h5-fondo: #eceef1;
  --h5-borde: #dde1e6;
  --h5-texto: #1c2128;
  --h5-suave: #69717c;
  --h5-lateral: 236px;
  --bs-primary: #2d3a4b;
  --bs-primary-rgb: 45, 58, 75;
  --bs-link-color: #2457b8;
  --bs-link-color-rgb: 36, 87, 184;
  --bs-link-hover-color: #183f8a;
  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-font-size: .92rem;
  --bs-border-radius: .45rem;
}
.btn-primary { --bs-btn-bg: #2d3a4b; --bs-btn-border-color: #2d3a4b; --bs-btn-hover-bg: #1d2633; --bs-btn-hover-border-color: #1d2633; --bs-btn-active-bg: #151c26; --bs-btn-disabled-bg: #2d3a4b; --bs-btn-disabled-border-color: #2d3a4b; }
.btn-outline-primary { --bs-btn-color: #2d3a4b; --bs-btn-border-color: #2d3a4b; --bs-btn-hover-bg: #2d3a4b; --bs-btn-hover-border-color: #2d3a4b; --bs-btn-active-bg: #2d3a4b; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--h5-acento); box-shadow: 0 0 0 .2rem rgb(227 163 59 / .25); }
.form-check-input:checked { background-color: #2d3a4b; border-color: #2d3a4b; }
body.h5 { background: var(--h5-fondo); color: var(--h5-texto); }

.h5-logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--h5-acento); color: #1a1406; font-weight: 800; font-size: .95rem; letter-spacing: -.03em; flex: none; }

/* ------------------------------------------------------------- acceso */
.h5-acceso { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: repeating-linear-gradient(135deg, #1a1e24 0 14px, #171a20 14px 28px); }
.acceso-caja { width: 100%; max-width: 400px; background: #fff; border-radius: 14px; padding: 30px 28px; box-shadow: 0 30px 70px -20px rgb(0 0 0 / .6); border-top: 4px solid var(--h5-acento); }
.acceso-marca { display: flex; align-items: center; gap: 10px; font-weight: 800; margin-bottom: 22px; letter-spacing: -.02em; }
.acceso-marca small, .h5-marca small { display: block; font-weight: 500; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--h5-suave); }
.acceso-caja h1 { font-size: 1.35rem; font-weight: 750; letter-spacing: -.02em; margin-bottom: 6px; }
.acceso-caja .form-label { font-weight: 600; font-size: .88rem; }

/* ------------------------------------------------------------- carcasa */
.h5-lateral { position: fixed; inset: 0 auto 0 0; width: var(--h5-lateral); background: var(--h5-oscuro); color: #c3c9d2; display: flex; flex-direction: column; padding: 16px 12px; z-index: 1040; overflow-y: auto; }
.h5-marca { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: -.02em; padding: 2px 8px 18px; }
.h5-marca:hover { color: #fff; }
.h5-marca small { color: #8a929e; }
.h5-nav { display: flex; flex-direction: column; gap: 2px; }
.h5-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; color: #c3c9d2; text-decoration: none; font-weight: 500; }
.h5-nav a i { width: 1.25em; color: #7f8894; font-size: 1rem; }
.h5-nav a:hover { background: var(--h5-oscuro-2); color: #fff; }
.h5-nav a.activo { background: var(--h5-acento-suave); color: var(--h5-acento); box-shadow: inset 3px 0 0 var(--h5-acento); }
.h5-nav a.activo i { color: var(--h5-acento); }
.h5-cuenta { margin-left: auto; background: #d9534f; color: #fff; border-radius: 99px; font-size: .7rem; padding: 1px 7px; font-weight: 700; }
.h5-yo { margin-top: auto; padding-top: 14px; border-top: 1px solid #2a3038; }
.h5-yo-nombre { display: flex; gap: 10px; align-items: center; padding: 4px 10px 10px; color: #e6e9ee; font-weight: 600; font-size: .88rem; }
.h5-yo-nombre i { font-size: 1.5rem; color: #7f8894; }
.h5-yo-nombre small { display: block; color: #8a929e; font-weight: 400; font-size: .75rem; }
.h5-salir { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; color: #c3c9d2; text-decoration: none; }
.h5-salir:hover { background: var(--h5-oscuro-2); color: #fff; }
.h5-principal { margin-left: var(--h5-lateral); min-height: 100vh; display: flex; flex-direction: column; }
.h5-barra { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: 12px; padding: 10px 24px; background: #fff; border-bottom: 1px solid var(--h5-borde); border-top: 3px solid var(--h5-acento); min-height: 58px; }
.h5-titulo { font-size: 1.1rem; font-weight: 700; margin: 0; letter-spacing: -.01em; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h5-interno { font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8a5a00; background: #fbecd0; border-radius: 4px; padding: 2px 6px; }
.h5-barra-acciones { margin-left: auto; display: flex; gap: 8px; }
.h5-burger { display: none; }
.h5-vista { padding: 22px 24px 40px; flex: 1; }
.h5-velo { display: none; }
@media (max-width: 991px) {
  .h5-lateral { transform: translateX(-100%); transition: transform .2s; }
  .lateral-abierto .h5-lateral { transform: none; }
  .lateral-abierto .h5-velo { display: block; position: fixed; inset: 0; background: rgb(0 0 0 / .4); z-index: 1030; }
  .h5-principal { margin-left: 0; }
  .h5-burger { display: inline-flex; }
  .h5-vista { padding: 14px 16px 30px; }
  .h5-barra { padding: 8px 16px; }
}

/* ------------------------------------------------------------- piezas */
.tarjeta-h5 { background: #fff; border: 1px solid var(--h5-borde); border-radius: 10px; padding: 18px 20px; }
.tarjeta-h5 + .tarjeta-h5 { margin-top: 14px; }
.tarjeta-h5 h2 { font-size: .95rem; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .04em; color: #3a424d; }
.vacio-h5 { text-align: center; padding: 36px 16px; color: var(--h5-suave); }
.vacio-h5 i { display: block; font-size: 2rem; margin-bottom: 10px; color: #b3bac3; }
.migas-h5 { font-size: .85rem; color: var(--h5-suave); margin: -6px 0 14px; }
.migas-h5 a { text-decoration: none; }
.etq { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 4px; background: #eef0f3; color: #59616c; white-space: nowrap; vertical-align: middle; }
.etq.verde { background: #e1f3e8; color: #1c6e44; }
.etq.naranja { background: #fdf0d9; color: #8f5500; }
.etq.rojo { background: #fde3e0; color: #a3261a; }
.etq.azul { background: #e2ebfb; color: #1f4fa3; }
.etq.gris { background: #eef0f3; color: #59616c; }
.etq.oscura { background: var(--h5-oscuro); color: var(--h5-acento); }
.tabla-h5 { --bs-table-bg: transparent; font-size: .88rem; }
.tabla-h5 > thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--h5-suave); font-weight: 700; border-bottom-width: 1px; white-space: nowrap; }
.tarjeta-h5.p-0 .tabla-h5 th:first-child, .tarjeta-h5.p-0 .tabla-h5 td:first-child { padding-left: 18px; }
.tarjeta-h5.p-0 .tabla-h5 th:last-child, .tarjeta-h5.p-0 .tabla-h5 td:last-child { padding-right: 18px; }
.tabla-h5 a { text-decoration: none; }
.barra-h5 { height: 8px; background: #eef0f3; border-radius: 99px; overflow: hidden; }
.barra-h5 span { display: block; height: 100%; background: var(--h5-acento); border-radius: 99px; }
.datos-h5 { display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; margin: 0; }
.datos-h5 dt { font-weight: 600; color: var(--h5-suave); font-size: .82rem; padding-top: 2px; }
.datos-h5 dd { margin: 0; word-break: break-word; }
.datos-h5-estrecho { grid-template-columns: 100px 1fr; margin-bottom: 14px; }
@media (max-width: 575px) { .datos-h5 { grid-template-columns: 1fr; gap: 0; } .datos-h5 dd { margin-bottom: 8px; } }
.texto-largo { white-space: pre-line; word-break: break-word; }
.lista-h5 { display: grid; gap: 10px; }
.item-h5 { border: 1px solid var(--h5-borde); border-radius: 8px; padding: 10px 12px; background: #fafbfc; }
.filtros-h5 .form-label { color: var(--h5-suave); font-weight: 600; }

/* Inicio */
.cifras-h5 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cifra-h5 { position: relative; display: block; background: #fff; border: 1px solid var(--h5-borde); border-radius: 10px; padding: 16px 18px; color: inherit; text-decoration: none; overflow: hidden; }
a.cifra-h5:hover { border-color: #b9c0c9; color: inherit; }
.cifra-h5.aviso { border-left: 4px solid var(--h5-acento); }
.cifra-ico { position: absolute; right: 14px; top: 14px; font-size: 1.4rem; color: #c2c8d0; }
.cifra-titulo { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--h5-suave); }
.cifra-valor { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; margin-top: 4px; }
.cifra-pie { font-size: .8rem; color: var(--h5-suave); }

/* Pestañas */
.pestanas-h5 { display: flex; flex-wrap: wrap; gap: 6px; }
.pestanas-h5 a { padding: 6px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--h5-borde); color: #3a424d; text-decoration: none; font-weight: 600; font-size: .85rem; }
.pestanas-h5 a b { margin-left: 4px; color: var(--h5-suave); }
.pestanas-h5 a.activo { background: var(--h5-oscuro); border-color: var(--h5-oscuro); color: #fff; }
.pestanas-h5 a.activo b { color: var(--h5-acento); }

/* Cola de moderación */
.cola-h5 { display: grid; gap: 12px; }
.cola-item { display: flex; gap: 16px; margin: 0 !important; }
.cola-medio { flex: none; width: 140px; }
.cola-medio img { width: 140px; height: 105px; object-fit: cover; border-radius: 8px; border: 1px solid var(--h5-borde); background: #eef0f3; }
.cola-ico { width: 140px; height: 105px; border-radius: 8px; background: #f1f3f6; display: grid; place-content: center; text-align: center; color: #9aa2ad; }
.cola-ico i { font-size: 2rem; }
.cola-ico small { font-size: .72rem; margin-top: 4px; }
.cola-cuerpo { flex: 1; min-width: 0; }
.cola-motivos { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 4px; font-size: .86rem; }
@media (max-width: 575px) { .cola-item { flex-direction: column; } }

/* Nombres reservados */
.nombres-h5 { display: flex; flex-wrap: wrap; gap: 6px; }
.nombre-h5 { display: inline-flex; align-items: center; gap: 2px; padding: 2px 2px 2px 10px; border-radius: 6px; background: #f1f3f6; border-left: 3px solid #9aa2ad; font-size: .85rem; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.nombre-h5.marca, .leyenda.marca { border-color: #2457b8; }
.nombre-h5.ofensivo, .leyenda.ofensivo { border-color: #d9534f; }
.leyenda { display: inline-block; width: 10px; height: 10px; border-left: 3px solid #9aa2ad; background: #f1f3f6; vertical-align: middle; }
.btn-icono { border: 0; background: none; width: 26px; height: 26px; border-radius: 5px; color: var(--h5-suave); display: inline-grid; place-items: center; }
.btn-icono:hover { background: #fde3e0; color: #a3261a; }
