﻿/* =========================================================
     VARIABLES GLOBALES
     ========================================================= */
:root {
    /* Variables Corporativas y de Aplicación */
    --mpi-primary: #3990c4;
    --mpi-primary-2: #2c6fa1;
    --mpi-blue-2: #1b4f7a;
    --mpi-text: #111827;
    --mpi-muted: #6b7280;
    --mpi-border: #dbe3f0;
    --mpi-bg: #FFFFFF;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: "Lato", "Segoe UI", Arial, sans-serif;
    padding: 0;
    box-sizing: border-box;
}
/*    background-color: #f8f9fd;
    color: #FFFFFF;*/


/* =========================================================
     BASE / RESET PERSONALIZADO
     ========================================================= */

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    font-family: "Segoe UI", "Lato", Arial, sans-serif;
    background: var(--mpi-bg);
    font-size: 16px;
    line-height: 1.8;
    color: gray;
}

/* =========================================================
     COMPONENTES DE LA APLICACIÓN
     ========================================================= */

.login-split {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.login-left {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 28px;
}

.login-left-inner {
    width: 100%;
    max-width: clamp(420px, 32vw, 560px);
}

.brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
}

.brand-logo {
    width: 160px;
    max-width: 65%;
    height: auto;
    object-fit: contain;
    display: block;
}

.mpi-field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 2px solid var(--mpi-border);
    border-radius: clamp(14px, 1vw, 18px);
    padding: clamp(10px, 0.9vw, 14px) clamp(12px, 1vw, 16px);
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .mpi-field:focus-within {
        border-color: var(--mpi-primary);
        box-shadow: 0 0 0 4px rgba(31, 59, 99, .18);
    }

.mpi-ico {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: var(--mpi-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

    .mpi-ico svg {
        width: 16px;
        height: 16px;
        fill: #fff;
    }

.mpi-input {
    width: 100%;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: clamp(14px, 1vw, 16px);
    color: var(--mpi-text);
}

.btn-mpi {
    width: 100%;
    border: none;
    border-radius: clamp(16px, 1.2vw, 18px);
    padding: clamp(14px, 1.2vw, 16px) 10px;
    font-size: clamp(15px, 1.05vw, 17px);
    font-weight: 900;
    color: #fff !important;
    cursor: pointer;
    background: linear-gradient(180deg, #3990c4 0%, #3990c4 100%);
    box-shadow: 0 6px 14px rgba(11, 39, 71, .25);
    transition: all .12s ease;
}

    .btn-mpi:hover {
        transform: translateY(-1px);
        filter: brightness(1.03);
    }

/* =========================================================
     LADO DERECHO (HERO)
     ========================================================= */
.login-right {
    position: relative;
    overflow: hidden;
    background: #60A5CF;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img-cover {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* =========================================================
     RESPONSIVE
     ========================================================= */
@media (max-width: 991.98px) {
    .login-split {
        grid-template-columns: 1fr;
    }

    .login-right {
        order: -1;
        min-height: 35vh;
    }

    .login-left {
        padding: 16px;
    }
}

/* Estilos adicionales de MudBlazor / UI */
.mud-avatar {
    cursor: pointer;
}

.colorbellum {
    color: #FFFFFF !important;
}

.colorbellum2 {
    color: #3990c4 !important;
}
.mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled) {
    color: #FFFFFF !important;
}
/* Barra de navegación personalizada */
.Bellumlistbarraup {
    background: #3990c4 !important;
    position: absolute !important;
    z-index: 1000 !important;
    text-align: right !important;
    top: 100% !important;
    right: 0 !important;
}

/*.colorbellum {
    color: #3990c4  !important;
}*/

/* Ajustes para MudBlazor */
.mud-theme-info {
    color: white !important;
    background-color: #3990c4 !important;
}

.mud-card-media {
    display: block !important;
    background-size: contain !important;
    background-repeat: no-repeat;
    background-position: center;
}

.mud-avatar {
    cursor: pointer;
}

/* Tablas personalizadas */
.tablaletra {
    font-size: 70%;
}

.mensajeletra {
    font-size: 50%;
}

.grandetabla {
    min-width: 100px;
}


/*pagina pedido Nueva */
.scroll-horizontal {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* Suavidad en iOS/Android */
    padding-bottom: 5px;
}

    /* Ocultar scrollbar visualmente pero permitir scroll */
    .scroll-horizontal::-webkit-scrollbar {
        height: 4px;
    }

    .scroll-horizontal::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }

.card-picking {
    transition: transform 0.1s;
    border-left: 6px solid #ccc; /* Color por defecto */
}

    .card-picking:active {
        transform: scale(0.98); /* Efecto tactil al presionar */
        background-color: #f8f9fa;
    }

.estado-verde {
    border-left-color: #8CED8C !important;
    background-color: #f0fff0;
}

.estado-amarillo {
    border-left-color: #F1F165 !important;
    background-color: #fffff0;
}

.caja-dato {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 5px;
    text-align: center;
}

.caja-dato-titulo {
    font-size: 0.65rem;
    font-weight: bold;
    color: #6c757d;
    text-transform: uppercase;
    margin-bottom: 0;
}

.caja-dato-valor {
    font-size: 1.1rem;
    font-weight: bold;
    color: #212529;
    line-height: 1.2;
}


/*itempedido*/

.caja-dato {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.caja-dato-titulo {
    font-size: 0.7rem;
    font-weight: bold;
    color: #6c757d;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.caja-dato-valor {
    font-size: 1.2rem;
    font-weight: bold;
    color: #212529;
    line-height: 1.2;
    margin-bottom: 0;
}

/* Input grande para la cantidad */
.input-gigante input {
    text-align: center;
    font-size: 1.5rem !important;
    font-weight: bold;
    height: 3rem;
}

/*Principal*/

.menu-card {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    height: 100%;
}

    .menu-card:active {
        transform: scale(0.96);
        background-color: #f0f4f8;
    }

.menu-card-header {
    background-color: #f8f9fa;
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

/* Ajuste para que las imágenes se vean contenidas y bonitas */
.menu-img-container {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: white;
}

.menu-img {
    max-height: 140px;
    max-width: 100%;
    object-fit: contain;
}

 