:root {
    --brand-primary: #0e4a7b;
    --brand-secondary: #1f8dd6;
    --brand-accent: #fc5c5c;
    --bg-page: #f5f8fd;
    --bg-panel: #ffffff;
    --text-default: #2a3f5f;
    --text-muted: #6f7c98;
    --border-color: rgba(46, 61, 94, 0.12);
    --shadow-soft: 0 18px 45px rgba(15, 33, 70, 0.08);
}

body, html {
    font-family: 'Inter', 'Poppins', 'Segoe UI', sans-serif !important;
    color: var(--text-default) !important;
    background: linear-gradient(180deg, #eef3fb 0%, #f8fbff 100%);
}

.card, .modal-content, .navbar, .tab-content, .form-control {
    border-radius: 18px !important;
    box-shadow: var(--shadow-soft) !important;
    border: 1px solid var(--border-color) !important;
}

.topbar, .navbar-light, .navbar {
    background: linear-gradient(135deg, #0f3d70 0%, #224b8d 100%) !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar-brand img {
    max-width: 180px;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.02);
}

.btn, .btn-primary, .btn-outline-primary, .btn-secondary, .btn-warning {
    border-radius: 999px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover, .btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(15, 33, 70, 0.12);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary)) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.btn-warning {
    background: var(--brand-accent) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.btn-outline-secondary, .btn-outline-primary, .btn-outline-light {
    border-radius: 999px !important;
}

input.form-control, .form-control {
    border-radius: 16px !important;
    border: 1px solid rgba(46, 61, 94, 0.14) !important;
    background: #ffffff !important;
    box-shadow: inset 0 2px 12px rgba(84, 108, 143, 0.06);
    padding: 14px 16px !important;
}

input.form-control:focus, .form-control:focus {
    border-color: var(--brand-secondary) !important;
    box-shadow: 0 0 0 0.2rem rgba(31, 141, 214, 0.16) !important;
}

.navbar-nav .nav-link, .topbar .nav-link {
    color: rgba(255,255,255,0.92) !important;
    font-size: 0.96rem;
}

.card-body {
    background: var(--bg-panel) !important;
}

.card.m-b-0 {
    border: none !important;
    box-shadow: 0 14px 30px rgba(15, 33, 70, 0.06) !important;
}

.product-list .card, .scroll_productos .card, .scroll_productos .btn, .list-productos .btn {
    border-radius: 18px !important;
    min-height: 120px;
    margin-bottom: 16px;
}

.scroll_productos .card img, .product-list .card img {
    max-height: 120px;
    object-fit: contain;
}

.pos-panel-header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    padding: 24px 24px 18px;
    box-shadow: 0 24px 40px rgba(15, 33, 70, 0.07);
    border: 1px solid rgba(46, 61, 94, 0.06);
}

.pos-panel-header .badge {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    padding: 0.6rem 0.95rem;
    text-transform: uppercase;
    background: rgba(31, 141, 214, 0.12);
    color: #0f3d70;
    border-radius: 999px;
}

.pos-panel-header h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.65rem;
}

.pos-panel-header p {
    margin-bottom: 0;
    color: #5e6c86;
}

.search-pos-input .form-control {
    min-height: 52px;
}

.search-pos-input .input-group-append .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.order-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    background: #f3f7fb;
    border-radius: 18px;
    margin-bottom: 14px;
}

.order-info-item {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    color: #2a3f5f;
}

.order-info-separator {
    color: #7a8698;
    margin: 0 10px;
    font-size: 1.25rem;
}

.btn-pagar-pos, .btn-cancelar-pos, .btn-mozo-pos, .btn-dividir-pos {
    min-height: 132px;
    padding: 22px 24px;
    margin-bottom: 14px;
    border-radius: 26px !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-pagar-pos {
    background: linear-gradient(135deg, #0e4a7b, #1f8dd6) !important;
    color: #ffffff !important;
}

.btn-cancelar-pos {
    background: #fc5c5c !important;
    color: #ffffff !important;
}

.btn-dividir-pos {
    background: #2a7fda !important;
    color: #ffffff !important;
}

.btn-mozo-pos {
    background: #4f5df9 !important;
    color: #ffffff !important;
}

.btn-pagar-pos:hover, .btn-cancelar-pos:hover, .btn-mozo-pos:hover, .btn-dividir-pos:hover {
    transform: translateY(-2px);
}

.comment-widgets, .scroll_orden {
    min-height: 430px;
    background: rgba(255,255,255,0.98);
    border-radius: 20px;
    padding: 20px;
}

.modal-header {
    background: linear-gradient(135deg, #1f71b8, #153054) !important;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

.btn-pagar-pos .display-6, .btn-cancelar-pos .display-6, .btn-mozo-pos .display-6 {
    font-size: 2.1rem;
}

.btn-pagar-pos h4, .btn-mozo-pos h3 {
    font-size: 1.5rem;
    line-height: 1.1;
}

.pedido-numero, .pedido-cliente {
    font-size: 1.1rem;
    font-weight: 700;
}

.comment-widgets, .scroll_orden {
    min-height: 400px;
    background: rgba(255,255,255,0.95);
    border-radius: 18px;
    padding: 16px;
}

.modal-header {
    background: linear-gradient(135deg, #1f71b8, #153054) !important;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

.modal-title {
    font-weight: 800 !important;
    letter-spacing: 0.03em;
}

.table thead th {
    background: #1f71b8 !important;
    color: #ffffff !important;
    border-bottom: none !important;
}

.table tbody tr:hover {
    background: rgba(31, 141, 214, 0.08) !important;
}

.auth-wrapper .auth-box-2 {
    box-shadow: 0 25px 70px rgba(15, 33, 70, 0.14) !important;
    border-radius: 30px !important;
    overflow: hidden;
    position: relative;
}

.auth-wrapper .auth-box-2::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 74, 123, 0.76), rgba(15, 33, 70, 0.48));
    z-index: 1;
}

.auth-wrapper .auth-box-2 .h-100 {
    position: relative;
    z-index: 2;
}

.auth-wrapper .auth-box-2 h2, .auth-wrapper .auth-box-2 h5, .auth-wrapper .auth-box-2 p {
    color: #ffffff !important;
}

.card-login-panel {
    background: rgba(255, 255, 255, 0.98) !important;
}

.card-login-panel .form-control {
    background: #f5f7fb !important;
    border: 1px solid rgba(15, 33, 70, 0.14) !important;
}

.card-login-panel .form-control:focus {
    border-color: var(--brand-secondary) !important;
    box-shadow: 0 0 0 0.2rem rgba(31, 141, 214, 0.14) !important;
}

.form-input-bg {
    border-radius: 16px !important;
    padding: 16px 18px !important;
}

.btn-login-primary {
    background: linear-gradient(135deg, #0e4a7b, #1f8dd6) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 18px 35px rgba(15, 33, 70, 0.16);
}

.btn-login-primary:hover {
    background: linear-gradient(135deg, #0b3d6a, #186fb8) !important;
}

.auth-wrapper .auth-box-2 .text-warning {
    color: #ffd24d !important;
}

.auth-wrapper .auth-box-2 .h-100 .row justify-content-center {
    z-index: 2;
}

.style-login {
    font-family: 'Poppins', 'Inter', sans-serif !important;
}

.style-login .btn-warning {
    background: linear-gradient(135deg, #fc5c5c, #ff8f6b) !important;
    border-color: transparent !important;
}

.style-login .btn-primary-1 {
    background: #ffffff !important;
    color: #0f3d70 !important;
}

.login-cover {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background-image: url("../images/background/fondo-login2.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.login-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 30, 50, 0.65), rgba(10, 28, 48, 0.82));
    pointer-events: none;
}

.auth-wrapper {
    position: relative;
    z-index: 2;
}

.login-card-wrapper {
    max-width: 520px;
    width: 100%;
    position: relative;
    z-index: 3;
}

.login-card-panel {
    background: rgba(255,255,255,0.92) !important;
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.16) !important;
}

.login-card-panel .card-body {
    padding: 46px 34px !important;
}

.login-cover .login-card-panel {
    box-shadow: 0 35px 60px rgba(10, 26, 60, 0.18);
}

.login-cover .form-input-bg {
    background: rgba(255,255,255,0.92) !important;
    border: 1px solid rgba(15,33,70,0.14) !important;
    color: #1f324d;
}

.login-cover .btn-login-primary {
    background: linear-gradient(135deg, #f05a28, #d44673) !important;
    border: none !important;
    box-shadow: 0 18px 35px rgba(240,90,40,0.18);
}

.login-cover .btn-login-primary:hover {
    background: linear-gradient(135deg, #d84425, #b53c64) !important;
}

.login-cover .login-cover-message {
    position: absolute;
    top: 14%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    color: #ffffff;
    max-width: 720px;
    padding: 0 24px;
}

.login-cover .login-cover-message h1 {
    font-size: clamp(2rem, 3vw, 3.8rem);
    line-height: 1.03;
    margin-bottom: 0.8rem;
    letter-spacing: -0.03em;
}

.login-cover .login-cover-message p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.86);
}

.login-cover-panel .cover-content {
    position: relative;
    z-index: 2;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.login-cover-panel .badge-light {
    background: rgba(255,255,255,0.18);
    color: #f7fbff;
    border: none;
}

.login-card-wrapper {
    max-width: 520px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.login-card-panel {
    border-radius: 28px !important;
    overflow: hidden;
    background: rgba(255,255,255,0.98) !important;
}

.login-card-panel .card-body {
    padding: 46px 36px !important;
}

.form-input-bg {
    border-radius: 14px !important;
    padding: 16px 18px !important;
    background: #f8fbff !important;
    border: 1px solid rgba(15, 33, 70, 0.12) !important;
}

.btn-login-primary {
    background: linear-gradient(135deg, #0e4a7b, #1f8dd6) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 18px 35px rgba(15, 33, 70, 0.16);
}

.btn-login-primary:hover {
    background: linear-gradient(135deg, #0a3a67, #186ea8) !important;
}

.login-cover-panel h1 {
    font-size: clamp(2rem, 2.7vw, 3.7rem);
    line-height: 1.05;
    color: #ffffff;
}

.login-cover-panel p {
    color: rgba(255,255,255,0.88);
    max-width: 520px;
}

.login-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.92);
    font-size: 0.98rem;
}

.login-feature-list li i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255,255,255,0.16);
}

.cover-footer {
    margin-top: auto;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.72);
}

.login-card-wrapper {
    max-width: 460px;
    width: 100%;
}

.login-card-panel {
    border-radius: 28px !important;
    overflow: hidden;
}

.login-card-panel .card-body {
    padding: 46px 36px !important;
}

.login-card-panel .form-control {
    border-radius: 14px !important;
}

.btn-outline-secondary.btn-circle {
    border-radius: 50% !important;
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-card-wrapper .text-muted {
    color: rgba(43, 55, 101, 0.78) !important;
}

.login-card-wrapper .fw-semibold {
    color: #112851;
}

@media (max-width: 991.98px) {
    .auth-wrapper .auth-box-2 {
        padding: 30px 20px !important;
        min-height: 420px;
    }
}

@media (max-width: 767.98px) {
    .btn, .btn-block {
        padding: 16px 20px !important;
        font-size: 1rem !important;
    }

    .card-body {
        padding: 18px !important;
    }
}
