/* ===== GENERAL ===== */

body {
    background: #f5f5f5;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
}


/* ===== MODAL FULLSCREEN ===== */

.modal-fullscreen {
    max-width: 100%;
    height: 100%;
    margin: 0;
}

.modal-fullscreen .modal-content {
    height: 100vh;
    border-radius: 0;
    border: 0;
    display: flex;
    flex-direction: column;
}

.modal-body {
    padding: 0;
    flex: 1;
    overflow: hidden;
}


/* ===== HEADER ===== */

.header {
    background: #f7941d;
    color: white;
    padding: 10px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
}

.header-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-top: 5px;
    opacity: .9;
}


/* ===== TITULO ===== */

.titulo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #fff3e6;
    border-bottom: 1px solid #f1d0a6;
}

.titulo input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 15px;
    width: 60%;
}

.titulo span {
    font-size: 12px;
    color: #666;
}


/* ===== CLIENTE ===== */

.cliente {
    padding: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.cliente input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
}


/* ===== CONTENIDO ===== */

.contenido {
    flex: 1;
    overflow-y: auto;
    background: #fafafa;
}

#mensajeVacio {
    color: #888;
    font-size: 14px;
}


/* ===== LISTA PEDIDO ===== */

.item-pedido {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #e5e5e5;
    background: white;
}

.item-info {
    flex: 1;
}

.item-nombre {
    font-weight: 600;
    font-size: 15px;
}

.item-precio {
    font-size: 13px;
    color: #777;
}

.item-controles {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 10px;
}

.item-cantidad {
    min-width: 28px;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
}

.btn-cantidad {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-total {
    width: 75px;
    text-align: right;
    font-weight: 600;
    font-size: 15px;
}

.item-eliminar {
    margin-left: 8px;
    cursor: pointer;
    font-size: 16px;
}


/* ===== RESUMEN ===== */

.resumen {
    border-top: 1px solid #ddd;
    padding: 10px;
    background: white;
}

.subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.total {
    font-size: 18px;
    font-weight: 700;
}

.botones {
    display: flex;
    gap: 10px;
}

.botones .btn {
    flex: 1;
    font-size: 14px;
}


/* ===== CATEGORIAS HORIZONTALES ===== */

.categorias-horizontal {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px;
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.categorias-horizontal::-webkit-scrollbar {
    display: none;
}

.categoria-item {

    flex: 0 0 auto;

    padding: 8px 14px;

    border-radius: 20px;

    font-size: 13px;
    font-weight: 600;

    background: #e9ecef;
    color: #333;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    height: 36px;

}

.categoria-item.active {
    background: #1976d2;
    color: white;
}


/* ===== PRODUCTOS ===== */

.productos {

    flex: 1;

    overflow-y: auto;

    padding: 10px;

    background: #fafafa;

}


/* ===== GRID PRODUCTOS ===== */

.grid-productos {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 12px;

}


/* ===== CARD PRODUCTO ===== */

.card-producto {

    background: white;

    border-radius: 10px;

    overflow: hidden;

    cursor: pointer;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);

    transition: .2s;

}

.card-producto:hover {
    transform: scale(1.03);
}

.img-producto {

    position: relative;

    height: 120px;

}

.img-producto img {

    width: 100%;
    height: 100%;

    object-fit: cover;

}


/* overlay nombre */

.nombre-producto {

    position: absolute;

    bottom: 0;
    left: 0;

    width: 100%;

    padding: 6px;

    font-size: 13px;

    font-weight: bold;

    color: white;

    text-align: center;

    background: rgba(0, 0, 0, .55);

}


/* precio */

.precio-producto {

    background: linear-gradient(135deg, #1f3c88, #3a7bd5);

    color: white;

    font-weight: bold;

    text-align: center;

    padding: 6px;

    font-size: 14px;

}


/* badge cantidad */

.badge-producto {

    position: absolute;

    top: 6px;
    right: 6px;

    background: #ff3b30;

    color: white;

    border-radius: 50%;

    width: 22px;
    height: 22px;

    display: none;

    align-items: center;
    justify-content: center;

    font-size: 12px;

}


/* ===== BOTON AGREGAR ===== */

.footer-agregar {

    position: sticky;

    bottom: 0;

    background: white;

    padding: 10px;

    border-top: 1px solid #ddd;

}


/* ===== SCROLL ===== */

.contenido::-webkit-scrollbar {
    width: 6px;
}

.contenido::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.contenido::-webkit-scrollbar-track {
    background: #f1f1f1;
}


/* ===== MESAS ===== */

.card-mesa {

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    height: 150px;

    border-radius: 12px;

    text-decoration: none;

    position: relative;

    color: white;

    font-weight: 600;

    transition: .2s;

    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);

}

.card-mesa:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}

.mesa-titulo {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 6px;
}

.mesa-icono img {
    height: 45px;
    margin-bottom: 5px;
}

.mesa-estado {
    font-size: 14px;
    opacity: .9;
}

.mesa-capacidad {
    position: absolute;
    bottom: 6px;
    right: 8px;
    font-size: 12px;
    opacity: .9;
}

.badge-tiempo {

    position: absolute;

    top: 6px;
    left: 6px;

    background: #2c3e50;

    color: white;

    padding: 2px 6px;

    border-radius: 6px;

    font-size: 11px;

}


/* ===== RESPONSIVE ===== */

@media (min-width:768px) {

    .grid-productos {
        grid-template-columns: repeat(4, 1fr);
    }

}


#contenedorProductos {
    height: calc(100vh - 220px);
    overflow-y: auto;
    padding: 10px;
}

.categoria-titulo {

    display: flex;
    align-items: center;

    font-size: 18px;
    font-weight: 700;

    color: #2c3e50;

    margin-top: 15px;
    margin-bottom: 10px;

    padding-left: 12px;

    position: relative;

    scroll-margin-top: 70px;

}

/* barra lateral */

.categoria-titulo::before {

    content: "";

    position: absolute;

    left: 0;
    top: 50%;

    transform: translateY(-50%);

    width: 4px;
    height: 18px;

    background: #ff6b35;
    /* color de acento */

    border-radius: 2px;

}


.header-pedido {

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 14px;

    background: linear-gradient(135deg, #1f3c88, #3a7bd5);

    color: #fff;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);

}

/* titulo */

.titulo-header {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

/* boton volver */

.btn-volver {

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.2);

    color: #fff;

    transition: .2s;

}

.btn-volver:hover {
    background: rgba(255, 255, 255, 0.35);
}

.modal-header-productos {

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 12px 14px;

    background: linear-gradient(135deg, #1f3c88, #3a7bd5);

    color: #fff;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);

}

/* botón regresar */

.modal-header-productos #btn-regresar {

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.2);

    color: #fff;

    border: none;

    transition: .2s;

}

.modal-header-productos #btn-regresar:hover {
    background: rgba(255, 255, 255, 0.35);
}


/* titulo */

.modal-header-productos .modal-title {

    font-size: 17px;
    font-weight: 600;

    color: #fff;

    margin: 0;

}

.btn-agregar {

    background: linear-gradient(135deg, #28a745, #20c997);

    border: none;

    color: #fff;

    font-weight: 600;

    font-size: 16px;

    padding: 12px;

    border-radius: 8px;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);

    transition: all .2s ease;

}

/* hover */

.btn-agregar:hover {

    background: linear-gradient(135deg, #23923d, #1fb88a);

    transform: translateY(-1px);

    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);

}

/* click */

.btn-agregar:active {

    transform: scale(0.98);

}

.btn-verde-degradado {

    background: linear-gradient(135deg, #28a745, #20c997);

    border: none;

    color: #fff;

    font-weight: 600;

    border-radius: 8px;

    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);

    transition: all .2s ease;

}

/* hover */

.btn-verde-degradado:hover {

    background: linear-gradient(135deg, #23923d, #1fb88a);

    transform: translateY(-1px);

    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);

}

/* click */

.btn-verde-degradado:active {

    transform: scale(0.97);

}

.producto-item {

    display: flex;
    align-items: center;

    padding: 10px;

    border-bottom: 1px solid #e9ecef;

    cursor: pointer;

    background: #fff;

    transition: .15s;

}

.producto-item:hover {
    background: #f8f9fa;
}

/* imagen */

.producto-img {

    position: relative;

    width: 50px;
    height: 50px;

    margin-right: 10px;

}

.producto-img img {

    width: 50px;
    height: 50px;

    object-fit: cover;

    border-radius: 6px;

}

/* badge cantidad */

.badge-producto {

    position: absolute;
    top: -5px;
    right: -5px;

    background: #007bff;
    color: #fff;

    font-size: 12px;

    width: 20px;
    height: 20px;

    border-radius: 50%;

    display: none;
    align-items: center;
    justify-content: center;

}

/* info producto */

.producto-info {
    flex: 1;
}

.producto-nombre {

    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;

}

/* precio */

.producto-precio {

    font-weight: 600;
    font-size: 15px;

    margin-right: 10px;

    color: #2c3e50;

}

/* icono info */

.producto-info-btn {

    color: #6c757d;
    font-size: 16px;

}

.btn-azul-degradado {

    background: linear-gradient(135deg, #1f3c88, #3a7bd5);

    border: none;

    color: #fff;

    font-weight: 600;

    border-radius: 8px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);

    transition: all .2s ease;

}

/* hover */

.btn-azul-degradado:hover {

    background: linear-gradient(135deg, #1b3478, #326ac0);

    transform: translateY(-1px);

    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);

}

/* click */

.btn-azul-degradado:active {

    transform: scale(0.97);

}

.btn-rojo-degradado {

    background: linear-gradient(135deg, #dc3545, #ff5f6d);

    border: none;

    color: #fff;

    font-weight: 600;

    border-radius: 8px;

    padding: 6px 14px;

    text-decoration: none;

    display: inline-block;

    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);

    transition: all .2s ease;

}

/* hover */

.btn-rojo-degradado:hover {

    background: linear-gradient(135deg, #c82333, #ff4b5c);

    color: #fff;

    transform: translateY(-1px);

    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);

}

/* click */

.btn-rojo-degradado:active {

    transform: scale(0.97);

}