/* HATUN Monitor — identidad de marca (rediseño aprobado 18-ago-2026).
   Paleta derivada de los logos reales: navy develpoint como fondo, cian para
   datos, magenta SOLO para acciones, y el semáforo verde/ámbar/rojo que
   replica el LED físico del AM319.
   Corre SOBRE Bootstrap 5.3 dark + tema Syncfusion bootstrap5.3-dark;
   todo el CSS se referencia SOLO desde el layout. */

:root {
    --hm-fondo: #0b1026;
    --hm-panel: #131a38;
    --hm-tile: #0b1026;
    --hm-borde: #232c55;
    --hm-texto: #eaf0ff;
    --hm-texto-suave: #8b96c2;
    --hm-apagado: #626b93;
    --hm-dato: #3cd8fa;          /* cian: series, deltas, sedes */
    --hm-accion: #ff2bbd;        /* magenta: SOLO botones/acciones */
    --hm-ok: #35e39b;
    --hm-advertencia: #ffb020;
    --hm-critica: #ff4d6b;
    /* alias que el resto de vistas ya usan */
    --hm-acento: #3cd8fa;
}

* { box-sizing: border-box; }

body {
    background: var(--hm-fondo);
    color: var(--hm-texto);
    font-variant-numeric: tabular-nums;
}

/* Botones Bootstrap con la marca: magenta para la acción primaria. */
.btn-primary {
    --bs-btn-bg: var(--hm-accion);
    --bs-btn-border-color: var(--hm-accion);
    --bs-btn-hover-bg: #d915a0;
    --bs-btn-hover-border-color: #d915a0;
    --bs-btn-active-bg: #b81188;
    --bs-btn-active-border-color: #b81188;
}
.btn-outline-secondary {
    --bs-btn-color: var(--hm-texto-suave);
    --bs-btn-border-color: var(--hm-borde);
    --bs-btn-hover-bg: var(--hm-borde);
    --bs-btn-hover-border-color: var(--hm-borde);
    --bs-btn-hover-color: var(--hm-texto);
}

/* ------------------------------ Cabecera ------------------------------ */

.hm-header {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 0 1.25rem;
    height: 56px;
    background: rgba(19, 26, 56, .92);
    border-bottom: 1px solid var(--hm-borde);
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(6px);
}

.hm-marca { display: flex; align-items: center; gap: .6rem; white-space: nowrap; line-height: 1.1; }
.hm-marca .titulo { font-weight: 750; font-size: 1.02rem; letter-spacing: .01em; }
.hm-marca .sub {
    display: block; font-weight: 500; font-size: .58rem; color: var(--hm-texto-suave);
    letter-spacing: .24em; text-transform: uppercase;
}
/* Nombre de la empresa cliente, separado de la marca por un filete. */
.hm-empresa {
    margin-left: .9rem; padding-left: 1rem; border-left: 1px solid var(--hm-borde);
    font-size: .8rem; font-weight: 600; color: var(--hm-dato);
    letter-spacing: .04em; text-transform: uppercase;
    max-width: 260px; overflow: hidden; text-overflow: ellipsis;
}

.hm-nav { display: flex; gap: .2rem; flex: 1; flex-wrap: wrap; align-items: center; }
.hm-nav a {
    color: var(--hm-texto-suave);
    text-decoration: none;
    padding: .42rem .75rem;
    border-radius: 7px;
    font-size: .9rem;
    white-space: nowrap;
}
.hm-nav a:hover { background: var(--hm-borde); color: var(--hm-texto); }
.hm-nav a i { margin-right: .3rem; }
.hm-nav .dropdown-menu { font-size: .9rem; background: var(--hm-panel); border-color: var(--hm-borde); }
.hm-nav .dropdown-item { color: var(--hm-texto-suave); }
.hm-nav .dropdown-item:hover { background: var(--hm-borde); color: var(--hm-texto); }

.hm-usuario { display: flex; align-items: center; gap: .75rem; color: var(--hm-texto-suave); font-size: .9rem; white-space: nowrap; }
.hm-inline { display: inline; }
.hm-boton-plano { background: none; border: none; color: var(--hm-texto-suave); cursor: pointer; font-size: 1rem; padding: .3rem; }
.hm-boton-plano:hover { color: var(--hm-critica); }

.hm-contenido { padding: 1.25rem; max-width: 1500px; margin: 0 auto; min-height: calc(100vh - 110px); }

/* ------------------------------ Pie de página ------------------------------ */

.hm-footer {
    display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
    padding: .7rem 1.25rem;
    border-top: 1px solid var(--hm-borde);
    color: var(--hm-apagado); font-size: .78rem;
}
.hm-footer .der { margin-left: auto; display: flex; align-items: center; gap: .55rem; }

/* ------------------------------ Piezas comunes ------------------------------ */

.hm-titulo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; flex-wrap: wrap; gap: .75rem; }
.hm-titulo h1 { font-size: 1.3rem; margin: 0; font-weight: 700; letter-spacing: -.01em; }

.hm-panel {
    background: var(--hm-panel);
    border: 1px solid var(--hm-borde);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.hm-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.hm-form .campo { display: flex; flex-direction: column; gap: .3rem; }
.hm-form label { font-size: .82rem; color: var(--hm-texto-suave); }
.hm-form .ancho-total { grid-column: 1 / -1; }
.hm-acciones { margin-top: 1.25rem; display: flex; gap: .75rem; }
.hm-check-lista { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: .35rem .75rem; }

/* ------------------------------ Portada (login / acceso) ------------------------------
   La primera página del sistema y la puerta del demo: panel de marca con
   ondas de radio (el gesto LoRaWAN) + formulario limpio. */

.hm-portada-main { padding: 0; margin: 0; max-width: none; min-height: calc(100vh - 44px); display: flex; }

.hm-portada {
    flex: 1;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    min-height: 100%;
}
@media (max-width: 860px) { .hm-portada { grid-template-columns: 1fr; } }

/* --- Panel de marca (izquierda) --- */
.hm-portada-marca {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 3.5rem;
    background:
        radial-gradient(1100px 600px at 20% 30%, rgba(60, 216, 250, .09), transparent 60%),
        radial-gradient(900px 500px at 80% 80%, rgba(255, 43, 189, .08), transparent 60%),
        var(--hm-fondo);
}
@media (max-width: 860px) { .hm-portada-marca { padding: 2.2rem 1.6rem; } }

/* Ondas de radio: el sensor "emitiendo" detrás del logo. */
.hm-ondas { position: absolute; top: 50%; left: 26%; width: 0; height: 0; pointer-events: none; }
.hm-ondas i {
    position: absolute; top: 0; left: 0;
    width: 90px; height: 90px; margin: -45px 0 0 -45px;
    border: 1.5px solid rgba(60, 216, 250, .35);
    border-radius: 50%;
    animation: hm-onda 5s linear infinite;
}
.hm-ondas i:nth-child(2) { animation-delay: 1.25s; border-color: rgba(255, 43, 189, .25); }
.hm-ondas i:nth-child(3) { animation-delay: 2.5s; }
.hm-ondas i:nth-child(4) { animation-delay: 3.75s; border-color: rgba(53, 227, 155, .25); }
@keyframes hm-onda {
    from { transform: scale(.4); opacity: .9; }
    to { transform: scale(9); opacity: 0; }
}

.hm-portada-marca .contenido { position: relative; max-width: 460px; }
.hm-portada-marca .hm-logo { width: 64px; height: 57px; }
.hm-portada-marca h1 {
    font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em;
    margin: 1rem 0 0; line-height: 1.1;
}
.hm-portada-marca .sub {
    font-size: .74rem; letter-spacing: .3em; text-transform: uppercase;
    color: var(--hm-dato); font-weight: 600; margin-top: .35rem;
}
/* Píldora con el nombre de la empresa cliente, encima del saludo de la
   tarjeta de acceso (solo si el arranque lo supo). */
.hm-portada-empresa {
    display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .9rem;
    padding: .4rem .9rem; border: 1px solid var(--hm-borde); border-radius: 999px;
    background: rgba(60, 216, 250, .07);
    font-size: .82rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
}
.hm-portada-empresa i { color: var(--hm-dato); }
.hm-portada-marca .promesa {
    color: var(--hm-texto-suave); font-size: 1.02rem; margin-top: 1.1rem;
    line-height: 1.6; max-width: 40ch;
}
.hm-portada-rasgos { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .65rem; }
.hm-portada-rasgos .rasgo { display: flex; align-items: center; gap: .7rem; font-size: .92rem; color: var(--hm-texto-suave); }
.hm-portada-rasgos .punto {
    width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
    box-shadow: 0 0 8px currentColor;
}

/* --- Panel del formulario (derecha) --- */
.hm-portada-form {
    display: flex; align-items: center; justify-content: center;
    padding: 2.5rem 1.5rem;
    background: var(--hm-panel);
    border-left: 1px solid var(--hm-borde);
}
@media (max-width: 860px) { .hm-portada-form { border-left: 0; border-top: 1px solid var(--hm-borde); } }

.hm-tarjeta-acceso { width: 100%; max-width: 360px; }
.hm-tarjeta-acceso h2 { font-size: 1.35rem; font-weight: 750; margin: 0 0 .3rem; letter-spacing: -.01em; }
.hm-tarjeta-acceso .ayuda { color: var(--hm-texto-suave); font-size: .88rem; margin: 0 0 1.4rem; }
.hm-tarjeta-acceso label { font-size: .8rem; color: var(--hm-texto-suave); margin-bottom: .3rem; display: block; }
.hm-tarjeta-acceso .form-control { padding: .6rem .8rem; background: var(--hm-fondo); border-color: var(--hm-borde); }
.hm-tarjeta-acceso .form-control:focus { border-color: var(--hm-dato); box-shadow: 0 0 0 .2rem rgba(60, 216, 250, .15); }
.hm-tarjeta-acceso .campo { margin-bottom: 1rem; }
.hm-tarjeta-acceso .btn { width: 100%; padding: .6rem; font-weight: 650; }
.hm-separador {
    display: flex; align-items: center; gap: .8rem; margin: 1.3rem 0;
    color: var(--hm-apagado); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em;
}
.hm-separador::before, .hm-separador::after { content: ""; flex: 1; height: 1px; background: var(--hm-borde); }
.hm-login-error {
    color: var(--hm-critica); font-size: .88rem; margin-bottom: 1rem;
    background: rgba(255, 77, 107, .1); border: 1px solid rgba(255, 77, 107, .4);
    border-radius: 8px; padding: .55rem .8rem;
}
.btn-cian {
    --bs-btn-color: #0b1026; --bs-btn-bg: var(--hm-dato); --bs-btn-border-color: var(--hm-dato);
    --bs-btn-hover-bg: #22bfe3; --bs-btn-hover-border-color: #22bfe3; --bs-btn-hover-color: #0b1026;
    --bs-btn-active-bg: #1aa9ca; --bs-btn-active-border-color: #1aa9ca; --bs-btn-active-color: #0b1026;
    font-weight: 650;
}

/* ------------------------------ Semáforo global ------------------------------ */

.hm-semaforo { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-bottom: 1rem; }
.hm-sem {
    background: var(--hm-panel); border: 1px solid var(--hm-borde); border-radius: 12px;
    padding: .75rem 1.1rem; display: flex; align-items: center; gap: .9rem;
}
.hm-sem .n { font-size: 2.1rem; font-weight: 800; line-height: 1; }
.hm-sem .t { font-size: .74rem; color: var(--hm-texto-suave); text-transform: uppercase; letter-spacing: .07em; line-height: 1.35; }
.hm-sem.ok .n { color: var(--hm-ok); }
.hm-sem.warn .n { color: var(--hm-advertencia); }
.hm-sem.crit .n { color: var(--hm-critica); }
.hm-sem.crit.activo { border-color: var(--hm-critica); background: rgba(255, 77, 107, .08); }
.hm-sem.off .n { color: var(--hm-apagado); }
.hm-sem.cero .n, .hm-sem.cero .t { opacity: .35; }
@media (max-width: 720px) { .hm-semaforo { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------ Banner de excepción ------------------------------ */

.hm-banner {
    display: flex; align-items: center; gap: .9rem;
    background: linear-gradient(90deg, rgba(255, 77, 107, .16), rgba(255, 77, 107, .05));
    border: 1px solid rgba(255, 77, 107, .5); border-left: 4px solid var(--hm-critica);
    border-radius: 10px; padding: .6rem 1rem; margin-bottom: 1rem; font-size: .92rem;
}
.hm-banner.warn {
    background: linear-gradient(90deg, rgba(255, 176, 32, .14), rgba(255, 176, 32, .04));
    border-color: rgba(255, 176, 32, .5); border-left-color: var(--hm-advertencia);
}
.hm-banner b { color: #ff8fa2; }
.hm-banner.warn b { color: #ffcd66; }
.hm-banner .cta { margin-left: auto; white-space: nowrap; }

/* ------------------------------ Sedes y sensores ------------------------------ */

.hm-filtros-sede { display: flex; gap: .45rem; margin-bottom: 1rem; flex-wrap: wrap; }
.hm-chip {
    border: 1px solid var(--hm-borde); background: transparent; border-radius: 999px;
    padding: .22rem .85rem; color: var(--hm-texto-suave); font-size: .85rem; cursor: pointer;
}
.hm-chip:hover { color: var(--hm-texto); border-color: var(--hm-texto-suave); }
.hm-chip.activo { background: var(--hm-dato); border-color: var(--hm-dato); color: #0b1026; font-weight: 600; }

.hm-dispositivos { display: flex; flex-direction: column; gap: .4rem; }

.hm-sede { margin-bottom: .9rem; }
.hm-sede-titulo {
    display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap;
    font-size: .76rem; letter-spacing: .12em; color: var(--hm-texto-suave); margin: .3rem 0 .55rem;
}
.hm-sede-titulo b { color: var(--hm-dato); letter-spacing: .1em; font-size: .84rem; }

.hm-sensor {
    background: var(--hm-panel); border: 1px solid var(--hm-borde); border-radius: 12px;
    padding: .9rem 1rem; margin-bottom: .7rem;
}
.hm-sensor.crit { border-color: rgba(255, 77, 107, .55); }
.hm-sensor.warn { border-color: rgba(255, 176, 32, .45); }
.hm-sensor-cab { display: flex; align-items: center; gap: .8rem; margin-bottom: .7rem; flex-wrap: wrap; }
.hm-sensor-cab h2 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.hm-sensor-cab .detalle { font-size: .8rem; color: var(--hm-texto-suave); }

.hm-estado-chip { font-size: .7rem; font-weight: 800; letter-spacing: .06em; border-radius: 999px; padding: .18em .8em; }
.hm-estado-chip.ok { background: rgba(53, 227, 155, .14); color: var(--hm-ok); }
.hm-estado-chip.warn { background: rgba(255, 176, 32, .16); color: var(--hm-advertencia); }
.hm-estado-chip.crit { background: rgba(255, 77, 107, .18); color: #ff8fa2; }
.hm-estado-chip.off { background: rgba(98, 107, 147, .2); color: var(--hm-apagado); }

/* Tiles destacados: valor grande + delta + sparkline */
.hm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: .55rem; margin-bottom: .55rem; }
.hm-tile {
    background: var(--hm-tile); border: 1px solid var(--hm-borde); border-radius: 10px;
    padding: .55rem .7rem .5rem; transition: border-color .8s;
}
.hm-tile .nom { font-size: .7rem; color: var(--hm-texto-suave); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-tile .val { font-size: 1.7rem; font-weight: 800; line-height: 1.15; margin-top: .1rem; }
.hm-tile .val small { font-size: .5em; font-weight: 500; color: var(--hm-texto-suave); margin-left: .15em; }
.hm-tile .delta { font-size: .74rem; color: var(--hm-texto-suave); min-height: 1em; }
.hm-tile .delta b { color: var(--hm-dato); font-weight: 700; }
.hm-tile .umbral { font-size: .7rem; font-weight: 600; margin-top: .05rem; }
.hm-tile svg.spark { display: block; margin-top: .3rem; width: 100%; height: 26px; }
.hm-tile.ok { border-left: 3px solid var(--hm-ok); }
.hm-tile.neutro { border-left: 3px solid var(--hm-borde); }
.hm-tile.warn { border-left: 3px solid var(--hm-advertencia); background: rgba(255, 176, 32, .06); }
.hm-tile.warn .val { color: #ffcd66; }
.hm-tile.warn .umbral { color: #ffcd66; }
.hm-tile.crit {
    border: 1px solid var(--hm-critica); border-left: 4px solid var(--hm-critica);
    background: rgba(255, 77, 107, .1);
    animation: hm-pulso 2s ease-in-out infinite;
}
.hm-tile.crit .val { color: #ff8fa2; }
.hm-tile.crit .umbral { color: #ff8fa2; }
.hm-tile.fresca { border-color: var(--hm-dato); }
@keyframes hm-pulso {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 107, .35); }
    50% { box-shadow: 0 0 0 6px rgba(255, 77, 107, 0); }
}

/* Pistas de rango: dónde está el valor dentro de su zona */
.hm-pistas { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: .55rem; }
.hm-pista { background: var(--hm-tile); border: 1px solid var(--hm-borde); border-radius: 10px; padding: .5rem .7rem .65rem; }
.hm-pista .cab { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem; }
.hm-pista .nom { font-size: .68rem; color: var(--hm-texto-suave); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-pista .val { font-size: 1.2rem; font-weight: 800; white-space: nowrap; }
.hm-pista .val small { font-size: .58em; font-weight: 500; color: var(--hm-texto-suave); margin-left: .1em; }
.hm-pista .val.txt { font-size: .92rem; font-weight: 700; }
.hm-tile .val.txt { font-size: 1.35rem; }
.hm-riel { position: relative; height: 6px; border-radius: 4px; margin-top: .5rem; background: var(--hm-borde); }
.hm-riel i {
    position: absolute; top: 50%; transform: translate(-50%, -50%);
    width: 13px; height: 13px; border-radius: 50%;
    background: var(--hm-texto); border: 3px solid var(--hm-ok);
    box-shadow: 0 0 6px rgba(0, 0, 0, .6);
}
.hm-riel i.warn { border-color: var(--hm-advertencia); }
.hm-riel i.crit { border-color: var(--hm-critica); box-shadow: 0 0 8px rgba(255, 77, 107, .8); }
.hm-riel i.neutro { border-color: var(--hm-dato); }

/* ------------------------------ Severidades / alertas ------------------------------ */

.hm-severidad-1 { color: var(--hm-dato); }
.hm-severidad-2 { color: var(--hm-advertencia); }
.hm-severidad-3 { color: var(--hm-critica); }

.hm-badge { font-size: .75rem; border-radius: 999px; padding: .15rem .6rem; font-weight: 600; }
.hm-badge.online { background: rgba(53, 227, 155, .15); color: var(--hm-ok); }
.hm-badge.offline { background: rgba(255, 77, 107, .18); color: var(--hm-critica); }

/* ------------------------------ Toasts ------------------------------ */

.hm-toasts { position: fixed; right: 1rem; bottom: 1rem; display: flex; flex-direction: column; gap: .5rem; z-index: 1090; }
.hm-toast {
    background: var(--hm-panel); border: 1px solid var(--hm-borde); border-left: 4px solid var(--hm-dato);
    border-radius: 8px; padding: .7rem 1rem; min-width: 260px; max-width: 360px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .5); animation: hm-aparece .2s ease-out;
}
.hm-toast.advertencia { border-left-color: var(--hm-advertencia); }
.hm-toast.critica { border-left-color: var(--hm-critica); }
.hm-toast .titulo { font-weight: 650; font-size: .9rem; }
.hm-toast .detalle { font-size: .82rem; color: var(--hm-texto-suave); margin-top: .2rem; }
@keyframes hm-aparece { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ------------------------------ Resumen del día ------------------------------ */

.hm-resumen-hero { display: flex; gap: 1rem; align-items: stretch; flex-wrap: wrap; margin-bottom: 1rem; }
.hm-score {
    background: var(--hm-panel); border: 1px solid var(--hm-borde); border-radius: 14px;
    padding: 1rem 1.4rem; display: flex; align-items: center; gap: 1.1rem; flex: 1.4; min-width: 300px;
}
.hm-anillo { position: relative; width: 96px; height: 96px; flex-shrink: 0; }
.hm-anillo .centro {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; font-weight: 800; font-size: 1.5rem; line-height: 1;
}
.hm-anillo .centro small { font-size: .58rem; font-weight: 600; color: var(--hm-texto-suave); }
.hm-score .txt h2 { margin: 0 0 .2rem; font-size: 1.15rem; }
.hm-score .txt p { margin: 0; color: var(--hm-texto-suave); font-size: .88rem; max-width: 40ch; }
.hm-kpis { display: flex; gap: .8rem; flex: 1; min-width: 280px; }
.hm-kpi {
    flex: 1; background: var(--hm-panel); border: 1px solid var(--hm-borde); border-radius: 14px;
    padding: .8rem 1rem; display: flex; flex-direction: column; justify-content: center;
}
.hm-kpi .v { font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.hm-kpi .t { font-size: .72rem; color: var(--hm-texto-suave); text-transform: uppercase; letter-spacing: .06em; margin-top: .15rem; }
.hm-kpi.warn .v { color: var(--hm-advertencia); }
.hm-kpi.crit .v { color: var(--hm-critica); }

.hm-fila-dia { display: grid; grid-template-columns: 170px 95px 1fr 190px; gap: .9rem; align-items: center; padding: .5rem 0; border-top: 1px solid var(--hm-borde); }
.hm-fila-dia:first-of-type { border-top: 0; }
.hm-fila-dia .nom { font-weight: 650; font-size: .92rem; }
.hm-fila-dia .nom small { display: block; color: var(--hm-texto-suave); font-weight: 400; font-size: .78em; }
.hm-fila-dia .actual { font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.hm-fila-dia .actual small { font-weight: 500; color: var(--hm-texto-suave); font-size: .62em; }
.hm-banda { display: flex; height: 18px; border-radius: 5px; overflow: hidden; gap: 1px; }
.hm-banda i { flex: 1; background: #1f7a55; }
.hm-banda i.ok { background: #1f9e6d; }
.hm-banda i.w { background: var(--hm-advertencia); }
.hm-banda i.c { background: var(--hm-critica); }
.hm-banda i.o { background: var(--hm-borde); }
.hm-fila-dia .rango { font-size: .78rem; color: var(--hm-texto-suave); text-align: right; white-space: nowrap; }
.hm-fila-dia .rango b { color: var(--hm-texto); }
.hm-leyenda { display: flex; gap: 1.1rem; margin-top: .8rem; font-size: .76rem; color: var(--hm-texto-suave); flex-wrap: wrap; }
.hm-leyenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; }
@media (max-width: 760px) {
    .hm-fila-dia { grid-template-columns: 120px 75px 1fr; }
    .hm-fila-dia .rango { display: none; }
}

.hm-momentos {
    margin-top: 1rem; background: rgba(255, 176, 32, .08);
    border: 1px solid rgba(255, 176, 32, .35); border-radius: 12px;
    padding: .8rem 1.1rem; font-size: .9rem;
}
.hm-momentos b { color: var(--hm-advertencia); }

/* ------------------------------ Tablas simples ------------------------------ */

.table { --bs-table-bg: transparent; }

@media (prefers-reduced-motion: reduce) {
    .hm-toast { animation: none; }
    .hm-tile { transition: none; }
    .hm-tile.crit { animation: none; }
    .hm-ondas i { animation: none; opacity: .25; transform: scale(3); }
}
