body {
    margin: 0;
    font-family: Arial, sans-serif;
}
*,*::before, *::after{
    box-sizing: border-box;
}


/* ***INICIAR SESION*** */
.header2 {
    height: 100vh;
    background-image: url("../images/fondo_ingreso2.png");
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
.login-container {
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
}
.login-container p {
    text-align: center;
    margin-bottom: 25px;
    color: #fff;
}
.login_logo{
    display: flex;
    justify-content: center;
}
.login-form .input-group {
    margin-bottom: 20px;
}
.login-form label {
    margin-bottom: 5px;
    color: #fff;
}
.login-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}
.login-form input:focus {
    border-color: #EE7D00;
    outline: none;
}
.login-btn {
    width: 100%;
    padding: 10px;
    background-color: #CB6C36;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}
.login-btn:hover {
    background-color: #803002;
}
.options {
    margin-top: 20px;
}
.options a {
    color: white;
    text-decoration: none;
    text-align: center;
}
.options a:hover {
    text-decoration: underline;
}

/*** INDEX ***/
/* MENÚ LATERAL */
.btn-menu {
    position: fixed;
    top: 15px;
    right: 15px;
    color: white;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 1000;
    font-size: 35px;
    margin-top: 10px;
}
.menu-lateral {
    position: fixed;
    top: 0;
    right: -260px; 
    width: 260px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.25);
    transition: right 0.3s ease;
    z-index: 999;
    padding-top: 10px;
}
.menu-lateral.abierto {
    right: 0;
}
.menu-header {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #ddd;
}
.menu-header h3 {
    margin: 0;
    color: #333;
}
.menu-header .cerrar {
    font-size: 22px;
    cursor: pointer;
}
.menu-items {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}
.menu-items li {
    padding: 15px;
    font-size: 17px;
    color: #444;
    cursor: pointer;
    display: flex;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid #efefef;
}
.menu-items li:hover {
    background: #f7f7f7;
}
.cerrar-sesion {
    color: red;
    font-weight: bold;
}
.header {
    height: 110px;
    background: #c3662f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    padding: 0 20px;
}
.logo {
    display: flex;
    align-items: center;
}
.logo img {
    height: 50px;
    margin-right: 8px;
}
.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.menu-icon div {
    width: 28px;
    height: 4px;
    background: white;
    border-radius: 2px;
}
.top-line {
    height: 5px;
    background: #FFCB00;
}
.perfil {
    background: #e8e8e8;
    padding: 10px 15px;
    font-size: 14px;
}
.buscador-container {
    margin: 15px;
    display: flex;
    background: white;
    border: 1px solid #ccc;
    border-radius: 20px;
    overflow: hidden;
}
.buscador-container input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
}
.btn-search {
    width: 40px;
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
}
.mesas-grid {
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.mesa {
    background: #dcdcdc;
    height: 80px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    position: relative;
    cursor: pointer;
    transition: transform 0.15s;
}
.mesa:hover {
    transform: scale(1.03);
}
.mesa.ocupada {
    background: #c9c1b8;
}
.icon-tenedor {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 18px;
    color: #cc7a42;
}


/* MESA */
.header-mesa {
    background: #c3662f;
    padding: 15px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-back {
    font-size: 30px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    text-decoration: none;
}
.estado {
    background: rgba(255,255,255,0.25);
    padding: 4px 10px;
    border-radius: 10px;
}
.categorias {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: white;
}
.cat {
    padding: 8px 14px;
    border: none;
    background: #ddd;
    border-radius: 20px;
}
.cat.active {
    background: #F8A941;
    color: white;
}
.productos {
    padding: 15px;
    display: grid;
    gap: 12px;
}
.producto {
    background: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    border-radius: 8px;
    border: 1px solid #ddd;
    cursor: pointer;
}
.pedido-actual {
    background: white;
    padding: 20px;
    position: fixed;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
}
#listaPedido {
    max-height: 160px;
    overflow-y: auto;
    margin: 0;
    padding-left: 0;
}
.item-pedido {
    list-style: none;
    background: #f1f1f1;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cantidad-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}
.cantidad-controls button {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background: #ccc;
}
.icon-eliminar {
    /* color: red; */
    font-weight: bold;
    cursor: pointer;
}
.btn-enviar,
.btn-cerrar,
.btn-separar {
    width: 100%;
    padding: 12px;
    border: none;
    margin-top: 10px;
    border-radius: 8px;
    cursor: pointer;
}
.btn-enviar { background: #F8A941; color: white; }
.btn-cerrar { background: #c3662f; color: white; }
.btn-separar { background: #777; color: white; }
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: white;
    padding: 20px;
    width: 90%;
    border-radius: 10px;
}
.modal .cancel {
    background: #bbb;
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    border: none;
}
/* MIS PEDIDOS */
.header4 {
    background: #c3662f;
    padding: 15px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header4-texto {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-right: 90px;
}
.header4-texto h2{
    margin-left: 10px;
}
.pedidos-container {
    padding: 20px;
    /* margin-top: 60px; */
}
.pedidos-titulo {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
}
.pedidos-lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pedido-item {
    background: #ffffff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-left: 6px solid transparent;
    transition: 0.2s ease;
}
.pedido-item:hover {
    background: #f7f7f7;
}
.pedido-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.pedido-numero {
    font-size: 18px;
    font-weight: bold;
    color: #222;
}
.pedido-fecha {
    font-size: 14px;
    color: #777;
}
.estado-abierto {
    color: #28a745;
    font-weight: bold;
}
.estado-cerrado {
    color: #c5672b;
    font-weight: bold;
}
.pedido-abierto {
    border-left-color: #28a745;
}

.pedido-cerrado {
    border-left-color: #c5672b;
}
.ver-pedido-btn {
    background: #c5672b;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s ease;
}
.ver-pedido-btn:hover {
    background: #a95722;
}
/*PEDIDO DETALLE */
.wrap {
    max-width:920px;
    margin:18px auto;
    padding:0 14px 90px;
}
.card {
    background:var(--card);
    border-radius:var(--radius);
    padding:16px;
    box-shadow:var(--shadow);
    margin-bottom:14px;
}
.pedido-header {
    display:flex;
    gap:12px;
    align-items:center;
    justify-content:space-between;
}
.pedido-meta {
    display:flex;
    gap:18px;
    flex-wrap:wrap;
}
.meta-item { 
    color:var(--muted); 
    font-size:14px; 
}
.pedido-num { 
    font-size:20px; 
    font-weight:700; 
    color:#222; 
}
.productos {
    margin-top:12px;
    display:grid;
    gap:10px;
}
.producto {
    display:grid;
    grid-template-columns: 1fr auto;
    gap:12px;
    align-items:center;
    padding:12px;
    border-radius:10px;
    background: #fafafa;
    border:1px solid #f0f0f0;
}
.producto .info {
    display:flex;
    flex-direction:column;
    gap:6px;
}
.nombre { 
    font-weight:600; 
    color:#222; 
}
.extras { 
    color:var(--muted); 
    font-size:13px; 
}

.precio {
    text-align:right;
    font-weight:700;
    color:#222;
    min-width:90px;
}
.nota-pedido {
    margin-top:12px;
    font-size:14px;
    color:var(--muted);
    padding:12px;
    border-radius:10px;
    background:#fff8f5;
    border:1px solid rgba(197,103,43,0.12);
}
.resumen {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-top:12px;
}
.total-label { 
    color:var(--muted); 
    font-size:15px; 
}
.total-amount { 
    font-size:22px; 
    font-weight:800; 
    color:var(--brand); 
}

  /* Botones principales */
.acciones {
    display:flex;
    gap:10px;
    margin-top:14px;
    flex-wrap:wrap;
}
.btn {
    border:0;padding:10px 14px;border-radius:10px;font-weight:600;cursor:pointer;
}
.btn-primary { 
    background:var(--brand); color:white;   
}
.btn-outline { 
    background:white; 
    border:1px solid #ddd; 
    color:#333; 
}
.estado {
    padding:6px 10px;border-radius:999px;font-weight:700;font-size:13px;
}
.estado.abierto { 
    background: rgba(40,167,69,0.1); color:#28a745; 
    border:1px solid rgba(40,167,69,0.12) 
}
.estado.cerrado { 
    background: rgba(197,103,43,0.08); color:var(--brand); 
    border:1px solid rgba(197,103,43,0.12) 
}
.fixed-bottom {
    position:fixed;
    left:0;right:0;bottom:0;
    display:flex;justify-content:center;padding:12px 16px;
    pointer-events:none;
}
.fixed-box {
    width:100%;max-width:920px;background:transparent;pointer-events:auto;
    display:flex;justify-content:space-between;gap:12px;
}

  /* Responsive */
  @media (max-width:640px){
    .producto { grid-template-columns: 1fr 90px; }
    .pedido-meta { gap:10px; }
    .header .brand { font-size:16px }
  }




/* SOPORTE */
.support-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}
.support-box h3 {
    margin-bottom: 10px;
}



/* ******RESPONSIVE***** */

@media (max-width: 600px) {
    .producto-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .botones {
        flex-direction: column;
    }

    button {
        width: 100%;
    }
}