html {
    scroll-behavior: smooth;
}

:root {
    --steel-primary: #4a6da7; /* Tu color base */
    --steel-light: #8ca6d1; /* Acento claro */
    --steel-dark: #2f4a7d; /* Para hover profundo */
    --steel-bg: #f8fafc; /* Gris azulado muy suave */
}

body {
    font-size: 14px;
    font-family:
        "Noto Sans", "Arial", "Helvetica Light", Helvetica, "Droid Sans",
        "Arial Unicode MS", sans-serif;
}

.seccion-TB {
    color: #2a6b77;
    font-weight: 900;
    font-size: calc(23px * var(--app-font-scale));
}
.seccion-SMM {
    color: rgba(157, 93, 7);
    font-weight: 900;
    font-size: calc(23px * var(--app-font-scale));
}

.seccion-NVC {
    color: #961526;
    font-weight: 900;
    font-size: calc(23px * var(--app-font-scale));
}

.report {
    width: 100%;
    margin-top: 25px;
    border: 2px solid #000;
}

.bottom {
    border-bottom: 1px solid #000;
}

.interno {
    margin-left: 15px;
    margin-right: 15px;
}

.interno-padding {
    padding-left: 15px;
    padding-right: 15px;
}

.interno-padding-grande {
    padding-left: 50px;
    padding-right: 50px;
}

.texto {
    font-size: calc(15px * var(--app-font-scale));
}

.conborde {
    border: 1px solid #003d99 !important;
    border-collapse: collapse !important;
}

.conborderojo {
    border: 1px solid #ebccd1;
    border-collapse: collapse;
    background-color: #f2dede;
    border-radius: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
}

table.conborde th,
table.conborde td {
    border: 1px solid gainsboro;
}

.tabla-center {
    margin: 0px auto;
}

table.conborde th {
    background-color: gainsboro;
}

.titulo {
    font-style: italic;
    font-weight: bold;
    font-size: calc(18px * var(--app-font-scale));
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.content-general {
    width: 100%;
}

/* Fix para el desplazamiento de anclas */
[id] {
    scroll-margin-top: 75px;
}

.linea {
    display: inline-block;
}

.float-left {
    float: left;
}

.width-6 {
    width: 49%;
}

.width-4 {
    width: 24%;
}

.tabla-VMC {
    border-radius: 5px;
    overflow: hidden; /* Esto asegura que el contenido no se salga de las esquinas redondeadas */

    padding: 0px;
    width: 96%;
    margin: 15px auto;
    border: 1px solid #7f7f7f;
}

.tabla-VMC table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;
}
/* .tabla-VMC tr:hover td {
    background-color: gainsboro;
} */
.tabla-VMC td {
    vertical-align: middle;
    background-color: #ffffff;
    border: 1px solid gainsboro;
    /* border-width:0px 1px 1px 0px; */
    padding: 3px;
    font-size: 12px;
    font-weight: normal;
    color: #000000;
    width: 20%;
}
.tabla-VMC tr:last-child td {
    border-width: 0px 1px 0px 0px;
}
.tabla-VMC tr td:last-child {
    border-width: 0px 0px 1px 0px;
}
.tabla-VMC tr:last-child td:last-child {
    border-width: 0px 0px 0px 0px;
}
.tabla-VMC tr:first-child td {
    background-color: gainsboro;
    border: 0px solid gainsboro;
    text-align: center;
    border-width: 0px 0px 1px 1px;
    font-size: 12px;
    font-weight: bold;
    color: #000000;
}
/* .tabla-VMC tr:first-child:hover td {
    background-color: gainsboro;
} */
.tabla-VMC tr:first-child td:first-child {
    border-width: 0px 0px 1px 0px;
}
.tabla-VMC tr:first-child td:last-child {
    border-width: 0px 0px 1px 1px;
}

.semaforosVYM {
    display: inline-block;
    margin-left: 10px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 25px;
    border: 2px solid gainsboro;
}

.calendar-html-title {
    display: block;
    width: 100%;
}

.calendar-html-title .semaforosVYM {
    margin-top: 2px;
    margin-bottom: 2px;
}

.calendar-html-title .semaforosVYM a,
.calendar-html-title .semaforosVYM .btn-editar-visual {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    min-width: 18px;
    text-decoration: none;
}

.calendar-html-title .semaforosVYM a:hover,
.calendar-html-title .semaforosVYM .btn-editar-visual:hover {
    color: #0d6efd;
}

.fc-today {
    background: #ffcc99 !important;
    border: none !important;
    border-top: 1px solid #ddd !important;
    font-weight: bold;
}

.direction {
    background-color: #04aa6d;
    color: white;
    position: absolute;
    top: 50%;
    opacity: 0.6;
}

.direction.previousNavigate {
    left: 10px;
}

.direction.nextNavigate {
    right: 10px;
}

a.direction {
    text-decoration: none;
    display: inline-block;
    padding: 8px 16px;
}

a.direction:hover {
    background-color: #ddd;
    color: black;
}

/* Slideshow container */
.slideshow-container {
    max-width: 100%;
    position: relative;
    margin: auto;
}

/* Next & previous buttons */
.previousNavigate,
.nextNavigate {
    cursor: pointer;
    position: -webkit-sticky;
    position: fixed;
    top: 50%;
    width: auto;
    padding: 5px;

    color: green;
    font-weight: bold;
    font-size: 58px; /* size buttons */
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 900;
}

/* Position the "next button" to the right */
.nextNavigate {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.previousNavigate:hover,
.nextNavigate:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.table-vym td {
    padding-left: 10px !important;
}

.table-vym .icono {
    padding-left: 0px !important;
    border-color: #615c64;
    border-width: 0px 0px 2.5px 1px;
}

.sin-border-laterales {
    border-left: 0px !important;
    border-right: 0px !important;
}

#toast-container {
    width: 600px !important;
}

.table td {
    vertical-align: middle !important;
}

.table td label {
    display: inline;
}

.borde-abajo {
    border-bottom: 1px solid gainsboro;
}

.nowrap {
    white-space: nowrap;
}

.fc td.fc-sun,
.fc td.fc-sat {
    background-color: #e6e6e6;
}

.margin-auto {
    margin: 5px auto;
}

.colorCerca1Mes {
    background-color: #e9967a;
}

.colorCerca2Meses {
    background-color: #ffe4b5;
}

.blueColor {
    color: #378bf3 !important;
}

.ancho-fijo {
    width: 180px !important;
}

.text-bg-light {
    background-color: white !important;
}

.timer-time {
    font-size: 2em;
}

.loading {
    width: 60px; /* Ajusta según tu gif */
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

#divMapaFlotante {
    position: absolute;
    width: 320px;
    height: 250px;
    overflow-y: auto;
    top: 180px;
    left: 25px;
    z-index: 1000;
    /* Fondo con transparencia */
    background-color: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-radius: 12px;
    border: 1px solid rgba(127, 124, 124, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* EL TRUCO: Resetear las variables de Bootstrap */
#tablaMapaFlotante {
    --bs-table-bg: transparent !important;
    --bs-table-accent-bg: transparent !important;
    background-color: transparent !important;
    color: inherit;
}

#tablaMapaFlotante tr,
#tablaMapaFlotante td {
    background-color: transparent !important;
    border: none !important; /* Tablas modernas sin líneas internas se ven mejor con blur */
}

/* Estilo para el hover: que se ilumine un poco */
#tablaMapaFlotante tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.1) !important;
    transition: 0.3s;
}

#containerPrecursorAuxiliar {
    padding-top: 8px;
}

input.larger {
    transform: scale(2);
    float: center;
    margin: 0 auto;
    width: 100%;
}

.temaTB {
    font-weight: bold;
    color: #2a6b77;
}

.temaSMM {
    font-weight: bold;
    color: #9b6d17;
}

.temaNVC {
    font-weight: bold;
    color: #942926;
}

/* .table-hover-no tbody tr:hover,
.table-hover-no tbody td:hover {
    background-color: transparent;
}

.table-hover-no thead tr:hover,
.table-hover-no thead td:hover {
    background-color: transparent;
} */

.greenColor {
    color: #00b300 !important;
    font-weight: bold;
}

.circle {
    width: 15px; /* Ancho del círculo */
    height: 15px; /* Alto del círculo */
    border-radius: 50%; /* Hace que el div sea redondo */
    display: inline-block; /* Para que el div se comporte como un elemento en línea */
}

.highlight-green {
    background-color: #b2d8d8;
    color: blue !important;
    border: 1px solid #a3c6c6;
    padding: 20px;
    border-radius: 5px;
}

.detalleNVC-container {
    margin-left: 20px !important;
}

.detalleNVC {
    color: #626262 !important;
}

.nvc-header {
    margin-left: 5px;
    margin-left: 15px !important;
    margin-right: 15px !important;
}

.sin-border-top {
    border-top: 0px !important;
}
.sin-border-bottom {
    border-bottom: 0px !important;
}

.depto-disabled {
    background-color: gainsboro !important;
}

.depto-enabled {
    background-color: white !important;
}

.depto-atiendoyo {
    background-color: #8cd98c !important;
}

.depto-atendio {
    background-color: #8cd98c !important;
}

.depto-novisitar {
    background-color: #ffb3b3 !important;
}

.depto-noencasa {
    background-color: #fcd668 !important;
}

.indicador1 {
    width: 20px; /* Ancho del cuadrado */
    height: 20px; /* Alto del cuadrado */
    background-color: #3498db; /* Color de fondo */
}

#upload-demo {
    width: 250px;
    height: 250px;
    padding-bottom: 25px;
}

.requerido {
    font-size: 10px;
    color: red;
}

#eventos .bg-light:hover {
    background: #f1f3f5 !important;
    transition: 0.2s;
}

.navbar-glass {
    background: rgba(30, 34, 40, 0.95);
    transition: all 0.25s ease;
}

.navbar-scrolled {
    backdrop-filter: blur(10px);
    background: rgba(30, 34, 40, 0.75);
}

.navbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
    padding-top: 6px;
    padding-bottom: 6px;
}

.navbar .nav-link {
    padding: 6px 10px;
    font-size: 14px;
}

.navbar .btn {
    padding: 4px 10px;
    font-size: 13px;
}

.navbar-brand {
    font-size: 18px;
}

.navbar .nav-link.active {
    color: var(--steel-light) !important;
    border-bottom: 2px solid var(--steel-bg);
}

.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Borde sutil */
    border-radius: 12px; /* Cambiamos círculo por cuadrado redondeado (más app moderna) */
    background: var(--steel-primary); /* Tu azul corporativo */
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;

    /* Animación de entrada */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);

    /* Efecto de elevación */
    box-shadow: 0 8px 16px rgba(74, 109, 167, 0.25);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 999;

    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--steel-dark); /* El azul más oscuro que tienes en :root */
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(74, 109, 167, 0.4);
    color: #ffffff;
}

/* Toque final: que se vea bien en pantallas pequeñas */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

.navbar-collapse {
    transition: all 0.2s ease;
}

.btn-offcanvas i {
    font-size: 1.2rem;
}

.btn-offcanvas {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    padding: 0;
    font-size: 1.1rem;
}

@media (max-width: 991px) {
    .btn-offcanvas {
        width: auto;
        padding: 0 12px;
    }
}

.widget-offcanvas-body .btn {
    border-radius: 12px;
    padding: 12px;
    transition: all 0.15s ease;
}

.widget-offcanvas-body .btn:hover {
    transform: translateY(-2px);
}

.iconLink-icon {
    flex: 0 0 auto;
    color: #757575;
    color: var(--dc-button-tertiary-icon-color, #757575);
    display: flex;
    align-items: center;
    min-width: 24px;
    min-height: 24px;
}

.jwIcon {
    filter: brightness(1.2);
}

.jwIcon.jwhub {
    display: block;
    width: 30px;
    height: 30px;
    background-image: url("../img/jwhub-tm-color.svg"), none;
}

.jwIcon.wol {
    display: block;
    width: 30px;
    height: 30px;
    background-image: url("../img/wol-tm-color.svg"), none;
}

.jwIcon.jw {
    display: block;
    width: 30px;
    height: 30px;
    background-image: url("../img/jworg-tm-color.svg"), none;
}

.jwIcon.jwstream {
    display: block;
    width: 30px;
    height: 30px;
    background-image: url("../img/jw.stream.240x240.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.jwIcon.jwdonate {
    display: block;
    width: 30px;
    height: 30px;
    background-image: url("../img/donate-color.svg"), none;
}

span.badge-pequenio {
    font-size: 1em !important;
}

span.span-prec {
    font-size: 12px !important;
    float: right;
}

.borde-inferior {
    border-bottom: 1px solid gainsboro;
}

/* ==================== CRONÓMETRO MODERNO 2026 ==================== */

/* Variables de color (fácil de cambiar después) */
:root {
    --crono-bg: rgba(23, 23, 23, 0.85);
    --crono-border: #6a727a;
    --crono-shadow:
        0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.3);
    --text-primary: #ebeef0;
    --accent-green: #22c55e;
    --accent-red: #f43f5e;
    --accent-blue: #38bdf8;
    --button-bg: rgba(63, 63, 70, 0.8);
}

/* ==================== TRIGGER (ícono flotante) ==================== */
#cronometro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Ajuste de dimensiones */
    width: 42px;
    height: 42px;
    font-size: 16px;

    background: var(--steel-primary);
    border-radius: 50%;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: none;
    border: none;
    cursor: pointer;
    position: fixed;
    bottom: 80px;
    left: 25px;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#cronometro:hover {
    transform: scale(1.12) translateY(-2px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.4);
}

/* ==================== CONTENEDOR FLOTANTE ==================== */
#container-crono {
    display: none;
    position: fixed;
    bottom: 155px;
    left: 25px;
    width: calc(100vw - 40px);
    max-width: 380px;
    z-index: 1050;
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#container-crono.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#container-crono.hide {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}

/* ==================== TARJETA GLASSMORPHISM ==================== */
.crono-card {
    background: var(--crono-bg);
    border-radius: 20px;
    padding: 20px 18px;
    border: 1px solid var(--crono-border);
    backdrop-filter: blur(20px);
    box-shadow: var(--crono-shadow);
}

/* ==================== DISPLAY DEL TIEMPO ==================== */
.crono-display {
    font-variant-numeric: tabular-nums;
    font-family: "SF Mono", ui-monospace, monospace;
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: -2px;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 18px;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

.crono-display span:last-child {
    color: var(--accent-blue);
    font-weight: 600;
}

/* ==================== BOTONERA ==================== */
.crono-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.crono-buttons button {
    flex: 1;
    padding: 14px 16px;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    background: var(--button-bg);
    color: #e0f2fe;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* Botones específicos */
#startButton {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
}
#stopButton {
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-red);
}
#restartButton {
    background: rgba(251, 146, 60, 0.15);
    color: #fb923c;
}

/* Hover + active */
.crono-buttons button:not(:disabled):hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.3);
}

.crono-buttons button:not(:disabled):active {
    transform: scale(0.96);
}

/* Estado deshabilitado */
#startButton:disabled,
#stopButton:disabled,
#restartButton:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    filter: grayscale(70%);
    transform: none;
}

/* Focus accesibilidad */
.crono-buttons button:focus-visible {
    outline: 3px solid rgba(56, 189, 248, 0.5);
    outline-offset: 3px;
}

/* Forzamos la eliminación del subrayado en cualquier estado */
.moversalida,
.moversalida:hover,
.moversalida:focus,
.moversalida:active {
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.nav-btn-touch:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.05);
}

.nav-btn-touch:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.4) !important;
}

/* Encabezado Principal Reutilizable */
.header-steel {
    background-color: var(--steel-primary) !important;
    border-bottom: 3px solid var(--steel-light) !important;
    padding: 1rem 1.5rem;
}

/* Botones de Navegación Circulares */
.nav-btn-steel {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.nav-btn-steel:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: white !important;
    transform: scale(1.05);
}

.nav-btn-steel:active {
    transform: scale(0.95);
}

/* Quitar subrayados globales en el header */
.header-steel a {
    text-decoration: none !important;
}

#fondo-cronometro {
    color: var(--steel-primary);
}

/* Altura mínima para que el Spy detecte las secciones cortas */
section {
    scroll-margin-top: 85px; /* Espacio para la Navbar Sticky */
    min-height: 40vh; /* Suficiente cuerpo para ser detectada */
}

/* Contenedor principal de la sección */
.section-card {
    border: 1px solid rgba(74, 109, 167, 0.2) !important; /* Borde con un toque del azul del logo */
    border-radius: 12px; /* Un poco menos redondeado para verse más técnico */
    overflow: hidden;
    background: #ffffff;
    margin-bottom: 3rem !important;
}

/* Encabezado con tu color Steel */
.header-steel {
    background-color: var(--steel-primary) !important;
    padding: 1rem 1.5rem;
}

/* Texto del título en el encabezado */
.header-steel-title {
    font-weight: 700 !important; /* fw-bold */
    color: #ffffff !important; /* text-white */
    text-transform: uppercase !important; /* text-uppercase */
    letter-spacing: 2px; /* Tu toque de diseño */
    font-size: 0.85rem; /* Tamaño controlado */
    margin: 0;
    display: inline-block;
}

/* Cuerpo de la tarjeta con el fondo suave */
.card-body-steel {
    padding: 1.5rem;
    background: var(--steel-bg);
}

/* Enlace de acción en el header (ej: Ver más) */
.header-link-action {
    font-size: 0.875rem; /* Equivale a small */
    font-weight: 600; /* Equivale a fw-semibold */
    color: rgba(255, 255, 255, 0.75) !important; /* text-white + opacity-75 */
    text-decoration: none !important;
    transition: all 0.25s ease-in-out;
    display: inline-flex;
    align-items: center;
}

/* Efecto al pasar el mouse */
.header-link-action:hover {
    color: rgba(255, 255, 255, 1) !important; /* opacity-100 */
    transform: translateX(3px); /* Pequeño desplazamiento a la derecha */
}

/* El icono dentro del enlace */
.header-link-action i {
    font-size: 0.75rem;
    margin-left: 0.5rem;
    transition: transform 0.25s ease;
}

.header-link-action:hover i {
    transform: scale(1.2);
}

/* El contenedor ovalado */
.nav-date-capsule {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50rem; /* pill */
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Texto de la fecha */
.nav-date-text {
    font-weight: 700;
    color: #ffffff;
    margin: 0 15px; /* Espaciado uniforme a los lados */
    font-size: 0.85rem;
    min-width: 110px;
    text-align: center;
}

/* Espaciado para el botón hoy dentro de la cápsula */
.btn-hoy-capsule {
    margin-left: 12px; /* Espacio entre la flecha y el botón */
    font-size: 0.75rem !important;
    white-space: nowrap; /* Evita que el texto se rompa en dos líneas */
}

/* Tabla estilo Steel */
.table-steel {
    margin-bottom: 0;
}

.table-steel thead th {
    background-color: #f1f5f9; /* Un gris muy tenue, más moderno que el anterior */
    color: var(--steel-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--steel-light) !important;
    text-align: center;
    vertical-align: middle;
}

.table-steel tbody td {
    vertical-align: middle;
    padding: 12px 8px;
    color: #334155;
}

/* Iconos de contacto circulares y pequeños */
.contact-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    margin-left: 5px;
    text-decoration: none !important;
}

.icon-whatsapp {
    background: #25d366;
    color: white;
}
.icon-phone {
    background: var(--steel-primary);
    color: white;
}

.contact-icon:hover {
    transform: scale(1.1);
    opacity: 0.9;
    color: white;
}

/* Pulso optimizado */
.pulse-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
}

.pulse-dot-green-mid {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    position: relative;
}

.pulse-dot-green-mid::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #10b981;
    border-radius: 50%;
    /* Añadimos una curva de velocidad más elegante */
    animation: pulse-ring-mid 2s cubic-bezier(0.455, 0.03, 0.515, 0.955)
        infinite;
    /* ESTO ES LO QUE DA FLUIDEZ AL MÓVIL */
    will-change: transform, opacity;
}

@keyframes pulse-ring-mid {
    0% {
        transform: scale(0.8); /* Empieza un poco más pequeño */
        opacity: 0.8;
    }
    80%,
    100% {
        transform: scale(2.5); /* Crecimiento más controlado */
        opacity: 0;
    }
}

/* Cambio de color de fondo sutil al pasar el mouse, sin mover el bloque */
.flex-grow-1:hover {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

/* Oscurecer un poco el botón al pasar el mouse */
.hover-darken:hover {
    background-color: #059669 !important;
    border-color: #059669 !important;
}

.hover-success:hover {
    color: #28a745 !important;
    transition: 0.3s;
}

.hover-primary:hover {
    color: --steel-primary !important;
    transition: 0.3s;
}

.hover-white:hover {
    color: white !important;
    transition: 0.2s;
}

.transition-all:hover {
    transform: translateY(-2px);
}

.zoom-info-box:hover {
    background-color: #e9ecef !important;
    transition: 0.3s;
}
.btn-link:hover {
    text-decoration: underline !important;
}

.breadcrumb-item a {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    transition: all 0.3s;
}
.breadcrumb-item a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--steel-light) !important; /* Usa el celeste claro de tu :root */
    text-decoration: none;
}

/* Añade esto a tu CSS si eliges la opción 3 */
.link-destacado-meeting {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
    color: #fff !important;
}
.link-destacado-meeting:hover {
    background: var(--steel-primary);
    border-style: solid;
}

.active-focus {
    background-color: var(--steel-primary) !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(74, 109, 167, 0.3);
}

.flex-fill {
    transition: all 0.2s ease;
    border: none !important;
}

/* Efecto al tocar el número en la tablet */
.hover-steel-card:active,
.hover-steel-card:hover {
    background-color: var(--steel-primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 109, 167, 0.3) !important;
}
.hover-steel-card:active .text-primary,
.hover-steel-card:hover .text-primary,
.hover-steel-card:active .text-muted,
.hover-steel-card:hover .text-muted,
.hover-steel-card:active .text-secondary,
.hover-steel-card:hover .text-secondary {
    color: white !important;
}

/* Botón deshabilitado con estilo Steel */
.btn-primary:disabled,
.btn-primary.disabled {
    background-color: #e9ecef !important; /* Gris claro de fondo */
    border-color: #dee2e6 !important; /* Borde gris */
    color: #adb5bd !important; /* Texto gris tenue */
    opacity: 1; /* Quitamos la transparencia de Bootstrap para usar colores sólidos */
    cursor: not-allowed; /* Cursor de bloqueo en PC */
    box-shadow: none !important; /* Sin sombra para que se vea "plano" */
    transform: none !important; /* Que no se mueva si lo tocan */
}

/* Opcional: Que el icono también se vea más claro */
.btn-primary:disabled i {
    color: #adb5bd !important;
}

.btn-danger {
    transition: all 0.2s ease;
}

.btn-danger:active {
    transform: scale(0.95);
    filter: brightness(0.9);
}

a {
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
    transition: color 0.3s;
}

a:hover {
    color: #0056b3;
}

.btn-steel:hover {
    background: var(--steel-primary); /* Tu azul corporativo */
}

.header-territorio {
    background: linear-gradient(135deg, #4a6da7 0%, #2a4d8c 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-edificio {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    color: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.table-edificio {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background: white;
}

.table-edificio thead {
    background-color: #f8f9fa;
}

.btn-group-pill .btn {
    border-radius: 50px !important;
    /* Forma de pastilla */
    margin: 0 4px;
    border: 1px solid #dee2e6;
    color: #6c757d;
    background-color: #fff;
}

/* Estado seleccionado común */
.btn-group-pill .btn-check:checked + .btn {
    border-color: transparent;
    color: #fff !important;
}

/* Colores personalizados al marcar */
#radio_estado4:checked + .btn {
    background-color: #f1a100;
}

/* Warning */
#radio_estado3:checked + .btn {
    background-color: #198754;
}

/* Success */
#radio_estado1:checked + .btn {
    background-color: #198754;
}

/* Success */
#radio_estado2:checked + .btn {
    background-color: #dc3545;
}

/* Danger */
#radio_estado0:checked + .btn {
    background-color: #0dcaf0;
}

/* Estado Base: Gris suave y aspecto presionable */
.btn-group .btn-outline-warning,
.btn-group .btn-outline-success,
.btn-group .btn-outline-danger,
.btn-group .btn-outline-info {
    background-color: #f8f9fa;
    /* Gris muy suave */
    border-color: #dee2e6;
    /* Borde sutil */
    color: #495057;
    /* Texto gris oscuro */
    transition: all 0.2s ease;
    border-radius: 8px !important;
    margin: 2px;
    border-width: 1px;
}

/* Efecto al pasar el mouse (Hover) */
.btn-group .btn:hover {
    background-color: #e9ecef !important;
    /* Gris un poco más fuerte */

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ESTADO SELECCIONADO: Opción 1 con colores sólidos y elevación */
.btn-check:checked + .btn {
    /* Se eleva */
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2) !important;
    /* Sombra profunda */
    font-weight: 700;
    border-color: transparent !important;
}

/* Colores específicos cuando están seleccionados */
.btn-check:checked + .btn-outline-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.btn-check:checked + .btn-outline-success {
    background-color: #198754 !important;
    color: #fff !important;
}

.btn-check:checked + .btn-outline-danger {
    background-color: #dc3545 !important;
    color: #fff !important;
}

.btn-check:checked + .btn-outline-info {
    background-color: #0dcaf0 !important;
    color: #000 !important;
}

/* Mantener el color si se hace click (focus) */
.btn-check:focus + .btn {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.bloqueo-activo {
    opacity: 1 !important;
    display: block !important;
}

#bloquea {
    display: none; /* Inicio oculto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

#bloquea.mostrar {
    display: block;
    opacity: 1; /* El navegador es obligado a animar esto */
}

#actualizando {
    display: none;
    position: fixed;
    /* Centrado absoluto */
    top: 50% !important;
    left: 50% !important;
    transform: translate(
        -50%,
        -40%
    ) !important; /* Empezamos un pelín más abajo */

    z-index: 10000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Estética */
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 200px;
}

/* Cuando se activa la animación */
#actualizando.visible {
    opacity: 1 !important;
    transform: translate(
        -50%,
        -50%
    ) !important; /* Sube a su posición central real */
}

.sidebar-wrapper {
    opacity: 0.8; /* Antes era 0.4, ahora casi se ve normal desde el inicio */
    filter: blur(0px); /* Quitamos el blur inicial para evitar fatiga visual */
    transition: opacity 0.3s ease;
}
.sidebar-wrapper.ready {
    opacity: 1 !important;
}

/* O mediante la clase general */
.tooltip-inner {
    background-color: var(
        --steel-primary
    ) !important; /* Tu color personalizado */
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-item {
    margin-left: 5px;
}

.user-menu {
    border: 1px solid var(--steel-primary) !important; /* Tu color personalizado */
    border-collapse: collapse;
    background-color: var(--steel-bg) !important; /* Tu color personalizado */
    border-radius: 5px;
}

.user-menu:hover {
    background-color: var(--steel-light) !important;
    color: black;
}

.user-header {
    background-color: var(--steel-light) !important;
}

#calendar .fc-event.google-calendar-readonly {
    background-color: #f8f9fa !important;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(108, 117, 125, 0.12) 0,
        rgba(108, 117, 125, 0.12) 4px,
        transparent 4px,
        transparent 8px
    ) !important;
    border: 1px dashed #6c757d !important;
    color: #495057 !important;
    cursor: default;
    opacity: 0.9;
}

#calendar .fc-event.google-calendar-readonly *,
#calendar .fc-event.google-calendar-readonly .fc-event-main,
#calendar .fc-event.google-calendar-readonly .fc-event-title,
#calendar .fc-event.google-calendar-readonly .fc-event-time {
    color: #495057 !important;
}

.google-calendar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 2px 6px;
    border-radius: 999px;
    background: #0d6efd;
    color: #ffffff !important;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
}

#calendar .fc-event.google-calendar-readonly .google-calendar-badge {
    color: #ffffff !important;
}

#tarjeta th {
    text-align: center;
}

#tarjeta td {
    text-align: center;
}

#tarjeta td.left {
    text-align: left;
}

#tarjeta td.fit {
    width: 0;
    min-width: fit-content;
    white-space: nowrap;
}

#tarjeta .parte_s21 {
    padding-left: 30px;
    padding-top: 10px;
    padding-right: 25px;
    padding-bottom: 10px;
}

/* Componentes de Badge y Micro-interacciones */
.transition-all { transition: all 0.2s ease-in-out; }
.hover-success:hover { background-color: #d1e7dd !important; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important; }
.hover-elevate:hover { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important; }

/* ==================== CONTROL DE FUENTE (A- / A+) ==================== */
:root {
    --app-font-scale: 1;
}

body {
    font-size: calc(14px * var(--app-font-scale));
    transition: font-size 0.2s ease;
}

/* Botón flotante de fuente */
#font-control {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 42px;
    height: 42px;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #4682B4; /* Borde Steel Blue */
    border-radius: 50%;
    background-color: white; /* Fondo blanco para resaltar el icono azul */
    color: #4682B4; /* Icono Azul Steel */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

#font-control i {
    font-size: 16px;
}

#font-control:hover {
    transform: scale(1.1) translateY(-2px);
    background-color: #f8f9fa;
    color: var(--steel-dark);
    border-color: var(--steel-dark);
}

/* Estilos para el Modal de Fuente (Estilo JW Library) */
.font-modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.font-slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.font-slider-container .small-a { font-size: 14px; font-weight: bold; color: #666; }
.font-slider-container .large-a { font-size: 28px; font-weight: bold; color: #333; }

/* Custom Range Slider */
.font-range {
    flex-grow: 1;
    -webkit-appearance: none;
    height: 4px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
}

.font-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4a6da7;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.font-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4a6da7;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    #font-control {
        bottom: 25px;
        left: 15px;
    }
    #cronometro {
        bottom: 80px; /* Ajustado por el nuevo tamaño */
        left: 15px;
    }
}

.color-selector-group .color-option {
    position: relative;
    line-height: 1;
}
.color-selector-group .color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.color-selector-group .color-dot i {
    display: none;
    font-size: 0.75rem;
}
.color-selector-group .btn-check:checked + .color-dot {
    transform: scale(1.15);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0d6efd;
}
.color-selector-group .btn-check:checked + .color-dot i {
    display: block;
}
.color-selector-group .color-dot:hover {
    transform: scale(1.1);
}
