/* Fito Heladería — pedido online */
.pedir-hero { padding: 50px 0 26px; }
.pedir-hero h1 { font-size: clamp(40px, 6vw, 64px); margin: 4px 0 8px; }
.pedir-hero .script { font-size: 26px; }
.pedir-hero p { max-width: 620px; font-size: 17px; }
.aviso { background: var(--amarillo-3); border: 2px solid var(--amarillo); padding: 12px 16px; border-radius: 14px; font-weight: 700; display: inline-block; }
.pedir-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; align-items: start; padding-bottom: 80px; }
.pedir-main { min-width: 0; }
.pedir-cats { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 14px; position: sticky; top: var(--nav-h); background: var(--crema); z-index: 5; min-width: 0; max-width: 100%; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pedir-cats::-webkit-scrollbar { display: none; }
.pedir-cats button { border: 2px solid var(--crema-3); background: #fff; color: var(--choco-2); font: inherit; font-weight: 800; padding: 9px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.pedir-cats button.on { background: var(--choco); color: #fff; border-color: var(--choco); }
.cat-block { margin-bottom: 34px; }
.cat-block h2 { font-size: 26px; margin-bottom: 14px; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.prod { background: #fff; border-radius: 22px; padding: 18px; box-shadow: var(--shadow-s); display: flex; flex-direction: column; gap: 6px; position: relative; transition: transform .15s; }
.prod:hover { transform: translateY(-3px); }
.prod img { border-radius: 14px; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 6px; }
.prod .p-emoji { font-size: 36px; line-height: 1; margin-bottom: 4px; }
.prod b { font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--choco); }
.prod small { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.prod .p-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; gap: 8px; }
.prod .p-precio { font-family: var(--display); font-weight: 600; font-size: 22px; }
.prod .p-precio s { font-size: 14px; color: var(--muted); margin-right: 5px; font-family: var(--font); }
.prod .p-sab { position: absolute; right: 14px; top: 14px; background: var(--menta-3); color: #1F6F49; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 8px; }
.prod.agotado { opacity: .5; }
.prod .btn-add { width: 42px; height: 42px; border-radius: 50%; padding: 0; font-size: 24px; background: var(--rosa); color: #fff; border: 0; font-weight: 800; cursor: pointer; transition: transform .1s; }
.prod .btn-add:active { transform: scale(.92); }
.carrito { position: sticky; top: calc(var(--nav-h) + 16px); background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.carrito h2 { font-size: 24px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.carrito-x { display: none; margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--crema-2); color: var(--choco); font-size: 22px; line-height: 1; cursor: pointer; }
.carrito-n { background: var(--rosa); color: #fff; font-family: var(--font); font-size: 13px; font-weight: 800; min-width: 26px; height: 26px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; }
.carrito-items { max-height: 46vh; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.carrito .vacio { text-align: center; color: var(--muted); padding: 30px 10px; font-weight: 700; line-height: 1.5; }
.c-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 0; border-bottom: 1px dashed var(--crema-3); }
.c-item b { font-size: 15px; }
.c-item .c-sab { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.c-item .c-sab button { border: 0; background: transparent; color: var(--rosa); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; padding: 0; }
.c-item .c-sub { font-weight: 800; text-align: right; }
.c-item .qty { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.c-item .qty button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--crema-3); background: #fff; font: inherit; font-weight: 800; cursor: pointer; color: var(--choco); line-height: 1; }
.c-item .qty b { min-width: 20px; text-align: center; }
.c-item .qty .del { color: var(--rosa); border-color: transparent; margin-left: 4px; }
.carrito-tot { display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-size: 22px; font-weight: 600; padding: 14px 0 12px; }
.carrito .btn { width: 100%; }
.carrito-fab { display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 95; background: var(--choco); color: #fff; border: 0; border-radius: 999px; padding: 16px 22px; font: inherit; font-weight: 800; font-size: 16px; box-shadow: var(--shadow); cursor: pointer; }
.carrito-fab b { background: var(--rosa); padding: 2px 9px; border-radius: 999px; margin: 0 4px; }

/* dialogs */
dialog.dlg { border: 0; border-radius: var(--radius); padding: 0; width: min(640px, 94vw); background: #fff; color: var(--texto); box-shadow: var(--shadow); max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; }
dialog.dlg:not([open]) { display: none; }
dialog.dlg::backdrop { background: rgba(74, 36, 24, .55); backdrop-filter: blur(3px); }
dialog.dlg form { display: contents; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--crema-2); }
.dlg-head h3 { font-size: 22px; }
.dlg-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--crema-2); color: var(--choco); font-size: 22px; cursor: pointer; line-height: 1; }
.dlg-body { padding: 18px 22px; overflow-y: auto; flex: 1; }
.dlg-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--crema-2); background: var(--crema); flex-wrap: wrap; }
.sab-count { font-weight: 800; color: var(--choco); margin-bottom: 12px; font-size: 15px; }
.sab-grupo { margin-bottom: 14px; }
.sab-grupo h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; font-family: var(--font); font-weight: 800; }
.sab-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sab-chip { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--crema-3); background: #fff; border-radius: 999px; padding: 8px 14px 8px 8px; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; color: var(--choco); }
.sab-chip i { width: 22px; height: 22px; border-radius: 50%; display: inline-block; box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .08); }
.sab-chip.on { background: var(--choco); color: #fff; border-color: var(--choco); }
.sab-chip.agotado { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.seg { display: flex; gap: 6px; background: var(--crema); border: 2px solid var(--crema-3); border-radius: 16px; padding: 4px; }
.seg button { flex: 1; border: 0; background: transparent; border-radius: 12px; padding: 11px 10px; font: inherit; font-weight: 800; cursor: pointer; color: var(--choco-2); }
.seg button.on { background: #fff; color: var(--choco); box-shadow: var(--shadow-s); }
.medios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.medios button { border: 2px solid var(--crema-3); background: #fff; border-radius: 14px; padding: 12px 8px; font: inherit; font-weight: 800; font-size: 13.5px; cursor: pointer; color: var(--choco); line-height: 1.2; }
.medios button small { display: block; font-weight: 700; color: var(--muted); font-size: 11px; margin-top: 2px; }
.medios button.on { background: var(--choco); color: #fff; border-color: var(--choco); }
.medios button.on small { color: rgba(255, 255, 255, .7); }
.resumen { margin-top: 18px; background: var(--crema); border-radius: 16px; padding: 14px 16px; font-size: 14.5px; }
.resumen .r { display: flex; justify-content: space-between; padding: 3px 0; }
.resumen .r.tot { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--choco); border-top: 2px dashed var(--crema-3); margin-top: 6px; padding-top: 8px; }
.hide { display: none !important; }
.dlg-ok .ok-icon { font-size: 56px; margin-bottom: 8px; }
.dlg-ok h3 { font-size: 32px; margin-bottom: 8px; }
.dlg-ok .ok-codigo b { font-family: var(--display); font-size: 26px; color: var(--rosa); }
.dlg-ok .btn { width: 100%; margin-top: 8px; }
.dlg-ok .dlg-body { padding: 34px 28px; }

@media (max-width: 900px) {
  .pedir-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 110px; }
  .carrito { display: none; }
  .carrito-fab { display: block; }
  body.carrito-abierto .carrito { display: block; position: fixed; inset: auto 0 0 0; border-radius: 28px 28px 0 0; z-index: 96; max-height: 85vh; overflow: auto; box-shadow: 0 -10px 40px rgba(74, 36, 24, .25); }
  body.carrito-abierto .carrito-fab { display: none; }
  body.carrito-abierto .carrito-x { display: inline-flex; align-items: center; justify-content: center; }
  body.carrito-abierto .wa-float { display: none; }
  .medios { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .pedir-hero { padding: 30px 0 16px; }
  .pedir-hero p { font-size: 15px; }
  .cerrado-pill { white-space: normal; line-height: 1.35; }
  .pedir-cats { margin: 0 -16px; padding: 6px 16px 12px; width: calc(100% + 32px); max-width: none; }
  .pedir-cats button { padding: 8px 14px; font-size: 14px; }
  .cat-block h2 { font-size: 22px; }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .prod { padding: 14px 12px 12px; border-radius: 18px; }
  .prod b { font-size: 17px; }
  .prod small { font-size: 12.5px; }
  .prod .p-emoji { font-size: 30px; }
  .prod .p-sab { font-size: 10px; right: 10px; top: 10px; padding: 2px 6px; }
  .prod .p-precio { font-size: 19px; }
  .prod .btn-add { width: 38px; height: 38px; font-size: 22px; }
  .pedir-body .wa-float { display: none; }
  .carrito-fab { left: 12px; right: 12px; bottom: 12px; padding: 15px 18px; }
  .medios { grid-template-columns: 1fr 1fr; }
  .dlg-head { padding: 14px 16px; }
  .dlg-body { padding: 14px 16px; }
  .dlg-foot { padding: 12px 16px; }
  .dlg-foot .btn { flex: 1; }
  .sab-chip { font-size: 13px; padding: 7px 12px 7px 7px; }
}
