/* ==========================================================
   NOXA — Estilos del panel del personal
   ========================================================== */

/* ---------- Ingreso ---------- */
.pagina-login {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.caja-login {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    background: rgba(21, 21, 29, .95);
    border: 1px solid var(--borde);
    border-radius: 18px;
}
.caja-login h1 { margin: 1rem 0 .3rem; font-size: 1.4rem; }
.logo-grande { display: inline-block; margin-top: 1.2rem; font-size: 2.2rem; }

.formulario label { display: block; margin: 1rem 0; font-weight: 600; font-size: .95rem; }
.formulario input,
.form-confirmar input,
.form-confirmar select {
    width: 100%;
    margin-top: .35rem;
    padding: .7rem .9rem;
    background: #1d1d28;
    border: 1px solid var(--borde);
    border-radius: 10px;
    color: var(--texto);
    font-size: 1rem;
}
.formulario input:focus,
.form-confirmar input:focus,
.form-confirmar select:focus { outline: 2px solid var(--color); border-color: transparent; }

/* ---------- Panel ---------- */
/* Abajo deja 6rem libres para que la barra flotante del total no tape nada */
.contenido-panel { max-width: 1000px; margin: 0 auto; padding: 1.5rem 1.2rem 6rem; }

.saludo { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.saludo h1 { margin: 0; }
.insignia {
    padding: .2rem .8rem;
    border: 1px solid var(--color);
    border-radius: 999px;
    background: color-mix(in srgb, var(--color) 18%, transparent);
    color: var(--color);
    font-weight: 700;
    font-size: .85rem;
}

.alerta-pendientes {
    display: block;
    margin-bottom: 1.2rem;
    padding: .9rem 1.1rem;
    border-radius: 12px;
    background: #d97706;
    color: #fff;
    text-decoration: none;
    font-size: 1.05rem;
    animation: parpadeo-suave 2s ease-in-out infinite;
}
@keyframes parpadeo-suave { 50% { filter: brightness(1.25); } }

.opciones { display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .opciones { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .opciones { grid-template-columns: repeat(3, 1fr); } }
.opcion {
    display: block;
    padding: 1.2rem;
    background: rgba(21, 21, 29, .9);
    border: 1px solid var(--borde);
    border-radius: 16px;
    color: var(--texto);
    text-decoration: none;
    transition: border-color .2s, transform .2s;
}
a.opcion:hover { border-color: var(--color); transform: translateY(-3px); }
.opcion h2 { margin: 0 0 .4rem; font-size: 1.1rem; }
.opcion p { margin: 0; color: var(--suave); font-size: .92rem; }
.opcion.pronto { opacity: .55; }
.opcion.pronto span { display: inline-block; margin-top: .6rem; color: var(--color); font-size: .8rem; font-weight: 700; }

/* ---------- Reservas ---------- */
a.chip-fecha { text-decoration: none; }
.contador {
    display: inline-block;
    min-width: 1.6rem;
    padding: 0 .45rem;
    border-radius: 999px;
    background: var(--color);
    color: #111;
    font-size: .9rem;
    text-align: center;
    vertical-align: middle;
}

.tarjeta-reserva {
    margin: .8rem 0;
    padding: 1rem;
    border: 1px solid var(--borde);
    border-left: 5px solid #6b7280;
    border-radius: 12px;
    background: #15151d;
}
.tarjeta-reserva.pendiente { border-left-color: #6b7280; }
.tarjeta-reserva.prepagado { border-left-color: #f59e0b; }
.tarjeta-reserva.reservado { border-left-color: #ef4444; }
.tarjeta-reserva header { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; font-size: 1.05rem; }
.tarjeta-reserva code {
    padding: .1rem .5rem;
    border-radius: 6px;
    background: #1d1d28;
    color: var(--color);
    font-weight: 700;
    letter-spacing: .08em;
}
.tarjeta-reserva p { margin: .5rem 0; }
.falta { color: #f59e0b; }
.ok { color: #10b981; }

.sello-mini { padding: .1rem .5rem; border-radius: 6px; font-size: .75rem; font-weight: 800; color: #fff; }
.sello-mini.prepagado { background: #d97706; }
.sello-mini.reservado { background: #dc2626; }

.form-confirmar { display: grid; gap: .5rem; grid-template-columns: 1fr; margin-top: .6rem; }
@media (min-width: 700px) { .form-confirmar { grid-template-columns: 2fr 1fr 1fr; } }
.form-confirmar input,
.form-confirmar select { margin-top: 0; }
.check-cumple { display: flex; align-items: center; gap: .4rem; color: var(--suave); }
.check-cumple input { width: auto; }
.form-confirmar .acciones { grid-column: 1 / -1; }

.acciones { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.boton-verde { background: #10b981; color: #fff; }
.boton-rojo  { background: transparent; color: #fca5a5; border: 1px solid #ef4444; }
.boton-rojo:hover { background: rgba(239, 68, 68, .15); }

.aviso-info {
    padding: .7rem .9rem;
    border: 1px solid var(--color);
    border-radius: 10px;
    background: color-mix(in srgb, var(--color) 12%, transparent);
}

/* ==========================================================
   Vender (meseros y barra) — pensado para el celular
   ========================================================== */
.aviso-ok {
    padding: .8rem 1rem;
    border-radius: 10px;
    background: rgba(16, 185, 129, .15);
    border: 1px solid #10b981;
    color: #a7f3d0;
    font-weight: 700;
}

/* ---------- Lounges ---------- */
.grilla-lounges { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; }
.btn-lounge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .1rem;
    padding: .55rem .3rem;
    background: #1d1d28;
    border: 1px solid var(--borde);
    border-radius: 12px;
    color: var(--texto);
    cursor: pointer;
}
.btn-lounge small { color: var(--suave); font-size: .68rem; }
.btn-lounge b { font-size: 1.25rem; }
.btn-lounge span { max-width: 100%; overflow: hidden; color: var(--color); font-size: .68rem; white-space: nowrap; text-overflow: ellipsis; }
.btn-lounge.con-reserva { border-color: color-mix(in srgb, var(--color) 60%, transparent); }
.btn-lounge.elegido { background: var(--color); border-color: var(--color); color: #111; }
.btn-lounge.elegido small,
.btn-lounge.elegido span { color: #111; }
.leyenda-lounges { margin: .6rem 0 0; font-size: .85rem; }
.punto-reserva {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: .3rem;
    border: 2px solid var(--color);
    border-radius: 3px;
}

/* ---------- Carta de tragos ---------- */
.tipo-carta { margin: 1rem 0 .5rem; color: var(--suave); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.grilla-carta { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.btn-producto {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-height: 74px;
    padding: .7rem;
    background: #1d1d28;
    border: 1px solid var(--borde);
    border-radius: 12px;
    color: var(--texto);
    text-align: left;
    cursor: pointer;
    transition: transform .1s;
}
.btn-producto:active { transform: scale(.96); }
.btn-producto .nombre { font-weight: 700; font-size: .92rem; line-height: 1.2; }
.btn-producto .precio { color: var(--color); font-size: .85rem; }
.btn-producto.agregado { border-color: var(--color); background: color-mix(in srgb, var(--color) 12%, #1d1d28); }
.btn-producto .cantidad {
    position: absolute;
    top: -8px;
    right: -6px;
    min-width: 26px;
    padding: .1rem .4rem;
    border-radius: 999px;
    background: var(--color);
    color: #111;
    font-weight: 900;
    text-align: center;
}
.btn-producto .cantidad[hidden] { display: none; }

/* ---------- Barra flotante con el total ---------- */
.barra-total {
    position: fixed;
    left: 50%;
    bottom: 12px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: calc(100% - 24px);
    max-width: 560px;
    padding: .7rem .8rem .7rem 1.1rem;
    transform: translateX(-50%);
    border-radius: 999px;
    background: var(--color);
    color: #111;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
}
.barra-total[hidden] { display: none; }
.barra-total span { flex: 1; }
.barra-total button {
    padding: .5rem 1rem;
    border: 0;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

/* ---------- Resumen y cobro ---------- */
.resumen-venta,
.grilla-carta { scroll-margin-top: 90px; }
.destino { margin: 0 0 .5rem; color: var(--color); font-weight: 700; }
.lista-pedido { margin: 0; padding: 0; list-style: none; }
.lista-pedido li {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: .6rem;
    align-items: center;
    padding: .35rem 0;
    border-bottom: 1px solid var(--borde);
}
.btn-menos {
    width: 32px;
    height: 32px;
    border: 1px solid var(--borde);
    border-radius: 8px;
    background: transparent;
    color: var(--texto);
    font-size: 1.2rem;
    cursor: pointer;
}
.total-venta { margin: .8rem 0; font-size: 1.4rem; text-align: right; }
.total-venta b { color: var(--color); }

.opciones-cobro { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.opciones-cobro label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .8rem .4rem;
    border: 1px solid var(--borde);
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}
.opciones-cobro label:has(input:checked) { border-color: var(--color); background: color-mix(in srgb, var(--color) 15%, transparent); }
.opciones-cobro input { accent-color: var(--color); }
.mixto { margin-top: .8rem; }
.mixto label { display: block; font-weight: 600; }
.mixto input {
    width: 100%;
    margin-top: .35rem;
    padding: .7rem .9rem;
    background: #1d1d28;
    border: 1px solid var(--borde);
    border-radius: 10px;
    color: var(--texto);
    font-size: 1.1rem;
}
.boton-grande-venta { padding: .9rem; font-size: 1.1rem; }

/* ---------- Mis ventas de esta noche ---------- */
.resumen-numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1rem; }
.resumen-numeros div { padding: .8rem; border-radius: 12px; background: #1d1d28; text-align: center; }
.resumen-numeros span { display: block; color: var(--color); font-size: 1.2rem; font-weight: 900; }
.resumen-numeros small { color: var(--suave); }

.fila-venta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem 0;
    border-bottom: 1px solid var(--borde);
}
.fila-venta p { margin: .2rem 0 0; font-size: .88rem; }
.fila-venta-total { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; text-align: right; }
.fila-venta-total small { color: var(--suave); }
.fila-venta.anulada { opacity: .45; }
.fila-venta.anulada b { text-decoration: line-through; }
.etiqueta-anulada { color: #fca5a5; font-size: .75rem; font-weight: 800; }
.boton-chico { padding: .3rem .8rem; font-size: .8rem; }