body { font-size: .925rem; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; margin-top: 1.5rem; }
@media (max-width: 991px) {
    main .table { display: block; overflow-x: auto; }
    main .table select, main .table input:not([type=checkbox]) { min-width: 7rem; }
}
.medio { display: flex; gap: .25rem; align-items: end; }
td.num, th.num { text-align: right; white-space: nowrap; }
.table { vertical-align: middle; }
form.fila { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; margin-bottom: .75rem; }
form.fila label { display: flex; flex-direction: column; font-size: .8rem; color: #555; }
form.fila label.check { flex-direction: row; align-items: center; gap: .35rem; }

/* Portal del cliente: pensado primero para el teléfono. */
.productos { display: grid; gap: .5rem; }
.producto { border: 1px solid #dee2e6; border-radius: .5rem; padding: .6rem .75rem; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; align-items: center; }
.producto.elegido { border-color: #198754; background: #f3faf6; }
.producto.cambiado { border-color: #ffc107; background: #fffbf0; }
.producto .datos { display: flex; flex-direction: column; min-width: 14rem; flex: 1; }
.producto .controles { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.producto .controles input { width: 5rem; text-align: center; }
.producto .controles .btn { min-width: 2.6rem; min-height: 2.4rem; }
.producto .subtotal { min-width: 6.5rem; text-align: right; font-weight: 600; }
.barra-pedido { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: .5rem; background: #198754; color: #fff; padding: .75rem; border-radius: .5rem .5rem 0 0; margin-top: .75rem; font-weight: 600; }
.barra-pedido[hidden] { display: none; }
input.cantidad { min-width: 5rem; }
.boton-whatsapp { position: fixed; right: 1rem; bottom: 5rem; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.35); z-index: 1030; }
.boton-whatsapp:hover, .boton-whatsapp:focus { color: #fff; background: #1ebe5b; }
/* Que el botón flotante no tape el último control. */
#tienda { padding-bottom: 4.5rem; }
