/* Beiko Pedidos — app de clientes. Colores de la marca y letras grandes. */
:root {
  --naranja: #ff741f;
  --naranja-osc: #e8600d;
  --nav: #1c2f4f;
  --fondo: #eef1f5;
  --texto: #111318;
  --suave: #5b6372;
  --borde: #d6dde6;
  --verde: #1e9e57;
  --verde-c: #e3f5ea;
  --rojo: #d92d20;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--fondo); color: var(--texto); font: 17px/1.3 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; text-align: left; }
button:disabled { opacity: .6; }
input, textarea { font: inherit; color: var(--texto); }
svg { display: block; }
small { color: var(--suave); font-size: 14px; }
b { font-weight: 700; }
.verde { color: var(--verde); }
.rojo { color: var(--rojo); }
.card { background: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 2px 10px rgba(28,47,79,.07); margin-bottom: 12px; }
.contenido { max-width: 560px; margin: 0 auto; padding: 14px 14px 100px; }
.contenido.con-pie { padding-bottom: 210px; }
.vacio { text-align: center; color: var(--suave); padding: 22px 14px; }
.vacio.grande { display: grid; justify-items: center; gap: 8px; padding: 34px 18px; }
.vacio.grande svg { font-size: 44px; color: #b7c0cc; }
.vacio.grande b { color: var(--texto); font-size: 19px; }
.pie { text-align: center; color: var(--suave); font-size: 14px; }

/* Botones */
.btn-naranja { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px; border-radius: 16px; background: var(--naranja); color: #fff; font-size: 19px; font-weight: 800; text-align: center; box-shadow: 0 6px 14px rgba(255,102,0,.28); }
.btn-naranja:active { background: var(--naranja-osc); }
.btn-naranja.chico { width: auto; height: 44px; padding: 0 20px; font-size: 16px; box-shadow: none; }
.btn-naranja svg { font-size: 22px; }
.btn-borde { display: block; width: 100%; height: 52px; margin-top: 10px; border-radius: 16px; border: 2px solid var(--nav); color: var(--nav); font-weight: 800; text-align: center; background: #fff; }
.btn-gris { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 44px; margin-top: 10px; border-radius: 12px; background: #eef1f5; font-weight: 700; color: var(--nav); }
.btn-volver { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px 0 8px; border-radius: 12px; background: rgba(255,255,255,.2); color: #fff; font-weight: 700; flex: 0 0 auto; }
.btn-volver svg { font-size: 20px; }
.btn-volver.blanco { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; background: #fff; color: var(--texto); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.link { color: var(--nav); font-weight: 700; text-decoration: underline; font-size: 15px; }
.link.salir { display: flex; align-items: center; gap: 8px; margin: 26px auto 0; color: var(--suave); text-decoration: none; }
.link.rojo-l { display: block; margin: 4px auto 0; color: var(--rojo); }

/* Entrar */
.entrar { min-height: 100vh; display: flex; flex-direction: column; }
.entrar-top { background: var(--naranja); color: #fff; text-align: center; padding: calc(40px + env(safe-area-inset-top)) 20px 70px; border-radius: 0 0 28px 28px; }
.entrar-logo { width: 116px; height: 116px; border-radius: 50%; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.entrar-top h1 { margin: 16px 0 4px; font-size: 27px; }
.entrar-top p { margin: 0; font-size: 16px; opacity: .95; }
.entrar-form { margin: -48px 18px 14px; display: grid; gap: 14px; padding: 20px 16px; }
.entrar-form label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.entrar-form input { height: 54px; padding: 0 14px; border: 2px solid var(--borde); border-radius: 12px; font-size: 18px; width: 100%; }
.entrar-form input:focus { outline: none; border-color: var(--nav); }
.clave { position: relative; display: block; }
.clave input { padding-right: 84px; }
.clave button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; font-weight: 700; text-decoration: underline; color: var(--nav); }
.entrar-ayuda { display: flex; align-items: center; gap: 12px; margin: auto 18px 10px; color: var(--texto); text-decoration: none; font-size: 15px; }
.ic-verde { flex: 0 0 42px; height: 42px; border-radius: 50%; background: var(--verde-c); color: var(--verde); display: grid; place-items: center; font-size: 20px; }

/* Barra naranja */
.top-naranja { background: var(--naranja); color: #fff; padding: calc(14px + env(safe-area-inset-top)) 16px 18px; border-radius: 0 0 22px 22px; }
.top-naranja.fila { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 5; }
.top-naranja.tit { display: flex; align-items: center; justify-content: space-between; }
.top-naranja.tit.col { display: grid; gap: 8px; justify-items: start; }
.top-naranja.tit.col .sec-fila { width: 100%; }
.top-naranja h1 { margin: 0; font-size: 25px; }
.top-naranja.tit small { color: rgba(255,255,255,.9); font-weight: 700; }
.logo-blanco { height: 42px; display: block; }
.top-naranja h2 { margin: 10px 0 12px; font-size: 22px; }
.buscador { display: flex; align-items: center; gap: 10px; width: 100%; height: 50px; padding: 0 14px; border-radius: 14px; background: #fff; color: var(--suave); font-size: 16px; }
.buscador svg { font-size: 22px; color: var(--nav); flex: 0 0 auto; }
.buscador.input { flex: 1; }
.buscador input { flex: 1; min-width: 0; border: 0; outline: none; font-size: 17px; height: 100%; background: none; }

/* Inicio */
.card-repetir { background: var(--nav); color: #fff; border-radius: 18px; padding: 14px; margin-bottom: 16px; box-shadow: 0 6px 16px rgba(28,47,79,.25); }
.rep-cab { display: flex; gap: 12px; align-items: center; }
.rep-cab > div { display: grid; }
.rep-cab b { font-size: 18px; }
.rep-cab small { color: rgba(255,255,255,.75); }
.rep-ic { flex: 0 0 42px; height: 42px; border-radius: 50%; background: var(--naranja); display: grid; place-items: center; font-size: 22px; }
.rep-fila { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.1); }
.rep-fila > b { font-size: 22px; }
.sec { margin: 18px 2px 10px; font-size: 19px; }
.sec-fila { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rubros { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.rubros::-webkit-scrollbar, .carrusel::-webkit-scrollbar { display: none; }
.rubro { flex: 0 0 84px; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 13.5px; font-weight: 600; line-height: 1.15; }
.rubro span { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 28px; color: var(--naranja); box-shadow: 0 2px 8px rgba(28,47,79,.1); }
.carrusel { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.carrusel .tarj-p { flex: 0 0 172px; }

/* Tarjetas de producto */
.grilla { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tarj-p { background: #fff; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 10px rgba(28,47,79,.07); }
.tarj-foto { position: relative; display: block; width: 100%; }
.tarj-t { display: grid; gap: 3px; padding: 10px 12px 6px; flex: 1; align-content: start; }
.tarj-t b { font-size: 15.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tarj-t small { font-size: 12.5px; }
.precio { font-size: 18px; font-weight: 800; margin-top: 2px; }
.precio small { font-size: 13px; font-weight: 500; }
.badge { position: absolute; top: 8px; left: 8px; background: var(--naranja); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: 8px; }
.badge.nuevo { background: var(--nav); }
.sin { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(91,99,114,.9); color: #fff; font-size: 13px; font-weight: 800; padding: 5px 10px; border-radius: 8px; }
.btn-agregar { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 10px 12px; height: 42px; border-radius: 12px; background: var(--naranja); color: #fff; font-weight: 800; }
.btn-agregar svg { font-size: 18px; }
.btn-agregar.en { background: var(--verde-c); color: var(--verde); font-size: 14.5px; }
.btn-avisame { margin: 4px 10px 12px; min-height: 42px; padding: 4px 10px; border-radius: 12px; background: #e9edf2; color: var(--suave); font-weight: 700; font-size: 13.5px; text-align: center; }
.btn-avisame.grande { width: 100%; margin: 14px 0 0; height: 52px; font-size: 16px; background: var(--verde-c); color: var(--verde); }

/* Fotos */
.foto { position: relative; aspect-ratio: 1 / 1; width: 100%; background: #f4f6f9; display: grid; place-items: center; overflow: hidden; }
.foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; z-index: 1; }
.foto-vacia { font-size: 42px; color: #c3cad5; }
.foto.mini { flex: 0 0 58px; width: 58px; border-radius: 10px; }
.foto.mini .foto-vacia { font-size: 24px; }
.foto.grande { aspect-ratio: auto; height: min(46vh, 360px); }
.foto.grande .foto-vacia { font-size: 80px; }

/* Lista */
.titulo { margin: 4px 2px 0; font-size: 23px; }
.orden { margin: 10px 0 14px; }
.orden small { display: block; margin: 0 2px 6px; font-weight: 600; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--borde); background: #fff; font-size: 14.5px; font-weight: 700; }
.chip.act { background: var(--nav); border-color: var(--nav); color: #fff; }

/* Detalle */
.det-foto { position: relative; background: #fff; }
.det { margin-top: -26px; position: relative; z-index: 2; padding-bottom: 170px; }
.det-card { padding: 18px 16px; }
.det-cod { font-weight: 600; }
.det-card h2 { margin: 6px 0 8px; font-size: 23px; line-height: 1.2; }
.det-precio { font-size: 30px; font-weight: 800; }
.det-precio small { font-size: 16px; }
.det-bulto { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 12px; border-radius: 12px; background: #eef1f5; }
.det-bulto > span { font-size: 26px; color: var(--nav); }
.det-bulto div { display: grid; }
.det-et { display: block; margin: 16px 0 8px; font-weight: 700; }
.stepper { display: flex; gap: 10px; align-items: center; }
.stepper button { flex: 0 0 56px; height: 56px; border-radius: 14px; border: 2px solid var(--nav); display: grid; place-items: center; font-size: 24px; color: var(--nav); background: #fff; }
.stepper button.osc { background: var(--nav); color: #fff; }
.stepper input { flex: 1; min-width: 0; height: 56px; border: 0; border-radius: 14px; background: #eef1f5; text-align: center; font-size: 26px; font-weight: 800; }
.stepper.chico button { flex-basis: 40px; height: 40px; font-size: 19px; border-radius: 10px; }
.stepper.chico span { min-width: 40px; text-align: center; font-size: 19px; font-weight: 800; }
.btn-bulto { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; margin-top: 12px; border: 2px dashed var(--nav); border-radius: 14px; font-weight: 800; color: var(--nav); }
.btn-bulto svg { font-size: 20px; }

/* Pie fijo (total + botón) */
.pie-fijo { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; max-width: 560px; margin: 0 auto; padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #e3e8ee; box-shadow: 0 -4px 14px rgba(28,47,79,.08); }
.pie-fijo.sobre-nav { bottom: calc(66px + env(safe-area-inset-bottom)); padding-bottom: 12px; }
.pie-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.pie-total span { color: var(--suave); font-size: 16px; }
.pie-total b { font-size: 25px; font-weight: 800; }

/* Carrito */
.linea-cab { display: flex; gap: 12px; align-items: center; width: 100%; }
.linea-cab > span { display: grid; flex: 1; }
.linea-cab b { font-size: 16px; line-height: 1.2; }
.linea-pie { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.linea-pie > b { font-size: 19px; }
.notas { display: grid; gap: 8px; }
.notas textarea { border: 2px solid var(--borde); border-radius: 12px; padding: 10px; font-size: 16px; resize: vertical; }

/* Enviado */
.enviado { text-align: center; padding-top: calc(40px + env(safe-area-inset-top)); }
.ok-circulo { width: 110px; height: 110px; margin: 0 auto 18px; border-radius: 50%; background: var(--verde); color: #fff; display: grid; place-items: center; font-size: 56px; box-shadow: 0 0 0 14px var(--verde-c); }
.enviado h1 { font-size: 25px; margin: 26px 0 6px; }
.enviado p { margin: 0 0 18px; color: var(--suave); }
.resumen { text-align: left; display: grid; gap: 8px; }
.resumen > div { display: flex; justify-content: space-between; gap: 10px; }
.resumen span { color: var(--suave); }
.resumen .tot { border-top: 1px solid #e9edf2; padding-top: 10px; margin-top: 2px; }
.resumen .tot b { font-size: 24px; }
.verde-c { display: flex; align-items: center; gap: 10px; background: var(--verde-c); color: var(--verde); font-weight: 700; text-align: left; font-size: 15px; }
.verde-c svg { font-size: 22px; flex: 0 0 auto; }

/* Mis pedidos */
.ped-cab, .ped-fila { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ped-cab b { font-size: 17px; }
.ped-fila { margin-top: 6px; align-items: flex-end; }
.ped-fila span { display: grid; }
.ped-fila > b { font-size: 21px; }
.pill { font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill.gris { background: #e6ebf3; color: var(--nav); }
.pill.naranja { background: #ffe8d6; color: var(--naranja-osc); }
.pill.verde { background: var(--verde-c); color: var(--verde); }
.det-linea { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eef1f5; }
.det-linea > span { flex: 1; display: grid; }
.det-linea > span b { font-size: 15px; }
.det-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; }
.det-total b { font-size: 25px; }

/* Barra de abajo */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; max-width: 560px; margin: 0 auto; display: flex; background: #fff; border-top: 1px solid #e3e8ee; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.nav-b { flex: 1; display: grid; justify-items: center; gap: 2px; font-size: 13px; font-weight: 700; color: var(--suave); padding: 4px 0; }
.nav-b.act { color: var(--naranja); }
.nav-ic { position: relative; font-size: 25px; }
.nav-ic i { position: absolute; top: -6px; right: -12px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--naranja); color: #fff; font-size: 12px; font-style: normal; font-weight: 800; display: grid; place-items: center; }

/* Aviso */
.aviso { position: fixed; left: 14px; right: 14px; top: calc(14px + env(safe-area-inset-top)); z-index: 50; max-width: 530px; margin: 0 auto; padding: 14px 16px; border-radius: 14px; background: var(--nav); color: #fff; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.aviso.mal { background: var(--rojo); }
