/* =========================================================
   Kernel Soporte Técnico — Standalone
   Estilos de la aplicación (barra de navegación, login) que
   reemplazan el "chrome" de wp-admin del plugin original.
   El resto del diseño (tarjetas, tablas, formularios, guía de
   impresión) sigue viniendo de admin.css, sin cambios.
   ========================================================= */

* { box-sizing: border-box; }

body {
    margin: 0;
    background: #f0f2f8;
    font-family: 'Inter', -apple-system, sans-serif;
}

.kst-page { max-width: 1400px; margin: 0 auto; padding: 0 10px; }

/* ---- BARRA DE NAVEGACIÓN ---- */
.kst-topnav {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #1a2744;
    color: #fff;
    padding: 0 20px;
    height: 56px;
    box-shadow: 0 2px 12px rgba(26,39,68,.15);
    position: sticky;
    top: 0;
    z-index: 500;
}
.kst-topnav-brand {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.kst-topnav-k {
    background: rgba(230,57,70,.2);
    border: 2px solid #e63946;
    color: #e63946;
    border-radius: 6px;
    padding: 1px 8px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}
.kst-topnav-icon-img {
    height: 28px;
    max-width: 90px;
    object-fit: contain;
    border-radius: 6px;
}
.kst-topnav-links { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.kst-topnav-links a {
    color: #c7cee3;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.kst-topnav-links a:hover { background: rgba(255,255,255,.08); color: #fff; }
.kst-topnav-links a.active { background: #e63946; color: #fff; }
.kst-topnav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #c7cee3;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .kst-topnav { flex-wrap: wrap; height: auto; padding: 10px 14px; }
    .kst-topnav-links { order: 3; width: 100%; }
}

@media (max-width: 480px) {
    .kst-topnav-links { gap: 2px; overflow-x: auto; }
    .kst-topnav-links a { padding: 7px 10px; font-size: 13px; }
    .kst-topnav-user span { display: none; } /* oculta el nombre de usuario, deja el botón Salir */
}

/* ---- LOGIN ---- */
.kst-login-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: linear-gradient(160deg, #1a2744, #101a30);
    padding: 20px;
}
.kst-login-box {
    background: #fff;
    border-radius: 12px;
    padding: 36px 32px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 10px 40px rgba(0,0,0,.3);
}
.kst-login-box h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    color: #1a2744;
    margin: 0 0 4px;
    text-align: center;
}
.kst-login-box p.kst-login-sub {
    text-align: center;
    color: #7b84a3;
    font-size: 13px;
    margin: 0 0 24px;
}
.kst-login-error {
    background: #fdeaea;
    border: 1px solid #f3b8bc;
    color: #b3212b;
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
}
.kst-login-box label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a2744;
    margin: 14px 0 6px;
}
.kst-login-box input[type="text"],
.kst-login-box input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dde2ef;
    border-radius: 8px;
    font-size: 14px;
}
.kst-login-box button {
    width: 100%;
    margin-top: 22px;
    padding: 11px;
    background: #e63946;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.kst-login-box button:hover { background: #d32836; }

/* ---- PIE DE PÁGINA GLOBAL ---- */
.kst-app-footer {
    text-align: center;
    font-size: 12px;
    color: var(--kst-app-footer-color, #7b84a3);
    padding: 18px 10px 26px;
}
.kst-app-footer a {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}
.kst-app-footer a:hover { text-decoration: underline; }
.kst-app-footer-dark { --kst-app-footer-color: #c7cee3; padding: 0; }
