/* ═══════════════════════════════════════════════════════════════════════════
   Las Pinchis Alitas — REDISEÑO de la app de clientes (aprobado el 25-sep-2026)
   Perfil · Mis pedidos · Carrito · Confirmar pedido · Barra de abajo

   Se carga DESPUÉS de app.css y sólo pisa lo necesario. Las referencias son los
   renders aprobados (propuesta-perfil y propuesta-pedidos): de ahí salen medidas,
   radios, sombras y colores. Las clases las pinta js/app.js; no se renombran.
   No toca /css/sistema.css ni /js/marca.js (se comparten con otros proyectos).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Colores del rediseño (con prefijo rd- para no chocar con app.css) ── */
:root {
  --rd-naranja: #FF9500;
  --rd-sobre-naranja: #2B1700;     /* texto encima del naranja: 7.8:1 */
  --rd-naranja-txt: #E07B00;       /* naranja como letra en botones de texto y barra */
  --rd-naranja-osc: #8A4B00;       /* naranja para letra chica sobre claro */
  --rd-verde: #16A34A;
  --rd-verde-cl: #DCFCE7;
  --rd-azul: #2563EB;
  --rd-azul-cl: #DBEAFE;
  --rd-fondo: #F2F2F7;
  --rd-tinta: #1C1C1E;
  --rd-gris: #636366;
  --rd-linea: #E5E5EA;
  --rd-sombra: 0 1px 3px rgba(0,0,0,.06);
  --rd-oscura: radial-gradient(120% 90% at 100% 0%, #6B3A0B 0%, rgba(107,58,11,0) 60%), linear-gradient(160deg, #3A1F06, #1E1003);
  --rd-fuente: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --rd-mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  /* La barra de abajo crece un poco (íconos de 26px + texto de 11px). Todo lo
     que se mide con --nav-h (el relleno de .page-content, el toast) la sigue. */
  --nav-h: 56px;
}

/* ═══ ENCABEZADO DE PÁGINA ══════════════════════════════════════════════════
   Perfil, Pedidos y Carrito traen su propio título grande (.pg-tit) y ocultan
   el encabezado global. El atributo data-pagina lo pone app.js en <body>. */
body[data-pagina="profile"] #app-header,
body[data-pagina="orders"] #app-header,
body[data-pagina="cart"] #app-header { display: none; }

.pg-tit {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 14px) 2px 12px;
  font-family: var(--rd-fuente);
}
.pg-tit h1 { font-size: 30px; font-weight: 800; letter-spacing: -.5px; line-height: 1.15; color: var(--rd-tinta); margin: 0; }
.pg-sub { font-size: 14px; color: var(--rd-gris); font-weight: 600; white-space: nowrap; }

/* Márgenes laterales de las tres páginas (antes cada tarjeta traía el suyo) */
#profile-content, #cart-content, #orders-content { padding: 0 16px; font-family: var(--rd-fuente); color: var(--rd-tinta); }

/* ═══ LOGO DE MARCA COMO MÁSCARA ════════════════════════════════════════════
   Toma el color del texto (currentColor): el mismo archivo sirve en claro y oscuro. */
.logo-marca {
  display: inline-block; width: 1.6em; height: 1em; flex: none;
  background: currentColor;
  -webkit-mask: url(/icons/ui/marca.png) center / contain no-repeat;
          mask: url(/icons/ui/marca.png) center / contain no-repeat;
}

/* ═══ PERFIL ════════════════════════════════════════════════════════════════ */

/* Tarjeta de socio (oscura) */
.pf-socio {
  position: relative; overflow: hidden; border-radius: 24px;
  padding: 20px 18px 16px; color: #fff; background: var(--rd-oscura);
}
.pf-socio .pf-marca { position: absolute; right: -26px; top: -18px; width: 170px; height: 104px; opacity: .09; color: #fff; pointer-events: none; }
.pf-fila { display: flex; align-items: center; gap: 14px; position: relative; }
/* El fondo de .pf-av lo pone app.js con el color del nivel VIP: se ve como aro de 3px. */
.pf-av { position: relative; flex: none; width: 84px; height: 84px; border-radius: 50%; padding: 3px; cursor: pointer; background: linear-gradient(135deg, #F6D97A, #C99A2E); }
.pf-av-in {
  width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  border: 3px solid #2A1604; background-color: #4A2604;
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -.5px;
}
.pf-av-in img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-cam {
  position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%;
  background: #fff; color: var(--rd-tinta); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.pf-cam .ico { width: 15px; height: 15px; }
.pf-quien { flex: 1; min-width: 0; }
.pf-nom { font-size: 21px; font-weight: 800; letter-spacing: -.3px; line-height: 1.2; overflow-wrap: anywhere; }
.pf-tel { color: #E3D3BE; font-size: 14px; margin-top: 2px; }
.pf-vip {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 5px 10px;
  border-radius: 999px; font-weight: 800; font-size: 12.5px; line-height: 1.2;
  color: #3A2600; background: linear-gradient(90deg, #F6D97A, #C99A2E);
}
.pf-vip .ico { width: 14px; height: 14px; }
.pf-prog { margin-top: 16px; position: relative; }
.pf-prog-t { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: #E3D3BE; }
.pf-prog-t b { color: #fff; }
.pf-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.14); margin-top: 7px; overflow: hidden; }
.pf-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #F6D97A, #C99A2E); }
.pf-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.12); position: relative;
}
.pf-stats > div { text-align: center; display: flex; flex-direction: column; min-width: 0; padding: 0 4px; }
.pf-stats > div + div { border-left: 1px solid rgba(255,255,255,.12); }
.pf-stats b { font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-stats span { font-size: 11.5px; color: #CDB895; }

/* Saldo para pagar */
.pf-saldo { background: #fff; border-radius: 22px; padding: 16px; margin-top: 14px; box-shadow: var(--rd-sombra); }
.pf-saldo-l { font-size: 13px; color: var(--rd-gris); font-weight: 600; }
.pf-saldo-tot { font-size: 36px; font-weight: 800; letter-spacing: -1px; margin-top: 2px; line-height: 1.1; color: var(--rd-tinta); }
.pf-saldo-tot small { font-size: 18px; font-weight: 700; color: var(--rd-gris); letter-spacing: 0; }
.pf-mezcla { display: flex; height: 10px; border-radius: 99px; overflow: hidden; margin: 12px 0 10px; background: var(--rd-linea); }
.pf-mezcla > span { display: block; height: 100%; transition: width .3s ease; }
.pf-mezcla .e { background: var(--rd-verde); }
.pf-mezcla .p { background: var(--rd-azul); }
.pf-partes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pf-parte { border-radius: 14px; padding: 10px 12px; min-width: 0; }
.pf-parte.e { background: var(--rd-verde-cl); }
.pf-parte.p { background: var(--rd-azul-cl); }
.pf-parte .n { font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.pf-parte.e .n { color: #166534; }
.pf-parte.p .n { color: #1E40AF; }
.pf-parte .n i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.pf-parte.e .n i { background: var(--rd-verde); }
.pf-parte.p .n i { background: var(--rd-azul); }
.pf-parte b { display: block; font-size: 19px; font-weight: 800; margin-top: 3px; color: var(--rd-tinta); }
.pf-parte span { font-size: 11.5px; color: var(--rd-gris); }
.pf-acc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }

/* Botón del perfil (también se usa en «No tienes pedidos en curso») */
.pf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; cursor: pointer;
  font: 700 14px/1.2 var(--rd-fuente); -webkit-tap-highlight-color: transparent;
}
.pf-btn .ico { width: 16px; height: 16px; }
.pf-btn.pri { background: var(--rd-naranja); color: var(--rd-sobre-naranja); }
.pf-btn.sec { background: var(--rd-fondo); color: var(--rd-tinta); }
.pf-btn:active { transform: scale(.98); }

/* Código de cliente: tarjeta naranja */
.pf-cod {
  position: relative; overflow: hidden; margin-top: 14px; border-radius: 22px; padding: 16px 18px;
  color: var(--rd-sobre-naranja); cursor: pointer;
  background: linear-gradient(135deg, #FFB340 0%, #FF9500 55%, #F07A00 100%);
  box-shadow: 0 8px 20px rgba(255,149,0,.28);
}
.pf-cod .pf-cod-marca { position: absolute; right: -18px; bottom: -26px; width: 150px; height: 92px; opacity: .16; color: var(--rd-sobre-naranja); pointer-events: none; }
.pf-cod-k { font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; opacity: .8; padding-right: 96px; }
.pf-cod-n { font: 800 38px/1 var(--rd-mono); letter-spacing: 6px; margin: 10px 0 6px; white-space: nowrap; position: relative; }
.pf-cod-p { font-size: 13px; max-width: 250px; position: relative; line-height: 1.35; }
.pf-cod-copiar {
  position: absolute; right: 14px; top: 12px; min-height: 36px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(43,23,0,.12); border-radius: 999px; padding: 0 14px; font-weight: 800; font-size: 13px;
}

/* Accesos rápidos */
.pf-accesos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.pf-ac {
  background: #fff; border: 0; border-radius: 18px; padding: 12px 4px 10px; min-height: 88px;
  text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.05); position: relative; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; font-family: var(--rd-fuente);
  -webkit-tap-highlight-color: transparent;
}
.pf-ac .ic { width: 40px; height: 40px; border-radius: 12px; margin: 0 auto 7px; display: flex; align-items: center; justify-content: center; }
.pf-ac .ic .ico { width: 20px; height: 20px; }
.pf-ac > span:last-child { font-size: 12px; font-weight: 600; color: var(--rd-tinta); white-space: nowrap; }
.pf-ac:active { transform: scale(.97); }

/* Título de sección con enlace */
.pf-sec-t { display: flex; justify-content: space-between; align-items: center; margin: 18px 4px 6px; }
.pf-sec-t h2 { font-size: 18px; font-weight: 800; color: var(--rd-tinta); margin: 0; }
.pf-sec-t button {
  background: none; border: 0; min-height: 44px; padding: 0 2px; cursor: pointer;
  font: 700 14px var(--rd-fuente); color: var(--rd-naranja-txt);
}

/* Ajustes agrupados, como en el iPhone */
.pf-gtit { font-size: 12.5px; color: var(--rd-gris); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin: 18px 6px 7px; }
.pf-grupo { background: #fff; border-radius: 18px; overflow: hidden; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.pf-grupo + .pf-grupo { margin-top: 14px; }
.profile-menu-item.pf-item {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 14px;
  border-bottom: 0; -webkit-tap-highlight-color: transparent;
}
.pf-grupo > .pf-item:not(:first-child) { border-top: 1px solid var(--rd-linea); }
.profile-menu-item.pf-item:hover, .profile-menu-item.pf-item:active { background: #F7F7FA; }
.pf-item-ic { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: none; }
.pf-item-ic .ico { width: 17px; height: 17px; }
.pf-item .pm-label { flex: 1; min-width: 0; font-size: 15.5px; color: var(--rd-tinta); }
.pf-item .pm-label small { display: block; color: var(--rd-gris); font-size: 12.5px; margin-top: 1px; }
.pf-item .pm-arrow { color: #C7C7CC; font-size: 20px; line-height: 1; }
.pf-item-v { color: var(--rd-gris); font-size: 14px; white-space: nowrap; }
.pf-item-v.off { color: var(--rd-naranja-osc); font-weight: 600; }
/* El desplegable de direcciones / tarjetas vive dentro del grupo: sólo se le da
   aire a los lados. Su display lo sigue manejando app.css / app.js. */
.pf-grupo > .profile-section-body { padding: 0 14px 10px; }

.pf-vacio { text-align: center; color: var(--rd-gris); font-size: 14px; padding: 18px 12px; }

/* ═══ PEDIDO ANTERIOR (perfil y pestaña «Anteriores») ═══════════════════════ */
.pa-card {
  background: #fff; border-radius: 20px; padding: 14px; margin-bottom: 10px;
  box-shadow: var(--rd-sombra); font-family: var(--rd-fuente); color: var(--rd-tinta);
}
/* En la lista lleva también .order-card: se neutraliza lo que app.css le pone. */
.order-card.pa-card { padding: 14px; margin: 0; border-radius: 20px; will-change: auto; }
#orders-content .order-card-wrap:has(> .pa-card) { border-radius: 20px; box-shadow: none; }

.pa-top { display: flex; gap: 12px; align-items: center; }
.pa-fotos { display: flex; flex: none; }
.pa-fotos img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; border: 2px solid #fff; display: block; background: var(--rd-fondo); }
.pa-fotos img + img { margin-left: -16px; }
.pa-fotos img:nth-child(n+3) { display: none; }
.pa-sinfoto { width: 46px; height: 46px; border-radius: 12px; background: #FFF1DB; color: var(--rd-naranja-txt); display: flex; align-items: center; justify-content: center; }
.pa-sinfoto .logo-marca { width: 30px; height: 20px; }
.pa-d { flex: 1; min-width: 0; }
.pa-d b { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-d span { display: block; font-size: 12.5px; color: var(--rd-gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.pa-chip { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.pa-chip.ok { background: var(--rd-verde-cl); color: #166534; }
.pa-chip.gris { background: var(--rd-fondo); color: var(--rd-gris); }
.pa-acc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.pa-acc > .pa-btn:only-child { grid-column: 1 / -1; }
.pa-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px;
  border: 0; border-radius: 13px; cursor: pointer; font: 800 14.5px/1.15 var(--rd-fuente);
  -webkit-tap-highlight-color: transparent;
}
.pa-btn.cla { background: var(--rd-fondo); color: var(--rd-tinta); }
.pa-btn.pri { background: var(--rd-naranja); color: var(--rd-sobre-naranja); }
.pa-btn:active { transform: scale(.98); }
.pa-det { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--rd-linea); }
.pa-det-r { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 4px 0; }
.pa-det-r span { color: var(--rd-tinta); min-width: 0; }
.pa-det-r b { flex: none; font-weight: 700; }
.pa-det-r em {
  font-style: normal; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  color: #15803D; background: var(--rd-verde-cl); border-radius: 4px; padding: 1px 5px; margin-left: 4px; white-space: nowrap;
}
.pa-det-r.tot { border-top: 1px solid var(--rd-linea); margin-top: 4px; padding-top: 8px; font-size: 15px; font-weight: 800; }
.pa-det-r.tot span { font-weight: 800; }

/* Versión compacta (perfil): foto, texto y estado a la izquierda; «Volver a
   pedir» como botón delineado a la derecha, como en el render. */
.pa-card.compacto { display: flex; align-items: center; gap: 10px; padding: 12px; }
.pa-card.compacto .pa-top {
  flex: 1; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px; row-gap: 5px; align-items: center;
}
.pa-card.compacto .pa-fotos { grid-row: 1 / 3; }
.pa-card.compacto .pa-fotos img, .pa-card.compacto .pa-sinfoto { width: 54px; height: 54px; border-radius: 14px; }
.pa-card.compacto .pa-chip { grid-column: 2; justify-self: start; }
.pa-card.compacto .pa-acc { display: block; margin: 0; flex: none; }
.pa-card.compacto .pa-btn.pri {
  width: 80px; min-height: 48px; padding: 4px 8px; white-space: normal; text-align: center;
  background: #fff; border: 1.5px solid var(--rd-naranja); color: var(--rd-naranja-osc); font-size: 13px; border-radius: 12px;
}

/* Calificación dentro de la tarjeta: cinco estrellas grises que se encienden
   en naranja al tocar/pasar. Sólo la del hueco .cal-slot; la pantalla de
   calificar (#page-calificar) conserva sus estilos de app.css. */
.pa-card .cal-slot { margin-top: 10px; }
.cal-slot .cal-estrellas {
  display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; min-height: 44px;
  background: none; border: 0; cursor: pointer; font-family: var(--rd-fuente);
  -webkit-tap-highlight-color: transparent;
}
.cal-slot .cal-estrellas span { font-size: 12.5px; color: var(--rd-gris); margin-right: 4px; }
.cal-slot .cal-estrellas svg { width: 22px; height: 22px; fill: #D1D1D6; transition: fill .12s; }
.cal-slot .cal-estrellas:hover svg,
.cal-slot .cal-estrellas:active svg,
.cal-slot .cal-estrellas:focus-visible svg { fill: var(--rd-naranja); }
.cal-slot .cal-estrellas svg:hover ~ svg { fill: #D1D1D6; }

/* ═══ MIS PEDIDOS ═══════════════════════════════════════════════════════════ */
.pd-seg { display: flex; background: #E4E4EA; border-radius: 12px; padding: 3px; margin-bottom: 14px; }
.pd-seg button {
  flex: 1; min-height: 40px; border: 0; background: none; border-radius: 10px; cursor: pointer;
  font: 700 14px var(--rd-fuente); color: var(--rd-gris);
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  -webkit-tap-highlight-color: transparent;
}
.pd-seg button.on { background: #fff; color: var(--rd-tinta); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.pd-seg button i {
  font-style: normal; background: var(--rd-naranja); color: var(--rd-sobre-naranja);
  border-radius: 9px; min-width: 20px; height: 18px; padding: 0 6px; font-size: 12px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.pd-mes { font-size: 12.5px; color: var(--rd-gris); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin: 16px 4px 8px; }
.pd-vacio { text-align: center; padding: 48px 16px; color: var(--rd-gris); }
.pd-vacio p { font-size: 15px; margin: 0 0 14px; }
.pd-vacio .pf-btn { padding: 0 22px; }

/* Las tarjetas de la lista ya no llevan margen propio: lo pone #orders-content */
#orders-content .order-card-wrap { margin: 0 0 12px; border-radius: 22px; }
#orders-content .order-card-swipe-action { border-radius: 0 22px 22px 0; }

/* ═══ PEDIDO EN CURSO ═══════════════════════════════════════════════════════
   .oc-vivo = tarjeta del pedido vivo. Domicilio: OSCURA (como la de socio).
   Recoger (.oc-claro): BLANCA. Primero lo común, luego cada fondo. */
#orders-content .order-card.oc-vivo {
  position: relative; overflow: hidden; border-radius: 22px;
  padding: 16px 16px 14px; font-family: var(--rd-fuente);
  background: #fff; color: var(--rd-tinta); box-shadow: var(--rd-sombra);
}
#orders-content .oc-vivo:not(.oc-claro) { background: var(--rd-oscura); color: #fff; box-shadow: 0 8px 22px rgba(30,16,3,.25); }

/* Cabeza: en qué va, en grande, y cuándo llega */
.ocv-head { position: relative; }
.ocv-marca { position: absolute; right: -20px; top: -14px; width: 150px; height: 90px; opacity: .09; color: #fff; pointer-events: none; }
.oc-claro .ocv-marca { color: var(--rd-naranja); opacity: .08; }
.ocv-k { font-size: 12px; font-weight: 600; color: #E3D3BE; position: relative; }
.oc-claro .ocv-k { color: var(--rd-gris); }
/* .ocv-est lleva también .status-xxx (que en app.css es un globo de color): aquí no. */
#orders-content .ocv-est {
  position: relative; background: none; padding: 0; border-radius: 0;
  font-size: 25px; font-weight: 800; letter-spacing: -.4px; line-height: 1.15; margin-top: 2px;
  color: #fff;
}
#orders-content .oc-claro .ocv-est { color: var(--rd-tinta); }
.ocv-eta { position: relative; font-size: 14px; font-weight: 700; margin-top: 3px; color: #FFD08A; }
.oc-claro .ocv-eta { color: var(--rd-naranja-txt); }
.ocv-eta:empty { display: none; }

/* Número para recoger: grande, verde, en recuadro punteado */
.ocv-codigo {
  margin-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: #F0FDF4; border: 1.5px dashed #86EFAC; border-radius: 14px; padding: 10px 12px;
}
.ocv-codigo span { font-size: 12.5px; color: #166534; max-width: 180px; line-height: 1.35; }
.ocv-codigo b { font: 800 28px/1 var(--rd-mono); color: #166534; letter-spacing: 2px; white-space: nowrap; }

/* Resumen de abajo: productos · pago … total */
.ocv-resumen {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-size: 13px; color: var(--rd-gris);
}
.oc-vivo .order-card-footer { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rd-linea); }
.oc-vivo .order-card-total { font-size: 15px; font-weight: 800; color: var(--rd-tinta); white-space: nowrap; }

/* Botones «Seguir en vivo» / «Mensajes» */
#orders-content .oc-vivo .oc-actions { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; margin-top: 12px; }
#orders-content .oc-vivo .oc-actions > .oc-btn:only-child { grid-column: 1 / -1; }
#orders-content .oc-vivo .oc-btn {
  min-height: 46px; border-radius: 13px; border: 0; padding: 0 10px;
  font: 800 14.5px/1.15 var(--rd-fuente); opacity: 1;
}
#orders-content .oc-vivo .oc-btn .ico { width: 16px; height: 16px; }
#orders-content .oc-vivo .oc-btn.live { background: var(--rd-naranja); color: var(--rd-sobre-naranja); }
#orders-content .oc-claro .oc-btn.chat { background: var(--rd-fondo); color: var(--rd-tinta); }
#orders-content .oc-claro .oc-btn.off { background: var(--rd-fondo); color: #AEAEB2; }

/* Lista de productos desplegable (común) */
.oc-vivo .order-items-toggle { min-height: 44px; margin-top: 12px; padding: 0; }
.oc-vivo .order-items-toggle-label { font-size: 13px; }

/* ── Adaptaciones al fondo OSCURO (sólo domicilio) ── */
#orders-content .oc-vivo:not(.oc-claro) .ocv-resumen { color: #CDB895; }
#orders-content .oc-vivo:not(.oc-claro) .order-card-footer { border-top-color: rgba(255,255,255,.12); }
#orders-content .oc-vivo:not(.oc-claro) .order-card-total { color: #fff; }

/* Barra de pasos */
#orders-content .oc-vivo:not(.oc-claro) .oc-steps { padding: 16px 0 2px; }
#orders-content .oc-vivo:not(.oc-claro) .oc-step { min-width: 0; }
#orders-content .oc-vivo:not(.oc-claro) .oc-dot { width: 26px; height: 26px; background: rgba(255,255,255,.14); color: rgba(255,255,255,.6); border: 0; }
#orders-content .oc-vivo:not(.oc-claro) .oc-dot.done { background: var(--rd-verde); color: #fff; }
#orders-content .oc-vivo:not(.oc-claro) .oc-dot.now { background: var(--rd-naranja); color: var(--rd-sobre-naranja); box-shadow: 0 0 0 5px rgba(255,149,0,.25); }
#orders-content .oc-vivo:not(.oc-claro) .oc-dot.next { background: rgba(255,149,0,.12); border: 2px dashed var(--rd-naranja); color: #FFD08A; }
#orders-content .oc-vivo:not(.oc-claro) .oc-dot.wait { background: rgba(255,255,255,.14); }
#orders-content .oc-vivo:not(.oc-claro) .oc-ln { top: 12px; background: rgba(255,255,255,.18); }
#orders-content .oc-vivo:not(.oc-claro) .oc-ln.fill { background: var(--rd-verde); }
#orders-content .oc-vivo:not(.oc-claro) .oc-lb { color: #CDB895; font-weight: 600; font-size: 11px; }
#orders-content .oc-vivo:not(.oc-claro) .oc-lb.dn { color: #CDB895; }
#orders-content .oc-vivo:not(.oc-claro) .oc-lb.act { color: #fff; font-weight: 800; }

/* Fila del repartidor */
#orders-content .oc-vivo:not(.oc-claro) .oc-driver {
  margin: 14px 0 0; padding: 10px; gap: 10px; border-radius: 14px;
  background: rgba(255,255,255,.08); border: 0;
}
#orders-content .oc-vivo:not(.oc-claro) .oc-driver.con-chat { border: 1px solid rgba(255,149,0,.45); background: rgba(255,149,0,.10); }
#orders-content .oc-vivo:not(.oc-claro) .oc-dav { width: 36px; height: 36px; background: #FFB340; color: var(--rd-sobre-naranja); font-weight: 800; font-size: 15px; }
#orders-content .oc-vivo:not(.oc-claro) .oc-dav .ico { color: var(--rd-sobre-naranja); }
#orders-content .oc-vivo:not(.oc-claro) .oc-dn { color: #fff; font-size: 14px; }
#orders-content .oc-vivo:not(.oc-claro) .oc-dn.mut { color: #E3D3BE; }
#orders-content .oc-vivo:not(.oc-claro) .oc-dm { color: #E3D3BE; font-size: 12.5px; }
#orders-content .oc-vivo:not(.oc-claro) .oc-chat-nota { color: #FFD08A; }
#orders-content .oc-vivo:not(.oc-claro) .oc-chat-nota.nuevo { color: #FCA5A5; }
#orders-content .oc-vivo:not(.oc-claro) .oc-chat-cta { background: var(--rd-naranja); color: var(--rd-sobre-naranja); min-height: 44px; }

/* Botones en oscuro: chat translúcido blanco; apagado, casi transparente */
#orders-content .oc-vivo:not(.oc-claro) .oc-btn.chat { background: rgba(255,255,255,.12); color: #fff; }
#orders-content .oc-vivo:not(.oc-claro) .oc-btn.off { background: rgba(255,255,255,.07); color: rgba(255,255,255,.42); }

/* Lista de productos en oscuro */
#orders-content .oc-vivo:not(.oc-claro) .order-items-toggle { border-top-color: rgba(255,255,255,.12); }
#orders-content .oc-vivo:not(.oc-claro) .order-items-toggle-label,
#orders-content .oc-vivo:not(.oc-claro) .order-items-toggle-chev { color: #E3D3BE; }
#orders-content .oc-vivo:not(.oc-claro) .order-items-list { border-bottom-color: rgba(255,255,255,.12); }
#orders-content .oc-vivo:not(.oc-claro) .order-item-row { color: #fff; }
#orders-content .oc-vivo:not(.oc-claro) .order-item-img { background: rgba(255,255,255,.1); border-radius: 10px; }
#orders-content .oc-vivo:not(.oc-claro) .order-item-name { color: #fff; }
#orders-content .oc-vivo:not(.oc-claro) .order-item-qty { color: #CDB895; }
#orders-content .oc-vivo:not(.oc-claro) .order-card-items { color: #E3D3BE; }

/* Recuadros que traen su letra oscura de app.css (programado, datos para
   transferir): sobre la tarjeta oscura se les da fondo claro para que se lean.
   Los que traen estilo en línea (pago pendiente, etc.) ya son claros. */
#orders-content .oc-vivo:not(.oc-claro) .oc-prog,
#orders-content .oc-vivo:not(.oc-claro) .oc-tr { background: #FFF8EC; color: var(--rd-tinta); }
#orders-content .oc-vivo:not(.oc-claro) .btn-secondary { background: rgba(255,255,255,.12); color: #fff !important; }

/* ═══ BARRA «PREPARANDO TU PEDIDO» (22-oct-2026) ═══════════════════════════════
   Panel translúcido y redondeado, del mismo idioma que la fila del repartidor
   (.oc-driver) y que .oc-prog: va debajo de la barra de pasos y encima del
   repartidor (js/app.js: cocinaBarraHTML). Tres caras, que pone la app según lo que
   diga el servidor: .cocinando (naranja), .casi (verde: cocina subrayó todo) y
   .demora (ámbar: pasó el tiempo y sigue en cocina).
   Primero lo común, que ya es el fondo CLARO (recoger y la ventana de seguimiento);
   abajo, lo que cambia sobre el fondo OSCURO de la tarjeta de domicilio. Los colores
   salen de variables locales (--coc-*) para que cada cara cambie 4 valores y no 12
   reglas. Texto: nunca blanco sobre naranja; sobre estos fondos translúcidos la letra
   es tinta oscura (claro) o crema/blanca (oscuro), todo ≥ 4.5:1. */
.oc-coc {
  --coc-pista: rgba(255,149,0,.22);
  --coc-relleno: linear-gradient(90deg, #FFB340, var(--rd-naranja));
  --coc-der: var(--rd-naranja-osc);
  --coc-sub: var(--rd-gris);
  margin: 14px 0 0; padding: 10px 12px 11px; border-radius: 14px;
  background: rgba(255,149,0,.12); border: 1px solid rgba(255,149,0,.40);
  color: var(--rd-tinta); font-family: var(--rd-fuente);
}
.oc-coc-t { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 10px; }   /* en pantallas angostas «faltan ~N min» baja de renglón en vez de apretar el título */
.oc-coc-tit { font-size: 14px; font-weight: 800; line-height: 1.3; }
.oc-coc-r { font-size: 12.5px; font-weight: 700; color: var(--coc-der); white-space: nowrap; }
.oc-coc-bar { height: 10px; margin-top: 8px; border-radius: 99px; background: var(--coc-pista); overflow: hidden; }
.oc-coc-bar i {
  display: block; position: relative; height: 100%; border-radius: 99px; overflow: hidden;
  background: var(--coc-relleno); transition: width .8s ease;
}
/* La raya: una capa más ancha que se desliza UN periodo exacto (17.66 px a 115°), así
   el ciclo no tiene costura. Sólo `transform`: no repinta. */
.oc-coc-bar i::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -18px; right: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.32) 0 8px, transparent 8px 16px);
  animation: oc-coc-raya 1.1s linear infinite;
}
@keyframes oc-coc-raya { to { transform: translateX(17.66px); } }
@media (prefers-reduced-motion: reduce) {
  .oc-coc-bar i { transition: none; }
  .oc-coc-bar i::after { animation: none; }
}
.oc-coc-s { margin-top: 7px; font-size: 12px; line-height: 1.35; color: var(--coc-sub); }
.oc-coc-aviso {
  margin-top: 9px; padding-top: 9px; border-top: 1px solid rgba(217,119,6,.35);
  font-size: 12.5px; line-height: 1.45; color: #5A3600;
}
.oc-coc-aviso[hidden] { display: none; }
.oc-coc.casi {
  --coc-pista: rgba(22,163,74,.22);
  --coc-relleno: linear-gradient(90deg, #4ADE80, var(--rd-verde));
  --coc-der: #166534; --coc-sub: #166534;
  background: rgba(22,163,74,.12); border-color: rgba(22,163,74,.45);
}
.oc-coc.demora {
  --coc-pista: rgba(217,119,6,.22);
  --coc-relleno: linear-gradient(90deg, #FFCB47, #F59E0B);
  --coc-der: #92400E; --coc-sub: #6B4A12;
  background: rgba(245,158,11,.14); border-color: rgba(217,119,6,.55);
}
/* En la ventana de seguimiento el texto del paso comparte renglón con el panel: que
   éste use todo el ancho que le deja el punto del paso. */
.track-info { flex: 1; min-width: 0; }
.track-info .oc-coc { margin-top: 10px; }

/* La palabra de la cabecera cuando cocina ya subrayó todo («Ya casi»). */
#orders-content .ocv-est.casi { color: #86EFAC; }
#orders-content .oc-claro .ocv-est.casi { color: #15803D; }

/* ── Adaptaciones al fondo OSCURO (domicilio) ── */
#orders-content .oc-vivo:not(.oc-claro) .oc-coc {
  --coc-pista: rgba(255,255,255,.14); --coc-der: #FFD08A; --coc-sub: #E3D3BE;
  background: rgba(255,149,0,.12); border-color: rgba(255,149,0,.45); color: #fff;
}
#orders-content .oc-vivo:not(.oc-claro) .oc-coc.casi {
  --coc-relleno: linear-gradient(90deg, #4ADE80, #22C55E); --coc-der: #86EFAC; --coc-sub: #BBF7D0;
  background: rgba(52,199,89,.14); border-color: rgba(52,199,89,.50);
}
#orders-content .oc-vivo:not(.oc-claro) .oc-coc.demora {
  --coc-der: #FFD666; --coc-sub: #F3DEB5;
  background: rgba(255,193,7,.14); border-color: rgba(255,193,7,.55);
}
#orders-content .oc-vivo:not(.oc-claro) .oc-coc-aviso { border-top-color: rgba(255,193,7,.35); color: #FFE6A8; }

/* ═══ CARRITO ═══════════════════════════════════════════════════════════════ */
/* El botón fijo de abajo no debe tapar lo último de la lista */
#cart-content { padding-bottom: 96px; }

.ct-lista { display: flex; flex-direction: column; gap: 10px; }
.ct-item {
  background: #fff; border-radius: 20px; padding: 10px; display: flex; gap: 12px; align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.05); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.ct-item.is-nohoy { box-shadow: 0 0 0 2px #FCA5A5 inset; }
.ct-item.is-nohoy .ct-foto { opacity: .55; }
.ct-foto { width: 74px; height: 74px; border-radius: 14px; object-fit: cover; flex: none; display: block; background: var(--rd-fondo); }
.ct-sinfoto { display: flex; align-items: center; justify-content: center; background: #FFF1DB; color: var(--rd-naranja-txt); }
.ct-sinfoto .logo-marca { width: 44px; height: 28px; }
.ct-d { flex: 1; min-width: 0; }
.ct-d b { display: block; font-size: 15px; font-weight: 700; line-height: 1.25; }
.ct-d span { display: block; font-size: 12.5px; color: var(--rd-gris); line-height: 1.35; overflow-wrap: anywhere; }
.ct-d .ct-nohoy { color: #B42318; font-weight: 700; }
.ct-pr { font-weight: 800; font-size: 15px; margin-top: 6px; }
.ct-cant { display: flex; align-items: center; background: var(--rd-fondo); border-radius: 999px; height: 44px; flex: none; }
.ct-cant button {
  width: 38px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  font: 700 21px/1 var(--rd-fuente); color: var(--rd-naranja-txt); -webkit-tap-highlight-color: transparent;
}
.ct-cant button:active { color: var(--rd-naranja-osc); }
.ct-cant b { min-width: 18px; text-align: center; font-size: 15px; font-weight: 800; }

.ct-nota {
  background: #fff; border-radius: 16px; padding: 0 14px; margin-top: 10px; min-height: 48px;
  display: flex; gap: 10px; align-items: center; color: var(--rd-gris); box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.ct-nota .ico { width: 17px; height: 17px; flex: none; }
.ct-nota input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 14px 0;
  font: 16px var(--rd-fuente); color: var(--rd-tinta);   /* 16px: con menos, Safari hace zoom */
}
.ct-nota input::placeholder { color: #8E8E93; }

.ct-sug-t { font-size: 17px; font-weight: 800; margin: 18px 4px 8px; }
.ct-sug {
  display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px 12px; padding: 2px 16px 6px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.ct-sug::-webkit-scrollbar { display: none; }
.ct-s {
  background: #fff; border: 0; border-radius: 16px; padding: 8px; width: 118px; flex: none; text-align: left;
  box-shadow: 0 1px 3px rgba(0,0,0,.05); cursor: pointer; scroll-snap-align: start;
  font-family: var(--rd-fuente); color: var(--rd-tinta); -webkit-tap-highlight-color: transparent;
}
.ct-s img, .ct-s-sin { width: 100%; height: 70px; object-fit: cover; border-radius: 11px; display: block; }
.ct-s-sin { background: #FFF1DB; color: var(--rd-naranja-txt); display: flex; align-items: center; justify-content: center; }
.ct-s-sin .logo-marca { width: 40px; height: 26px; }
.ct-s b { display: block; font-size: 12.5px; font-weight: 700; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-s-r { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; font-size: 13px; font-weight: 800; }
.ct-s-r i {
  font-style: normal; width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: var(--rd-naranja); color: var(--rd-sobre-naranja);
  display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 800; line-height: 1;
}

.ct-resumen { background: #fff; border-radius: 20px; padding: 12px 16px; margin-top: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.ct-fila { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; padding: 4px 0; }
.ct-fila span { color: var(--rd-gris); }
.ct-fila b { font-weight: 700; text-align: right; }
.ct-aviso {
  margin-top: 12px; background: #FEF2F2; border: 1px solid #FCA5A5; color: #7F1D1D;
  border-radius: 14px; padding: 12px 14px; font-size: 13.5px; line-height: 1.45;
}
.ct-aviso strong { color: #B42318; }
/* «Vaciar» sube al renglón del título (25-sep): discreto, rojo, con su bote. */
.pg-tit .pg-sub { display: block; margin-top: 2px; }
.ct-vaciar {
  display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 40px; padding: 0 14px;
  border: 0; border-radius: 999px; background: #FDECEC; cursor: pointer;
  font: 700 14px var(--rd-fuente); color: #B42318;
}
.ct-vaciar .ico { width: 15px; height: 15px; }
.ct-vaciar:focus-visible { outline: 2px solid #B42318; outline-offset: 2px; }

/* Botón fijo abajo, encima de la barra #bottom-nav, con degradado del fondo.
   Mismo ancho que #app (máx. 480px, centrado). */
.ct-pie {
  position: fixed; z-index: 40;
  left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding: 14px 16px 10px;
  background: linear-gradient(to top, var(--rd-fondo) 70%, rgba(242,242,247,0));
  pointer-events: none;   /* el degradado no roba toques; el botón sí los recibe */
}
.ct-continuar {
  pointer-events: auto; width: 100%; min-height: 54px; border: 0; border-radius: 16px; cursor: pointer;
  background: var(--rd-naranja); color: var(--rd-sobre-naranja); font: 800 16px var(--rd-fuente);
  box-shadow: 0 8px 20px rgba(255,149,0,.3); -webkit-tap-highlight-color: transparent;
}
.ct-continuar:active { transform: scale(.99); }
.ct-continuar:disabled { background: #E5E5EA; color: #8E8E93; box-shadow: none; cursor: default; transform: none; }
/* La entrada de página de app.css mueve la página con transform; mientras dura,
   un hijo position:fixed se pintaría fuera de lugar. En el carrito sólo aparece. */
#page-cart.page.active { animation: fadeInSoft .22s ease; }

/* ═══ CONFIRMAR PEDIDO (#modal-checkout) ════════════════════════════════════ */
#modal-checkout .modal-sheet {
  background: var(--rd-fondo); border-radius: 24px 24px 0 0;
  padding: 6px 16px calc(18px + env(safe-area-inset-bottom));
  font-family: var(--rd-fuente); color: var(--rd-tinta);
}
#modal-checkout .modal-handle { width: 44px; height: 5px; border-radius: 3px; background: #C7C7CC; margin: 6px auto 12px; }
#modal-checkout .modal-title { font-size: 22px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 12px; }
#modal-checkout .pay-title { font-size: 12.5px; color: var(--rd-gris); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin: 14px 4px 8px; }

/* A domicilio / Para recoger (y «¿Cuándo?», que usa el mismo dibujo): segmento */
#modal-checkout .order-type-toggle,
#modal-checkout .cuando-toggle { background: #E4E4EA; border-radius: 12px; padding: 3px; gap: 0; margin-bottom: 14px; }
#modal-checkout .order-type-btn,
#modal-checkout .cuando-btn { min-height: 40px; border-radius: 10px; font: 700 14px var(--rd-fuente); color: var(--rd-gris); background: none; }
#modal-checkout .order-type-btn.active,
#modal-checkout .cuando-btn.active { background: #fff; color: var(--rd-tinta); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

/* Campos: sobre el fondo gris de la hoja van en blanco para que se distingan */
#modal-checkout .form-group input,
#modal-checkout .form-group select,
#modal-checkout .form-group textarea { background: #fff; border: 1px solid var(--rd-linea); font-size: 16px; }
#modal-checkout .form-group input:focus,
#modal-checkout .form-group select:focus,
#modal-checkout .form-group textarea:focus { border-color: var(--rd-naranja); }
#modal-checkout #promo-code-input { background: #fff !important; border-color: var(--rd-linea) !important; font-size: 16px !important; }
#modal-checkout .addr-card { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.05); border-radius: 16px; }
#modal-checkout .addr-card.selected { border-color: var(--rd-naranja); background: #FFF8EC; }

/* Formas de pago: tarjetas en 2 columnas; lo que pide cada una va DEBAJO */
#modal-checkout #pay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#modal-checkout #pay-opts .pay-opt {
  order: 1; flex-direction: column; align-items: flex-start; gap: 0; min-width: 0; min-height: 44px;
  padding: 12px; background: #fff; border: 2px solid transparent; border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05); position: relative; -webkit-tap-highlight-color: transparent;
}
#modal-checkout #pay-opts .pay-opt.selected { border-color: var(--rd-naranja); background: #FFF8EC; }
#modal-checkout #pay-opts .po-radio { display: none; }
#modal-checkout .pay-opt .po-emoji {
  width: 34px; height: 34px; border-radius: 10px; margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center; background: #FFF1DB; color: #C26A00;
}
#modal-checkout .pay-opt .po-emoji .ico { width: 18px; height: 18px; }
#modal-checkout #pay-cash .po-emoji { background: var(--rd-verde-cl); color: #15803D; }
#modal-checkout #pay-transfer .po-emoji { background: var(--rd-azul-cl); color: #1D4ED8; }
#modal-checkout #pay-card .po-emoji { background: #EDE9FE; color: #6D28D9; }
#modal-checkout .pay-opt .po-txt { font-size: 14.5px; font-weight: 700; color: var(--rd-tinta); }
#modal-checkout .pay-opt .po-sub { font-size: 12px; color: var(--rd-gris); font-weight: 500; }
#modal-checkout #pay-opts .pay-box { order: 2; grid-column: 1 / -1; }

/* Cajita desplegable (billete, banco, monto del monedero) */
#modal-checkout .pay-box { background: #fff; border: 0; border-radius: 16px; padding: 12px; margin: 0; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
#modal-checkout .pay-box .pb-title { font-size: 14px; color: var(--rd-tinta); }
#modal-checkout .pay-box .pb-lbl { font-size: 14px; color: var(--rd-tinta); font-weight: 500; }
#modal-checkout .pay-box .pb-field { background: var(--rd-fondo); border: 0; border-radius: 10px; min-height: 44px; padding: 0 12px; }
#modal-checkout .pay-box .pb-field input { font-size: 16px; font-weight: 700; }
#modal-checkout .pay-box .pb-max { min-height: 44px; border-radius: 12px; }
.pb-rapidos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pb-rapidos:empty { display: none; }
.pb-rapido {
  min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--rd-fondo); color: var(--rd-tinta); font: 700 13.5px var(--rd-fuente);
  -webkit-tap-highlight-color: transparent;
}
.pb-rapido:active { background: #FFF1DB; color: var(--rd-naranja-osc); }

/* Monedero: tarjeta blanca con INTERRUPTOR verde a la derecha */
#modal-checkout .pay-opt.wallet {
  display: flex; flex-direction: row; align-items: center; gap: 12px; margin-top: 10px;
  padding: 12px; min-height: 60px; background: #fff; border: 0; border-radius: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
#modal-checkout .pay-opt.wallet.on { background: #fff; box-shadow: 0 0 0 2px var(--rd-verde) inset; }
#modal-checkout .pay-opt.wallet .po-emoji { margin: 0; background: var(--rd-verde-cl); color: #15803D; flex: none; }
#modal-checkout .pay-opt.wallet .po-txt { flex: 1; min-width: 0; }
#modal-checkout #use-cashback {
  order: 3; appearance: none; -webkit-appearance: none; flex: none; margin: 0;
  width: 50px; height: 30px; border-radius: 99px; border: 0; background: #E5E5EA;
  position: relative; display: block; cursor: pointer; transition: background .2s;
}
#modal-checkout #use-cashback::after {
  content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .2s;
}
#modal-checkout #use-cashback:checked { background: var(--rd-verde); }
#modal-checkout #use-cashback:checked::after { content: ''; transform: translateX(20px); }
#modal-checkout .pay-opt.wallet + .pay-box { margin-top: 8px; border: 0; }

/* Resumen: tarjeta blanca con el total grande */
#modal-checkout .co-resumen { background: #fff; border-radius: 20px; padding: 12px 16px; margin-top: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
#modal-checkout .co-resumen .summary-row { border-bottom: 0; padding: 4px 0; font-size: 14.5px; }
#modal-checkout .co-resumen .summary-row .label { color: var(--rd-gris); }
#modal-checkout .co-resumen .summary-row.total {
  border-top: 1px solid var(--rd-linea); margin-top: 6px; padding-top: 10px;
  font-size: 18px; font-weight: 800; color: var(--rd-tinta);
}

/* Botón principal */
#btn-confirm-order {
  min-height: 54px; border-radius: 16px; font: 800 16px var(--rd-fuente);
  background: var(--rd-naranja); color: var(--rd-sobre-naranja);
  box-shadow: 0 8px 20px rgba(255,149,0,.3);
}
#btn-confirm-order:disabled { background: #E5E5EA; color: #8E8E93; box-shadow: none; }
#modal-checkout .btn-secondary { background: #fff; min-height: 44px; }

/* ═══ BARRA DE ABAJO ════════════════════════════════════════════════════════ */
#bottom-nav {
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--rd-linea);
}
#bottom-nav .nav-btn {
  font: 400 11px/1.1 var(--rd-fuente); color: #8E8E93; gap: 3px; padding: 6px 0 4px; min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
#bottom-nav .nav-btn .icon { width: 26px; height: 26px; font-size: 26px; display: flex; align-items: center; justify-content: center; color: inherit; }
#bottom-nav .nav-btn .icon svg { width: 26px; height: 26px; display: block; }
/* El logo del Menú trae medida en línea (1.6em): aquí se ajusta a la caja de 26px */
#bottom-nav .nav-btn .icon .ico { width: 26px !important; height: 26px !important; color: inherit; }
#bottom-nav .nav-btn.active { color: var(--rd-naranja-txt); font-weight: 600; }
#bottom-nav .nav-btn.active .ico { color: inherit; }
#bottom-nav .nav-btn .badge {
  top: 2px; right: calc(50% - 24px); min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; border: 2px solid #fff;
  background: var(--rd-naranja); color: var(--rd-sobre-naranja); font-size: 11px; font-weight: 800;
}

/* ═══ Accesibilidad: quien pide menos movimiento no ve animaciones ═══ */
@media (prefers-reduced-motion: reduce) {
  .pf-mezcla > span, #modal-checkout #use-cashback, #modal-checkout #use-cashback::after, .cal-slot .cal-estrellas svg { transition: none; }
  .pf-btn:active, .pf-ac:active, .pa-btn:active, .ct-continuar:active { transform: none; }
}


/* ══ TÉRMINOS Y PRIVACIDAD — hoja dentro de la app (25-sep) ══════════════ */
.legales-hoja { height: 88vh; height: 88dvh; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); }
.legales-hoja .legales-seg { margin: 6px 44px 10px 0; flex: none; }
.legales-hoja iframe { flex: 1; width: 100%; min-height: 0; border: 0; border-radius: 14px; background: #fff; }

/* ══ MIS DIRECCIONES — tarjetas del perfil nuevo (25-sep) ════════════════ */
.ad-cab { display: flex; justify-content: space-between; align-items: baseline; margin: 4px 4px 10px; font-family: var(--rd-fuente); }
.ad-cab span { font-size: 17px; font-weight: 800; color: var(--rd-tinta); }
.ad-cab b { font-size: 13px; color: var(--rd-gris); font-weight: 600; }
.ad-lista { display: flex; flex-direction: column; gap: 10px; }
.ad-card { background: #fff; border-radius: 18px; padding: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.06); font-family: var(--rd-fuente); }
.ad-card.es-principal { box-shadow: 0 0 0 2px var(--rd-naranja), 0 1px 3px rgba(0,0,0,.06); }
.ad-fila { display: flex; gap: 12px; align-items: flex-start; }
.ad-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #FFF1DB; color: var(--rd-naranja-txt); display: flex; align-items: center; justify-content: center; }
.ad-ico .ico { width: 20px; height: 20px; }
.ad-d { flex: 1; min-width: 0; }
.ad-alias { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; color: var(--rd-tinta); }
.ad-chip { font-size: 11.5px; font-weight: 700; color: #166534; background: var(--rd-verde-cl); border-radius: 999px; padding: 2px 8px; }
.ad-calle { font-size: 14.5px; color: var(--rd-tinta); margin-top: 3px; overflow-wrap: anywhere; }
.ad-ref { font-size: 13px; color: var(--rd-gris); margin-top: 2px; overflow-wrap: anywhere; }
.ad-nota { font-size: 12px; color: var(--rd-naranja-osc); margin-top: 6px; }
.ad-acc { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rd-linea); }
.ad-acc button {
  min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--rd-fondo);
  font: 700 14px var(--rd-fuente); color: var(--rd-tinta); cursor: pointer;
}
.ad-acc .ad-borrar { margin-left: auto; width: 40px; padding: 0; display: flex; align-items: center; justify-content: center; background: #FDECEC; color: #B42318; }
.ad-acc .ad-borrar .ico { width: 17px; height: 17px; }
.ad-nueva {
  display: block; width: 100%; margin-top: 12px; min-height: 52px; border-radius: 16px;
  border: 2px dashed #F2C27A; background: #FFF8EC; color: var(--rd-naranja-osc);
  font: 800 15px var(--rd-fuente); cursor: pointer;
}
.legales-hoja { position: relative; }
.legales-hoja .sheet-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: var(--rd-fondo); color: var(--rd-tinta); font-size: 15px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.legales-hoja .legales-seg { margin-top: 14px; }

/* ══ MODAL DEL PRODUCTO — acomodo del Menú Digital (25-sep) ═══════════════
   Cada grupo de opciones en su tarjeta blanca: título a la izquierda y «Elige 1»
   en píldora gris a la derecha; opciones en rejilla de 3 botones iguales con el
   extra (+$10) abajo; pie fijo con la cantidad en píldora y «Agregar · total». */
#modal-item .modal-sheet { background: var(--rd-fondo); }
#modal-item .mod-section-title {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font: 700 17px/1.25 var(--rd-fuente); color: var(--rd-tinta); text-transform: none; letter-spacing: 0; margin: 0 0 12px;
}
#modal-item .mod-required, #modal-item .mod-section-title > span {
  flex: none; font-size: 13px; font-weight: 700; color: var(--rd-gris); background: #EDEDF2;
  border-radius: 999px; padding: 4px 10px; text-transform: none; letter-spacing: 0;
}
/* Tarjeta por grupo (combos) o una sola tarjeta para el resto de productos */
#modal-item .cg-grp, #modal-item #modal-modifiers:not(:has(.cg-grp)) {
  background: #fff; border-radius: 20px; padding: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
#modal-item .cg-grp { margin-top: 12px !important; }
#modal-item .cg-grp:first-child { margin-top: 0 !important; }
#modal-item #modal-modifiers:not(:has(.cg-grp)) .mod-section-title:not(:first-child) { margin-top: 18px; }
/* Rejilla de 3 botones iguales */
#modal-item .cg-opts, #modal-item .ctx-chips, #modal-item .mod-chips {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0;
}
#modal-item .cg-chip, #modal-item .ctx-chip, #modal-item .mod-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; min-width: 0; margin: 0; padding: 6px 8px; border: 2px solid transparent; border-radius: 14px;
  background: #F2F2F7; color: var(--rd-tinta); font: 600 15px/1.2 var(--rd-fuente);
  overflow-wrap: anywhere; cursor: pointer; -webkit-tap-highlight-color: transparent; flex: initial;
}
#modal-item .cg-chip b, #modal-item .ctx-chip-price { display: block; font-size: 13.5px; font-weight: 800; color: var(--rd-naranja-osc); margin-top: 2px; }
#modal-item .ctx-chip-label { color: inherit; font-weight: 600; font-size: 15px; }
#modal-item .cg-chip.cg-on, #modal-item .ctx-chip.selected, #modal-item .mod-chip:has(input:checked) {
  border-color: var(--rd-naranja); background: #FFF1DB; color: var(--rd-naranja-osc); font-weight: 800;
}
#modal-item .cg-chip.cg-ago { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
#modal-item .mod-chip input { position: absolute; opacity: 0; pointer-events: none; }
#modal-item .mod-chip { position: relative; }
/* Pie fijo */
#modal-item .item-pie {
  position: sticky; bottom: 0; z-index: 3; display: flex; gap: 10px; align-items: center;
  margin: 8px -20px 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--rd-fondo) 75%, rgba(242,242,247,0));
}
#modal-item .item-pie .item-qty {
  flex: none; display: flex; align-items: center; gap: 4px; height: 56px; padding: 0 8px; margin: 0;
  background: #fff; border-radius: 999px; box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
#modal-item .item-pie .qty-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--rd-naranja); color: var(--rd-sobre-naranja);
  font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
#modal-item .item-pie .qty-num { min-width: 28px; text-align: center; font-size: 18px; font-weight: 800; color: var(--rd-tinta); }
#modal-item .item-pie .item-add { position: static; flex: 1; height: 56px; margin: 0; border-radius: 18px; box-shadow: 0 8px 20px rgba(255,149,0,.3); font-size: 17px; }
#modal-item .modal-sheet { padding-bottom: 0; }
#modal-item #modal-item-incluye { background: #fff !important; }
#modal-item .item-pie .qty-control .qty-btn.minus, #modal-item .item-pie .qty-control .qty-btn.plus {
  width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--rd-naranja); color: var(--rd-sobre-naranja);
  font-size: 22px; font-weight: 800; line-height: 1;
}
/* app.css deja transparentes los botones de cantidad (!important); en el pie del
   modal van en círculo naranja, como el Menú Digital. */
#modal-item .item-pie .qty-control .qty-btn { background: var(--rd-naranja) !important; }

/* ══ AVISO DE SALDO (27-sep) — franja del Perfil, renglón resaltado y letrero ══
   La franja la pinta _franjaSaldo() (js/app.js) dentro de .pf-saldo cuando el
   cliente tocó el aviso de una recarga, o la primera vez que abre su Perfil
   después de un movimiento que hizo el local. */
.pf-saldo { transition: box-shadow .6s ease; }
.pf-saldo.resalta { box-shadow: 0 0 0 2px var(--rd-azul), 0 6px 18px rgba(37,99,235,.14); }
.pf-franja {
  display: flex; align-items: center; gap: 10px; width: 100%; margin: 10px 0 2px; padding: 10px 12px;
  border: 1px solid #BFD3FB; background: #EEF4FF; border-radius: 14px; text-align: left; cursor: pointer;
  font-family: var(--rd-fuente); color: var(--rd-tinta); transition: box-shadow .6s ease;
  animation: pfFranjaEntra .35s ease both;
}
.pf-franja.brilla { box-shadow: 0 0 0 4px rgba(37,99,235,.16); }
.pf-franja .ic { width: 28px; height: 28px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: var(--rd-azul); color: #fff; }
.pf-franja .ic svg { width: 15px; height: 15px; }
.pf-franja .t { flex: 1; min-width: 0; display: block; }
.pf-franja .t b { display: block; font-size: 14px; font-weight: 700; color: #1E40AF; }
.pf-franja .t span { display: block; font-size: 12px; color: #3B4A6B; margin-top: 1px; }
.pf-franja .fl { flex: none; font-size: 22px; line-height: 1; color: #1E40AF; }
.pf-franja.e { border-color: #A7E3BD; background: #EEFBF2; }
.pf-franja.e .ic { background: var(--rd-verde); }
.pf-franja.e .t b, .pf-franja.e .fl { color: #166534; }
.pf-franja.e.brilla { box-shadow: 0 0 0 4px rgba(22,163,74,.16); }
.pf-franja.menos { border-color: #F5CF9A; background: #FFF6EA; }
.pf-franja.menos .ic { background: var(--rd-naranja); color: var(--rd-sobre-naranja); }
.pf-franja.menos .t b, .pf-franja.menos .fl { color: var(--rd-naranja-osc); }
.pf-franja.menos.brilla { box-shadow: 0 0 0 4px rgba(255,149,0,.18); }
@keyframes pfFranjaEntra { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* «Movimientos»: el renglón que se llegó a ver desde la franja */
.mov-row.resaltado { background: #EEF4FF; box-shadow: inset 4px 0 0 var(--rd-azul); }

/* Letrero con la app abierta (Android no enseña el aviso del sistema al frente) */
.letrero-saldo {
  position: fixed; z-index: 10050; left: 12px; right: 12px; top: calc(env(safe-area-inset-top, 0px) + 10px);
  max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px;
  background: #fff; border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.04);
  font-family: var(--rd-fuente); color: var(--rd-tinta);
  opacity: 0; transform: translateY(-16px); transition: opacity .3s ease, transform .3s ease;
}
.letrero-saldo.on { opacity: 1; transform: none; }
.letrero-saldo .ic { width: 36px; height: 36px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--rd-azul-cl); color: var(--rd-azul); }
.letrero-saldo .ic .ico { width: 20px; height: 20px; color: inherit; }
.letrero-saldo .t { flex: 1; min-width: 0; display: block; }
.letrero-saldo .t b { display: block; font-size: 14.5px; font-weight: 700; }
.letrero-saldo .t span { display: block; font-size: 13px; color: var(--rd-gris); line-height: 1.3; margin-top: 1px; }
.letrero-saldo button {
  flex: none; border: 0; border-radius: 999px; padding: 9px 16px; font: 700 14px var(--rd-fuente);
  background: var(--rd-naranja); color: var(--rd-sobre-naranja); cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  .pf-franja { animation: none; }
  .letrero-saldo { transition: none; }
}
