:root {
  --marca: #0E9F6E;
  --marca-osc: #0B7F58;
  --marca-claro: #E6F6EF;
  --acento: #FFB020;
  --texto: #1C2421;
  --texto-2: #5D6965;
  --borde: #E3E8E6;
  --fondo: #F4F6F5;
  --blanco: #FFFFFF;
  --peligro: #D64545;
  --demo-fondo: #FFF4D6;
  --demo-texto: #7A4E00;
  --radio: 14px;
  --sombra: 0 1px 2px rgba(16, 40, 30, .06), 0 4px 14px rgba(16, 40, 30, .06);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  background: #DDE3E0;
  color: var(--texto);
  font-family: Roboto, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.35;
  overflow: hidden;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; -webkit-user-select: none; user-select: none; }
svg.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

#app {
  display: flex; flex-direction: column;
  height: 100%; max-width: 480px; margin: 0 auto;
  background: var(--fondo);
  box-shadow: 0 0 30px rgba(0, 0, 0, .12);
  position: relative;
}

/* ---------- cabecera ---------- */
#cabecera {
  background: linear-gradient(135deg, var(--marca) 0%, var(--marca-osc) 100%);
  color: #fff; padding: 12px 14px; flex: none;
  display: flex; align-items: center; min-height: 58px;
}
.pildora-red { background: rgba(255, 255, 255, .18); color: #fff; font-weight: 700; font-size: 11.5px; padding: 6px 10px; border-radius: 99px; white-space: nowrap; }
.pildora-red.apagada { background: rgba(0, 0, 0, .28); color: #FFD9D9; }
.chip-txt.activo { background: var(--marca-claro); border-color: var(--marca); color: var(--marca-osc); }
/* Versión web: ventana "Instala MERCADITO" (pwa.js) */
.instalar { position: fixed; inset: 0; background: rgba(10, 20, 15, .45); display: flex; align-items: flex-end; justify-content: center; z-index: 40; }
.instalar-caja { background: #fff; width: 100%; max-width: 480px; border-radius: 20px 20px 0 0; padding: 20px 18px 18px; animation: subir .2s ease-out; }
.instalar-caja h3 { margin: 6px 0 8px; font-size: 18px; text-align: center; }
.instalar-caja ol { padding-left: 22px; margin: 0 0 14px; }
.instalar-caja li { margin-bottom: 8px; font-size: 14.5px; }
.instalar-caja p { color: var(--texto-2); text-align: center; margin: 0 0 14px; }
.instalar-ico { text-align: center; }
.instalar-ico img { width: 64px; height: 64px; border-radius: 16px; }
.instalar .compartir { display: inline-block; border: 1.5px solid #2B6DE0; color: #2B6DE0; border-radius: 6px; padding: 0 5px; font-weight: 800; }

/* Reloj de entrega */
.reloj { display: flex; align-items: center; }
.reloj .anillo { position: relative; width: 92px; height: 92px; flex: none; margin-right: 14px; }
.reloj svg { width: 92px; height: 92px; transform: rotate(-90deg); }
.reloj .pista { fill: none; stroke: var(--marca-claro); stroke-width: 8; }
.reloj .avance { fill: none; stroke: var(--marca); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.reloj.tarde .avance { stroke: var(--acento); }
.reloj .centro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.reloj .centro b { font-size: 28px; color: var(--marca-osc); text-align: center; }
.reloj.tarde .centro b { color: #9A6200; }
.reloj .centro small { font-size: 12px; color: var(--texto-2); margin-top: 2px; }
.reloj .titulo { font-weight: 800; font-size: 16px; margin-bottom: 3px; }
.reloj .sub { font-size: 13.5px; }
.reloj.listo .e { font-size: 44px; margin-right: 14px; }
.mapa { height: 230px; border-radius: 12px; margin: 8px 0 4px; position: relative; z-index: 0; border: 1.5px solid var(--borde); }
.pin-mapa { font-size: 32px; line-height: 36px; text-align: center; background: none; border: 0; }
.leaflet-container { font: inherit; }
.legal h1 { font-size: 19px; margin: 0 0 4px; }
.legal h2 { font-size: 15px; margin: 14px 0 4px; }
.legal p, .legal li { font-size: 13.5px; line-height: 1.45; margin: 4px 0; }
.legal ul { padding-left: 18px; margin: 4px 0; }
.check span .enlace { font-size: inherit; }
.con-ver { display: flex; align-items: center; }
.con-ver input { flex: 1; min-width: 0; }
.ver-clave { flex: none; margin-left: 8px; font-size: 13px; font-weight: 700; color: var(--marca-osc); padding: 10px 6px; }
/* Mostrar/ocultar contraseña o PIN: texto discreto dentro del campo, a la derecha */
.campo-clave { position: relative; }
.campo-clave input { padding-right: 92px; }
.campo-clave .ver-clave { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); margin: 0; padding: 8px 10px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--marca-osc); border-radius: 8px; }
.campo-clave .ver-clave:active { background: var(--marca-claro); }
.estado-tienda { font-size: 12px; font-weight: 700; margin-top: 1px; }
.estado-tienda.abierta { color: #128C4A; }
.estado-tienda.cerrada { color: var(--peligro); }
.comercio.cerrada .avatar, .comercio.cerrada .nombre { opacity: .55; }
.producto.agotado .foto, .producto.agotado .nombre, .producto.agotado .precio { opacity: .45; }
.no-disp { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--texto-2); background: var(--fondo); border-radius: 10px; padding: 8px 10px; }
.cab-marca { flex: 1; min-width: 0; }
.logo { display: flex; align-items: center; font-weight: 800; font-size: 21px; letter-spacing: .5px; }
.logo-img { height: 30px; display: block; }
.logo-grande { display: block; height: 52px; margin: 8px auto 6px; max-width: 90%; }
.logo-grande.izq { margin: 14px 0 0; height: 44px; }
.ubicacion { font-size: 12.5px; opacity: .92; margin-top: 2px; }
.pildora-demo { background: var(--acento); color: #3B2A00; font-weight: 800; font-size: 11.5px; padding: 6px 10px; border-radius: 99px; letter-spacing: .6px; }
.cab-atras { width: 40px; height: 40px; margin: -6px 6px -6px -6px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.cab-atras:active { background: rgba(255, 255, 255, .18); }
.cab-titulo { flex: 1; font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- vista ---------- */
#vista { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 14px 22px; }
.seccion-titulo { font-size: 16.5px; font-weight: 800; margin: 20px 2px 10px; }
.seccion-titulo small { font-weight: 500; color: var(--texto-2); font-size: 12.5px; }
.muted { color: var(--texto-2); }
.centro { text-align: center; }

.banner-demo {
  background: var(--demo-fondo); color: var(--demo-texto);
  border: 1px solid #F3D88A; border-radius: var(--radio);
  padding: 10px 12px; font-size: 13px; display: flex; align-items: flex-start;
}
.banner-demo b { display: block; font-size: 12.5px; letter-spacing: .5px; }
.banner-demo .ic { font-size: 20px; margin-right: 10px; line-height: 1.1; }
.banner-demo button { color: var(--demo-texto); text-decoration: underline; font-weight: 700; font-size: 13px; }

.saludo { font-size: 22px; font-weight: 800; margin: 2px 2px 12px; }
.buscador {
  display: flex; align-items: center; width: 100%;
  background: var(--blanco); border: 1px solid var(--borde); border-radius: 12px;
  padding: 12px 14px; color: var(--texto-2); box-shadow: var(--sombra); text-align: left; margin-bottom: 12px;
}
.buscador svg { margin-right: 10px; color: var(--marca); }
.buscador input { border: 0; outline: 0; flex: 1; background: none; color: var(--texto); min-width: 0; }

.chips { display: flex; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -14px; padding-left: 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: flex; flex-direction: column; align-items: center; width: 76px; margin-right: 8px;
  padding: 10px 4px 8px; border-radius: 14px; background: var(--blanco); border: 1px solid var(--borde);
  font-size: 11.5px; font-weight: 600; text-align: center; line-height: 1.15;
}
.chip .e { font-size: 26px; margin-bottom: 4px; }
.chip.activo { background: var(--marca-claro); border-color: var(--marca); color: var(--marca-osc); }
.chip-txt { flex: none; margin-right: 8px; padding: 8px 14px; border-radius: 99px; background: var(--blanco); border: 1px solid var(--borde); font-weight: 600; font-size: 13.5px; }

/* tarjetas de comercio */
.comercio {
  display: flex; width: 100%; text-align: left; align-items: center;
  background: var(--blanco); border-radius: var(--radio); padding: 12px; margin-bottom: 10px;
  box-shadow: var(--sombra);
}
.comercio:active, .tarjeta-pedido:active { transform: scale(.99); }
.avatar { width: 58px; height: 58px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 30px; flex: none; margin-right: 12px; }
.comercio .info { flex: 1; min-width: 0; }
.comercio .nombre { font-weight: 700; font-size: 15.5px; }
.comercio .desc { font-size: 12.5px; color: var(--texto-2); margin: 2px 0 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.datos { font-size: 12px; color: var(--texto-2); }
.datos span { margin-right: 10px; white-space: nowrap; }
.etiqueta-demo { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .5px; color: var(--demo-texto); background: var(--demo-fondo); border-radius: 6px; padding: 2px 6px; margin-left: 6px; vertical-align: 2px; }

.pedido-activo {
  display: flex; align-items: center; width: 100%; text-align: left;
  background: var(--marca-claro); border: 1px solid #BFE6D3; border-radius: var(--radio); padding: 12px; margin-top: 12px;
}
.pedido-activo .e { font-size: 28px; margin-right: 12px; }
.pedido-activo b { color: var(--marca-osc); }

/* tienda */
.hero { background: var(--blanco); border-radius: var(--radio); padding: 16px; box-shadow: var(--sombra); display: flex; align-items: center; }
.hero .avatar { width: 70px; height: 70px; font-size: 38px; }
.hero h1 { font-size: 19px; margin: 0 0 3px; }
.hero p { margin: 0 0 6px; font-size: 13px; color: var(--texto-2); }
.nota-demo { font-size: 12px; color: var(--demo-texto); background: var(--demo-fondo); border-radius: 10px; padding: 8px 10px; margin-top: 10px; }

.producto { display: flex; align-items: center; background: var(--blanco); border-radius: var(--radio); padding: 10px 12px; margin-bottom: 8px; box-shadow: var(--sombra); }
.producto .foto { width: 54px; height: 54px; border-radius: 12px; background: var(--fondo); display: flex; align-items: center; justify-content: center; font-size: 28px; flex: none; margin-right: 12px; }
.producto .info { flex: 1; min-width: 0; }
.producto .nombre { font-weight: 600; }
.producto .detalle { font-size: 12.5px; color: var(--texto-2); }
.producto .precio { font-weight: 800; margin-top: 3px; }
.producto .de { font-size: 11.5px; color: var(--marca-osc); font-weight: 600; }

.btn-agregar { background: var(--marca); color: #fff; font-weight: 700; border-radius: 10px; padding: 8px 14px; font-size: 14px; }
.btn-agregar:active { background: var(--marca-osc); }
.paso { display: flex; align-items: center; background: var(--marca-claro); border-radius: 10px; }
.paso button { width: 36px; height: 36px; font-size: 20px; font-weight: 700; color: var(--marca-osc); border-radius: 10px; }
.paso button:active { background: #CDEBDD; }
.paso span { min-width: 22px; text-align: center; font-weight: 800; }

/* barra carrito */
#barra-carrito { flex: none; padding: 0 12px; background: var(--fondo); }
#barra-carrito:empty { display: none; }
.boton-carrito {
  display: flex; align-items: center; width: 100%; margin: 8px 0;
  background: var(--marca-osc); color: #fff; border-radius: 14px; padding: 13px 16px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(11, 127, 88, .35);
}
.boton-carrito .cant { background: rgba(255, 255, 255, .22); border-radius: 8px; padding: 2px 9px; margin-right: 10px; }
.boton-carrito .txt { flex: 1; text-align: left; }

/* navegación */
#navegacion { flex: none; display: flex; background: var(--blanco); border-top: 1px solid var(--borde); padding: 4px 4px 6px; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 6px 0 2px; color: #8A9692; font-size: 11.5px; font-weight: 600; position: relative; }
.tab svg { margin-bottom: 2px; }
.tab.activo { color: var(--marca); }
.insignia { position: absolute; top: 1px; left: 50%; margin-left: 6px; background: var(--peligro); color: #fff; font-size: 10.5px; font-weight: 800; border-radius: 99px; min-width: 18px; height: 18px; line-height: 18px; text-align: center; padding: 0 4px; }

/* tarjetas genéricas */
.tarjeta { background: var(--blanco); border-radius: var(--radio); padding: 14px; box-shadow: var(--sombra); margin-bottom: 12px; }
.tarjeta h2 { font-size: 15.5px; margin: 0 0 10px; }
.linea { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.linea.total { font-size: 17px; font-weight: 800; border-top: 1px dashed var(--borde); margin-top: 6px; padding-top: 10px; }
.linea .ej { font-size: 11px; color: var(--demo-texto); background: var(--demo-fondo); border-radius: 5px; padding: 1px 5px; margin-left: 4px; }

.item-carrito { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--borde); }
.item-carrito:last-child { border-bottom: 0; }
.item-carrito .e { font-size: 26px; width: 40px; flex: none; }
.item-carrito .info { flex: 1; min-width: 0; padding-right: 8px; }
.item-carrito .sub { font-size: 12.5px; color: var(--texto-2); }

.boton { display: block; width: 100%; background: var(--marca); color: #fff; font-weight: 800; font-size: 16px; padding: 15px; border-radius: 14px; text-align: center; box-shadow: 0 6px 16px rgba(14, 159, 110, .3); }
.boton:active { background: var(--marca-osc); }
.boton[disabled] { background: #A9B5B1; box-shadow: none; }
.boton-sec { display: block; width: 100%; background: var(--blanco); color: var(--marca-osc); border: 1.5px solid var(--marca); font-weight: 700; padding: 12px; border-radius: 14px; text-align: center; margin-top: 10px; }
.boton-peligro { color: var(--peligro); border-color: #F0B7B7; }
.enlace { color: var(--marca-osc); font-weight: 700; text-decoration: underline; }
.alerta { background: #FDECEC; color: #8F2525; border-radius: 10px; padding: 9px 11px; font-size: 13px; margin-top: 8px; }

/* formulario */
.campo { margin-bottom: 12px; }
.campo label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 5px; }
.campo label small { font-weight: 500; color: var(--texto-2); }
.campo input, .campo textarea {
  width: 100%; border: 1.5px solid var(--borde); border-radius: 11px; padding: 11px 12px; background: #FBFCFC; outline: 0;
}
.campo textarea { resize: none; min-height: 64px; }
.campo input:focus, .campo textarea:focus { border-color: var(--marca); background: #fff; }
.campo.error input, .campo.error textarea { border-color: var(--peligro); }
.campo .msg { color: var(--peligro); font-size: 12px; margin-top: 4px; display: none; }
.campo.error .msg { display: block; }
.fijo { background: var(--fondo); border-radius: 11px; padding: 10px 12px; font-size: 13.5px; }

.opcion-pago { display: flex; align-items: center; width: 100%; padding: 12px; border: 1.5px solid var(--borde); border-radius: 12px; margin-bottom: 8px; text-align: left; background: #fff; }
.opcion-pago .e { font-size: 22px; margin-right: 10px; }
.opcion-pago .t { flex: 1; font-weight: 600; }
.opcion-pago .r { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #A9B5B1; }
.opcion-pago.activo { border-color: var(--marca); background: var(--marca-claro); }
.opcion-pago.activo .r { border: 6px solid var(--marca); }
.check { display: flex; align-items: center; font-size: 13.5px; margin-top: 4px; }
.check input { width: 18px; height: 18px; margin: 0 8px 0 0; accent-color: var(--marca); }

/* pedido */
.exito { text-align: center; padding: 8px 6px 4px; }
.exito .e { font-size: 54px; }
.exito h1 { font-size: 21px; margin: 6px 0 4px; }
.exito p { margin: 0; color: var(--texto-2); font-size: 13.5px; }
.estado-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--marca-claro); color: var(--marca-osc); }
.estado-pill.fin { background: #E8EEF9; color: #2B4C8C; }
.estado-pill.cancel { background: #FDECEC; color: #8F2525; }
.linea-tiempo { margin: 4px 0 0; padding: 0; list-style: none; }
.linea-tiempo li { display: flex; position: relative; padding-bottom: 16px; }
.linea-tiempo li:last-child { padding-bottom: 0; }
.linea-tiempo li:before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--borde); }
.linea-tiempo li:last-child:before { display: none; }
.linea-tiempo li.hecho:before { background: var(--marca); }
.linea-tiempo .punto { width: 32px; height: 32px; border-radius: 50%; background: var(--fondo); border: 2px solid var(--borde); display: flex; align-items: center; justify-content: center; font-size: 15px; flex: none; margin-right: 12px; z-index: 1; filter: grayscale(1); opacity: .6; }
.linea-tiempo li.hecho .punto { background: var(--marca-claro); border-color: var(--marca); filter: none; opacity: 1; }
.linea-tiempo li.actual .punto { box-shadow: 0 0 0 5px rgba(14, 159, 110, .18); }
.linea-tiempo .t { font-weight: 700; }
.linea-tiempo li:not(.hecho) .t { color: #8A9692; }
.linea-tiempo .d { font-size: 12.5px; color: var(--texto-2); }

.tarjeta-pedido { display: block; width: 100%; text-align: left; background: var(--blanco); border-radius: var(--radio); padding: 13px; box-shadow: var(--sombra); margin-bottom: 10px; }
.tarjeta-pedido .fila { display: flex; justify-content: space-between; align-items: center; }
.tarjeta-pedido .num { font-weight: 800; }

.vacio { text-align: center; padding: 50px 20px 20px; }
.vacio .e { font-size: 60px; }
.vacio h2 { margin: 10px 0 6px; font-size: 19px; }
.vacio p { color: var(--texto-2); margin: 0 0 18px; }

.lista-info { padding-left: 18px; margin: 6px 0; }
.lista-info li { margin-bottom: 6px; font-size: 14px; }

/* modal y aviso */
#modal { position: fixed; inset: 0; background: rgba(10, 20, 15, .45); display: flex; align-items: flex-end; justify-content: center; z-index: 20; }
#modal.oculto { display: none; }
.hoja { background: #fff; width: 100%; max-width: 480px; border-radius: 20px 20px 0 0; padding: 20px 18px 18px; animation: subir .18s ease-out; }
.hoja h3 { margin: 0 0 8px; font-size: 18px; }
.hoja p { margin: 0 0 16px; color: var(--texto-2); }
.hoja .botones { display: flex; }
.hoja .botones button { flex: 1; padding: 13px; border-radius: 12px; font-weight: 700; }
.hoja .botones .no { background: var(--fondo); margin-right: 10px; }
.hoja .botones .si { background: var(--marca); color: #fff; }
.hoja .botones .si.peligro { background: var(--peligro); }
@keyframes subir { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

#aviso {
  position: fixed; left: 50%; bottom: 140px; transform: translateX(-50%) translateY(20px);
  background: #1F2A26; color: #fff; padding: 10px 16px; border-radius: 99px; font-size: 13.5px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 30; white-space: nowrap; max-width: 92%;
  overflow: hidden; text-overflow: ellipsis;
}
#aviso.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =====================================================================
   DISEÑO v1.0: tipografía del logo, colores más vivos, tarjetas grandes,
   carrusel y transiciones.
   ===================================================================== */
@font-face { font-family: 'Fredoka'; src: url('fuentes/Fredoka-Variable.ttf') format('truetype'); font-weight: 300 700; font-display: swap; }
.saludo, .seccion-titulo, .hero-info h1, .cab-titulo, .vacio h2, .exito h1, .tarjeta h2, .reloj .titulo, .cat-txt, .promo b, .tarjeta-tienda .nombre, .login h1, .hoja h3, .instalar-caja h3 {
  font-family: 'Fredoka', Roboto, "Segoe UI", system-ui, sans-serif; letter-spacing: .1px; word-spacing: 1.5px;
}
#cabecera { border-radius: 0 0 22px 22px; box-shadow: 0 6px 18px rgba(11, 127, 88, .28); position: relative; z-index: 2; }
.ubicacion { background: rgba(255, 255, 255, .16); display: inline-block; padding: 3px 10px; border-radius: 99px; margin-top: 6px; }
#vista { padding-top: 16px; }

/* Botones con respuesta al toque */
button, .boton, .boton-sec, .comercio, .cat, .tienda-circ, .tarjeta-pedido { transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease; }
button:active, .boton:active, .boton-sec:active { transform: scale(.97); }
.comercio:active, .cat:active, .tienda-circ:active, .tarjeta-pedido:active { transform: scale(.98); }

/* Saludo y buscador */
.saludo-caja { margin: 2px 2px 12px; }
.saludo-caja .saludo { margin: 0; font-size: 24px; font-weight: 600; }
.saludo-caja p { margin: 2px 0 0; color: var(--texto-2); font-size: 15px; }
.buscador.grande { justify-content: space-between; border-radius: 99px; padding: 7px 7px 7px 18px; border: 1.5px solid #E1E8E5; box-shadow: 0 3px 12px rgba(16, 40, 30, .07); }
.buscador.grande .lupa-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--marca); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.buscador.grande .lupa-btn svg { margin: 0; color: #fff; width: 20px; height: 20px; }

/* Categorías: tarjetas grandes con ilustración (3 por fila) */
.cats { display: flex; flex-wrap: wrap; margin: 4px -5px 6px; }
.cat { width: calc(33.33% - 10px); margin: 5px; background: var(--blanco); border-radius: 18px; padding: 10px 6px 9px; box-shadow: var(--sombra); display: flex; flex-direction: column; align-items: center; border: 2px solid transparent; }
.cat-ilus { width: 64px; height: 64px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 38px; margin-bottom: 6px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .08)); }
.cat-txt { font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.15; min-height: 29px; display: flex; align-items: center; }
.cat.activo { border-color: var(--marca); background: var(--marca-claro); }

/* Tiendas en círculos (fila deslizable) */
.tiendas-fila { display: flex; overflow-x: auto; margin: 8px -14px 4px; padding: 6px 14px 8px; scrollbar-width: none; }
.tiendas-fila::-webkit-scrollbar { display: none; }
.tienda-circ { flex: none; width: 74px; margin-right: 8px; display: flex; flex-direction: column; align-items: center; }
.tienda-circ .circ { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 3px 10px rgba(0, 0, 0, .10); border: 3px solid #fff; }
.tienda-circ .tc-nom { font-size: 11.5px; font-weight: 600; margin-top: 5px; text-align: center; line-height: 1.15; max-height: 2.3em; overflow: hidden; }
.tienda-circ.cerrada .circ { filter: grayscale(.85); opacity: .6; }

/* Carrusel */
.promos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 10px 0 0; border-radius: 20px; scrollbar-width: none; }
.promos::-webkit-scrollbar { display: none; }
.promo { flex: none; width: 100%; scroll-snap-align: start; display: flex; align-items: center; min-height: 118px; padding: 16px 16px 16px 18px; border-radius: 20px; }
.promo-txt { flex: 1; display: flex; flex-direction: column; }
.promo b { font-size: 19px; line-height: 1.15; margin-bottom: 6px; font-weight: 600; }
.promo span { font-size: 13px; line-height: 1.3; }
.promo .promo-ilus { font-size: 54px; line-height: 1; margin-left: 10px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .15)); animation: flota 3s ease-in-out infinite; }
.promo-verde { background: linear-gradient(120deg, #0E9F6E, #2CC08C); color: #fff; }
.promo-amarilla { background: linear-gradient(120deg, #FFC93C, #FFE08A); color: #3B2A00; }
.promo-coral { background: linear-gradient(120deg, #FF7A59, #FFA585); color: #fff; }
.puntos { display: flex; justify-content: center; margin: 8px 0 2px; }
.puntos i { width: 7px; height: 7px; border-radius: 99px; background: #CCD6D2; margin: 0 3px; transition: width .3s, background .3s; }
.puntos i.on { width: 20px; background: var(--marca); }
@keyframes flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* Tarjetas de tienda con portada */
.tarjeta-tienda { flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; border-radius: 20px; position: relative; margin-bottom: 14px; }
.tarjeta-tienda .info { padding: 10px 14px 12px; }
.tarjeta-tienda .nombre { font-size: 17px; font-weight: 600; }
.portada { position: relative; overflow: hidden; width: 100%; }
.portada-ico { position: absolute; left: 14px; bottom: 10px; width: 58px; height: 58px; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 34px; box-shadow: 0 4px 12px rgba(0, 0, 0, .14); }
.portada .pi { position: absolute; font-size: 34px; opacity: .9; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .15)); }
.portada .pi0 { right: 22px; top: 14px; transform: rotate(-8deg); }
.portada .pi1 { right: 74px; top: 44px; transform: rotate(10deg); font-size: 28px; }
.portada .pi2 { right: 20px; bottom: 6px; transform: rotate(6deg); font-size: 30px; }
.sello-cerrado { position: absolute; top: 10px; left: 10px; background: rgba(28, 36, 33, .78); color: #fff; font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 99px; letter-spacing: .4px; }
.tarjeta-tienda.cerrada .portada { filter: grayscale(.7); }
.tarjeta-tienda .datos span { background: var(--fondo); padding: 2px 8px; border-radius: 99px; margin-right: 6px; display: inline-block; margin-top: 4px; }

/* Tienda: portada grande y secciones */
.hero-tienda { background: var(--blanco); border-radius: 22px; overflow: hidden; box-shadow: var(--sombra); }
.hero-info { padding: 12px 16px 14px; }
.hero-info h1 { font-size: 22px; margin: 0 0 2px; font-weight: 600; }
.hero-info p { margin: 0 0 8px; color: var(--texto-2); font-size: 13.5px; }
.pildoras-info span { display: inline-block; background: var(--marca-claro); color: var(--marca-osc); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; margin: 0 6px 6px 0; }
.chips.secciones { position: sticky; top: 0; z-index: 1; background: var(--fondo); padding-top: 8px; padding-bottom: 8px; margin-top: 4px; }

/* Productos */
.producto { border-radius: 18px; padding: 10px; }
.producto .foto { width: 64px; height: 64px; border-radius: 16px; font-size: 34px; }
.producto .precio { color: var(--marca-osc); font-size: 15.5px; }
.btn-agregar { width: 40px; height: 40px; border-radius: 50%; padding: 0; font-size: 24px; font-weight: 600; line-height: 40px; box-shadow: 0 4px 10px rgba(14, 159, 110, .35); }
.paso { border-radius: 99px; }

/* Pedido en curso en el inicio */
.pedido-activo { box-shadow: 0 6px 18px rgba(14, 159, 110, .18); border-radius: 18px; animation: brillo 2.4s ease-in-out infinite; }
.pa-txt { flex: 1; }
.pa-barra { display: block; height: 6px; border-radius: 99px; background: #CDEBDD; margin-top: 8px; overflow: hidden; }
.pa-barra i { display: block; height: 100%; background: var(--marca); border-radius: 99px; transition: width .6s ease; }
@keyframes brillo { 0%, 100% { box-shadow: 0 6px 18px rgba(14, 159, 110, .16); } 50% { box-shadow: 0 6px 24px rgba(14, 159, 110, .34); } }

/* Barra de navegación */
#navegacion { border-radius: 20px 20px 0 0; box-shadow: 0 -4px 16px rgba(16, 40, 30, .06); border-top: 0; }
.tab.activo svg { background: var(--marca-claro); border-radius: 99px; padding: 3px 15px; width: 52px; height: 28px; margin-bottom: 0; }
.tab:not(.activo) svg { margin: 3px 0 5px; }
.tab svg { transition: background .25s, padding .25s; }

/* Transiciones entre pantallas y "rebote" */
#vista.anim-adelante > * { animation: entraDer .32s cubic-bezier(.2, .8, .2, 1) backwards; }
#vista.anim-atras > * { animation: entraIzq .32s cubic-bezier(.2, .8, .2, 1) backwards; }
#vista.anim-tab > * { animation: subeSuave .34s ease-out backwards; }
#vista.anim-tab > *:nth-child(2), #vista.anim-adelante > *:nth-child(2) { animation-delay: .03s; }
#vista.anim-tab > *:nth-child(3), #vista.anim-adelante > *:nth-child(3) { animation-delay: .06s; }
#vista.anim-tab > *:nth-child(4), #vista.anim-adelante > *:nth-child(4) { animation-delay: .09s; }
#vista.anim-tab > *:nth-child(5), #vista.anim-adelante > *:nth-child(5) { animation-delay: .12s; }
#vista.anim-tab > *:nth-child(n+6), #vista.anim-adelante > *:nth-child(n+6) { animation-delay: .15s; }
@keyframes entraDer { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes entraIzq { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes subeSuave { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.salta { animation: salta .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes salta { 0% { transform: scale(1); } 35% { transform: scale(1.08); } 100% { transform: scale(1); } }
.boton-carrito { border-radius: 18px; background: linear-gradient(120deg, var(--marca-osc), var(--marca)); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   v1.1: pantalla de inicio (logo que se llena), carga, ayuda y redes
   ===================================================================== */
#arranque { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 42%, #16B883 0%, #0E9F6E 48%, #0B7F58 100%); color: #fff; transition: opacity .45s ease, transform .45s ease; }
#arranque.ctrl { background: radial-gradient(circle at 50% 42%, #2C3A5C 0%, #1F2A44 50%, #141C2E 100%); }
#arranque.fuera { opacity: 0; transform: scale(1.06); pointer-events: none; }
.arr-logo { position: relative; width: 230px; max-width: 64vw; animation: latido 1.8s ease-in-out 1.5s infinite; }
.arr-logo img { display: block; width: 100%; height: auto; }
.arr-base { opacity: .22; }
.arr-relleno { position: absolute; left: 0; top: 0; clip-path: inset(0 100% 0 0); -webkit-clip-path: inset(0 100% 0 0); animation: rellena 1.25s cubic-bezier(.65, .05, .3, 1) .15s forwards; }
.arr-lema { margin: 18px 0 0; font-family: 'Fredoka', Roboto, sans-serif; font-size: 15.5px; letter-spacing: .3px; opacity: 0; animation: aparece .5s ease 1.05s forwards; }
.arr-barra { width: 110px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .2); margin-top: 22px; overflow: hidden; opacity: 0; animation: aparece .4s ease 1.3s forwards; }
.arr-barra i { display: block; width: 40%; height: 100%; border-radius: 99px; background: #FFB020; animation: barrido 1.1s ease-in-out infinite; }
@keyframes rellena { to { clip-path: inset(0 0 0 0); -webkit-clip-path: inset(0 0 0 0); } }
@keyframes latido { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes aparece { to { opacity: .95; } }
@keyframes barrido { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
/* Dentro de la app (si la conexión tarda): el mismo logo, en color, llenándose una y otra vez */
.cargando { display: flex; flex-direction: column; align-items: center; padding: 70px 20px; color: var(--texto-2); }
.cargando .arr-logo { width: 190px; animation: none; }
.cargando .arr-relleno { animation: rellena 1.3s cubic-bezier(.65, .05, .3, 1) infinite alternate; }
.cargando p { margin: 16px 0 0; font-family: 'Fredoka', Roboto, sans-serif; font-size: 15px; }
.moto-anim { display: inline-block; animation: moto 1.2s ease-in-out infinite; }
@keyframes moto { 0%, 100% { transform: translateX(-10px) rotate(-2deg); } 50% { transform: translateX(10px) rotate(2deg); } }
.banner-demo.en-linea { background: linear-gradient(120deg, #E6F6EF, #F3FBF7); border-color: #BFE6D3; color: var(--marca-osc); }
@media (prefers-reduced-motion: reduce) {
  .arr-relleno { clip-path: none !important; -webkit-clip-path: none !important; }
  .arr-lema, .arr-barra { opacity: .95 !important; }
}

/* Ayuda: atención al cliente y redes */
.ayuda-hero { background: linear-gradient(130deg, var(--marca) 0%, #2CC08C 100%); color: #fff; border-radius: 22px; padding: 18px 18px 16px; position: relative; overflow: hidden; margin-bottom: 14px; }
.ayuda-hero h1 { font-family: 'Fredoka', Roboto, sans-serif; font-weight: 600; font-size: 22px; margin: 0 0 4px; }
.ayuda-hero p { margin: 0; font-size: 14px; opacity: .95; max-width: 78%; }
.ayuda-hero .e { position: absolute; right: 12px; bottom: 6px; font-size: 52px; animation: flota 3s ease-in-out infinite; }
.contacto { display: flex; align-items: center; width: 100%; background: var(--blanco); border-radius: 18px; padding: 14px; margin-bottom: 10px; box-shadow: var(--sombra); text-align: left; text-decoration: none; color: var(--texto); }
.contacto .ic { width: 48px; height: 48px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex: none; margin-right: 12px; color: #fff; }
.contacto .ic svg { width: 26px; height: 26px; fill: #fff; }
.contacto .tx { flex: 1; min-width: 0; }
.contacto .tx b { display: block; font-size: 15.5px; }
.contacto .tx span { font-size: 13px; color: var(--texto-2); overflow-wrap: anywhere; }
.contacto .ir { color: #9AA6A2; font-size: 22px; margin-left: 8px; }
.contacto.inactivo { opacity: .55; }
.ic.wsp { background: #25D366; } .ic.mail { background: #EA4335; } .ic.tel { background: #2B6DE0; }
.ic.fb { background: #1877F2; } .ic.ig { background: linear-gradient(45deg, #F58529, #DD2A7B 55%, #8134AF); } .ic.tt { background: #111; } .ic.yt { background: #FF0000; }
.seccion-ayuda { font-family: 'Fredoka', Roboto, sans-serif; font-weight: 600; font-size: 17px; margin: 18px 2px 10px; }
.redes-fila { display: flex; flex-wrap: wrap; margin: 0 -5px; }
.redes-fila .contacto { width: calc(50% - 10px); margin: 0 5px 10px; flex-direction: column; text-align: center; padding: 14px 8px; }
.redes-fila .contacto .ic { margin: 0 0 8px; }
.redes-fila .contacto .ir { display: none; }
.ayuda-mini { display: flex; align-items: center; background: var(--blanco); border-radius: 18px; padding: 12px 14px; box-shadow: var(--sombra); margin: 4px 0 14px; width: 100%; text-align: left; }
.ayuda-mini .e { font-size: 28px; margin-right: 12px; }
.ayuda-mini b { display: block; }
.ayuda-mini span { font-size: 13px; color: var(--texto-2); }

/* v1.2: modificar / cancelar pedido (cliente) y cambio pedido (Control) */
.botones-pedido { display: flex; gap: 8px; margin-top: 10px; }
.botones-pedido .boton-sec { flex: 1; margin-top: 0; }
.cambio-pend { background: #FFF6DD; color: #6B4A00; border-left: 4px solid var(--acento); animation: brillo 2.4s ease-in-out infinite; }
.cambio-sol { border: 2px solid var(--acento); box-shadow: 0 6px 18px rgba(255, 176, 32, .22); }
.cambio-sol .linea.cambio { background: #FFF6DD; border-radius: 8px; padding-left: 6px; padding-right: 6px; }
.cambio-sol .linea.muted { color: var(--texto-2); }
.cambio-badge { margin-top: 6px; background: #FFF6DD; color: #6B4A00; font-size: 12.5px; font-weight: 700; border-radius: 8px; padding: 4px 8px; display: inline-block; }

/* v1.3: Libro de Reclamaciones y calificación */
.selector { width: 100%; min-width: 0; border: 1.5px solid var(--borde); border-radius: 11px; padding: 10px 8px; background: #FBFCFC; font: inherit; }
.check { align-items: flex-start; line-height: 1.35; }
.check input { flex: none; margin-top: 1px; }
.lr-cab { display: flex; align-items: center; background: #FFF; border-radius: 18px; padding: 14px; box-shadow: var(--sombra); margin-bottom: 10px; border-left: 6px solid #C62828; }
.lr-cab .lr-libro { font-size: 40px; margin-right: 12px; }
.lr-cab h1 { font-family: 'Fredoka', Roboto, sans-serif; font-weight: 600; font-size: 20px; margin: 0; }
.lr-cab p { margin: 0; color: var(--texto-2); font-size: 13px; }
.lr-prov { display: flex; flex-direction: column; background: #FAFBFB; border: 1px dashed var(--borde); border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; font-size: 12.5px; color: var(--texto-2); }
.lr-prov b { color: var(--texto); font-size: 13.5px; }
.lr h2, .constancia h2 { font-size: 14.5px; margin: 10px 0 6px; }
.lr h2:first-child, .constancia h2:first-child { margin-top: 0; }
.lr-def { font-size: 12.5px; color: var(--texto-2); margin: 8px 0 0; }
.lr-leyenda { font-size: 11.5px; color: var(--texto-2); margin: 8px 2px 0; line-height: 1.4; }
.lr-pie { display: flex; align-items: center; justify-content: center; width: 100%; margin: 4px 0 6px; padding: 10px; border: 1.5px solid #E7C3C3; border-radius: 14px; background: #FFF; color: #8F2525; font-weight: 700; font-size: 13.5px; }
.lr-pie span { font-size: 20px; margin-right: 8px; }
.ic.lr-ic { background: #FDECEC; font-size: 24px; }
.lr-resp { border-left: 4px solid var(--marca); }
.reclamo.resuelto { opacity: .8; }
.fila-rec { width: 100%; text-align: left; }
.lr-detalle { margin-top: 10px; border-top: 1px dashed var(--borde); padding-top: 10px; font-size: 13.5px; }
.lr-detalle > div { margin-bottom: 4px; }
.calif { border: 2px solid #FFE08A; }
.estrellas { display: flex; justify-content: center; gap: 6px; margin: 4px 0; }
.estrella { font-size: 40px; line-height: 1; color: #D9DEDC; transition: transform .15s, color .15s; }
.estrella.on { color: #FFB020; transform: scale(1.06); }
.estrella:active { transform: scale(1.25); }
.estrellas-fijas { color: #FFB020; font-size: 22px; letter-spacing: 2px; }
.estrellas-fijas small { color: var(--texto-2); font-size: 13px; letter-spacing: 0; }
.calif-invita { display: flex; align-items: center; width: 100%; text-align: left; background: linear-gradient(120deg, #FFF6DD, #FFFBEF); border: 1.5px solid #FFE08A; border-radius: 18px; padding: 12px 14px; margin-bottom: 12px; }
.calif-invita .e { font-size: 30px; margin-right: 12px; animation: flota 3s ease-in-out infinite; }
.calif-invita b { display: block; }
.calif-invita span span { font-size: 13px; color: var(--texto-2); }
.calif-mini { margin-top: 6px; color: #B37A00; font-size: 13px; }
.calif-mini.baja, .calif-ctrl.baja .estrellas-fijas { color: var(--peligro); }
.calif-ctrl.baja { border: 2px solid #F3C1C1; }
.calif-prom { display: flex; align-items: center; margin-bottom: 8px; }
.calif-prom b { font-family: 'Fredoka', Roboto, sans-serif; font-size: 40px; margin-right: 12px; color: #B37A00; }
.calif-prom span { color: #FFB020; font-size: 20px; line-height: 1.2; }

/* v1.4: selector de rol (una sola app para clientes, repartidores y tiendas) */
.roles { display: flex; flex-direction: column; align-items: center; padding-top: 6px; }
.roles h1 { font-family: 'Fredoka', Roboto, sans-serif; font-weight: 600; font-size: 22px; text-align: center; margin: 12px 0 16px; }
.rol { width: 100%; background: var(--blanco); border-radius: 20px; box-shadow: var(--sombra); display: flex; align-items: center; text-align: left; padding: 16px; border: 2px solid transparent; }
.rol .e { font-size: 34px; margin-right: 12px; }
.rol b { display: block; font-size: 16px; }
.rol small { display: block; color: var(--texto-2); font-size: 12.5px; margin-top: 2px; }
.rol.principal { background: linear-gradient(120deg, var(--marca), #2CC08C); color: #fff; padding: 20px 16px; box-shadow: 0 8px 22px rgba(14, 159, 110, .35); }
.rol.principal small { color: rgba(255, 255, 255, .9); }
.rol.principal .e { font-size: 44px; }
.roles-sep { color: var(--texto-2); font-size: 13px; margin: 18px 0 8px; }
.roles-socios { display: flex; gap: 10px; width: 100%; }
.roles-socios .rol { flex-direction: column; text-align: center; padding: 14px 8px; }
.roles-socios .rol .e { margin: 0 0 6px; }
.rol-cambio { display: block; width: 100%; text-align: center; margin: 10px 0; padding: 10px; border-radius: 14px; border: 1.5px dashed var(--borde); color: var(--texto-2); font-size: 13px; background: transparent; }
.rol-cambio b { color: var(--marca-osc); }

/* v1.4: tu repartidor (foto, nombre y la moto en el mapa en vivo) */
.rep-cliente { background: linear-gradient(120deg, #FFF4EC, #FFFFFF); border: 1.5px solid #FFD8C2; border-radius: 16px; padding: 10px 12px; margin: 10px 0; }
.rep-fila { display: flex; align-items: center; }
.rep-foto { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .15); display: inline-flex; align-items: center; justify-content: center; font-size: 26px; background: #FFE3D3; flex: none; }
.rep-tx { flex: 1; margin-left: 10px; }
.rep-tx small { display: block; color: var(--texto-2); font-size: 12px; }
.rep-tx b { font-size: 16.5px; font-family: 'Fredoka', Roboto, sans-serif; font-weight: 600; }
.rep-llamar { background: var(--marca); color: #fff; font-weight: 700; font-size: 13px; padding: 8px 12px; border-radius: 99px; text-decoration: none; }
.mapa-seg { height: 200px; margin-top: 10px; border-radius: 14px; }
.pin-mapa.moto { font-size: 30px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .3)); transition: transform 1s linear; }
#seg-info { margin-top: 6px; font-size: 13px; }
