/* FRESH AGUI V5.9 — mobile-first + pedidos en cola / INDUVEXA */

/* ===== Cliente: hero práctico en web ===== */
.v59Hero{min-height:300px!important;height:300px!important;border-radius:26px!important;overflow:hidden!important}
.v59HeroCopy{padding:28px 46px!important;display:flex!important;flex-direction:column!important;justify-content:center!important}
.v59HeroCopy h1{font-size:clamp(38px,4vw,55px)!important;line-height:.96!important;margin:12px 0!important;max-width:650px!important}
.v59HeroCopy h1 br{display:none!important}.v59HeroCopy p{font-size:14px!important;margin:0 0 16px!important}.v59HeroCopy .heroTrust{margin-top:12px!important}
.v59HeroVisual{min-height:300px!important;height:300px!important}.v59HeroVisual:before{inset:16px 18px 16px 0!important}.v56HeroImage{inset:16px 18px 16px 0!important}
.v59Utility{margin-top:10px!important;padding:12px 16px!important}.v59CatalogHeader{margin-bottom:10px!important}

/* ===== Checkout por pasos: PC ve todo, móvil usa wizard ===== */
.v59CheckoutMobileHead,.v59StepDots,.v59StepActions{display:none}
.checkoutStep{display:block}.checkoutStep+.checkoutStep{border-top:1px solid #dcebf5;margin-top:16px;padding-top:14px}
.v59StepTitle p{font-size:12px;color:#6d8497;margin:4px 0 0}
.payConditionOptions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}
.payConditionOptions label{border:1px solid #d4e6f2;border-radius:15px;padding:13px;display:flex;align-items:flex-start;gap:10px;background:#fff;cursor:pointer;min-height:72px}
.payConditionOptions input{width:18px;height:18px;margin-top:2px;accent-color:#087ee5}.payConditionOptions span{display:flex;flex-direction:column}.payConditionOptions b{font-size:14px;color:#163f61}.payConditionOptions small{font-size:11px;line-height:1.35;color:#70889a;margin-top:4px}
.payConditionOptions label:has(input:checked){border-color:#087ee5;box-shadow:0 0 0 2px rgba(8,126,229,.08);background:#f7fcff}
.mobileCartBar,.v59CheckoutBackdrop{display:none}

/* ===== Admin: sub-abas de pedidos ===== */
.ordersModeTabs{display:flex;gap:10px;margin:0 0 14px}
.ordersModeTabs button{border:1px solid #cfe4f3;background:#fff;color:#335a79;border-radius:15px;padding:13px 18px;display:flex;align-items:center;gap:9px;font-weight:900;box-shadow:0 6px 18px rgba(30,80,120,.05)}
.ordersModeTabs button span{font-size:13px}.ordersModeTabs button i{font-style:normal;min-width:24px;height:24px;border-radius:999px;background:#e8f3fb;display:grid;place-items:center;font-size:11px}
.ordersModeTabs button.active{background:linear-gradient(135deg,#0879e1,#13a6eb);color:#fff;border-color:transparent;box-shadow:0 12px 24px rgba(8,121,225,.18)}
.ordersModeTabs button.active i{background:rgba(255,255,255,.22);color:#fff}
.ordersModePanel{display:none}.ordersModePanel.active{display:block}
.queueBoard{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.queueLane{border:1px solid #dceaf3;border-radius:17px;background:#f8fcff;overflow:hidden;min-width:0}
.queueLane>header{display:flex;align-items:center;justify-content:space-between;padding:13px 14px;border-bottom:1px solid #dceaf3;background:#fff}
.queueLane>header>div{display:flex;align-items:center;gap:8px}.queueLane>header b{font-size:14px;color:#173e5e}.queueLane>header strong{width:29px;height:29px;border-radius:10px;background:#e9f4fb;display:grid;place-items:center;color:#086fc8}
.queueLaneBody{padding:10px;display:grid;gap:10px;max-height:610px;overflow:auto}.queueLane .v55OrderCard{margin:0!important}
.historyPanel{margin-top:14px}

/* Manual: búsqueda + seleccionados */
.v59ManualPanel{max-width:1100px;margin:0 auto}.manualProductsHead{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:12px!important}.manualProductsHead>div{display:flex;flex-direction:column;gap:3px}.manualProductsHead input{width:min(330px,46%);min-height:44px;border:1px solid #d5e6f1;border-radius:12px;padding:0 13px;font-size:14px;background:#fff}
.manualSelected:empty{display:none}.manualSelected{border:1px solid #cde5f5;background:#f2faff;border-radius:14px;padding:11px 12px;margin:10px 0}.manualSelectedHead{display:flex;justify-content:space-between;gap:10px;align-items:center}.manualSelectedHead b{font-size:13px;color:#0d4e82}.manualSelectedHead span{font-size:10px;color:#6e8799}.manualSelectedChips{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}.manualSelectedChips button{border:1px solid #bfdef1;background:#fff;border-radius:999px;padding:7px 10px;font-size:11px;color:#285b7c}.manualSelectedChips button span{margin-left:5px;color:#c14b57;font-weight:900}
.manualProduct.selected{border-color:#1590e6!important;background:#f4fbff!important;box-shadow:0 0 0 2px rgba(21,144,230,.06)}
.v59ManualDelivery{grid-template-columns:1.2fr 1fr 1fr 1fr!important}

/* Productos: agregar nuevo */
.productHeadActions{display:flex;align-items:center;gap:10px}.v59AddProductBtn{border:0;border-radius:12px;background:#087ee5;color:#fff;font-size:11px;font-weight:950;padding:11px 14px;min-height:40px}.newProductForm{border:1px solid #bcdff4;background:linear-gradient(135deg,#f8fdff,#ecf8ff);border-radius:17px;padding:15px;margin:0 0 15px}.newProductForm.hidden{display:none}.newProductFormHead{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.newProductFormHead h3{font-size:20px;margin:3px 0;color:#143f61}.newProductFormHead button{border:0;background:#fff;width:38px;height:38px;border-radius:11px;font-size:22px;color:#52738c}.newProductGrid{display:grid;grid-template-columns:repeat(2,1fr);gap:11px}.newProductGrid .fieldFull{grid-column:1/-1}.newProductGrid input,.newProductGrid select{font-size:14px!important;min-height:46px!important}

/* ===== MÓVIL CLIENTE ===== */
@media(max-width:760px){
  body.customerBody{padding-bottom:86px!important}.customerShell{padding:0 10px 18px!important}
  .v59Top{min-height:76px!important;padding:10px 8px!important;align-items:center!important}.brandDrop{width:60px!important;height:60px!important}.brandText strong{font-size:9px!important}.brandText b{font-size:25px!important}.brandText small{display:none!important}.v55Quick .openChip,.v55Quick .v55Bcv{display:none!important}.waContactTop{min-width:0!important;padding:9px 11px!important}.waContactTop small{display:none!important}.waContactTop b{font-size:15px!important;white-space:nowrap!important}

  /* Hero compacto: no obliga a deslizar antes de comprar */
  .v59Hero{height:auto!important;min-height:0!important;display:block!important;border-radius:22px!important;margin-top:6px!important}.v59HeroCopy{padding:20px 18px!important;min-height:205px!important}.v59HeroCopy .heroKicker{font-size:9px!important}.v59HeroCopy h1{font-size:32px!important;line-height:1.02!important;margin:9px 0!important;max-width:330px!important}.v59HeroCopy h1 span{display:inline!important}.v59HeroCopy p{font-size:13px!important;line-height:1.4!important;max-width:330px!important;margin-bottom:13px!important}.v59HeroButtons{gap:8px!important}.v59HeroButtons a{min-height:44px!important;padding:0 14px!important;font-size:10px!important}.v59HeroButtons .secondaryHeroBtn{display:none!important}.v59HeroCopy .heroTrust{display:none!important}.v59HeroVisual{display:none!important}
  .v59Utility{padding:10px 12px!important;border-radius:15px!important;margin:8px 0!important}.utilityMain{gap:9px!important}.utilityIcon{width:38px!important;height:38px!important}.utilityMain small{font-size:8px!important}.utilityMain b{font-size:14px!important}.utilityMain span{font-size:9px!important}.utilityActions{display:none!important}

  .v59CatalogHeader{padding:15px 7px 7px!important}.v59CatalogHeader h2{font-size:27px!important;margin:4px 0!important}.v59CatalogHeader p{font-size:12px!important;line-height:1.4!important}.v59CategoryTabs{position:sticky!important;top:0!important;z-index:20!important;background:rgba(246,252,255,.96)!important;padding:8px 0!important;backdrop-filter:blur(8px)!important;display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:6px!important}.v59CategoryTabs .categoryTab{min-width:0!important;padding:10px 5px!important;font-size:9px!important;border-radius:13px!important}.v59CategoryTabs .categoryTab span{font-size:13px!important;margin-right:3px!important}

  /* Dos productos por fila, controles completos dentro de la tarjeta */
  .v59ProductGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.v59Product{min-width:0!important;border-radius:16px!important;overflow:hidden!important}.v59Product .productVisual{height:135px!important}.v59Product .productVisual img{max-width:92%!important;max-height:126px!important}.v59Product .productTag{font-size:8px!important;top:8px!important;left:8px!important;padding:5px 7px!important}.v59Product .productInfo{padding:11px 10px 10px!important}.v59Product .productCat{font-size:8px!important}.v59Product .productInfo h3{font-size:14px!important;line-height:1.18!important;min-height:34px!important;margin:6px 0 9px!important}.v59Product .v55Prices strong{font-size:19px!important;line-height:1.05!important}.v59Product .v55Prices small{font-size:10px!important;margin-top:4px!important}.v59Product .qtyControl{margin-top:10px!important;display:grid!important;grid-template-columns:40px 1fr 40px!important;gap:5px!important;width:100%!important}.v59Product .qtyControl button{width:40px!important;min-width:40px!important;height:40px!important;border-radius:11px!important}.v59Product .qtyControl b{display:grid!important;place-items:center!important;min-width:0!important;font-size:14px!important}

  /* El checkout deja de estar debajo de todo: se abre como pantalla de finalización */
  .v59Store{display:block!important}.v59Checkout{display:none!important;position:fixed!important;z-index:1002!important;inset:0!important;top:0!important;width:100%!important;max-width:none!important;height:100dvh!important;margin:0!important;border-radius:0!important;padding:0 14px calc(22px + env(safe-area-inset-bottom))!important;overflow-y:auto!important;background:#f6fbff!important}.v59Checkout.mobileOpen{display:block!important}.v59CheckoutBackdrop.show{display:block!important;position:fixed!important;inset:0!important;z-index:1001!important;background:rgba(0,24,48,.42)!important}.checkoutOpen{overflow:hidden!important}
  .v59CheckoutMobileHead{display:flex!important;position:sticky!important;top:0!important;z-index:6!important;margin:0 -14px 10px!important;padding:12px 14px!important;background:#073f7e!important;color:#fff!important;align-items:center!important;justify-content:space-between!important}.v59CheckoutMobileHead div{display:flex;flex-direction:column}.v59CheckoutMobileHead span{font-size:8px;font-weight:900;letter-spacing:.15em;color:#82d4ff}.v59CheckoutMobileHead b{font-size:18px;margin-top:2px}.v59CheckoutMobileHead button{width:42px;height:42px;border:0;border-radius:12px;background:rgba(255,255,255,.13);color:#fff;font-size:28px}
  .v59StepDots{display:flex!important;gap:7px;justify-content:center;margin:10px 0 13px}.v59StepDots span{width:32px;height:6px;border-radius:99px;background:#d8e8f3;font-size:0}.v59StepDots span.active{background:#0a83e5}.checkoutStep{display:none!important;border:0!important;margin:0!important;padding:0!important}.checkoutStep.active{display:block!important}.checkoutTitle h2{font-size:24px!important}.checkoutTitle p{font-size:12px!important}.cartArea{max-height:none!important}.cartRow{padding:10px 0!important}.cartMini img{width:52px!important;height:52px!important}.cartMini b{font-size:13px!important}.cartMini small{font-size:10px!important}.cartRow>strong{font-size:13px!important}
  .v59StepActions{display:flex!important;gap:9px;margin:16px 0 5px}.v59StepActions button{min-height:49px;border-radius:13px;font-weight:900;font-size:11px}.v59Next{flex:1;border:0;background:linear-gradient(135deg,#0878df,#10a8ed);color:#fff}.v59Back{border:1px solid #cddfea;background:#fff;color:#375e7a;padding:0 14px}.v59StepActions.final{justify-content:flex-start}.v59StepActions.final .v59Back{width:100%}
  .v59Checkout .formGrid{grid-template-columns:1fr!important}.v59Checkout .field input,.v59Checkout .field textarea{font-size:16px!important;min-height:52px!important}.v59Checkout .field>span{font-size:13px!important}.deliveryFinal{margin:0!important;padding:14px!important}.deliveryChoiceGrid,.levelGrid,.payConditionOptions,.v56PayOptions{grid-template-columns:1fr!important}.payConditionOptions label{min-height:76px!important}.payConditionOptions b{font-size:15px!important}.payConditionOptions small{font-size:12px!important}.v56PayOptions label{min-height:76px!important}.finalTotal{margin-top:12px!important}.v55Send{min-height:56px!important;font-size:14px!important}

  /* Barra fija: carrito siempre a mano */
  .mobileCartBar.show{display:flex!important;position:fixed!important;z-index:800!important;left:8px!important;right:8px!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;min-height:66px!important;border-radius:18px!important;padding:9px 10px 9px 14px!important;background:#062f5d!important;color:#fff!important;box-shadow:0 14px 36px rgba(0,33,67,.33)!important;align-items:center!important;justify-content:space-between!important;gap:10px!important}.mobileCartBar>div{display:flex;flex-direction:column;min-width:0}.mobileCartBar b{font-size:11px;color:#a9ddff}.mobileCartBar strong{font-size:18px;margin-top:2px}.mobileCartBar button{height:48px;border:0;border-radius:13px;padding:0 17px;background:#12a5ea;color:#fff;font-size:11px;font-weight:950;white-space:nowrap}
  .quickOrderQr{margin-bottom:12px!important}.v55BusinessBand{margin-bottom:14px!important}
}

/* ===== ADMIN MÓVIL ===== */
@media(max-width:760px){
  .ordersModeTabs{position:sticky;top:0;z-index:25;background:#f3f9fd;padding:8px 0;margin-bottom:8px;display:grid;grid-template-columns:1fr 1fr}.ordersModeTabs button{padding:10px 8px;min-height:56px;justify-content:center;text-align:center}.ordersModeTabs button b{font-size:10px;line-height:1.15}.ordersModeTabs button span{display:none}.ordersModeTabs button i{min-width:21px;height:21px}
  .queuePanel,.historyPanel,.v59ManualPanel{padding:13px!important;border-radius:18px!important}.queuePanel .panelHeader h2{font-size:23px!important}.queueBoard{grid-template-columns:1fr!important;gap:10px}.queueLaneBody{max-height:none!important;overflow:visible!important}.queueLane>header{padding:11px 12px}.queueLane .v55OrderCard{padding:12px!important}.queueLane .v55OrderCard p{font-size:12px!important;line-height:1.4!important}.queueLane .orderMeta{display:grid!important;grid-template-columns:1fr!important;gap:5px!important}.queueLane .orderMeta span{font-size:11px!important}.queueLane .v55OrderCard footer strong{font-size:18px!important}.miniStatus{min-height:42px!important;font-size:11px!important}
  .historyPanel{margin-top:10px}.historyPanel .responsiveTable{overflow:auto!important}.historyPanel table{min-width:880px!important}
  .manualProductsHead{align-items:stretch!important;flex-direction:column!important}.manualProductsHead input{width:100%!important;font-size:16px!important;min-height:48px!important}.manualSelected{margin:8px 0!important}.manualSelectedHead span{display:none}.manualSelectedChips{flex-wrap:nowrap!important;overflow-x:auto!important;padding-bottom:3px}.manualSelectedChips button{white-space:nowrap!important;flex:0 0 auto!important}
  .manualProductPicker{max-height:none!important;overflow:visible!important}.manualProduct{grid-template-columns:58px minmax(0,1fr) 44px!important;min-height:82px!important}.manualProduct img{width:58px!important;height:58px!important}.manualQty{display:grid!important;grid-template-rows:32px 24px 32px!important}.manualQty button{width:40px!important;height:32px!important}.manualQty strong{height:24px!important;display:grid!important;place-items:center!important}.v59ManualDelivery{grid-template-columns:1fr!important}.segmented{grid-template-columns:1fr 1fr!important}.segmented button{font-size:11px!important}
  .productPanelHead{align-items:flex-start!important}.productHeadActions{width:100%;justify-content:space-between;margin-top:10px}.v59AddProductBtn{font-size:10px!important}.newProductForm{padding:12px!important}.newProductGrid{grid-template-columns:1fr!important}.newProductGrid .fieldFull{grid-column:auto!important}

  /* Producto admin deja de ser tarjeta gigante */
  .productAdminGrid{grid-template-columns:1fr!important;gap:10px!important}.productAdminCard{display:grid!important;grid-template-columns:112px minmax(0,1fr)!important;min-height:0!important;overflow:hidden!important}.productAdminImg{height:100%!important;min-height:205px!important}.productAdminImg img{width:100%!important;height:100%!important;object-fit:contain!important;padding:8px!important}.productAdminCard>div:last-child{padding:12px!important}.productAdminCard h3{font-size:16px!important;min-height:0!important;margin:5px 0 9px!important}.productAdminPrice b{font-size:20px!important}.productAdminCard input{font-size:16px!important;min-height:44px!important}.saveProduct,.toggleProduct{min-height:42px!important;font-size:10px!important}
}
