/* Catálogo del tendero: celular primero, letras grandes y botones grandes. */
:root { --azul-noche: #0B2443; --azul: #244A78; --oro: #E7B31B; --oro-claro: #FFF4D9; --fondo: #F4F7FB;
        --texto: #1B2B3F; --gris: #607087; --borde: #D5DEEA; --verde: #2E7D32;
        font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--texto); font-size: 16px; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--fondo); padding-bottom: 140px; }
[hidden] { display: none !important; }
h2 { margin: 4px 0 8px; font-size: 20px; color: var(--azul-noche); }
input, textarea { font: inherit; width: 100%; padding: 12px; border: 1px solid var(--borde); border-radius: 12px; min-height: 48px; background: #fff; }
button { font: inherit; cursor: pointer; }
main { padding: 12px; display: grid; gap: 10px; max-width: 760px; margin: 0 auto; }

.cabeza { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 8px 12px;
          background: var(--azul-noche); color: #fff; border-bottom: 3px solid var(--oro); }
.cabeza-logo { height: 42px; border-radius: 6px; }
.cabeza-texto { display: grid; line-height: 1.2; }
.cabeza-texto span { font-size: 12px; color: var(--oro); }

.promos { background: var(--oro-claro); border: 1px solid #F0D58A; border-radius: 14px; padding: 10px 12px; }
.promos ul { margin: 6px 0; padding-left: 20px; }
.promos small { color: #8A6100; }
.marcas { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.chip { flex: none; border: 1px solid var(--borde); background: #fff; color: var(--azul); border-radius: 99px; padding: 8px 14px;
        min-height: 40px; font-weight: 600; }
.chip.activo { background: var(--azul); color: #fff; border-color: var(--azul); }

.productos { display: grid; gap: 10px; }
.producto { background: #fff; border: 1px solid var(--borde); border-radius: 14px; padding: 12px; display: grid; gap: 10px; }
.producto-texto { display: grid; gap: 2px; }
.producto-cabeza { display: flex; gap: 12px; align-items: center; }
.miniatura { flex: none; width: 72px; height: 72px; border-radius: 12px; border: 1px solid var(--borde); background: #fff;
             padding: 0; overflow: hidden; display: grid; place-items: center; }
.miniatura img { width: 100%; height: 100%; object-fit: contain; }
.miniatura.sin-foto { background: var(--fondo); font-size: 28px; opacity: .5; }
.foto-grande { position: fixed; inset: 0; z-index: 20; background: rgba(11, 36, 67, .92); color: #fff; display: grid;
               place-content: center; justify-items: center; gap: 10px; padding: 20px; text-align: center; }
.foto-grande img { max-width: min(92vw, 512px); max-height: 70vh; border-radius: 14px; background: #fff; }
.foto-grande small { color: var(--oro); }
.producto-texto small { color: var(--gris); }
.presentaciones { display: grid; gap: 8px; }
.presentacion { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--borde);
                border-radius: 12px; padding: 8px 10px; }
.presentacion > div:first-child { display: grid; }
.presentacion.en-carrito { border-color: var(--verde); background: #F1F9F2; }
.agregar { border: none; background: var(--azul); color: #fff; border-radius: 12px; min-height: 44px; padding: 8px 18px; font-weight: 700; }
.contador { display: flex; align-items: center; gap: 8px; }
.redondo { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--azul); color: #fff; font-size: 22px; font-weight: 700; }
.cantidad { min-width: 28px; text-align: center; font-weight: 700; font-size: 18px; }

.linea { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; background: #fff; border: 1px solid var(--borde);
         border-radius: 12px; padding: 10px; }
.linea-total { grid-column: 2; text-align: right; font-weight: 700; }
.linea .contador { grid-row: span 2; }
.total { display: flex; justify-content: space-between; align-items: center; background: var(--azul-noche); color: #fff;
         border-radius: 12px; padding: 12px 14px; border-top: 3px solid var(--oro); }
.total strong { color: var(--oro); font-size: 22px; }
.boton { border: none; border-radius: 12px; background: var(--azul); color: #fff; font-weight: 700; min-height: 48px; padding: 10px 16px; }
.boton.grande { min-height: 58px; font-size: 19px; background: var(--verde); }
.boton:disabled { opacity: .5; }
.nota { color: var(--gris); font-size: 14px; margin: 0; }
.tarjeta { background: #fff; border-radius: 16px; padding: 20px; border-top: 5px solid var(--oro); display: grid; gap: 10px; }
.centro { text-align: center; justify-items: center; }
.gran-check { width: 72px; height: 72px; border-radius: 50%; background: var(--verde); color: #fff; font-size: 40px; display: grid; place-items: center; }
.pedido-item { background: #fff; border: 1px solid var(--borde); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.pedido-item small { color: var(--gris); }

.barra-carrito { position: fixed; left: 12px; right: 12px; bottom: 72px; z-index: 6; display: flex; justify-content: space-between;
                 align-items: center; border: none; border-radius: 14px; background: var(--verde); color: #fff; padding: 14px 16px;
                 min-height: 56px; font-weight: 700; box-shadow: 0 8px 20px rgba(0,0,0,.2); max-width: 736px; margin: 0 auto; }
.abajo { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: #fff; border-top: 1px solid var(--borde);
         padding-bottom: env(safe-area-inset-bottom); z-index: 5; }
.abajo button { flex: 1; border: none; background: none; min-height: 60px; display: grid; justify-items: center; gap: 2px; font-size: 22px; color: var(--gris); }
.abajo button span { font-size: 12px; font-weight: 600; }
.abajo button.activo { color: var(--azul-noche); box-shadow: inset 0 3px 0 var(--oro); }
.aviso { position: fixed; bottom: 140px; left: 12px; right: 12px; background: var(--azul-noche); color: #fff; padding: 12px 14px;
         border-radius: 12px; border-left: 5px solid var(--oro); z-index: 10; }

/* Franjas, registro y fotos */
.franja { border-radius: 14px; padding: 10px 12px; display: grid; gap: 2px; }
.franja small { color: inherit; opacity: .85; }
.franja.entrega { background: #E8F5E9; border: 1px solid #B9DDBB; color: #1B5E20; }
.franja.revision { background: var(--oro-claro); border: 1px solid #F0D58A; color: #7A5600; }
.franja.rechazo { background: #FDECEA; border: 1px solid #F3B8B3; color: #8C1D18; }
.franja.bienvenida { background: #EAF1FB; border: 1px solid #C9D8EE; color: var(--azul-noche); }
.franja .boton.chico { justify-self: start; min-height: 40px; margin-top: 6px; }
.registro { display: grid; gap: 12px; }
.registro label { display: grid; gap: 4px; font-weight: 600; color: var(--gris); font-size: 14px; }
.registro select { font: inherit; padding: 12px; border: 1px solid var(--borde); border-radius: 12px; min-height: 48px; background: #fff; }
.registro .casilla { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--texto); }
.registro .casilla input { width: 24px; height: 24px; min-height: 0; margin-top: 2px; flex: none; }
.campo-foto { background: #fff; border: 1px solid var(--borde); border-radius: 14px; padding: 12px; display: grid; gap: 8px; }
.campo-foto small { color: var(--gris); }
.foto-previa { width: 100%; max-height: 220px; object-fit: contain; border-radius: 10px; background: var(--fondo); }
.oculto { display: none; }
.error { color: #B3261E; font-size: 13px; }
.nota.ok { color: var(--verde); }
.nota.error { color: #B3261E; }
.boton.secundario { background: #fff; color: var(--azul); border: 1px solid var(--borde); }
