/* Esqueletos de carga de todo el sistema (pedir, panel del restaurante y admin).
   Una sola base: cada pantalla solo define la forma de lo que va a aparecer.
   Colores ajustables con --esq-a y --esq-b (por defecto, grises neutros). */
.esq-b { display: block; border-radius: 6px; background: linear-gradient(90deg, var(--esq-a, rgba(21, 20, 16, .09)) 25%, var(--esq-b, rgba(21, 20, 16, .045)) 50%, var(--esq-a, rgba(21, 20, 16, .09)) 75%); background-size: 200% 100%; animation: esq-barrido 1.4s linear infinite; }
@keyframes esq-barrido { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .esq-b { animation: none; } }
/* Panel del restaurante: tarjeta de pedido */
.esq-card { display: grid; gap: 14px; min-width: 0; padding: 16px; border: 1px solid var(--line, #eadfcb); border-radius: 14px; background: var(--paper, #fff); }
.esq-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.esq-card__top .esq-b:nth-child(1) { width: 38%; height: 24px; }
.esq-card__top .esq-b:nth-child(2) { width: 24%; height: 16px; }
.esq-card__lineas, .esq-card__totales { display: grid; gap: 8px; }
.esq-card__lineas .esq-b { height: 16px; }
.esq-card__lineas .esq-b:nth-child(1) { width: 78%; }
.esq-card__lineas .esq-b:nth-child(2) { width: 56%; }
.esq-card__totales { padding-top: 12px; border-top: 1px solid var(--line, #eadfcb); }
.esq-card__totales .esq-b { height: 14px; width: 100%; }
.esq-card__totales .esq-b:nth-child(3) { width: 70%; }
.esq-card__acciones { display: flex; gap: 10px; }
.esq-card__acciones .esq-b { flex: 1; height: 44px; border-radius: 8px; }
/* Admin: filas de negocio, pedidos, cifras y tabla */
.esq-negocio { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 6px 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--linea, #eadfcb); border-radius: 12px; background: #fff; list-style: none; }
.esq-negocio .esq-b:nth-child(1) { width: 52%; height: 18px; }
.esq-negocio .esq-b:nth-child(2) { grid-row: 2; width: 34%; height: 14px; }
.esq-negocio .esq-b:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; height: 22px; }
.esq-pedido { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--linea, #eadfcb); border-radius: 12px; background: #fff; list-style: none; }
.esq-pedido .esq-b:nth-child(1) { width: 40%; height: 18px; }
.esq-pedido .esq-b:nth-child(2) { width: 62%; height: 14px; }
.esq-pedido .esq-b:nth-child(3) { width: 48%; height: 14px; }
.esq-kpi { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--linea, #eadfcb); border-radius: 14px; background: #fff; }
.esq-kpi .esq-b:nth-child(1) { width: 46%; height: 30px; }
.esq-kpi .esq-b:nth-child(2) { width: 72%; height: 14px; }
.esq-tabla { display: grid; gap: 0; }
.esq-tabla-fila { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 16px; align-items: center; padding: 14px 12px; border-bottom: 1px solid var(--linea, #eadfcb); }
.esq-tabla-fila .esq-b { height: 14px; }
/* Tienda pública (pedir): banner, buscador, categorías y platos. Colores cálidos de la tienda. */
.esqueleto { --esq-a: #f0dcbb; --esq-b: #f8ead2; }
.esqueleto { display: grid; gap: 16px; max-width: 720px; margin: 0 auto; }
.esq-banner { display: flex; gap: 14px; align-items: center; min-height: 132px; padding: 20px 16px; border-radius: 8px; background: #ecd6b1; }
.esq-banner .esq-b { background: var(--papel); animation: none; }
.esq-logo { width: 64px; height: 64px; flex: none; border-radius: 50%; }
.esq-textos { flex: 1; display: grid; gap: 8px; min-width: 0; }
.esq-textos .esq-b { height: 14px; }
.esq-textos .esq-b:nth-child(1) { width: 62%; height: 20px; }
.esq-textos .esq-b:nth-child(2) { width: 100%; }
.esq-textos .esq-b:nth-child(3) { width: 38%; }
.esq-controles { display: grid; gap: 12px; }
.esq-buscador { height: 44px; }
.esq-chips { display: flex; gap: 8px; overflow: hidden; }
.esq-chips .esq-b { flex: none; width: 96px; height: 44px; }
.esq-seccion { width: 42%; height: 26px; }
.esq-fila { display: grid; grid-template-columns: 92px minmax(0, 1fr) 56px; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--linea); }
.esq-foto { width: 92px; height: 92px; border-radius: var(--r-m, 8px); }
.esq-fila > .esq-b:last-child { height: 20px; }
/* La hamburguesa solo aparece si la carga se alarga (más de 2,5 s). */
.inicio-estado:has(.esqueleto) { position: relative; padding-top: 16px; }
.inicio-estado:has(.esqueleto) > .cc-animated-icon { position: absolute; top: 190px; left: 50%; box-sizing: content-box; margin: 0; padding: 12px; background: var(--papel); border-radius: 12px; box-shadow: 0 6px 20px rgba(21, 20, 16, .18); transform: translateX(-50%); opacity: 0; animation: esq-lento .4s ease 2.5s forwards; }
@keyframes esq-lento { to { opacity: 1; } }
