:root { color-scheme: light; }
.loader-reporte[hidden] { display: none; }
.loader-reporte { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(12,35,62,.55); backdrop-filter: blur(3px); }
.loader-reporte-panel { width: min(100%, 390px); padding: 2rem; text-align: center; background: #fff; border-radius: 1.2rem; box-shadow: 0 18px 65px rgba(0,0,0,.2); color: #113b68; }
.loader-reporte-panel > p:first-of-type { font-size: 1.2rem; font-weight: 650; }
.loader-asistencia { position: relative; width: 96px; height: 96px; margin: 0 auto 1.25rem; padding: 12px; border: 3px solid #dce9f5; border-radius: 50%; animation: pulso-asistencia 1.2s ease-in-out infinite; }
.loader-asistencia::before { content: ''; position: absolute; inset: -7px; border: 4px solid transparent; border-top-color: #176aa7; border-right-color: #69b3de; border-radius: 50%; animation: giro-asistencia .9s linear infinite; }
.loader-asistencia svg { width: 100%; height: 100%; }
body.reporte-procesando { overflow: hidden; }
@keyframes pulso-asistencia { 50% { transform: scale(1.07); box-shadow: 0 0 0 9px rgba(23,106,167,.08); } }
@keyframes giro-asistencia { to { transform: rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { .loader-asistencia, .loader-asistencia::before { animation: none; } }
.navegacion-asistencia { display: flex; gap: .75rem; padding: .6rem; margin: -1rem 0 1.75rem; border: 1px solid #dbe5ef; background: #f3f7fb; border-radius: .85rem; }
.navegacion-opcion { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 3rem; padding: .8rem 1.5rem; border-radius: .6rem; color: #113b68; text-decoration: none; font-weight: 650; text-align: center; }
.navegacion-opcion:hover, .navegacion-opcion:focus-visible { background: #e1ebf6; color: #113b68; }
.navegacion-opcion.activa { background: #164c80; color: white; box-shadow: 0 3px 8px rgba(17,59,104,.12); }
.paginacion-reporte { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0; }
.paginacion-reporte p { margin: 0; }
@media(max-width:575.98px) { .navegacion-asistencia { gap: .4rem; padding: .35rem; margin-top: -.5rem; } .navegacion-opcion { font-size: .9rem; padding: .65rem .5rem; } }
body { min-height: 100vh; display: flex; flex-direction: column; background: #f3f6fa; color: #18304f; }
body.fondo-home { background: #fff; }
.page-content { flex: 1; display: flex; align-items: center; justify-content: center; padding-top: 3rem; padding-bottom: 3rem; }
.login-shell, .result-shell { width: 100%; max-width: 1030px; border: 1px solid #dde6f1; border-radius: 1.2rem; box-shadow: 0 20px 55px rgba(23, 54, 86, .1); background: #fff; }
.login-intro { min-height: 540px; padding: clamp(2rem, 4vw, 4rem); color: white; background: linear-gradient(145deg, #113b68, #1b5b97 70%, #3d79ad); }
.login-intro .lead { max-width: 26rem; color: #e3edf7; font-size: 1.08rem; }
.login-form-area { display: flex; align-items: center; padding: clamp(2rem, 5vw, 4.5rem); }
.form-inner { width: 100%; max-width: 390px; }
.logo-login { display: block; width: min(100%, 202px); height: auto; margin: 0 auto .75rem; }
.campo-clave { position: relative; }
.campo-clave .form-control { padding-right: 3.5rem; min-height: 48px; }
.campo-clave input::-ms-reveal { display: none; }
.boton-clave { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: .5rem; color: #17588f; background: transparent; cursor: pointer; touch-action: manipulation; }
.boton-clave[hidden], .boton-clave[aria-pressed="false"] .ojo-tachado { display: none; }
.boton-clave:hover { background: #edf3f9; }
.boton-clave:focus-visible { outline: 2px solid #17588f; outline-offset: -2px; background: #edf3f9; }
.eyebrow { color: #25639a; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; }
.form-control { border-color: #cbd8e6; border-radius: .65rem; }
.form-control:focus { border-color: #3d79ad; box-shadow: 0 0 0 .2rem rgba(61, 121, 173, .16); }
.btn-primary { background: #17588f; border-color: #17588f; }
.btn-primary:hover, .btn-primary:focus { background: #0f4472; border-color: #0f4472; }
.btn-outline-primary { color: #17588f; border-color: #17588f; }
.result-shell { max-width: 760px; padding: clamp(2rem, 5vw, 4rem); }
.success-icon { display: grid; place-items: center; width: 3.3rem; height: 3.3rem; margin-bottom: 1.4rem; border-radius: 50%; background: #e6f4ec; color: #19734a; font-size: 1.65rem; font-weight: 700; }
.detail-card { padding: 1rem; border: 1px solid #dce7f2; border-radius: .75rem; background: #fff; }
.detail-label { color: #5b7189; font-size: .78rem; margin-bottom: .4rem; overflow-wrap: anywhere; }
.detail-value { color: #173a61; font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere; }
.site-footer { color: #71839a; font-size: .85rem; }
.tablero { max-width: 1080px; }
.tiempo-card { display: flex; align-items: center; gap: 1rem; min-height: 95px; padding: 1.1rem; border-radius: .75rem; background: #eaf2fb; border: 1px solid #cbdff3; }
.tiempo-icono { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; flex: none; border-radius: .65rem; background: #17588f; color: white; font-size: 1.7rem; }
.tiempo-valor { color: #173a61; font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 750; font-variant-numeric: tabular-nums; }
.accion-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; min-height: 150px; padding: 1rem; border: 1px solid #bed2e7; border-radius: .8rem; background: #f2f7fd; color: #164d7c; font-weight: 650; text-align: center; transition: background .15s, transform .15s; }
.accion-card:not(:disabled):hover, .accion-card:not(:disabled):focus { background: #dcecfb; transform: translateY(-2px); }
.accion-card:disabled { background: #eef0f3; border-color: #d8dce2; color: #88929f; cursor: not-allowed; }
.accion-icono { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: #dceafb; font-size: 1.8rem; line-height: 1; }
.accion-card:disabled .accion-icono { background: #e2e5e9; }
.pagina-home { align-items: flex-start; padding-top: 2.25rem; padding-bottom: 2rem; }
.tablero { max-width: 1180px; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.home-utilidades { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr) minmax(0,1fr); align-items: center; gap: 1rem; margin-bottom: 2.4rem; }
.home-logo { grid-column: 1; justify-self: start; display: block; width: 148px; max-width: 100%; height: auto; }
.home-identidad { grid-column: 2; display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.35; }
.home-identidad-nombre { font-weight: 700; color: #152b49; }
.home-identidad-empleado { color: #58677a; font-size: .9rem; }
.home-salida { grid-column: 3; justify-self: end; }
.btn-cerrar { display: inline-flex; align-items: center; gap: .55rem; border: 1px solid #b42332; border-radius: .6rem; background: #b42332; color: #fff; font-weight: 650; padding: .55rem .8rem; white-space: nowrap; }
.btn-cerrar svg { width: 1.25rem; height: 1.25rem; }
.btn-cerrar:hover, .btn-cerrar:focus { background: #8f1b28; border-color: #8f1b28; color: #fff; box-shadow: 0 0 0 .2rem rgba(180,35,50,.18); }
.home-bienvenida { color: #113b68; font-size: clamp(1.45rem, 2.4vw, 2.1rem); font-weight: 750; line-height: 1.15; text-align: center; overflow-wrap: anywhere; }
.tablero > .text-secondary { font-size: 1.05rem; }
.tablero .detail-card { padding: 1rem; border: 1px solid #d9dde5; border-radius: 1.1rem; box-shadow: 0 12px 24px rgba(24, 39, 62, .12); }
.tablero .detail-label { display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: #1e314c; font-size: .98rem; font-weight: 600; }
.tablero .detail-value { margin-top: .75rem; color: #0b2445; font-size: 1.35rem; font-weight: 750; }
.detail-hora { color: #0b2445; font-size: 1.3rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.tablero .detail-fecha-hora { margin-top: .5rem; color: #0b2445; font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.marca-completa { color: #15905f; font-size: 1.1rem; }
.tablero .tiempo-card { min-height: 82px; padding: .45rem 0; border: 0; border-radius: 0; background: transparent; align-items: flex-start; gap: .45rem; }
.tablero .tiempo-icono { width: auto; height: auto; border: 0; border-radius: 0; background: transparent; color: #56647c; font-size: 1.5rem; line-height: 1; }
.tablero .tiempo-card .detail-label { font-size: .98rem; font-weight: 500; }
.tablero .tiempo-valor { margin-top: .45rem; font-size: 1.38rem; }
.home-titulo-acciones { color: #102a4b; font-size: 1.55rem; font-weight: 750; }
.tablero .accion-card { min-height: 188px; border: 3px solid #1e9bea; border-radius: 1rem; background: #def0ff; box-shadow: 0 11px 20px rgba(15, 59, 102, .17); color: #102f50; font-size: 1.15rem; line-height: 1.25; }
.tablero .accion-card:not(:disabled):hover, .tablero .accion-card:not(:disabled):focus { background: #cce8fc; border-color: #0879c2; }
.tablero .accion-card:disabled { border: 1px solid #d1d5dc; background: #e8eaed; box-shadow: none; color: #707986; opacity: 1; }
.tablero .accion-icono, .tablero .accion-card:disabled .accion-icono { width: auto; height: 3.8rem; background: transparent; border-radius: 0; font-size: 3.35rem; }
.tablero .accion-icono svg { display: block; width: 3.5rem; height: 3.5rem; }
.icono-comida { font-size: 2.4rem; }
@media (max-width: 991.98px) { .login-intro { min-height: 230px; } }
@media (max-width: 575.98px) { .page-content { padding: 1.25rem .75rem; } .login-intro { min-height: 205px; } .login-shell, .result-shell { border-radius: .9rem; } .accion-card { min-height: 125px; } }
@media (max-width: 767.98px) { .home-utilidades { grid-template-columns: auto minmax(0, 1fr) auto; gap: .5rem; margin-bottom: 1.8rem; } .home-logo { grid-column: 1; width: 112px; } .home-identidad { grid-column: 2; min-width: 0; } .home-salida { grid-column: 3; justify-self: end; margin: 0; } .pagina-home { padding-top: 1.25rem; } .home-bienvenida { font-size: 1.7rem; } .home-titulo-acciones { font-size: 1.35rem; } .tablero .detail-card { padding: .9rem; } .tablero .detail-fecha-hora { font-size: 1rem; } .tablero .accion-card { min-height: 145px; font-size: .98rem; } .tablero .accion-icono { font-size: 2.6rem; } }
@media (max-width: 575.98px) { .home-logo { width: 90px; } .home-identidad-nombre { font-size: .82rem; } .home-identidad-empleado { font-size: .72rem; } .btn-cerrar { justify-content: center; min-width: 2.5rem; min-height: 2.5rem; padding: .45rem; } .btn-cerrar span { display: none; } .btn-cerrar svg { width: 1.15rem; height: 1.15rem; } .home-bienvenida { font-size: 1.6rem; } .home-titulo-acciones { font-size: 1.2rem; } .tablero .detail-card { padding: .7rem; } .tablero .detail-fecha-hora { font-size: .82rem; letter-spacing: -.025em; } }
@media (max-width: 359.98px) { .home-logo { width: 80px; } .tablero .detail-card { padding: .5rem; } .tablero .detail-fecha-hora { font-size: .7rem; letter-spacing: -.035em; } }
