:root { --azul: #1f4e79; --azul-oscuro: #13253d; --fondo: #f3f5f8; --borde: #dde3ea; }
html, body { background: var(--fondo); color: #1d2733; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
.btn-primary { background: var(--azul); border-color: var(--azul); }
.barra { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .6rem; background: var(--azul-oscuro); color: #fff; padding: .65rem 1rem; padding-top: calc(.65rem + env(safe-area-inset-top)); }
.barra .marca { color: #fff; text-decoration: none; font-weight: 700; flex: 1; }
.barra .marca i { color: #7fb4e6; }
.barra .quien { font-size: .85rem; color: #c9d6e4; }
.campana { color: #fff; font-size: 1.3rem; position: relative; }
.globo { position: absolute; top: -4px; right: -8px; background: #e74c3c; color: #fff; border-radius: 1rem; font-size: .65rem; padding: 0 .35rem; font-weight: 700; }
.contenido-p { max-width: 680px; margin: 0 auto; padding: 1rem; }
.abajo { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: flex; background: #fff; border-top: 1px solid var(--borde); padding-bottom: env(safe-area-inset-bottom); }
.abajo a, .abajo form, .abajo button { flex: 1; }
.abajo a, .abajo button { display: flex; flex-direction: column; align-items: center; padding: .45rem 0 .5rem; color: #5b6b7b; text-decoration: none; font-size: .72rem; background: none; border: 0; width: 100%; }
.abajo i { font-size: 1.3rem; }
.abajo .activo { color: var(--azul); font-weight: 700; }
.caja-p, .tarjeta-p { background: #fff; border: 1px solid var(--borde); border-radius: .8rem; padding: 1rem; margin-bottom: .8rem; }
.tarjeta-p { display: block; color: inherit; text-decoration: none; padding: .8rem .9rem; }
.tarjeta-p.nuevo { border-left: 4px solid var(--azul); }
.trabajo { border-left: 5px solid var(--azul); }
.trabajo.t-ticket { border-left-color: #7b4bb4; }
.trabajo.t-evento { border-left-color: #2e8b57; }
.trabajo .hora { font-weight: 700; font-size: .85rem; min-width: 4.6rem; color: var(--azul-oscuro); }
.min-w-0 { min-width: 0; }
.dia-p { font-size: .95rem; font-weight: 700; color: #4a5b6c; margin: 1.1rem 0 .5rem; text-transform: uppercase; letter-spacing: .03em; }
.dia-p span { font-weight: 400; text-transform: none; font-size: .8rem; color: #8a99a8; }
.dia-p.hoy { color: var(--azul); }
.chip { font-size: .72rem; padding: .25rem .55rem; border-radius: 1rem; background: #e8f0f9; color: var(--azul); white-space: nowrap; font-weight: 600; }
.chip.ok { background: #e2f4e8; color: #1e7b45; }
.chip.enviado { background: #e1f3f6; color: #0f6f80; }
.chip.curso { background: #fff3dc; color: #9a5b00; }
.volver { display: inline-block; margin-bottom: .6rem; text-decoration: none; font-size: .9rem; }
.texto-largo { white-space: pre-wrap; }
.contador { display: flex; justify-content: space-between; align-items: center; padding: .45rem 0; border-bottom: 1px solid #eef1f4; gap: .5rem; }
.contador input { max-width: 4rem; }
.contador .btn { min-width: 2.6rem; font-size: 1.1rem; }
.equipo-fila { display: flex; align-items: center; gap: .8rem; }
.equipo-fila .numero { flex: 0 0 2.2rem; height: 2.2rem; border-radius: 50%; background: #e8f0f9; color: var(--azul); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.equipo-fila.listo .numero { background: #e2f4e8; color: #1e7b45; }
.campo { margin-bottom: .9rem; }
.campo .form-label { font-weight: 600; margin-bottom: .3rem; }
.form-control, .form-select { font-size: 1rem; min-height: 2.75rem; }
.opciones { display: flex; flex-wrap: wrap; gap: .35rem; }
.opciones .btn { border-radius: 2rem; padding: .45rem .85rem; }
.check-grande { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem 0; border-bottom: 1px solid #eef1f4; }
.check-grande input { width: 1.4rem; height: 1.4rem; flex: 0 0 auto; margin-top: 0; }
.miniaturas { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .4rem; }
.mini { position: relative; aspect-ratio: 1; border-radius: .5rem; overflow: hidden; background: #e9edf2; }
.mini img { width: 100%; height: 100%; object-fit: cover; }
.mini .pdf { display: flex; height: 100%; align-items: center; justify-content: center; font-size: 2rem; color: #c0392b; }
.mini .quitar { position: absolute; top: 3px; right: 3px; border: 0; border-radius: 50%; width: 1.7rem; height: 1.7rem; background: rgba(0,0,0,.55); color: #fff; font-size: .75rem; }
.botonera { display: flex; gap: .5rem; position: sticky; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 5; }
.barra-p { height: 6px; }
.fondo-login { background: linear-gradient(160deg, #13253d, #1f4e79 60%, #2f6aa3); }
.caja-p.mt-4 { max-width: 420px; margin-left: auto; margin-right: auto; }
.logo-login { width: 72px; height: 72px; border-radius: 1rem; }
details summary { cursor: pointer; font-weight: 600; color: var(--azul); }
.logo-barra { height: 1.6rem; max-width: 4rem; object-fit: contain; background: #fff; border-radius: .3rem; padding: 1px; vertical-align: middle; }
.logo-login { object-fit: contain; background: #fff; }
