/* Legal — Estilos custom sobre Bootstrap 5 */

:root {
    --legal-blue: #0d6efd;
    --legal-dark: #1a1a2e;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f4f6f9;
}

/* Navbar */
.navbar-dark.bg-dark {
    background-color: var(--legal-dark) !important;
}

/* Cards en el dashboard */
.stat-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    transition: transform .15s ease, box-shadow .15s ease;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.stat-card .stat-icon {
    font-size: 2.5rem;
    opacity: .8;
}
.stat-card .stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}

/* Tablas */
.table th {
    font-weight: 600;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #6c757d;
    border-bottom-width: 1px;
}

/* Badges */
.badge {
    font-weight: 500;
    font-size: .78rem;
    padding: .35em .65em;
}

/* Firma canvas */
#firma-canvas {
    border: 2px dashed #adb5bd;
    border-radius: 8px;
    background: #fff;
    cursor: crosshair;
    touch-action: none;
    width: 100%;
}
#firma-canvas.activo {
    border-color: #0d6efd;
    border-style: solid;
}

/* Caja del contrato (firma pública) */
.contrato-box {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    background: #fff;
    max-height: 450px;
    overflow-y: auto;
    font-size: .95rem;
    line-height: 1.7;
}

/* Barra de progreso del instalador */
.install-card {
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 4px 24px rgba(0,0,0,.1);
    border: none;
    border-radius: 16px;
}
.install-step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.check-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem .75rem;
    border-radius: 8px;
    margin-bottom: .4rem;
}
.check-item.ok  { background: #d1e7dd; }
.check-item.err { background: #f8d7da; }

/* Indicador de fortaleza de contraseña */
.strength-bar {
    height: 6px;
    border-radius: 3px;
    transition: all .3s ease;
}

/* Link público firmar.php */
.firmar-header {
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    padding: 1.25rem 0;
    text-align: center;
    margin-bottom: 2rem;
}
.firmar-header img { height: 70px; object-fit: contain; }

/* Éxito de firma */
.firma-exito {
    text-align: center;
    padding: 3rem 2rem;
}
.firma-exito .icono-check {
    font-size: 5rem;
    color: #198754;
}

/* Footer */
.footer {
    font-size: .85rem;
}

/* Dropdown notificaciones */
.notif-dropdown .dropdown-item {
    white-space: normal;
    font-size: .85rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Alertas flash */
.alert-flash {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
    min-width: 300px;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

/* Imagen de firma en ver contrato */
.firma-img-preview {
    max-width: 300px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    padding: .5rem;
}

/* Password toggle */
.password-toggle-btn {
    border-left: 0;
    background: #fff;
}
