/* Verdulería · estilos (simple, fresco, cómodo en el celu) */
:root{ --c:#2E7D32; --c2:#1B5E20; --cl:#E8F5E9; --tx:#1F2A1F; --mu:#6B7A6B; --bd:#E3EAE3; --bg:#F6F8F4; --rojo:#C62828; --nar:#EF6C00; --r:18px; }
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{ font-family:'Nunito',system-ui,-apple-system,Segoe UI,Roboto,sans-serif; background:var(--bg); color:var(--tx); -webkit-tap-highlight-color:transparent; }
button{ font:inherit; cursor:pointer; }
input,select,textarea{ font:inherit; }
.cargando{ min-height:70vh; display:flex; flex-direction:column; gap:14px; align-items:center; justify-content:center; color:var(--mu); font-weight:700; }
.spin{ width:36px; height:36px; border-radius:50%; border:4px solid var(--cl); border-top-color:var(--c); animation:g 1s linear infinite; }
@keyframes g{ to{ transform:rotate(360deg); } }

/* Encabezado */
.hero{ position:relative; color:#fff; padding:22px 18px 64px; background:linear-gradient(135deg,var(--c) 0%,var(--c2) 100%); overflow:hidden; }
.hero::after{ content:'🥕🍅🥬🍋🥔'; position:absolute; right:-10px; bottom:-14px; font-size:58px; opacity:.13; letter-spacing:6px; white-space:nowrap; }
.hero .top{ max-width:1100px; margin:0 auto; display:flex; align-items:center; gap:14px; }
.hero .logo{ width:58px; height:58px; border-radius:16px; background:#fff; display:flex; align-items:center; justify-content:center; font-size:32px; flex:none; overflow:hidden; box-shadow:0 6px 18px -8px rgba(0,0,0,.4); }
.hero .logo img{ width:100%; height:100%; object-fit:contain; }
.hero h1{ margin:0; font-size:24px; font-weight:900; line-height:1.1; }
.hero .lema{ opacity:.9; font-size:14px; margin-top:3px; }
.hero .admin-link{ margin-left:auto; color:#fff; opacity:.75; font-size:12px; text-decoration:none; border:1px solid rgba(255,255,255,.35); border-radius:999px; padding:5px 10px; }
.wrap{ max-width:1100px; margin:0 auto; padding:0 14px 140px; }
.info{ margin-top:12px; background:#fff; border-radius:var(--r); padding:12px 14px; box-shadow:0 10px 30px -18px rgba(0,0,0,.35); display:flex; flex-wrap:wrap; gap:8px 16px; font-size:13.5px; position:relative; z-index:1; }
.info b{ color:var(--c2); }
.info .dato{ display:block; }
.cerrado{ margin-top:10px; background:#FFF3E0; border:1px solid #FFCC80; color:#8D4B00; border-radius:14px; padding:10px 14px; font-weight:700; font-size:14px; }

/* Buscador y categorías */
.barra{ position:sticky; top:0; z-index:5; background:var(--bg); padding:12px 0 8px; }
.buscar{ width:100%; border:1.5px solid var(--bd); background:#fff; border-radius:14px; padding:12px 14px 12px 40px; font-size:15px; outline:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236B7A6B' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M17 17l-4.5-4.5'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:13px 50%; }
.buscar:focus{ border-color:var(--c); }
.chips{ display:flex; gap:8px; overflow-x:auto; padding:10px 0 2px; scrollbar-width:none; }
.chips::-webkit-scrollbar{ display:none; }
.chip{ flex:none; border:1.5px solid var(--bd); background:#fff; color:var(--tx); border-radius:999px; padding:7px 14px; font-weight:700; font-size:14px; }
.chip.on{ background:var(--c); border-color:var(--c); color:#fff; }

/* Productos */
.grilla{ display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:12px; margin-top:6px; }
@media (max-width:420px){ .grilla{ grid-template-columns:1fr 1fr; gap:10px; } }
.prod{ background:#fff; border-radius:var(--r); border:1px solid var(--bd); overflow:hidden; display:flex; flex-direction:column; position:relative; transition:transform .12s, box-shadow .12s; }
.prod:hover{ transform:translateY(-2px); box-shadow:0 12px 26px -18px rgba(0,0,0,.4); }
.prod .foto{ aspect-ratio:4/3; background:var(--cl); display:flex; align-items:center; justify-content:center; font-size:56px; overflow:hidden; }
.prod .foto img{ width:100%; height:100%; object-fit:cover; }
.prod .cuerpo{ padding:10px 12px 12px; display:flex; flex-direction:column; gap:2px; flex:1; }
.prod .nom{ font-weight:800; font-size:15.5px; line-height:1.2; }
.prod .uni{ color:var(--mu); font-size:12.5px; }
.prod .pre{ font-weight:900; font-size:19px; color:var(--c2); margin-top:4px; }
.prod .acc{ margin-top:auto; padding-top:8px; }
.prod .sello{ position:absolute; top:8px; left:8px; background:var(--nar); color:#fff; font-size:11px; font-weight:900; border-radius:999px; padding:3px 9px; letter-spacing:.3px; }
.prod.sin{ opacity:.55; }
.prod.sin .foto{ filter:grayscale(1); }
.prod .sello.sin{ background:#616161; }
.btn-add{ width:100%; border:0; border-radius:12px; background:var(--c); color:#fff; font-weight:800; padding:10px; font-size:14.5px; }
.btn-add:disabled{ background:#BDBDBD; cursor:not-allowed; }
.paso{ display:flex; align-items:center; justify-content:space-between; background:var(--cl); border-radius:12px; padding:3px; }
.paso button{ width:38px; height:36px; border:0; border-radius:10px; background:#fff; color:var(--c2); font-size:22px; font-weight:900; line-height:1; box-shadow:0 1px 2px rgba(0,0,0,.08); }
.paso span{ font-weight:900; font-size:15px; color:var(--c2); }
.vacio{ text-align:center; color:var(--mu); padding:40px 10px; font-weight:700; }

/* Carrito */
.barra-carrito{ position:fixed; left:12px; right:12px; bottom:calc(12px + env(safe-area-inset-bottom)); z-index:20; max-width:560px; margin:0 auto; border:0; border-radius:18px; background:var(--c2); color:#fff; padding:14px 18px; display:flex; align-items:center; gap:12px; font-weight:800; font-size:16px; box-shadow:0 14px 30px -12px rgba(0,0,0,.55); transform:translateY(160%); transition:transform .25s; }
.barra-carrito.ver{ transform:none; }
.barra-carrito .n{ background:#fff; color:var(--c2); border-radius:999px; min-width:28px; height:28px; display:flex; align-items:center; justify-content:center; font-size:14px; padding:0 8px; }
.barra-carrito .tot{ margin-left:auto; }
.fondo{ position:fixed; inset:0; background:rgba(15,25,15,.45); z-index:30; opacity:0; pointer-events:none; transition:opacity .2s; }
.fondo.ver{ opacity:1; pointer-events:auto; }
.hoja{ position:fixed; left:0; right:0; bottom:0; z-index:31; background:#fff; border-radius:22px 22px 0 0; max-height:92vh; overflow-y:auto; transform:translateY(105%); transition:transform .28s; padding:8px 16px calc(18px + env(safe-area-inset-bottom)); max-width:640px; margin:0 auto; }
.hoja.ver{ transform:none; }
.hoja .asa{ width:44px; height:5px; border-radius:9px; background:#D5DDD5; margin:4px auto 10px; }
.hoja h2{ margin:4px 0 12px; font-size:21px; font-weight:900; display:flex; align-items:center; }
.hoja h2 .x{ margin-left:auto; border:0; background:var(--bg); width:36px; height:36px; border-radius:50%; font-size:18px; }
.item{ display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid var(--bd); }
.item .mini{ width:46px; height:46px; border-radius:12px; background:var(--cl); display:flex; align-items:center; justify-content:center; font-size:26px; overflow:hidden; flex:none; }
.item .mini img{ width:100%; height:100%; object-fit:cover; }
.item .t{ flex:1; min-width:0; }
.item .t b{ display:block; font-size:15px; }
.item .t small{ color:var(--mu); }
.item .paso{ width:118px; }
.item .paso button{ width:32px; height:30px; font-size:18px; }
.item .sub{ width:78px; text-align:right; font-weight:900; }
.seccion{ margin-top:16px; }
.seccion > label, .lbl{ display:block; font-weight:800; font-size:14px; margin-bottom:6px; }
.opciones{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.op{ border:1.5px solid var(--bd); background:#fff; border-radius:14px; padding:10px 12px; text-align:left; }
.op b{ display:block; font-size:15px; }
.op small{ color:var(--mu); }
.op.on{ border-color:var(--c); background:var(--cl); }
.campo{ width:100%; border:1.5px solid var(--bd); border-radius:12px; padding:11px 12px; font-size:15px; outline:none; background:#fff; }
.campo:focus{ border-color:var(--c); }
.fila2{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
@media (max-width:420px){ .fila2{ grid-template-columns:1fr; } }
.totales{ margin-top:16px; background:var(--bg); border-radius:14px; padding:12px 14px; }
.totales div{ display:flex; justify-content:space-between; padding:2px 0; }
.totales .grande{ font-size:20px; font-weight:900; color:var(--c2); border-top:1px dashed #C9D4C9; margin-top:6px; padding-top:8px; }
.btn-wa{ width:100%; margin-top:14px; border:0; border-radius:16px; background:#25D366; color:#fff; font-weight:900; font-size:17px; padding:16px; display:flex; align-items:center; justify-content:center; gap:10px; box-shadow:0 10px 22px -12px rgba(37,211,102,.9); }
.btn-wa:disabled{ background:#BDBDBD; box-shadow:none; }
.nota{ color:var(--mu); font-size:12.5px; margin-top:8px; text-align:center; }
.error{ color:var(--rojo); font-weight:700; font-size:13.5px; margin-top:8px; }
.toast{ position:fixed; left:50%; bottom:96px; transform:translateX(-50%) translateY(20px); background:#1F2A1F; color:#fff; border-radius:12px; padding:10px 16px; font-weight:700; font-size:14px; opacity:0; pointer-events:none; transition:all .2s; z-index:60; max-width:90vw; text-align:center; }
.toast.ver{ opacity:1; transform:translateX(-50%); }

/* Admin */
.adm-top{ background:#fff; border-bottom:1px solid var(--bd); position:sticky; top:0; z-index:10; }
.adm-top .in{ max-width:1100px; margin:0 auto; padding:12px 14px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.adm-top h1{ font-size:18px; margin:0; font-weight:900; }
.adm-top .quien{ margin-left:auto; color:var(--mu); font-size:12.5px; }
.tabs{ max-width:1100px; margin:0 auto; padding:0 14px; display:flex; gap:6px; overflow-x:auto; }
.tab{ flex:none; border:0; background:none; padding:10px 12px; font-weight:800; color:var(--mu); border-bottom:3px solid transparent; }
.tab.on{ color:var(--c2); border-bottom-color:var(--c); }
.card{ background:#fff; border:1px solid var(--bd); border-radius:var(--r); padding:16px; margin-top:14px; }
.card h3{ margin:0 0 10px; font-size:17px; font-weight:900; }
.btn{ border:1.5px solid var(--bd); background:#fff; border-radius:12px; padding:9px 14px; font-weight:800; color:var(--tx); }
.btn.pri{ background:var(--c); border-color:var(--c); color:#fff; }
.btn.peligro{ color:var(--rojo); }
.btn.chico{ padding:6px 10px; font-size:13px; border-radius:10px; }
.adm-lista{ display:flex; flex-direction:column; }
.adm-p{ display:grid; grid-template-columns:52px 1fr 120px auto; gap:10px; align-items:center; padding:10px 0; border-bottom:1px solid var(--bd); }
.adm-p .mini{ width:52px; height:52px; border-radius:12px; background:var(--cl); display:flex; align-items:center; justify-content:center; font-size:28px; overflow:hidden; }
.adm-p .mini img{ width:100%; height:100%; object-fit:cover; }
.adm-p .nm b{ display:block; }
.adm-p .nm small{ color:var(--mu); }
.adm-p .precio{ width:100%; border:1.5px solid var(--bd); border-radius:10px; padding:8px; font-weight:800; text-align:right; }
.adm-p .acc{ display:flex; gap:6px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
@media (max-width:640px){ .adm-p{ grid-template-columns:48px 1fr 96px; } .adm-p .acc{ grid-column:1 / -1; justify-content:flex-start; } }
.sw{ border:0; border-radius:999px; padding:6px 12px; font-weight:800; font-size:12.5px; }
.sw.hay{ background:var(--cl); color:var(--c2); }
.sw.sin{ background:#FFEBEE; color:var(--rojo); }
.ico{ border:1.5px solid var(--bd); background:#fff; border-radius:10px; width:34px; height:34px; font-size:15px; }
.ico.on{ background:#FFF3E0; border-color:#FFCC80; }
.grid-form{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; }
.grid-form .full{ grid-column:1 / -1; }
.chk{ display:flex; align-items:center; gap:8px; font-weight:700; }
.chk input{ width:20px; height:20px; accent-color:var(--c); }
.modal-fondo{ position:fixed; inset:0; background:rgba(15,25,15,.45); z-index:40; display:flex; align-items:flex-end; justify-content:center; }
@media (min-width:641px){ .modal-fondo{ align-items:center; } }
.modal{ background:#fff; width:100%; max-width:520px; border-radius:22px 22px 0 0; padding:18px; max-height:92vh; overflow-y:auto; }
@media (min-width:641px){ .modal{ border-radius:22px; } }
.emojis{ display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.emojis button{ border:1.5px solid var(--bd); background:#fff; border-radius:10px; width:40px; height:40px; font-size:22px; }
.emojis button.on{ border-color:var(--c); background:var(--cl); }
.foto-prev{ width:100%; aspect-ratio:4/3; border-radius:14px; background:var(--cl); display:flex; align-items:center; justify-content:center; font-size:64px; overflow:hidden; }
.foto-prev img{ width:100%; height:100%; object-fit:cover; }
.login{ max-width:420px; margin:12vh auto 0; text-align:center; }
.login .card{ padding:26px; }
.btn-google{ display:inline-flex; align-items:center; gap:10px; border:1.5px solid var(--bd); background:#fff; border-radius:12px; padding:12px 18px; font-weight:800; font-size:15px; }
.link-box{ display:flex; gap:8px; }
.link-box input{ flex:1; }
.muted{ color:var(--mu); }
.peq{ font-size:12.5px; }

/* v1.1 · Portada con foto de perfil (como el cartel de GestorApp) */
.hero2{ background:var(--bg); }
.hero2 .portada{ position:relative; height:170px; overflow:hidden; background:linear-gradient(135deg,var(--c) 0%,var(--c2) 100%); background-size:cover; background-position:center; }
@media (min-width:700px){ .hero2 .portada{ height:230px; } }
.hero2.con-foto .portada::after{ content:''; position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,.05) 40%,rgba(0,0,0,.35) 100%); }
.hero2 .arte{ position:absolute; inset:0; pointer-events:none; }
.hero2 .arte span{ position:absolute; font-size:44px; opacity:.2; filter:saturate(.9); }
@media (min-width:700px){ .hero2 .arte span{ font-size:56px; } }
.hero2 .admin-link{ position:absolute; top:12px; right:12px; z-index:2; color:#fff; font-size:12px; text-decoration:none; border:1px solid rgba(255,255,255,.45); background:rgba(0,0,0,.12); border-radius:999px; padding:5px 11px; }
.hero2 .by{ position:absolute; right:12px; bottom:10px; z-index:2; color:#fff; font-size:11.5px; background:rgba(0,0,0,.22); border-radius:999px; padding:4px 10px; letter-spacing:.2px; }
.hero2 .perfil{ max-width:1100px; margin:0 auto; padding:0 16px; display:flex; align-items:flex-end; gap:14px; margin-top:-46px; position:relative; z-index:3; }
.hero2 .avatar{ width:104px; height:104px; border-radius:50%; background:#fff; border:5px solid #fff; box-shadow:0 10px 24px -12px rgba(0,0,0,.5); display:flex; align-items:center; justify-content:center; font-size:54px; overflow:hidden; flex:none; }
.hero2 .avatar img{ width:100%; height:100%; object-fit:cover; }
.hero2 .pt{ padding-bottom:6px; min-width:0; }
.hero2 h1{ margin:0; font-size:24px; font-weight:900; line-height:1.12; color:var(--tx); }
.hero2 .lema{ color:var(--mu); font-size:14px; margin-top:3px; }
@media (max-width:420px){ .hero2 .avatar{ width:88px; height:88px; font-size:44px; } .hero2 h1{ font-size:21px; } .hero2 .perfil{ margin-top:-38px; } }
.menu-ini{ display:grid; grid-template-columns:repeat(auto-fit,minmax(96px,1fr)); gap:10px; margin-top:14px; }
.menu-ini .mi{ border:1px solid var(--bd); background:#fff; border-radius:16px; padding:12px 6px; display:flex; flex-direction:column; align-items:center; gap:6px; font-weight:800; font-size:13px; color:var(--tx); transition:transform .12s, box-shadow .12s; }
.menu-ini .mi:hover{ transform:translateY(-2px); box-shadow:0 10px 22px -16px rgba(0,0,0,.45); }
.menu-ini .ic{ width:46px; height:46px; border-radius:14px; background:var(--cl); display:flex; align-items:center; justify-content:center; font-size:24px; }
@media (max-width:420px){ .menu-ini{ grid-template-columns:repeat(3,1fr); } }
.hr{ display:flex; gap:12px; padding:10px 0; border-bottom:1px solid var(--bd); }
.hr .ic{ width:40px; height:40px; border-radius:12px; background:var(--cl); display:flex; align-items:center; justify-content:center; font-size:20px; flex:none; }
.pie{ text-align:center; color:var(--mu); font-size:12.5px; margin-top:28px; }
.pie b{ color:var(--c2); }
.by-carga{ font-weight:600; font-size:12px; opacity:.8; }
.by-adm{ font-size:11px; font-weight:700; color:var(--mu); margin-left:6px; }
.ini-adm{ margin-top:14px; border-radius:var(--r); overflow:hidden; background:#fff; border:1px solid var(--bd); padding-bottom:14px; }
.tiles{ display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; margin-top:14px; }
.tile{ text-align:left; border:1px solid var(--bd); background:#fff; border-radius:var(--r); padding:16px; display:flex; flex-direction:column; gap:4px; min-height:118px; transition:transform .12s, box-shadow .12s; }
.tile:hover{ transform:translateY(-2px); box-shadow:0 10px 26px -14px rgba(0,0,0,.3); }
.tile .ic{ font-size:26px; }
.tile b{ font-size:15px; margin-top:6px; color:var(--c2); }
.tile small{ color:var(--mu); font-size:12.5px; }
@media (max-width:420px){ .tiles{ grid-template-columns:1fr 1fr; } }
.temas{ display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:10px; }
.tema{ border:2px solid var(--bd); background:#fff; border-radius:14px; padding:6px; display:flex; flex-direction:column; gap:6px; font-weight:800; font-size:13px; }
.tema .mu{ height:52px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:22px; letter-spacing:2px; }
.tema.on{ border-color:var(--c); box-shadow:0 0 0 3px var(--cl); }

/* v1.2 · Cabecera chica de los clientes (directo al grano) */
.cab{ background:var(--c); color:#fff; position:relative; }
.cab .in{ max-width:1100px; margin:0 auto; padding:10px 14px; display:flex; align-items:center; gap:10px; }
.cab .av{ width:40px; height:40px; border-radius:50%; background:#fff; display:flex; align-items:center; justify-content:center; font-size:22px; overflow:hidden; flex:none; }
.cab .av img{ width:100%; height:100%; object-fit:cover; }
.cab .nm{ min-width:0; line-height:1.15; }
.cab .nm b{ display:block; font-size:17px; font-weight:900; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cab .nm small{ font-size:11px; opacity:.8; }
.cab .admin-link{ margin-left:auto; color:#fff; opacity:.75; font-size:12px; text-decoration:none; border:1px solid rgba(255,255,255,.4); border-radius:999px; padding:4px 10px; }
.wrap > .info:first-child{ margin-top:12px; }
.info{ font-size:13px; padding:10px 12px; box-shadow:none; border:1px solid var(--bd); }

/* ================================================================
   v1.2 · Estética más profesional (sobria, prolija, menos «infantil»)
   ================================================================ */
:root{ --c:#1F4D3A; --c2:#163829; --cl:#EEF3EF; --tx:#16231C; --mu:#66736B; --bd:#E4E7E2; --bg:#F7F7F4; --r:12px; }
body{ font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,sans-serif; font-feature-settings:'tnum' 1; letter-spacing:-.005em; }
/* cabecera de los clientes: blanca, con el color sólo de acento */
.cab{ background:#fff; color:var(--tx); border-bottom:1px solid var(--bd); position:sticky; top:0; z-index:8; }
.cab .av{ border:1px solid var(--bd); background:var(--cl); font-size:20px; }
.cab .nm b{ font-weight:700; font-size:16px; letter-spacing:-.01em; }
.cab .nm small{ color:var(--mu); opacity:1; font-weight:500; }
.cab .admin-link{ color:var(--mu); border-color:var(--bd); opacity:1; }
.btn-inst{ margin-left:auto; border:1px solid var(--c); color:var(--c); background:#fff; border-radius:8px; padding:6px 10px; font-weight:600; font-size:13px; }
.btn-inst + .admin-link{ margin-left:0; }
.barra{ top:61px; }
.info{ border-radius:10px; background:#fff; color:var(--tx); }
.info b{ color:var(--tx); font-weight:700; }
.cerrado{ border-radius:10px; font-weight:600; }
.buscar{ border-radius:10px; border-width:1px; padding:11px 14px 11px 40px; }
.chips{ gap:6px; }
.chip{ border-width:1px; border-radius:8px; padding:6px 12px; font-weight:600; font-size:13.5px; color:#3C4A41; }
.chip.on{ background:var(--tx); border-color:var(--tx); }
/* tarjetas de producto */
.grilla{ gap:10px; }
.prod{ border-radius:var(--r); box-shadow:none; }
.prod:hover{ transform:none; box-shadow:0 6px 18px -12px rgba(0,0,0,.25); border-color:#D5DAD3; }
.prod .foto{ aspect-ratio:16/11; background:#F3F4F0; font-size:46px; }
.prod .foto img{ filter:saturate(.95); }
.prod .cuerpo{ padding:10px 12px 12px; }
.prod .nom{ font-weight:700; font-size:15px; letter-spacing:-.01em; }
.prod .uni{ font-size:12px; text-transform:lowercase; }
.prod .pre{ font-weight:800; font-size:18px; color:var(--tx); letter-spacing:-.02em; }
.prod .sello{ border-radius:6px; font-size:10.5px; font-weight:700; letter-spacing:.06em; background:var(--c); padding:3px 7px; }
.prod .sello.sin{ background:#6B7280; }
.btn-add{ border-radius:8px; background:var(--c); font-weight:600; font-size:14px; padding:9px; }
.paso{ border-radius:8px; background:var(--cl); }
.paso button{ border-radius:6px; font-size:20px; font-weight:600; box-shadow:none; border:1px solid var(--bd); }
.paso span{ font-weight:700; color:var(--tx); font-size:14px; }
/* carrito */
.barra-carrito{ border-radius:12px; background:var(--tx); font-weight:600; }
.barra-carrito .n{ color:var(--tx); font-weight:700; }
.hoja{ border-radius:16px 16px 0 0; }
.hoja h2{ font-weight:800; font-size:19px; letter-spacing:-.01em; }
.item .mini{ border-radius:8px; background:#F3F4F0; font-size:22px; }
.item .sub{ font-weight:700; }
.op{ border-width:1px; border-radius:10px; }
.op b{ font-weight:600; }
.op.on{ border-color:var(--c); background:var(--cl); box-shadow:inset 0 0 0 1px var(--c); }
.campo{ border-width:1px; border-radius:10px; }
.totales{ border-radius:10px; border:1px solid var(--bd); background:#fff; }
.totales .grande{ color:var(--tx); font-weight:800; }
.btn-wa{ border-radius:12px; font-weight:700; font-size:16px; box-shadow:none; }
.toast{ border-radius:10px; font-weight:600; }
.pasos{ margin:0; padding-left:20px; line-height:1.9; }
.kbd{ display:inline-block; border:1px solid var(--bd); border-radius:6px; padding:0 6px; background:#fff; font-size:13px; }
/* admin */
.adm-top h1{ font-weight:800; font-size:17px; letter-spacing:-.01em; }
.tab{ font-weight:600; }
.card{ border-radius:var(--r); }
.card h3{ font-weight:700; }
.btn{ border-width:1px; border-radius:8px; font-weight:600; }
.tile{ border-radius:var(--r); }
.tile b{ color:var(--tx); font-weight:700; }
.tile .ic{ width:40px; height:40px; border-radius:10px; background:var(--cl); display:flex; align-items:center; justify-content:center; font-size:20px; }
.hero2 .arte span{ filter:grayscale(1) brightness(4); opacity:.07; font-size:40px; }
.hero2 .avatar{ border-width:4px; }
.hero2 h1{ font-weight:800; letter-spacing:-.02em; }
.hero2 .by, .hero2 .admin-link{ border-radius:6px; }
.tema{ border-width:1px; border-radius:10px; font-weight:600; }
.tema .mu{ border-radius:8px; filter:saturate(.8); }
.sw{ border-radius:6px; font-weight:600; }
.ico{ border-width:1px; border-radius:8px; }
.qrs{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; }
.qr{ border:1px solid var(--bd); border-radius:var(--r); padding:14px; display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px; }
.qr img{ width:200px; height:200px; image-rendering:pixelated; }
.qr b{ font-size:16px; }
.qr small{ color:var(--mu); margin-bottom:6px; }
/* v1.2 · pagar */
.pagar{ border:1px solid var(--bd); border-radius:var(--r); padding:12px 14px; background:#fff; }
.pg-tit{ font-size:15px; margin-bottom:8px; }
.pg-fila{ display:grid; grid-template-columns:64px 1fr auto; gap:8px; align-items:center; padding:6px 0; border-top:1px solid var(--bd); }
.pg-fila b{ word-break:break-all; font-weight:600; }
.pg-qr{ display:flex; flex-direction:column; align-items:center; gap:6px; margin-top:10px; text-align:center; }
.pg-qr img{ width:200px; max-width:70%; border:1px solid var(--bd); border-radius:8px; }
.pg-qr small{ color:var(--mu); }
.btn-mp{ width:100%; border:0; border-radius:10px; background:#009EE3; color:#fff; font-weight:700; padding:12px; font-size:15px; }
.pg-ops{ display:flex; flex-wrap:wrap; gap:10px 18px; }
.qr-prev{ width:140px; height:140px; border:1px dashed var(--bd); border-radius:8px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.qr-prev img{ width:100%; height:100%; object-fit:contain; }
/* v1.3 · Ingresar (admin) arriba a la derecha */
.btn-login{ margin-left:auto; display:inline-flex; align-items:center; gap:6px; border:1px solid var(--bd); background:#fff; color:var(--tx); border-radius:8px; padding:6px 10px; font-weight:600; font-size:13px; white-space:nowrap; }
.btn-inst:not([hidden]) ~ .btn-login{ margin-left:0; }
/* v1.4 · precios con vencimiento */
.pre.consultar, .consultar{ color:var(--mu); font-size:14px; font-weight:600; }
.vig{ display:block; margin-top:2px; }
.vig.ok{ color:#2F6B45; }
.vig.ven{ color:#B45309; font-weight:600; }
.vig .btn{ margin-left:6px; padding:2px 8px; }
/* v1.5 · pedidos del admin */
.ped{ padding:14px; }
.ped-cab{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; }
.ped-cab b{ font-size:16px; }
.ped-tot{ margin-left:auto; font-weight:800; font-size:17px; }
.ped-dat{ display:flex; flex-wrap:wrap; gap:4px 14px; font-size:13.5px; margin-top:4px; color:#3C4A41; }
.ped-dat a{ color:var(--c); font-weight:600; }
.ped-items{ list-style:none; margin:8px 0; padding:8px 0; border-top:1px solid var(--bd); border-bottom:1px solid var(--bd); }
.ped-items li{ display:flex; justify-content:space-between; gap:10px; padding:2px 0; font-size:14px; }
.ped-est{ display:flex; gap:6px; flex-wrap:wrap; margin-top:8px; }
.ped-est .sw{ background:#F3F4F0; color:#3C4A41; }
.ped-cancelado{ opacity:.55; }
.ped-nuevo{ border-left:4px solid var(--c); }
.ped-est .sw.hay{ background:var(--c); color:#fff; }
/* v1.6 · reparto */
.quien{ margin-top:6px; color:#4B5563; background:#F3F4F0; border-radius:8px; padding:5px 8px; }
.rep-n{ display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; border-radius:50%; background:var(--tx); color:#fff; font-weight:700; font-size:13px; }
.rep-est{ margin-left:auto; font-weight:700; font-size:13px; }
.ped-en_camino{ border-left:4px solid #2563EB; }
.ped-entregado{ opacity:.6; }
.ped-no_entregado{ border-left:4px solid #B45309; }
.rep-top .buscar{ background-color:#fff; }
/* v1.7 · mapa del reparto */
.rep-mapa{ height:68vh; min-height:360px; border-radius:10px; overflow:hidden; }
.rep-pin span{ display:flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:50%; color:#fff; font-weight:800; font-size:13px; border:2px solid #fff; box-shadow:0 2px 6px rgba(0,0,0,.35); }
.rep-ley{ display:flex; flex-wrap:wrap; gap:6px 14px; margin-top:8px; font-size:12.5px; }
.rep-ley i{ display:inline-block; width:12px; height:12px; border-radius:50%; margin-right:5px; vertical-align:-1px; }
.rep-pop{ font-family:'Inter',sans-serif; font-size:13px; line-height:1.45; min-width:220px; }
.rep-pop .ped-est{ margin:6px 0; }
.rep-check{ display:flex; align-items:center; gap:10px; margin-top:8px; padding:10px 12px; border:1.5px solid var(--bd); border-radius:10px; font-weight:700; font-size:15px; cursor:pointer; background:#fff; }
.rep-check input{ width:24px; height:24px; accent-color:#15803D; }
.rep-check.on{ border-color:#15803D; background:#ECFDF3; color:#15803D; }
.rep-res{ display:flex; gap:16px; margin-bottom:8px; font-size:15px; }
.rep-res b{ font-size:18px; }
.quien.ent{ background:#ECFDF3; color:#15803D; }
