/* Tema visual YOVOY */
:root {
  --yy-orange: #ff6b00;
  --yy-orange-dark: #e85d00;
  --yy-orange-soft: #fff1e8;
  --yy-ink: #17191c;
  --yy-muted: #6f7580;
  --yy-bg: #f5f5f3;
  --yy-surface: #ffffff;
  --yy-line: #e7e7e3;
  --yy-success: #178a4b;
  --yy-danger: #d92d3f;
  --yy-radius: 18px;
  --yy-shadow: 0 8px 26px rgba(23,25,28,.07);
}

/* Reclamación segura de negocios importados */
.business-claim-cta {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #ffd0b2;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff8f3, #fff);
  box-shadow: 0 13px 30px rgba(255, 101, 0, .08);
}
.business-claim-cta > span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, #ff710f, #d94e00);
  font-size: 23px;
}
.business-claim-cta > div { display: grid; min-width: 0; }
.business-claim-cta small { color: #bf4a00; font-size: 8px; font-weight: 950; letter-spacing: .1em; }
.business-claim-cta strong { margin-top: 2px; color: #17191c; font-size: 15px; }
.business-claim-cta p { margin: 3px 0 0; color: #6f7782; font-size: 10px; line-height: 1.45; }
.business-claim-cta > button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: #17191c;
  font-size: 10px;
  font-weight: 950;
}
.business-claim-cta.is-pending { border-color: #f2d994; background: #fffbee; }
.business-claim-cta.is-pending > span { color: #7f5900; background: #ffe8a4; }
.business-claim-modal-card { width: min(100%, 620px); }
.business-claim-modal-card > h2 { margin: 10px 0 5px; font-size: 24px; font-weight: 950; }
.business-claim-modal-card > p { color: #737b86; font-size: 11px; line-height: 1.55; }
.business-claim-modal-icon { display: flex; align-items: center; gap: 10px; padding-right: 42px; margin-bottom: 12px; }
.business-claim-modal-icon > i { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; color: #fff; background: #17191c; font-size: 21px; }
.business-claim-modal-icon > span { display: grid; min-width: 0; }
.business-claim-modal-icon small { color: #ff6500; font-size: 8px; font-weight: 950; letter-spacing: .09em; }
.business-claim-modal-icon strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.business-claim-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.business-claim-form label { display: grid; gap: 5px; color: #30343a; font-size: 10px; font-weight: 900; }
.business-claim-form label:last-child { grid-column: 1 / -1; }
.business-claim-form textarea { min-height: 88px; resize: vertical; }
.business-claim-legal { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 11px; border-radius: 13px; color: #545c67; background: #f5f7f9; font-size: 9px; line-height: 1.45; }
.business-claim-legal input { margin-top: 2px; accent-color: #ff6500; }
.business-claim-security { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 11px; color: #78818c; font-size: 8px; font-weight: 800; }

.yovoy-notify {
  position: fixed;
  z-index: 20050;
  right: 16px;
  bottom: calc(100px + env(safe-area-inset-bottom));
  left: 16px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: min(430px, calc(100% - 32px));
  min-height: 66px;
  padding: 11px 13px;
  margin-inline: auto;
  border: 1px solid rgba(255, 101, 0, .24);
  border-radius: 18px;
  color: #fff;
  background: #17191c;
  box-shadow: 0 18px 42px rgba(23, 25, 28, .28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(.98);
  transition: opacity .2s ease, transform .2s ease;
}

.yovoy-notify.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.yovoy-notify > i { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; color: #fff; background: #ff6500; font-size: 18px; }
.yovoy-notify > span { display: grid; min-width: 0; gap: 2px; }
.yovoy-notify strong { font-size: 13px; font-weight: 950; }
.yovoy-notify small { color: #d8dde3; font-size: 9px; font-weight: 700; line-height: 1.4; }
.yovoy-notify.is-warning > i { background: #d97706; }
.yovoy-notify.is-danger > i { background: #c81e1e; }
.business-invitation-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.business-invitation-actions button:first-child { color: #17191c; background: #fff; box-shadow: inset 0 0 0 1px #dfe3e8; }

@media (max-width: 620px) {
  .business-claim-cta { grid-template-columns: 44px minmax(0, 1fr); padding: 13px; }
  .business-claim-cta > span { width: 44px; height: 44px; border-radius: 14px; font-size: 19px; }
  .business-claim-cta > button { grid-column: 1 / -1; width: 100%; }
  .business-claim-form { grid-template-columns: 1fr; }
  .business-claim-form label:last-child { grid-column: 1; }
}

html { background: var(--yy-bg); }

body {
  color: var(--yy-ink) !important;
  font-family: "Manrope", sans-serif !important;
  background: var(--yy-bg) !important;
}

.app {
  width: min(100%, 720px) !important;
  padding: 12px 14px calc(96px + env(safe-area-inset-bottom)) !important;
}

.topbar {
  position: sticky !important;
  z-index: 70;
  top: max(8px, env(safe-area-inset-top)) !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  width: 100% !important;
  min-height: 58px !important;
  margin: 0 auto 12px !important;
  padding: 8px 10px 8px 16px !important;
  border: 0 !important;
  border-radius: 17px !important;
  background: #17191c !important;
  box-shadow: 0 7px 20px rgba(23,25,28,.13) !important;
}

.topbar .brand-logo {
  width: 108px !important;
  height: 38px !important;
  object-fit: contain;
}

.topbar .btn {
  width: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: #fff !important;
  background: #2a2d31 !important;
  box-shadow: none !important;
}

.glass, .card-soft, .yovoy-delivery, .app-modal-card, .delivery-tracking-card, .business-card{
  border: 1px solid var(--yy-line) !important;
  border-radius: var(--yy-radius) !important;
  background: var(--yy-surface) !important;
  box-shadow: var(--yy-shadow) !important;
  backdrop-filter: none !important;
}

.glass { overflow: hidden; }

.hero {
  min-height: 100%;
  border-radius: 16px !important;
  color: #fff !important;
  background: #17191c !important;
  box-shadow: none !important;
}

.hero h1, .card-soft h2, .delivery-hero h2{
  letter-spacing: -.04em !important;
}

.btn {
  min-height: 42px;
  border-radius: 12px !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

.btn-brand,
.delivery-send,
.compact-send {
  border-color: var(--yy-orange) !important;
  color: #fff !important;
  background: var(--yy-orange) !important;
  box-shadow: none !important;
}

.btn-brand:hover,
.btn-brand:focus,
.delivery-send:hover {
  border-color: var(--yy-orange-dark) !important;
  background: var(--yy-orange-dark) !important;
}

.btn-light,
.btn-outline-dark {
  border-color: var(--yy-line) !important;
  color: var(--yy-ink) !important;
  background: #fff !important;
}

.form-control,
.form-select {
  min-height: 46px !important;
  border: 1px solid #dcdeda !important;
  border-radius: 12px !important;
  color: var(--yy-ink) !important;
  background: #fff !important;
  box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--yy-orange) !important;
  box-shadow: 0 0 0 3px rgba(255,107,0,.12) !important;
}

.nav-pills .nav-link {
  border-radius: 11px !important;
  color: var(--yy-muted) !important;
  font-weight: 800;
}

.nav-pills .nav-link.active {
  color: #fff !important;
  background: var(--yy-orange) !important;
}

.compact-delivery,
.yovoy-delivery {
  overflow: hidden;
  border-radius: 20px !important;
}

.compact-delivery .delivery-hero,
.delivery-hero {
  display: grid !important;
  grid-template-columns: 1fr auto;
  gap: 7px 12px !important;
  min-height: auto !important;
  padding: 15px 16px 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--yy-ink) !important;
  background: #fff !important;
}

.delivery-hero::before,
.delivery-hero::after { display: none !important; }

.delivery-kicker {
  width: max-content;
  margin: 0 !important;
  padding: 5px 9px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: var(--yy-orange-dark) !important;
  background: var(--yy-orange-soft) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .03em;
}

.compact-delivery .delivery-hero h2,
.delivery-hero h2 {
  margin: 0 !important;
  color: var(--yy-ink) !important;
  font-size: clamp(21px, 4vw, 27px) !important;
  line-height: 1.08 !important;
}

.mini-refresh,
.delivery-refresh,
.refresh-mini {
  width: 38px !important;
  height: 38px !important;
  border: 1px solid var(--yy-line) !important;
  border-radius: 12px !important;
  color: var(--yy-ink) !important;
  background: #fff !important;
  box-shadow: none !important;
}

.driver-strip {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
  gap: 7px !important;
  margin: 0 14px 10px !important;
  padding: 10px 12px !important;
  border: 1px solid var(--yy-line) !important;
  border-radius: 14px !important;
  background: #fafaf8 !important;
  box-shadow: none !important;
}

.driver-card {
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.driver-avatar {
  color: #fff !important;
  background: #17191c !important;
}

.delivery-console {
  display: block !important;
  padding: 0 14px 14px !important;
}

.delivery-console > .row {
  --bs-gutter-x: 8px;
  --bs-gutter-y: 8px;
  align-items: stretch;
}

.delivery-order-action {
  display: grid;
  width: 100%;
  gap: 8px;
}

#delivery-order-action { width: 100%; }

.delivery-order-action > .row {
  --bs-gutter-x: 8px;
  --bs-gutter-y: 8px;
}

.delivery-order-row { margin-top: 0; }

.delivery-order-col,
.delivery-description-col,
.delivery-type-col {
  width: 100% !important;
}

#delivery-submit-button {
  min-height: 54px !important;
  font-size: 16px !important;
}

.delivery-order-action.is-promo-ready #delivery-submit-button {
  animation: yovoyPromoOrderReady .72s ease-out 2;
}

@keyframes yovoyPromoOrderReady {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.025); box-shadow: 0 12px 26px rgba(255, 101, 8, .4) !important; }
}

.delivery-status {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 7px !important;
}

.delivery-status > div {
  min-width: 0 !important;
  padding: 8px 9px !important;
  border: 1px solid var(--yy-line) !important;
  border-radius: 12px !important;
  background: #fafaf8 !important;
}

.delivery-status strong,
.delivery-status span {
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--yy-muted) !important;
  background: transparent !important;
}

.delivery-status strong {
  font-size: 8px !important;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.delivery-status span {
  margin-top: 3px;
  color: var(--yy-ink) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.delivery-orbit { display: none !important; }

.delivery-console input,
.delivery-console select {
  min-height: 44px !important;
  border-radius: 12px !important;
}

.compact-send {
  min-height: 46px !important;
}

.compact-send-pulse {
  position: relative;
  isolation: isolate;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 0 8px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: .01em;
  white-space: nowrap;
  animation: yovoyOrderButtonAttention 1.9s ease-in-out infinite;
}

.compact-send-pulse::after {
  position: absolute;
  z-index: -1;
  inset: -1px;
  border: 2px solid rgba(255, 101, 8, .48);
  border-radius: inherit;
  content: "";
  pointer-events: none;
  animation: yovoyOrderButtonRing 1.9s ease-out infinite;
}

@keyframes yovoyOrderButtonAttention {
  0%, 58%, 100% { transform: scale(1); box-shadow: 0 6px 14px rgba(255, 101, 8, .20) !important; }
  68% { transform: scale(1.06); box-shadow: 0 9px 20px rgba(255, 101, 8, .38) !important; }
  78% { transform: scale(.98); }
  88% { transform: scale(1.03); }
}

@keyframes yovoyOrderButtonRing {
  0%, 58% { opacity: 0; transform: scale(1); }
  68% { opacity: .9; }
  100% { opacity: 0; transform: scale(1.22, 1.35); }
}

@media (prefers-reduced-motion: reduce) {
  .compact-send-pulse,
  .compact-send-pulse::after {
    animation: none !important;
  }
}

/* Historial ligero: activos visibles y cinco pedidos terminados por página. */
#view-orders > .card-soft {
  width: 100%;
}

#view-orders > .card-soft > h2 {
  font-size: clamp(22px, 4vw, 30px);
}

#view-orders > .card-soft > p {
  font-size: clamp(13px, 2.7vw, 16px);
}

.user-order-history,
.user-order-history-group {
  display: grid;
  gap: 12px;
}

.user-order-history-group + .user-order-history-group {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid #eceff2;
}

.user-order-history-group > h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  color: #343942;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.user-order-history-group > h3 span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.user-order-history-group > h3 i { color: #ff6500; }
.user-order-history-group > h3 b {
  display: grid;
  min-width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #ff6500;
  font-size: 11px;
}

.user-order-history-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  padding: 14px;
  border: 1px solid #e5e8ec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(24, 27, 32, .045);
}

.user-order-history-card.is-active {
  border-color: rgba(255, 101, 0, .38);
  background: linear-gradient(135deg, #fffaf6, #fff);
  box-shadow: 0 8px 22px rgba(255, 101, 0, .09);
}

.user-order-history-main {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.user-order-history-main span {
  color: #e85700;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.user-order-history-main strong {
  overflow: hidden;
  color: #1d2025;
  font-size: 14px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-order-history-main small {
  color: #757d88;
  font-size: 10px;
}

.user-order-history-card > b {
  align-self: start;
  color: #17191d;
  font-size: 17px;
  font-weight: 900;
}

.user-order-history-card > em {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  color: #087a55;
  background: #dff9ed;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.user-order-history-card.is-active > em {
  color: #a84400;
  background: #fff0e5;
}

.user-order-history-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
}

.user-order-history-actions:empty { display: none; }

.user-order-history-actions .order-chat-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ffd5b8;
  border-radius: 13px;
  color: #d95200;
  background: #fff5ee;
  font-size: 11px;
  font-weight: 900;
  touch-action: manipulation;
}

.user-order-history-state {
  display: grid;
  min-height: 170px;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 24px 16px;
  border: 1px dashed #d7dce2;
  border-radius: 18px;
  color: #68717d;
  text-align: center;
}

.user-order-history-state > i { color: #ff6500; font-size: 28px; }
.user-order-history-state > strong { color: #282c32; font-size: 15px; }
.user-order-history-state > span,
.user-order-history-state > small { font-size: 11px; }

.user-order-history-state > button,
.user-order-history-error button,
.user-order-history-more {
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 900;
  touch-action: manipulation;
}

.user-order-history-state > button {
  width: min(100%, 240px);
  margin-top: 7px;
  color: #fff;
  background: #ff6500;
}

.user-order-history-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #ffe0cc;
  border-top-color: #ff6500;
  border-radius: 50%;
  animation: userOrderHistorySpin .7s linear infinite;
}

.user-order-history-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  color: #fff;
  background: #17191d;
}

.user-order-history-more[aria-busy="true"] i { animation: userOrderHistorySpin .7s linear infinite; }
.user-order-history-more:disabled { opacity: .7; }

.user-order-history-error {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #ffd1cd;
  border-radius: 15px;
  color: #8d241c;
  background: #fff2f0;
}

.user-order-history-error span { display: grid; gap: 2px; }
.user-order-history-error strong { font-size: 12px; }
.user-order-history-error small { font-size: 10px; }
.user-order-history-error button {
  min-height: 44px;
  padding-inline: 14px;
  color: #fff;
  background: #b42318;
}

@keyframes userOrderHistorySpin { to { transform: rotate(360deg); } }

@media (max-width: 520px) {
  #view-orders > .card-soft { padding: 16px !important; }
  .user-order-history-card { padding: 12px; border-radius: 16px; }
  .user-order-history-main strong { font-size: 13px; }
  .user-order-history-card > b { font-size: 16px; }
  .user-order-history-actions { grid-template-columns: 1fr; }
  .user-order-history-error { grid-template-columns: 1fr; }
  .user-order-history-error button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .user-order-history-spinner,
  .user-order-history-more[aria-busy="true"] i { animation-duration: 1.5s; }
}

/* Pago del cliente: una sola fila legible; el desglose se abre únicamente
   cuando productos y envío pueden mostrarse sin inventar importes. */
.delivery-cash-summary-slot {
  margin: 0 0 10px;
}

.user-cash-summary {
  display: block;
  overflow: hidden;
  width: 100%;
  margin: 0;
  border: 1px solid #bfe5d5;
  border-radius: 14px;
  color: #163f31;
  background: linear-gradient(135deg, #f3fcf8, #fff);
  box-shadow: 0 5px 14px rgba(8, 112, 76, .07);
}

.user-cash-summary-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 64px;
  padding: 8px 10px;
}

.user-cash-summary summary {
  list-style: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.user-cash-summary summary::-webkit-details-marker { display: none; }
.user-cash-summary summary::marker { content: ""; }
.user-cash-summary summary:focus-visible {
  outline: 3px solid rgba(8, 112, 76, .25);
  outline-offset: -3px;
}

.user-cash-summary-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #fff;
  background: #08704c;
  font-size: 15px;
}

.user-cash-summary-copy {
  display: grid;
  min-width: 0;
  line-height: 1.15;
}

.user-cash-summary-copy small {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #08704c;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.user-cash-summary-copy small i { font-size: 5px; }
.user-cash-summary-copy strong {
  margin-top: 2px;
  color: #17221e;
  font-size: 13px;
  font-weight: 950;
}

.user-cash-summary-copy em {
  margin-top: 2px;
  color: #52645d;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.22;
}

.user-cash-summary-total {
  display: grid;
  min-width: 65px;
  justify-items: end;
  white-space: nowrap;
}

.user-cash-summary-total strong {
  color: #08704c;
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.035em;
}

.user-cash-summary-total small {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  color: #65756f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
}

.user-cash-summary-total i {
  color: #08704c;
  font-size: 8px;
  transition: transform .16s ease;
}

.user-cash-summary[open] .user-cash-summary-total i { transform: rotate(180deg); }

.user-card-summary {
  border-color: #cbd8ff;
  color: #263b78;
  background: linear-gradient(135deg, #f3f6ff, #fff);
  box-shadow: 0 5px 14px rgba(49, 86, 200, .08);
}

.user-card-summary .user-cash-summary-icon { background: #3156c8; }
.user-card-summary .user-cash-summary-copy small,
.user-card-summary .user-cash-summary-total strong,
.user-card-summary .user-cash-summary-total i { color: #3156c8; }
.user-card-summary .user-cash-breakdown { border-top-color: rgba(49, 86, 200, .12); }
.user-card-summary .user-cash-breakdown > span { background: #eef2ff; }

.user-cash-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 7px 10px 9px 53px;
  border-top: 1px solid rgba(8, 112, 76, .12);
  background: rgba(255, 255, 255, .72);
}

.user-cash-breakdown > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 9px;
  background: #eef8f3;
}

.user-cash-breakdown small { color: #61716b; font-size: 10px; font-weight: 750; }
.user-cash-breakdown strong { color: #173e31; font-size: 11px; font-weight: 950; }

/* La cotización previa conserva total, método y ETA en menos altura. */
.delivery-quote {
  grid-template-columns: 32px minmax(0, 1fr) auto !important;
  gap: 8px !important;
  margin-top: 8px !important;
  padding: 7px 9px !important;
  border-radius: 12px !important;
}

.delivery-quote-icon {
  width: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
}

.delivery-quote-copy span { font-size: 11px !important; }
.delivery-quote-copy small {
  overflow: hidden;
  margin-top: 1px !important;
  font-size: 8px !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#delivery-quote-market {
  max-width: none !important;
  font-size: 8px !important;
}

.delivery-quote-total strong { font-size: 20px !important; }
.delivery-quote-total span { margin-top: 2px !important; font-size: 8px !important; }

@media (max-width: 420px) {
  .user-cash-summary-row {
    grid-template-columns: 31px minmax(0, 1fr) auto;
    gap: 7px;
    min-height: 64px;
    padding: 7px 8px;
  }

  .user-cash-summary-icon { width: 31px; height: 31px; border-radius: 10px; font-size: 14px; }
  .user-cash-summary-copy strong { font-size: 12px; }
  .user-cash-summary-copy em { font-size: 10px; }
  .user-cash-summary-total { min-width: 61px; }
  .user-cash-summary-total strong { font-size: 18px; }
  .user-cash-breakdown { padding-left: 46px; }
}

.delivery-quote {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid #ffd7bc;
  border-radius: 14px;
  background: #fff8f3;
}

.delivery-quote-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #fff;
  background: var(--yy-orange);
  font-size: 18px;
}

.delivery-quote-copy span,
.delivery-quote-copy small,
.delivery-quote-total strong,
.delivery-quote-total span { display: block; }

.delivery-quote-copy span {
  color: var(--yy-ink);
  font-size: 12px;
  font-weight: 800;
}

.delivery-quote-copy small {
  margin-top: 2px;
  color: var(--yy-muted);
  font-size: 9px;
}

#delivery-quote-market { max-width: 260px; color: var(--yy-orange-dark) !important; font-size: 9px !important; font-weight: 800 !important; }

.delivery-quote-total { text-align: right; }

.delivery-quote-total strong {
  color: var(--yy-orange-dark);
  font-size: 23px;
  line-height: 1;
  letter-spacing: -.04em;
}

.delivery-quote-total span {
  margin-top: 4px;
  color: var(--yy-muted);
  font-size: 9px;
  font-weight: 800;
}

.delivery-status,
.compact-status {
  display: flex !important;
  flex-wrap: wrap;
  gap: 7px !important;
}

.delivery-status span,
.compact-status span,
.delivery-meta span {
  padding: 6px 9px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: var(--yy-muted) !important;
  background: #f3f3f0 !important;
  font-size: 10px !important;
}

.delivery-tracking-card {
  margin: 0 14px 14px !important;
  padding: 14px !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

.delivery-driver-summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid #e4e7eb;
  border-radius: 16px;
  background: #f7f8f9;
}

.delivery-driver-summary > span:last-child {
  display: grid;
  min-width: 0;
}

.delivery-driver-summary small {
  color: #f45b00;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .12em;
}

.delivery-driver-summary strong {
  overflow: hidden;
  color: #17191c;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-driver-summary em {
  overflow: hidden;
  color: #747b84;
  font-size: 9px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-driver-avatar,
.driver-rating-avatar,
.store-delivery-driver-avatar,
.driver-avatar {
  position: relative;
  overflow: hidden;
}

.delivery-driver-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: #fff;
  background: #17191c;
  font-size: 17px;
  font-weight: 950;
}

.delivery-driver-avatar img,
.driver-rating-avatar img,
.store-delivery-driver-avatar img,
.driver-avatar img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.driver-avatar-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.tracking-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 8px;
  row-gap: 4px;
  margin-bottom: 8px;
}

.tracking-head-title { min-width: 0; }
.tracking-head .delivery-kicker { margin-bottom: 4px; }
.tracking-head h3 {
  margin-bottom: 0;
  font-size: 18px !important;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.tracking-head p {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.tracking-pill {
  max-width: min(42vw, 138px);
  padding: 7px 9px;
  color: var(--yy-orange-dark) !important;
  background: var(--yy-orange-soft) !important;
  font-size: 10px;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.delivery-search-loader {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 9px;
  min-height: 66px;
  margin: 8px 0;
  padding: 9px 10px;
  border-radius: 17px;
}

.delivery-search-orbit {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.delivery-search-orbit i { font-size: 20px; }
.delivery-search-copy { min-width: 0; }
.delivery-search-copy strong {
  font-size: 12px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.delivery-search-copy small {
  min-height: 0;
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.tracking-actions {
  display: grid !important;
  grid-template-columns: 1fr auto;
  gap: 8px !important;
  margin-top: 10px !important;
}

.delivery-route-panel {
  margin-top: 10px !important;
  padding: 8px !important;
  border: 1px solid var(--yy-line) !important;
  border-radius: 16px !important;
  background: #fafaf8 !important;
}

.delivery-user-map {
  min-height: 280px !important;
  border-radius: 13px !important;
}

.route-user-control {
  min-height: 42px !important;
  border-radius: 11px !important;
  background: #17191c !important;
}

.route-user-control.secondary {
  border: 1px solid var(--yy-line) !important;
  color: var(--yy-ink) !important;
  background: #fff !important;
}

.card-soft {
  padding: 16px !important;
  border-radius: 20px !important;
}

.card-soft h2 { font-size: 20px !important; }







.share-btn,
.favorite-btn { box-shadow: none !important; }

.business-card {
  border-radius: 16px !important;
  box-shadow: none !important;
}

.business-card.has-photo {
  padding: 0 !important;
  overflow: hidden;
  background: #fff;
}

.business-card-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.business-card-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 7px;
}

.business-card-fact {
  display: grid;
  min-width: 0;
  grid-template-columns: 19px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid transparent;
  border-radius: 12px;
  line-height: 1.05;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(24, 31, 41, .05);
}

.business-card-fact > i {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 7px;
  font-size: 10px;
}

.business-card-fact > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.business-card-fact small {
  color: #7c8490;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.business-card-fact strong {
  overflow: hidden;
  color: #20242a;
  font-size: 9.25px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-card-fact.is-phone {
  border-color: #ffd8bd;
  background: linear-gradient(145deg, #fffaf6, #fff0e5);
}

.business-card-fact.is-phone > i {
  color: #fff;
  background: linear-gradient(145deg, #ff7a1a, #f25300);
  box-shadow: 0 4px 9px rgba(255, 101, 0, .23);
}

.business-card-fact.is-phone:hover,
.business-card-fact.is-phone:focus-visible {
  border-color: #ff6500;
  transform: translateY(-1px);
}

.business-card-fact.is-distance {
  border-color: #cdeedd;
  background: linear-gradient(145deg, #f7fffb, #e9f9f1);
}

.business-card-fact.is-distance > i {
  color: #fff;
  background: linear-gradient(145deg, #20b87b, #078557);
  box-shadow: 0 4px 9px rgba(8, 151, 99, .2);
}

.business-card-fact:only-child {
  grid-column: 1 / -1;
}

.business-card-share {
  display: flex;
  min-height: 35px;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 5px 6px 5px 9px;
  border: 1px solid #eceef1;
  border-radius: 13px;
  background: linear-gradient(145deg, #fff, #f8f9fa);
}

.business-card-share > span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  color: #616975;
  font-size: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.business-card-share > span > i,
.business-card-share > span > b {
  color: #ff6500;
}

.business-card-share > div {
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
}

.business-share-button {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  box-shadow: 0 4px 9px rgba(24, 31, 41, .14);
  transition: transform .16s ease, box-shadow .16s ease;
}

.business-share-button:hover,
.business-share-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 13px rgba(24, 31, 41, .2);
}

.business-share-button.is-facebook {
  background: linear-gradient(145deg, #2f88ff, #0866ff);
}

.business-share-button.is-instagram {
  background: linear-gradient(145deg, #8a3ab9 8%, #e1306c 48%, #f77737 78%, #fcaf45);
}

.business-share-button.is-whatsapp {
  background: linear-gradient(145deg, #2bd46f, #12a854);
}

.business-photo-shell {
  position: relative;
  height: 142px;
  overflow: hidden;
  background: #fff;
}

.business-photo-shell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity .3s ease, transform .45s ease;
}

.business-photo-shell.loaded img {
  opacity: 1;
  transform: scale(1);
}

.business-photo-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-image: var(--business-art);
  background-position: center;
  background-repeat: no-repeat;
  background-color: #fff;
  background-size: contain;
  color: #b7b2aa;
  font-size: 2rem;
}

.business-photo-placeholder i { opacity: 0; }
.business-photo-shell.loaded .business-photo-placeholder { opacity: 0; }

.business-photo-attribution {
  position: absolute;
  right: 7px;
  bottom: 7px;
  z-index: 2;
  max-width: calc(100% - 14px);
  padding: 4px 7px;
  border-radius: 7px;
  color: #fff;
  background: rgba(0,0,0,.62);
  font-size: 8px;
  line-height: 1.2;
  opacity: 0;
}

.business-photo-attribution a { color: #fff; }
.business-photo-shell.loaded .business-photo-attribution { opacity: 1; }

@media (max-width: 575.98px) {
  .business-photo-shell { height: 124px; }
  .business-card-facts { grid-template-columns: minmax(0, 1fr) 100px; }
  .business-card-fact {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 5px;
    padding: 6px;
  }
  .business-card-fact > i {
    width: 22px;
    height: 22px;
  }
  .business-card-fact strong { font-size: 10px; }
}

.business-card:hover,
.business-card.selected {
  transform: none !important;
  border-color: var(--yy-orange) !important;
  box-shadow: 0 0 0 3px rgba(255,107,0,.10) !important;
}

.bottom-nav {
  bottom: max(4px, calc(env(safe-area-inset-bottom) - 6px)) !important;
  width: min(520px, calc(100% - 20px)) !important;
  min-height: 66px !important;
  padding: 6px !important;
  border: 1px solid var(--yy-line) !important;
  border-radius: 19px !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 10px 32px rgba(23,25,28,.14) !important;
  backdrop-filter: blur(16px);
}

.bottom-nav button {
  min-width: 0;
  padding: 7px 4px !important;
  border-radius: 13px !important;
  color: #848992 !important;
  font-size: 9px !important;
  font-weight: 800 !important;
}

.bottom-nav button i { font-size: 18px !important; }

.bottom-nav button.active {
  color: var(--yy-orange-dark) !important;
  background: var(--yy-orange-soft) !important;
}

.app-modal-card { border-radius: 20px !important; }
.modal-chip { color: var(--yy-orange-dark) !important; background: var(--yy-orange-soft) !important; }
.empty { border-radius: 14px !important; background: #fafaf8 !important; }

@media (max-width: 720px) {
  .app { padding: 8px 10px calc(92px + env(safe-area-inset-bottom)) !important; }
  .topbar { top: max(6px, env(safe-area-inset-top)) !important; border-radius: 15px !important; }
  .glass { padding: 14px !important; }
  .hero { padding: 20px !important; }
  .delivery-console .delivery-description-col,
  .delivery-console .delivery-type-col,
  .delivery-console .delivery-order-col { width: 100% !important; }
  .tracking-actions,
  .route-user-controls { grid-template-columns: 1fr 1fr !important; }
  .delivery-quote { grid-template-columns: 36px minmax(0, 1fr) auto; padding: 10px; }
  .delivery-quote-icon { width: 36px; height: 36px; }
  .delivery-quote-total strong { font-size: 21px; }
  .driver-strip {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .driver-strip .driver-card { flex: 0 0 min(84%, 260px); scroll-snap-align: start; }
}

@media (max-width: 430px) {
  .delivery-tracking-card {
    margin: 0 10px 10px !important;
    padding: 11px !important;
  }

  .tracking-head {
    column-gap: 6px;
    row-gap: 3px;
    margin-bottom: 7px;
  }

  .tracking-head h3 { font-size: 17px !important; }
  .tracking-head p { font-size: 10px; line-height: 1.3; }
  .tracking-pill {
    max-width: 112px;
    padding: 6px 8px;
    font-size: 9px;
  }

  .delivery-search-loader {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 60px;
    padding: 8px 9px;
  }

  .delivery-search-orbit {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .delivery-search-dots { gap: 3px; }
  .delivery-search-dots i { width: 5px; height: 5px; }
}

/* Inicio compacto: barra superior y categorías por giro. */
.topbar {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 6px 10px !important;
}

.topbar > .d-flex:last-child {
  justify-self: end;
}

@media (max-width: 520px) {
}

/* Inicio conserva una separación estable; las demás vistas reciben su propio aire. */
#view-home.active {
  margin-top: 0;
}

@media (max-width: 520px) {
  #view-home.active {
    margin-top: 0;
  }
}

.home-discovery {
  margin: 8px 0 12px !important;
  padding: 16px 16px 10px !important;
  border-radius: 25px !important;
}

.home-welcome-topline {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-welcome-topline > span {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: .04em;
  overflow-wrap: anywhere;
  white-space: normal;
}

.home-welcome-topline .location-choice {
  flex: 0 0 auto;
  margin: 0 !important;
}

.home-welcome-topline .location-choice button {
  min-height: 32px;
  padding: 5px 9px !important;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 12px;
  color: #087b4a;
  background: rgba(255,255,255,.94);
  box-shadow: 0 6px 15px rgba(95,31,0,.16);
  font-size: 9px;
  font-weight: 950;
  white-space: nowrap;
}

.home-welcome-topline .location-choice button i { margin-right: 4px; }
.home-welcome-topline .location-choice button small {
  margin-left: 5px;
  padding: 3px 5px;
  border-radius: 7px;
  color: #fff;
  background: #19a66a;
  font-size: 7px;
  font-weight: 950;
}

.home-welcome h1 {
  max-width: 100%;
  margin: 5px 0 1px !important;
  font-size: clamp(24px, 6.6vw, 34px) !important;
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.home-welcome p {
  max-width: 100%;
  margin-bottom: 10px !important;
  font-size: 11px !important;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
}

.smart-search {
  margin-top: 17px !important;
  border-radius: 15px !important;
}

.smart-search input {
  padding: 9px 0 !important;
}

.location-choice {
  margin-top: 7px !important;
}

.location-choice button,
.location-choice label {
  padding-block: 7px !important;
}

.location-status {
  min-height: 18px !important;
  margin-top: 4px !important;
}

.location-status.is-active {
  display: none !important;
}

@media (max-width: 390px) {
  .home-welcome-topline > span { font-size: 9px; }
  .home-welcome-topline .location-choice button span { font-size: 8px; }
  .home-welcome-topline .location-choice button { padding-inline: 7px !important; }
}

@media (max-width: 360px) {
  .home-welcome-topline {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .home-welcome-topline .location-choice {
    max-width: 100%;
    margin-left: auto !important;
  }
}

.featured-promotion-next-modal {
  max-width: 390px;
  text-align: center;
}

.featured-promotion-next-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(145deg, #ff7b1a, #f45100);
  box-shadow: 0 14px 28px rgba(255,101,0,.28);
  font-size: 28px;
}

.featured-promotion-next-modal h2 {
  margin: 8px 0 5px;
  color: #17191c;
  font-size: 24px;
  font-weight: 950;
}

.featured-promotion-next-modal > p {
  margin: 0 auto 18px;
  color: #727984;
  font-size: 12px;
  line-height: 1.45;
}

.featured-promotion-next-actions {
  display: grid;
  gap: 9px;
}

.featured-promotion-next-actions button {
  min-height: 52px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 950;
}

.featured-promotion-next-actions button i { margin-right: 8px; }
.featured-promotion-next-actions button[aria-busy="true"] i.bi-arrow-repeat,
.featured-promotion-store-catalog-finish[aria-busy="true"] i.bi-arrow-repeat,
.featured-promotion-quantity-confirm[aria-busy="true"] i.bi-arrow-repeat {
  animation: featured-promotion-button-spin .72s linear infinite;
}

@keyframes featured-promotion-button-spin {
  to { transform: rotate(360deg); }
}

.featured-promotion-next-actions .keep-shopping {
  border: 1px solid #ffc69f;
  color: #d94e00;
  background: #fff5ee;
}
.featured-promotion-next-actions .continue-order {
  border: 0;
  color: #fff;
  background: #ff6500;
  box-shadow: 0 10px 22px rgba(255,101,0,.24);
}

.category-section {
  margin: 2px 0 16px !important;
}

.category-strip {
  gap: 10px !important;
  padding-top: 11px !important;
}

.category-strip .category-tile {
  flex-basis: 72px !important;
  gap: 4px !important;
}

.category-strip .category-visual {
  position: relative;
  overflow: visible;
  width: 58px !important;
  height: 49px !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--category-color) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.category-strip .category-visual::after {
  display: none !important;
}

.category-strip .category-icon {
  width: 43px;
  height: 43px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 5px 4px var(--category-shadow));
  transition: transform .18s cubic-bezier(.2,.8,.2,1), filter .18s ease;
}

.category-strip .category-icon .icon-accent {
  fill: var(--category-fill);
  stroke: none;
  opacity: 1;
}

.category-strip .category-icon circle,
.category-strip .category-icon ellipse {
  fill: var(--category-fill);
  stroke: currentColor;
  stroke-width: 1.1;
}

.category-strip .category-tile:active .category-icon {
  transform: translateY(2px) scale(.92);
  filter: drop-shadow(0 2px 2px var(--category-shadow));
}

.category-strip .category-tile small {
  display: -webkit-box;
  overflow: hidden;
  min-height: 25px;
  color: #2d3035;
  font-size: 9.5px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-tone-tomato { --category-color:#e63f27; --category-fill:#ff9a7f; --category-shadow:rgba(230,63,39,.25); }
.category-tone-blue { --category-color:#1768e5; --category-fill:#78b7ff; --category-shadow:rgba(23,104,229,.24); }
.category-tone-violet { --category-color:#7136df; --category-fill:#b590ff; --category-shadow:rgba(113,54,223,.24); }
.category-tone-amber { --category-color:#c96c00; --category-fill:#ffc85c; --category-shadow:rgba(201,108,0,.25); }
.category-tone-pink { --category-color:#d91e70; --category-fill:#ff8abb; --category-shadow:rgba(217,30,112,.24); }
.category-tone-green { --category-color:#07865e; --category-fill:#6dd8ad; --category-shadow:rgba(7,134,94,.24); }
.category-tone-cyan { --category-color:#07849e; --category-fill:#62cadc; --category-shadow:rgba(7,132,158,.24); }
.category-tone-red { --category-color:#dd264b; --category-fill:#ff829b; --category-shadow:rgba(221,38,75,.24); }
.category-tone-brown { --category-color:#92522f; --category-fill:#dba27e; --category-shadow:rgba(146,82,47,.24); }
.category-tone-orange { --category-color:#e2540b; --category-fill:#ffad72; --category-shadow:rgba(226,84,11,.24); }

@media (max-width: 430px) {
  .topbar {
    padding: 7px 8px 7px 12px !important;
  }

  .topbar .brand-logo {
    width: 92px !important;
  }

  .home-discovery {
    padding: 14px 13px 10px !important;
  }
}

/* El banner conserva su fotografía nítida; solo el buscador usa efecto cristal. */
.home-discovery .smart-search {
  border: 1px solid rgba(255,255,255,.82) !important;
  background: rgba(255,255,255,.7) !important;
  box-shadow: 0 10px 28px rgba(72,32,0,.14), inset 0 1px 0 rgba(255,255,255,.6) !important;
  -webkit-backdrop-filter: saturate(1.12) !important;
  backdrop-filter: saturate(1.12) !important;
}

.home-discovery .smart-search input {
  color: #303238 !important;
  background: transparent !important;
}

.home-discovery .smart-search input::placeholder {
  color: rgba(48,50,56,.78) !important;
}

.home-discovery .smart-search button {
  color: #626975 !important;
  background: rgba(255,255,255,.5) !important;
}

.business-public-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 8px;
}

.business-public-contact > * {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid #e5e8ec;
  border-radius: 12px;
  color: #4f5865;
  background: #f7f8fa;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
  text-decoration: none;
}

.business-public-contact i {
  flex: 0 0 auto;
  color: #ff6500;
}

.business-public-contact .business-contact-address {
  flex: 1 1 320px;
}

.business-public-contact a:hover,
.business-public-contact a:focus-visible {
  color: #d94f00;
  border-color: rgba(255,101,0,.35);
  background: #fff5ee;
}

.business-public-contact .business-contact-distance {
  color: #087c50;
  border-color: #cdebdc;
  background: #effbf5;
  white-space: nowrap;
}

.business-public-contact .business-contact-distance i {
  color: #0a9c65;
}

.business-public-contact .business-contact-share {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 9px;
  padding: 5px 6px 5px 10px;
  border-color: #e5dff8;
  background: linear-gradient(145deg, #fff, #f7f3ff);
}

.business-detail-share-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.business-detail-share-copy > i {
  color: #6d45d9;
  font-size: 15px;
}

.business-detail-share-copy > span {
  display: grid;
  line-height: 1.05;
}

.business-detail-share-copy small {
  color: #6d6579;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.business-detail-share-copy strong {
  color: #ff6500;
  font-size: 11px;
  font-weight: 900;
}

.business-detail-share-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.business-contact-share .business-share-button {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 14px;
}

.business-contact-share .business-share-button i {
  color: #fff;
}

.business-public-description {
  margin: 14px 0 0;
  color: #59616d;
}

@media (max-width: 430px) {
  .home-discovery .smart-search {
    background: rgba(255,255,255,.74) !important;
  }

  .business-public-contact .business-contact-address {
    flex-basis: 100%;
  }

  .business-public-contact .business-contact-share {
    justify-content: space-between;
  }

}

/* Sistema visual YOVOY: banners contenidos y categorías flat */
.home-discovery {
  position: relative;
  isolation: isolate;
  overflow: hidden !important;
  border-radius: 25px !important;
  background: #d94600 !important;
  box-shadow: 0 15px 34px rgba(204, 63, 0, .22) !important;
}

.home-discovery::before,
.home-discovery::after {
  inset: 0;
  clip-path: none !important;
  border-radius: inherit;
  transform: none !important;
}

.home-discovery::before {
  background: url("banner-discovery-neighborhood-v2.webp") 68% center / cover no-repeat !important;
  filter: saturate(1.06) contrast(1.02) !important;
  opacity: .96 !important;
}

.home-discovery::after {
  background:
    linear-gradient(180deg, rgba(151, 37, 0, .14), rgba(151, 37, 0, .24)),
    linear-gradient(96deg, rgba(205, 54, 0, .92) 0%, rgba(225, 63, 0, .76) 43%, rgba(188, 47, 0, .26) 74%, rgba(102, 25, 0, .12) 100%) !important;
}

.home-discovery .home-welcome {
  text-shadow: 0 2px 12px rgba(74, 20, 0, .3);
}

.home-discovery .smart-search,
.home-discovery .location-choice > * {
  backdrop-filter: blur(7px);
}

.compact-delivery .delivery-hero,
.delivery-hero {
  min-height: 92px !important;
  overflow: hidden !important;
  background: #fffaf6 !important;
}

.compact-delivery .delivery-hero::before,
.delivery-hero::before {
  background: url("banner-courier-3d-v2.webp") right center / auto 100% no-repeat !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.compact-delivery .delivery-hero::after,
.delivery-hero::after {
  background:
    linear-gradient(90deg, #fff 0%, rgba(255,255,255,.98) 42%, rgba(255,255,255,.68) 67%, rgba(255,255,255,.12) 100%) !important;
}

.compact-delivery .delivery-hero h2,
.delivery-hero h2 {
  max-width: 76%;
}

.category-section {
  position: relative;
  overflow: hidden;
  margin: 4px 0 18px !important;
  padding: 15px 14px 12px;
  border: 1px solid #ebe7e3;
  border-radius: 24px;
  background:
    radial-gradient(circle at 96% 0%, rgba(255,101,0,.08), transparent 26%),
    #fff;
  box-shadow: 0 12px 30px rgba(28, 25, 22, .07);
}

.category-section .category-expand-button {
  position: relative;
  z-index: 2;
}

.category-section .category-expand-button > span {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.035em;
}

.category-strip {
  position: relative;
  z-index: 1;
  gap: 10px 6px !important;
  padding: 12px 0 2px !important;
}

.category-strip .category-tile {
  display: grid !important;
  min-width: 0 !important;
  align-content: start;
  justify-items: center;
  gap: 3px !important;
  padding: 3px 1px 5px !important;
  border: 0;
  border-radius: 16px;
  background: transparent !important;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), background .18s ease;
}

.category-strip .category-tile:hover,
.category-strip .category-tile:focus-visible {
  background: linear-gradient(180deg, rgba(255,244,237,.72), rgba(255,255,255,0)) !important;
  transform: translateY(-2px);
}

.category-strip .category-visual {
  position: relative;
  display: grid !important;
  width: clamp(58px, 9vw, 78px) !important;
  height: clamp(58px, 9vw, 76px) !important;
  place-items: center;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.category-strip .category-visual::before {
  position: absolute;
  right: 12%;
  bottom: 4px;
  left: 12%;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(31, 24, 20, .2), rgba(31, 24, 20, 0) 70%);
  filter: blur(3px);
  content: "";
}

.category-strip .category-visual::after {
  display: none !important;
}

.category-strip .category-icon-flat {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  filter: drop-shadow(0 5px 6px rgba(35, 25, 19, .16));
  transition: transform .18s cubic-bezier(.2,.8,.2,1), filter .18s ease;
}

.category-strip .category-tile:hover .category-icon-flat,
.category-strip .category-tile:focus-visible .category-icon-flat {
  filter: drop-shadow(0 8px 8px rgba(35, 25, 19, .2));
  transform: translateY(-2px) scale(1.05);
}

.category-strip .category-tile:active .category-icon-flat {
  filter: drop-shadow(0 3px 4px rgba(35, 25, 19, .14));
  transform: translateY(1px) scale(.95);
}

.category-strip .category-tile small {
  display: -webkit-box;
  overflow: hidden;
  min-height: 26px;
  color: #222327;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 430px) {
  .home-discovery {
    border-radius: 23px !important;
  }

  .home-discovery::before {
    background-position: 72% center !important;
    filter: saturate(1.06) contrast(1.02) !important;
    opacity: .94 !important;
  }

  .home-discovery::after {
    background:
      linear-gradient(180deg, rgba(137,31,0,.14), rgba(137,31,0,.3)),
      linear-gradient(100deg, rgba(205,54,0,.94) 0%, rgba(224,62,0,.76) 54%, rgba(126,29,0,.22) 100%) !important;
  }

  .compact-delivery .delivery-hero,
  .delivery-hero {
    min-height: 78px !important;
  }

  .compact-delivery .delivery-hero::before,
  .delivery-hero::before {
    background-position: 112% center !important;
    background-size: auto 100% !important;
  }

  .compact-delivery .delivery-hero::after,
  .delivery-hero::after {
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.98) 48%, rgba(255,255,255,.74) 70%, rgba(255,255,255,.2) 100%) !important;
  }

  .compact-delivery .delivery-hero h2,
  .delivery-hero h2 {
    max-width: 82%;
    font-size: 21px !important;
  }

  .category-section {
    margin-inline: 0 !important;
    padding: 14px 9px 10px;
    border-radius: 21px;
  }

  .category-section .category-expand-button {
    padding-inline: 3px;
  }

  .category-section .category-expand-button > span {
    font-size: 19px;
  }

  .category-strip {
    gap: 9px 2px !important;
    padding-top: 10px !important;
  }

  .category-strip .category-visual {
    width: clamp(54px, 15.5vw, 66px) !important;
    height: clamp(54px, 15.5vw, 66px) !important;
  }

  .category-strip .category-tile small {
    min-height: 24px;
    font-size: 9px !important;
  }
}

/* Panel comercial visible para dueños de negocios */
.business-owner-shortcut {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 10%, rgba(255,112,24,.55), transparent 28%),
    linear-gradient(135deg,#17191d,#252a31);
  box-shadow: 0 14px 32px rgba(22,25,29,.16);
}

.owner-shortcut-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #fff;
  background: #ff6500;
  font-size: 21px;
}

.business-owner-shortcut>div:nth-child(2) {
  min-width: 0;
}

.business-owner-shortcut span {
  color: #ff9b5d;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}

.business-owner-shortcut h2 {
  overflow: hidden;
  margin: 2px 0;
  font-size: 16px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-owner-shortcut p {
  margin: 0;
  color: #bfc5cd;
  font-size: 10px;
}

.business-owner-shortcut>button,
.owner-commerce-heading>button {
  padding: 10px 12px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: #ff6500;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.owner-commerce-panel {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #e6e9ed;
  border-radius: 24px;
  background: #fff;
}

.owner-commerce-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0, rgba(255,101,0,.42), transparent 30%),
    #17191d;
}

.owner-commerce-heading>div>span,
.owner-orders-preview>div>span {
  color: #ff8a42;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}

.owner-commerce-heading h3 {
  margin: 5px 0 3px;
  font-size: 19px;
  font-weight: 900;
}

.owner-commerce-heading p {
  max-width: 540px;
  margin: 0;
  color: #bcc2ca;
  font-size: 11px;
}

.owner-commerce-stats {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 1px;
  background: #e9ecef;
}

.owner-commerce-stats span {
  display: grid;
  padding: 13px 8px;
  background: #f8f9fa;
  text-align: center;
}

.owner-commerce-stats b {
  color: #17191d;
  font-size: 20px;
}

.owner-commerce-stats small {
  color: #747d88;
  font-size: 8px;
  font-weight: 800;
}

.owner-store-links {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.owner-store-links>article {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 11px;
  padding: 13px;
  border: 1px solid #e8ebef;
  border-radius: 17px;
}

.owner-store-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 14px;
  color: #ff6500;
  background: #fff0e6;
  font-size: 19px;
}

.owner-store-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.owner-store-links article>div:nth-child(2) {
  display: grid;
  min-width: 0;
}

.owner-store-links article span {
  color: #07865e;
  font-size: 9px;
  font-weight: 900;
}

.owner-store-links article strong {
  font-size: 15px;
}

.owner-store-links code,
.store-share-url {
  display: block;
  overflow: hidden;
  margin: 4px 0;
  padding: 6px 8px;
  border-radius: 8px;
  color: #d84e00;
  background: #fff2e9;
  font-family: inherit;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-store-links article small {
  color: #78808b;
  font-size: 9px;
}

.owner-store-link-actions {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.owner-store-link-actions a,
.owner-store-link-actions button,
.owner-store-empty button,
.owner-orders-preview>div>button {
  padding: 7px 9px;
  border: 0;
  border-radius: 9px;
  color: #30353c;
  background: #f0f2f4;
  font-size: 9px;
  font-weight: 900;
  text-decoration: none;
}

.owner-store-link-actions a,
.owner-store-link-actions button:first-of-type {
  color: #e95500;
  background: #fff0e7;
}

.owner-store-empty {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 17px;
  border: 1px dashed #ffc49d;
  border-radius: 17px;
  background: #fffaf7;
}

.owner-store-empty>i {
  color: #ff6500;
  font-size: 25px;
}

.owner-store-empty>div {
  display: grid;
}

.owner-store-empty small {
  color: #757d88;
  font-size: 10px;
}

.owner-store-empty button {
  color: #fff;
  background: #ff6500;
}

.owner-orders-preview {
  padding: 0 14px 14px;
}

.owner-orders-preview>div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.owner-orders-preview article {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto auto;
  align-items: center;
  gap: 9px;
  padding: 10px 2px;
  border-bottom: 1px solid #eceff2;
}

.owner-orders-preview article>span {
  display: grid;
}

.owner-orders-preview article small {
  overflow: hidden;
  color: #7a828d;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-orders-preview article em {
  padding: 5px 7px;
  border-radius: 999px;
  color: #087a55;
  background: #dff9ed;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
}

.owner-orders-preview article>i {
  color: #ff6500;
}

.store-delivery-explainer {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 15px;
  padding: 13px;
  border-radius: 16px;
  color: #087052;
  background: #e8faf2;
}

.store-delivery-explainer>i {
  font-size: 24px;
}

.store-delivery-explainer span {
  display: grid;
}

.store-delivery-explainer small {
  color: #52766a;
  font-size: 10px;
}

.store-type-pill {
  display: inline-flex;
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  color: #087a55;
  background: #dff9ed;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.store-card-metrics {
  display: flex;
  gap: 7px;
}

.store-card-metrics small {
  padding: 5px 7px;
  border-radius: 8px;
  color: #68717c;
  background: #f1f3f5;
  font-size: 8px;
}

.product-row-actions {
  display: flex !important;
  gap: 5px;
}

.product-list .product-row-actions button {
  color: #e95500;
  background: #fff0e7;
}

.product-list .product-row-actions button.danger {
  color: #b42318;
  background: #fee4e2;
}

@media (max-width: 620px) {
  .business-owner-shortcut {
    grid-template-columns: auto minmax(0,1fr);
  }

  .business-owner-shortcut>button {
    grid-column: 1/-1;
    width: 100%;
  }

  .owner-commerce-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .owner-commerce-heading>button {
    width: 100%;
  }

  .owner-commerce-stats {
    grid-template-columns: repeat(2,1fr);
  }

  .owner-store-empty {
    grid-template-columns: auto 1fr;
  }

  .owner-store-empty button {
    grid-column: 1/-1;
  }

  .owner-orders-preview article {
    grid-template-columns: minmax(0,1fr) auto;
  }

  .owner-orders-preview article em {
    grid-column: 1;
    justify-self: start;
  }

  .owner-orders-preview article>i {
    grid-column: 2;
  }
}

/* Encabezado móvil compacto y categorías expandibles */
.topbar {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  grid-template-areas:
    "brand . actions" !important;
  min-height: 0 !important;
  gap: 8px !important;
  margin-bottom: 8px !important;
  padding: 6px 7px 6px 11px !important;
}

.topbar > .d-flex:first-child {
  grid-area: brand;
}

.topbar > .d-flex:last-child {
  grid-area: actions;
  flex-wrap: nowrap !important;
  gap: 5px !important;
}

.topbar .btn.is-refreshing i,
.mini-refresh.is-refreshing i {
  display: inline-block;
  animation: user-refresh-spin .7s linear infinite;
}

@keyframes user-refresh-spin {
  to { transform: rotate(360deg); }
}

.category-expand-button {
  display: grid !important;
  width: 100%;
  grid-template-columns: minmax(0,1fr) auto auto;
  align-items: center;
  gap: 7px;
  text-align: left;
}

.category-expand-button small {
  color: #6f7580;
  font-size: 9px;
  font-weight: 800;
}

.category-expand-button i {
  transition: transform .18s ease;
}

.category-strip {
  display: grid !important;
  grid-template-columns: repeat(5,minmax(0,1fr)) !important;
  gap: 10px 5px !important;
  overflow: visible !important;
}

.category-strip.is-expanded {
  animation: category-grid-open .22s ease both;
}

.category-strip .category-tile {
  width: 100% !important;
  min-width: 0 !important;
}

@keyframes category-grid-open {
  from { opacity: .7; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 430px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    gap: 5px !important;
    padding: 6px !important;
  }

  .topbar .brand-logo {
    width: 78px !important;
    height: 30px !important;
  }

  .topbar > .d-flex:last-child {
    gap: 3px !important;
  }

  .topbar .btn {
    width: 34px !important;
    min-height: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
  }

  .topbar-user {
    height: 34px !important;
    gap: 5px !important;
    padding: 3px 6px 3px 3px !important;
    border-radius: 10px !important;
  }

  .topbar-user-avatar {
    flex-basis: 28px !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
  }

  .topbar-user-copy small {
    display: none !important;
  }

  .topbar-user-copy strong {
    max-width: 52px !important;
    font-size: 9px !important;
  }
}

/* Fondos editoriales suaves para descubrimiento y reparto */
.home-discovery {
  isolation: isolate;
  background: #f45108 !important;
}

.home-discovery::before,
.home-discovery::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  content: "";
  pointer-events: none;
  clip-path: inset(0 round 25px);
}

.home-discovery::before {
  background: url("banner-discovery-city-v1.jpg") center right / cover no-repeat;
  filter: blur(2.4px) saturate(.88);
  opacity: .52;
  transform: scale(1.035);
}

.home-discovery::after {
  background:
    radial-gradient(circle at 88% 8%, rgba(255,255,255,.16), transparent 34%),
    linear-gradient(100deg, rgba(255,94,0,.97) 0%, rgba(244,72,0,.91) 50%, rgba(224,64,0,.68) 100%);
}

.home-discovery > * {
  position: relative;
  z-index: 1;
}

.compact-delivery .delivery-hero,
.delivery-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #fff !important;
}

.compact-delivery .delivery-hero::before,
.delivery-hero::before,
.compact-delivery .delivery-hero::after,
.delivery-hero::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block !important;
  content: "";
  pointer-events: none;
}

.compact-delivery .delivery-hero::before,
.delivery-hero::before {
  background: url("banner-courier-route-v1.jpg") center right / cover no-repeat;
  filter: blur(2px) saturate(.8);
  opacity: .60;
  transform: scale(1.035);
}

.compact-delivery .delivery-hero::after,
.delivery-hero::after {
  background: linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.93) 52%, rgba(255,255,255,.52) 100%);
}

.compact-delivery .delivery-hero > *,
.delivery-hero > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 430px) {
  .home-discovery::before {
    background-position: 64% center;
    opacity: .46;
  }

  .compact-delivery .delivery-hero::before,
  .delivery-hero::before {
    background-position: right center;
    filter: blur(1.6px) saturate(.82);
    opacity: .68;
  }

  .compact-delivery .delivery-hero::after,
  .delivery-hero::after {
    background: linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.92) 53%, rgba(255,255,255,.36) 100%);
  }
}

/* Bloque final: fondo comercial legible, elegante y suavemente difuminado */
.home-discovery {
  position: relative;
  isolation: isolate;
  overflow: hidden !important;
  border-radius: 25px !important;
  background: #d94600 !important;
  box-shadow: 0 15px 34px rgba(204, 63, 0, .22) !important;
}

.home-discovery::before,
.home-discovery::after {
  inset: 0;
  clip-path: none !important;
  border-radius: inherit;
  transform: none !important;
}

.home-discovery::before {
  background: url("banner-discovery-neighborhood-v2.webp") 68% center / cover no-repeat !important;
  filter: saturate(1.06) contrast(1.02) !important;
  opacity: .96 !important;
}

.home-discovery::after {
  background:
    linear-gradient(180deg, rgba(151, 37, 0, .14), rgba(151, 37, 0, .24)),
    linear-gradient(96deg, rgba(205, 54, 0, .92) 0%, rgba(225, 63, 0, .76) 43%, rgba(188, 47, 0, .26) 74%, rgba(102, 25, 0, .12) 100%) !important;
}

.compact-delivery .delivery-hero,
.delivery-hero {
  min-height: 92px !important;
  overflow: hidden !important;
  background: #fffaf6 !important;
}

.compact-delivery .delivery-hero::before,
.delivery-hero::before {
  background: url("banner-courier-3d-v2.webp") right center / auto 100% no-repeat !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.compact-delivery .delivery-hero::after,
.delivery-hero::after {
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.98) 42%, rgba(255,255,255,.68) 67%, rgba(255,255,255,.12) 100%) !important;
}

@media (max-width: 430px) {
  .home-discovery {
    border-radius: 23px !important;
  }

  .home-discovery::before {
    background-position: 72% center !important;
    filter: saturate(1.06) contrast(1.02) !important;
    opacity: .94 !important;
  }

  .home-discovery::after {
    background:
      linear-gradient(180deg, rgba(137,31,0,.14), rgba(137,31,0,.3)),
      linear-gradient(100deg, rgba(205,54,0,.94) 0%, rgba(224,62,0,.76) 54%, rgba(126,29,0,.22) 100%) !important;
  }

  .compact-delivery .delivery-hero,
  .delivery-hero {
    min-height: 78px !important;
  }

  .compact-delivery .delivery-hero::before,
  .delivery-hero::before {
    background-position: 112% center !important;
    background-size: auto 100% !important;
  }

  .compact-delivery .delivery-hero::after,
  .delivery-hero::after {
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.98) 48%, rgba(255,255,255,.74) 70%, rgba(255,255,255,.2) 100%) !important;
  }
}

@media (max-width: 430px) {
}

/* La cuenta conserva el avatar, pero omite el nombre para liberar la barra superior. */
.topbar .topbar-user {
  flex: 0 0 34px !important;
  width: 34px !important;
  min-width: 34px !important;
  padding: 3px !important;
}

.topbar .topbar-user-copy {
  display: none !important;
}

/* Favoritos en la barra superior y solicitud directa desde Repartidores. */
.topbar-actions {
  flex: 0 0 auto;
  align-items: center;
  gap: 6px !important;
}

.top-favorites-button.is-active {
  border-color: #ff6500 !important;
  color: #fff !important;
  background: #ff6500 !important;
  box-shadow: 0 7px 18px rgba(255, 101, 0, .3) !important;
}

.top-favorites-button.is-active i {
  font-weight: 900;
}

.driver-request-cta {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid #ffd6bd;
  border-radius: 20px;
  background:
    radial-gradient(circle at 94% 5%, rgba(255, 101, 0, .15), transparent 35%),
    linear-gradient(145deg, #fffaf7, #fff1e7);
  box-shadow: 0 12px 28px rgba(53, 33, 18, .07);
}

.driver-request-cta-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, #ff7a1a, #ef4f00);
  box-shadow: 0 9px 20px rgba(255, 101, 0, .24);
  font-size: 24px;
}

.driver-request-cta small {
  color: #e85700;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}

.driver-request-cta h3 {
  margin: 3px 0;
  color: #17191d;
  font-size: 17px;
  font-weight: 900;
}

.driver-request-cta p {
  margin: 0;
  color: #707783;
  font-size: 11px;
  line-height: 1.35;
}

.driver-request-cta > button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: #17191d;
  box-shadow: 0 8px 18px rgba(23, 25, 29, .18);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.driver-delivery-flow {
  margin: 6px 0 18px;
}

.driver-delivery-flow .yovoy-delivery {
  margin-bottom: 0 !important;
}

.yovoy-delivery.is-request-focus {
  animation: yovoy-request-focus 1.1s ease;
}

@keyframes yovoy-request-focus {
  0%, 100% { box-shadow: 0 16px 38px rgba(17, 24, 39, .08); }
  40% { box-shadow: 0 0 0 4px rgba(255, 101, 0, .18), 0 18px 42px rgba(255, 101, 0, .16); }
}

@media (max-width: 520px) {
  .topbar-actions {
    gap: 4px !important;
  }

  .topbar-actions .btn {
    width: 35px !important;
    height: 35px !important;
    min-height: 35px !important;
    border-radius: 11px !important;
  }

  .driver-request-cta {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .driver-request-cta-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 21px;
  }

  .driver-request-cta > button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* Aire bajo la cabecera y restauración de sesión sin destello del login. */
#app-view { padding-top: 0; }

#app-view > .view:not(#view-home).active { padding-top: 28px; }

#app-view > .view {
  scroll-margin-top: calc(82px + env(safe-area-inset-top));
}

#yovoy-delivery-flow,
#delivery-tracking-card,
#delivery-route-panel {
  scroll-margin-top: calc(92px + env(safe-area-inset-top));
}

html.user-session-pending #auth-view {
  display: none !important;
}

html.user-session-pending #app-view {
  display: block !important;
}

html.user-session-pending #bottom-nav {
  display: flex !important;
}

.user-required-action {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 13px;
  border: 1px solid #ffbd8d;
  border-radius: 19px;
  color: #6b2b00;
  background: linear-gradient(135deg, #fff8f2, #fff0e4);
  box-shadow: 0 12px 28px rgba(255, 101, 0, .14);
}

.user-required-action-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: #fff;
  background: #ff6500;
  font-size: 21px;
  box-shadow: 0 9px 20px rgba(255, 101, 0, .25);
}

.user-required-action strong {
  display: block;
  font-size: 14px;
  font-weight: 950;
}

.user-required-action p {
  margin: 3px 0 0;
  color: #8a4c25;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.user-required-action button {
  min-height: 42px;
  padding: 9px 13px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: #17191c;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.user-required-action button i { margin-right: 6px; }
.user-required-action.is-loading .user-required-action-icon i,
.user-required-action.is-loading button i { animation: location-spin .8s linear infinite; }
.user-required-action.is-error { border-color: #ff8f8f; }

.service-area-alert {
  border-color: #b7c5d8;
  color: #172033;
  background: linear-gradient(135deg, #f8fbff, #eaf1f8);
  box-shadow: 0 12px 28px rgba(23, 32, 51, .12);
}

.service-area-alert .user-required-action-icon {
  background: #1f4e86;
  box-shadow: 0 9px 20px rgba(31, 78, 134, .24);
}

.service-area-alert p { color: #52647b; }
.service-area-alert button { background: #1f4e86; }

.user-required-action-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.user-required-action-actions .is-secondary {
  color: #7a3509;
  background: #fff;
  box-shadow: inset 0 0 0 1px #f0c6aa;
}

.service-city-picker-card { width: min(440px, calc(100vw - 24px)); }
.service-city-picker-help { display: block; margin-top: 8px; color: #667085; font-size: 11px; line-height: 1.4; }
.service-city-picker-actions { display: grid; grid-template-columns: 1fr 1.45fr; gap: 8px; margin-top: 18px; }
.service-city-picker-actions .btn { min-height: 46px; border-radius: 13px; font-size: 12px; font-weight: 900; }

.product-image-upload {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid #ffb47f;
  border-radius: 13px;
  color: #d94e00;
  background: #fff4ec;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.product-image-upload i { font-size: 17px; }
.product-image-upload:hover { border-color: #ff6500; background: #ffeadb; }

.product-image-preview {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 10px;
  border: 1px solid #dfe3e7;
  border-radius: 15px;
  background: #f8f9fa;
}

.product-image-preview img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  background: #eceff2;
}

.product-image-preview span { display: grid; }
.product-image-preview strong { font-size: 12px; }
.product-image-preview small { color: #737b86; font-size: 9px; }
.store-cover-preview { grid-template-columns: 96px minmax(0, 1fr); }
.store-cover-preview img { width: 96px; }

.featured-promotion-quantity-modal {
  width: min(100%, 430px);
  text-align: center;
}

.featured-promotion-quantity-product {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  padding: 11px;
  border: 1px solid #e4e7eb;
  border-radius: 17px;
  background: #f8f8f7;
  text-align: left;
}

.featured-promotion-quantity-product > span {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  color: #ff6500;
  background: #fff0e5;
  font-size: 28px;
}

.featured-promotion-quantity-product img { width: 100%; height: 100%; object-fit: cover; }
.featured-promotion-quantity-product div { display: grid; gap: 3px; min-width: 0; }
.featured-promotion-quantity-product small { color: #e95700; font-size: 10px; font-weight: 900; }
.featured-promotion-quantity-product strong { font-size: 15px; line-height: 1.2; }
.featured-promotion-quantity-product em { color: #737b86; font-size: 10px; font-style: normal; }
.featured-promotion-quantity-modal h2 { margin: 5px 0; font-size: 23px; font-weight: 950; }
.featured-promotion-quantity-modal > p { margin: 0 0 14px; color: #737b86; font-size: 10px; }
.featured-promotion-modifiers { display: grid; gap: 10px; max-height: min(34vh, 310px); margin: 0 0 12px; overflow: auto; overscroll-behavior: contain; }
.featured-promotion-modifier-group { min-width: 0; margin: 0; padding: 10px; border: 1px solid #e6e8eb; border-radius: 14px; background: #fafaf9; }
.featured-promotion-modifier-group legend { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; padding: 0; }
.featured-promotion-modifier-group legend span { color: #17191c; font-size: 11px; font-weight: 950; }
.featured-promotion-modifier-group legend small { color: #e95700; font-size: 10px; font-weight: 900; }
.featured-promotion-modifier-group > div { display: grid; gap: 6px; }
.featured-promotion-modifier-group label { display: flex; min-height: 52px; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #e3e5e8; border-radius: 11px; background: #fff; cursor: pointer; }
.featured-promotion-modifier-group label:has(input:checked) { border-color: #ff6500; background: #fff4ec; box-shadow: 0 0 0 2px rgba(255,101,0,.08); }
.featured-promotion-modifier-group input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: #ff6500; }
.featured-promotion-modifier-group label span { display: flex; min-width: 0; flex: 1; align-items: center; justify-content: space-between; gap: 8px; }
.featured-promotion-modifier-group label strong { color: #23262a; font-size: 10px; }
.featured-promotion-modifier-group label small { color: #e95700; font-size: 10px; font-weight: 900; }

.featured-promotion-quantity-picker {
  display: grid;
  grid-template-columns: 52px minmax(80px, 1fr) 52px;
  align-items: center;
  gap: 8px;
  margin: 0 auto 12px;
}

.featured-promotion-quantity-picker button,
.featured-promotion-quantity-picker input {
  height: 52px;
  border: 1px solid #dde1e5;
  border-radius: 15px;
  background: #fff;
  text-align: center;
  font-weight: 950;
}

.featured-promotion-quantity-picker button { color: #fff; border-color: #17191c; background: #17191c; font-size: 18px; }
.featured-promotion-quantity-picker input { color: #17191c; font-size: 22px; }
.featured-promotion-quantity-total { display: flex; align-items: center; justify-content: space-between; padding: 12px 2px; border-top: 1px solid #eceef1; }
.featured-promotion-quantity-total span { color: #737b86; font-size: 10px; font-weight: 800; }
.featured-promotion-quantity-total strong { font-size: 22px; }
.featured-promotion-quantity-confirm { width: 100%; min-height: 52px; border: 0; border-radius: 15px; color: #fff; background: #ff6500; font-size: 13px; font-weight: 950; box-shadow: 0 10px 22px rgba(255,101,0,.24); }
.featured-promotion-quantity-confirm i { margin-right: 8px; }

/* Catálogo contextual: después del primer producto nunca mezcla negocios. */
.featured-promotion-store-catalog-shell {
  padding:
    max(8px, env(safe-area-inset-top))
    max(8px, env(safe-area-inset-right))
    max(8px, env(safe-area-inset-bottom))
    max(8px, env(safe-area-inset-left));
}

.featured-promotion-store-catalog-modal {
  display: flex;
  width: min(100%, 620px);
  max-height: calc(100vh - 16px);
  max-height: calc(100dvh - 16px);
  flex-direction: column;
  overflow: hidden;
  padding: 16px;
  text-align: left;
}

.featured-promotion-store-catalog-modal > .modal-close,
.featured-promotion-quantity-modal > .modal-close {
  width: 52px;
  height: 52px;
  top: 12px;
  right: 12px;
  z-index: 3;
  touch-action: manipulation;
}

.featured-promotion-store-catalog-business {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 70px;
  padding: 7px 58px 7px 7px;
  border: 1px solid #ffd7bd;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff7f1, #fff);
}

.featured-promotion-store-catalog-logo {
  position: relative;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  color: #ff6500;
  background: #ffe8d8;
  font-size: 25px;
}

.featured-promotion-store-catalog-logo img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}

.featured-promotion-store-catalog-business > span:last-child { display: grid; min-width: 0; gap: 2px; }
.featured-promotion-store-catalog-business small { color: #d95200; font-size: 10px; font-weight: 950; letter-spacing: .04em; }
.featured-promotion-store-catalog-business strong { overflow: hidden; color: #17191c; font-size: 17px; font-weight: 950; text-overflow: ellipsis; white-space: nowrap; }
.featured-promotion-store-catalog-business em { color: #69717d; font-size: 10px; font-style: normal; font-weight: 800; }

.featured-promotion-store-catalog-heading { padding: 13px 2px 9px; }
.featured-promotion-store-catalog-chip { display: inline-flex; min-height: 26px; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; color: #087b4a; background: #eaf9f2; font-size: 10px; font-weight: 950; letter-spacing: .04em; }
.featured-promotion-store-catalog-heading h2 { margin: 7px 0 3px; color: #17191c; font-size: 22px; font-weight: 950; }
.featured-promotion-store-catalog-heading p { margin: 0; color: #69717d; font-size: 11px; line-height: 1.4; }

.featured-promotion-store-catalog-list {
  display: grid;
  min-height: 110px;
  flex: 1 1 auto;
  align-content: start;
  gap: 10px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 2px 12px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.featured-promotion-store-catalog-status {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid #dcebe4;
  border-radius: 15px;
  color: #087b4a;
  background: #f1fbf6;
}

.featured-promotion-store-catalog-status > i { flex: 0 0 auto; font-size: 19px; }
.featured-promotion-store-catalog-status.is-loading > i { animation: featured-promotion-store-catalog-spin .9s linear infinite; }
.featured-promotion-store-catalog-status > span { display: grid; min-width: 0; gap: 2px; }
.featured-promotion-store-catalog-status strong { color: #173c2c; font-size: 11px; font-weight: 950; }
.featured-promotion-store-catalog-status small { color: #567064; font-size: 10px; line-height: 1.3; }
.featured-promotion-store-catalog-status.is-warning { border-color: #f2d8a9; color: #9c6000; background: #fff9ed; }
.featured-promotion-store-catalog-status.is-warning strong { color: #754700; }

@keyframes featured-promotion-store-catalog-spin { to { transform: rotate(360deg); } }

.featured-promotion-store-product {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 11px;
  padding: 10px;
  border: 1px solid #e1e4e8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(23,25,28,.06);
}

.featured-promotion-store-product.is-selected { border-color: #ff9c5c; background: #fffaf6; }

.featured-promotion-store-product-media {
  position: relative;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  overflow: hidden;
  border-radius: 15px;
  color: #ff6500;
  background: #fff0e5;
  font-size: 25px;
}

.featured-promotion-store-product-media img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.featured-promotion-store-product-copy { display: grid; min-width: 0; align-content: start; gap: 3px; }
.featured-promotion-store-product-state { color: #087b4a; font-size: 10px; font-weight: 950; }
.featured-promotion-store-product:not(.is-selected) .featured-promotion-store-product-state { color: #69717d; }
.featured-promotion-store-product-copy > strong { overflow: hidden; color: #17191c; font-size: 14px; font-weight: 950; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.featured-promotion-store-product-copy > small { display: -webkit-box; overflow: hidden; color: #69717d; font-size: 10px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.featured-promotion-store-product-variants { display: flex; min-width: 0; align-items: center; gap: 5px; overflow: hidden; color: #81502f; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.featured-promotion-store-product-price { display: flex; align-items: baseline; gap: 6px; color: #e95700; }
.featured-promotion-store-product-price del { color: #8a919b; font-size: 10px; }
.featured-promotion-store-product-price b { font-size: 17px; font-weight: 950; }

.featured-promotion-store-product-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.featured-promotion-store-product-actions button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #ffb888;
  border-radius: 14px;
  padding: 8px 12px;
  color: #d94e00;
  background: #fff3eb;
  font-size: 11px;
  font-weight: 950;
  touch-action: manipulation;
}

.featured-promotion-store-product-actions button.remove { width: 52px; padding: 0; border-color: #ffd9d9; color: #c83232; background: #fff4f4; }
.featured-promotion-store-product-actions button:disabled { opacity: 1; border-color: #e1e4e8; color: #747b85; background: #f4f5f6; cursor: default; }

.featured-promotion-store-catalog-empty {
  display: grid;
  min-height: 150px;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 20px;
  border: 1px dashed #ffd0b1;
  border-radius: 18px;
  color: #69717d;
  background: #fffaf6;
  text-align: center;
}

.featured-promotion-store-catalog-empty i { color: #ff6500; font-size: 30px; }
.featured-promotion-store-catalog-empty strong { color: #17191c; font-size: 14px; }
.featured-promotion-store-catalog-empty small { font-size: 10px; }

.featured-promotion-store-catalog-footer {
  display: grid;
  flex: 0 0 auto;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #eceef1;
  background: #fff;
}

.featured-promotion-store-catalog-summary { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 12px; }
.featured-promotion-store-catalog-summary > span { display: grid; min-width: 0; }
.featured-promotion-store-catalog-summary small { color: #69717d; font-size: 10px; font-weight: 800; }
.featured-promotion-store-catalog-summary strong { color: #17191c; font-size: 12px; font-weight: 950; }
.featured-promotion-store-catalog-summary > b { color: #e95700; font-size: 22px; font-weight: 950; }

.featured-promotion-store-catalog-finish {
  display: inline-flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 16px;
  padding: 10px 14px;
  color: #fff;
  background: #ff6500;
  box-shadow: 0 10px 22px rgba(255,101,0,.24);
  font-size: 13px;
  font-weight: 950;
  touch-action: manipulation;
}

@media (max-width: 390px) {
  .featured-promotion-store-catalog-modal { padding: 12px; }
  .featured-promotion-store-catalog-business { grid-template-columns: 56px minmax(0, 1fr); min-height: 64px; padding-left: 5px; }
  .featured-promotion-store-catalog-logo { width: 56px; height: 56px; }
  .featured-promotion-store-product { grid-template-columns: 68px minmax(0, 1fr); gap: 9px; padding: 9px; }
  .featured-promotion-store-product-media { width: 68px; height: 68px; }
}

@media (max-height: 590px) and (orientation: landscape) {
  .featured-promotion-store-catalog-heading { padding-block: 7px; }
  .featured-promotion-store-catalog-heading p { display: none; }
  .featured-promotion-store-catalog-business { min-height: 58px; }
  .featured-promotion-store-catalog-logo { width: 50px; height: 50px; }
}

/* Pedido con varias promociones del mismo negocio */
.featured-promotion-card.is-in-order {
  border-color: rgba(255,101,0,.62);
  box-shadow: 0 10px 22px rgba(255,101,0,.13);
}

.featured-promotion-card.is-in-order .featured-promotion-order {
  background: #17191c;
  box-shadow: none;
}

.delivery-promotion-context {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 8px !important;
  padding: 10px !important;
}

.delivery-promotion-cart-head,
.delivery-promotion-cart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.delivery-promotion-cart-head > span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.delivery-promotion-cart-head i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: #fff;
  background: #ff6500;
}

.delivery-promotion-cart-head small,
.delivery-promotion-cart-head strong {
  color: #17191c;
  font-size: 10px;
  font-weight: 950;
}

.delivery-promotion-cart-head small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-promotion-cart-items {
  display: grid;
  gap: 6px;
}

.delivery-promotion-cart-items article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px;
  border: 1px solid #eceef1;
  border-radius: 12px;
  background: #fff;
}

.delivery-promotion-cart-items article > span:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.delivery-promotion-cart-items article strong,
.delivery-promotion-cart-items article small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-promotion-cart-items article strong {
  color: #17191c;
  font-size: 12px;
  font-weight: 900;
}

.delivery-promotion-cart-items article small {
  color: #747b85;
  font-size: 10px;
  font-weight: 750;
}

.delivery-promotion-context .delivery-promotion-cart-items article > button,
.delivery-promotion-cart-footer > button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 900;
}

.delivery-promotion-context .delivery-promotion-cart-items article > button {
  width: 52px;
  padding: 0;
  color: #d94141;
  background: #fff0f0;
}

.delivery-promotion-context .delivery-promotion-cart-items article > button:disabled {
  opacity: 1;
  color: #087b4a;
  background: #eaf9f2;
  cursor: default;
}

.delivery-promotion-cart-footer {
  padding-top: 2px;
}

.delivery-promotion-cart-footer > button:first-child {
  min-width: 0;
  padding: 7px 10px;
  color: #d95100;
  background: #fff0e5;
}

.delivery-promotion-cart-footer > span {
  display: grid;
  margin-left: auto;
  text-align: right;
}

.delivery-promotion-cart-footer > span small {
  color: #747b85;
  font-size: 10px;
  font-weight: 800;
}

.delivery-promotion-cart-footer > span strong {
  color: #17191c;
  font-size: 14px;
  font-weight: 950;
}

.delivery-promotion-cart-footer > button.clear {
  width: 52px;
  padding: 0;
  color: #d94141;
  background: #fff0f0;
}

@media (max-width: 390px) {
  .delivery-promotion-cart-footer > button:first-child {
    max-width: 142px;
    line-height: 1.1;
  }
}

/* Pago de promociones: compacto, táctil y consistente en Android/iPhone. */
.promotion-payment-selector {
  width: 100%;
  margin: 2px 0;
}

.promotion-payment-card {
  display: grid;
  width: 100%;
  gap: 8px;
  padding: 10px;
  border: 1px solid #dfe4ea;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(23, 25, 28, .06);
  text-align: left;
}

.promotion-payment-card.is-cash { border-color: #cfe7dc; background: linear-gradient(145deg, #f8fdfb, #fff); }
.promotion-payment-card.is-card { border-color: #cbd8ff; background: linear-gradient(145deg, #f7f9ff, #fff); }

.promotion-payment-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.promotion-payment-heading > span:first-child,
.promotion-payment-grand-total {
  display: grid;
  min-width: 0;
}

.promotion-payment-heading small {
  color: #747b85;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.promotion-payment-heading > span:first-child strong { color: #17191c; font-size: 13px; font-weight: 950; }
.promotion-payment-grand-total { flex: 0 0 auto; justify-items: end; }
.promotion-payment-grand-total strong { color: #17191c; font-size: 19px; font-weight: 950; line-height: 1; }

.promotion-payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.promotion-payment-method {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 15px;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border: 1px solid #dfe3e8;
  border-radius: 13px;
  color: #343a42;
  background: #fff;
  text-align: left;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.promotion-payment-method > i:first-child {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  color: #52606d;
  background: #f0f2f4;
  font-size: 14px;
}

.promotion-payment-method > span { display: grid; min-width: 0; line-height: 1.12; }
.promotion-payment-method strong { overflow: hidden; font-size: 12px; font-weight: 950; text-overflow: ellipsis; white-space: nowrap; }
.promotion-payment-method small { overflow: hidden; margin-top: 2px; color: #747b85; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.promotion-payment-method .payment-method-check { color: transparent; font-size: 13px; }
.promotion-payment-method.is-selected { border-color: #0c855a; background: #edfaf4; box-shadow: 0 0 0 2px rgba(12, 133, 90, .08); }
.promotion-payment-method.is-selected > i:first-child { color: #fff; background: #08704c; }
.promotion-payment-method.is-selected .payment-method-check { color: #08704c; }
.promotion-payment-card.is-card .promotion-payment-method.is-selected { border-color: #4169e1; background: #eff3ff; box-shadow: 0 0 0 2px rgba(65, 105, 225, .08); }
.promotion-payment-card.is-card .promotion-payment-method.is-selected > i:first-child { background: #3156c8; }
.promotion-payment-card.is-card .promotion-payment-method.is-selected .payment-method-check { color: #3156c8; }
.promotion-payment-method.is-unavailable { color: #8a9098; background: #f5f6f7; opacity: .76; }
.promotion-payment-method.is-unavailable .payment-method-check { color: #8a9098; }

.promotion-payment-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.promotion-payment-breakdown > span {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 9px;
  color: #68717b;
  background: rgba(241, 243, 245, .82);
  font-size: 10px;
  font-weight: 800;
}

.promotion-payment-breakdown strong { color: #252a30; font-size: 11px; font-weight: 950; white-space: nowrap; }
.promotion-payment-note { display: flex; align-items: flex-start; gap: 6px; margin: 0; color: #5f6872; font-size: 10px; font-weight: 750; line-height: 1.35; }
.promotion-payment-note i { flex: 0 0 auto; margin-top: 1px; color: #08704c; }
.promotion-payment-card.is-card .promotion-payment-note i { color: #3156c8; }

.featured-promotion-next-modal {
  max-height: min(90dvh, 760px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.featured-promotion-next-modal .promotion-payment-selector { margin: 0 0 10px; }
.featured-promotion-next-modal .promotion-payment-card { text-align: left; }

.promotion-payment-status-modal { z-index: 10090; }
.promotion-payment-status-card { max-width: 370px; padding: 24px 20px; text-align: center; }
.promotion-payment-status-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 10px;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg, #4169e1, #294bb5);
  box-shadow: 0 12px 26px rgba(49, 86, 200, .24);
  font-size: 27px;
}

.promotion-payment-status-modal[data-state="approved"] .promotion-payment-status-icon { background: #08704c; }
.promotion-payment-status-modal[data-state="cancelled"] .promotion-payment-status-icon,
.promotion-payment-status-modal[data-state="error"] .promotion-payment-status-icon { background: #d54b45; }
.promotion-payment-status-modal[data-state="creating"] .promotion-payment-status-icon i,
.promotion-payment-status-modal[data-state="confirming"] .promotion-payment-status-icon i,
.promotion-payment-status-modal[data-state="cancelling"] .promotion-payment-status-icon i { animation: promotion-payment-spin 1s linear infinite; }
.promotion-payment-status-kicker { color: #3156c8; font-size: 10px; font-weight: 950; letter-spacing: .12em; }
.promotion-payment-status-card h2 { margin: 5px 0; color: #17191c; font-size: 23px; font-weight: 950; }
.promotion-payment-status-card p { margin: 0 auto; color: #6a727c; font-size: 11px; font-weight: 700; line-height: 1.45; }
.promotion-payment-status-total { display: block; margin: 12px 0 0; color: #17191c; font-size: 25px; font-weight: 950; }
.promotion-payment-progress { display: flex; min-height: 24px; align-items: center; justify-content: center; gap: 6px; margin: 8px 0; }
.promotion-payment-progress i { width: 7px; height: 7px; border-radius: 50%; background: #4169e1; animation: promotion-payment-dot 1.2s ease-in-out infinite; }
.promotion-payment-progress i:nth-child(2) { animation-delay: .15s; }
.promotion-payment-progress i:nth-child(3) { animation-delay: .3s; }
.promotion-payment-status-modal[data-state="approved"] .promotion-payment-progress,
.promotion-payment-status-modal[data-state="cancelled"] .promotion-payment-progress,
.promotion-payment-status-modal[data-state="error"] .promotion-payment-progress { display: none; }
.promotion-payment-status-actions { display: grid; gap: 8px; margin-top: 13px; }
.promotion-payment-status-actions button { width: 100%; min-height: 50px; border: 0; border-radius: 14px; font-size: 12px; font-weight: 950; touch-action: manipulation; }
.promotion-payment-status-actions button:first-child { color: #fff; background: #3156c8; }
.promotion-payment-status-actions .promotion-payment-use-cash { color: #fff; background: #08704c; }
.promotion-payment-status-actions button:last-child { color: #4f5863; background: #f0f2f4; }

@keyframes promotion-payment-spin { to { transform: rotate(360deg); } }
@keyframes promotion-payment-dot { 0%, 70%, 100% { opacity: .35; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-4px); } }

@media (max-width: 360px) {
  .promotion-payment-card { padding: 8px; }
  .promotion-payment-method { grid-template-columns: 27px minmax(0, 1fr) 13px; gap: 5px; padding: 6px; }
  .promotion-payment-method > i:first-child { width: 27px; height: 27px; }
  .promotion-payment-method strong { font-size: 11px; }
  .promotion-payment-heading > span:first-child strong { font-size: 12px; }
  .promotion-payment-grand-total strong { font-size: 18px; }
}

@media (max-width: 420px) {
  .promotion-payment-method {
    grid-template-columns: 27px minmax(0, 1fr) 11px;
    gap: 4px;
    padding: 6px;
  }

  .promotion-payment-method > i:first-child {
    width: 27px;
    height: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promotion-payment-status-icon i,
  .promotion-payment-progress i { animation: none !important; }
}

@keyframes user-session-spin {
  to { transform: rotate(360deg); }
}

/* Vista exclusiva para solicitar y seguir envíos */
#view-delivery { padding-bottom: 112px; }
.delivery-focus-page { width: min(900px, 100%); margin: 0 auto; }
.delivery-focus-header {
  display: grid;
  grid-template-columns: 42px 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 24px;
  color: #fff;
  background: radial-gradient(circle at 88% 5%, rgba(255,101,0,.42), transparent 32%), linear-gradient(135deg, #111317, #20242a);
  box-shadow: 0 16px 34px rgba(17,19,23,.2);
}
.delivery-focus-header > button,
.delivery-focus-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  color: #fff;
  background: rgba(255,255,255,.08);
}
.delivery-focus-header > button { padding: 0; }
.delivery-focus-icon {
  width: 54px;
  height: 54px;
  border: 0;
  background: #ff6500;
  font-size: 24px;
  box-shadow: 0 8px 20px rgba(255,101,0,.3);
}
.delivery-focus-header > div { min-width: 0; }
.delivery-focus-header small {
  color: #ffad78;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .12em;
}
.delivery-focus-header h2 {
  margin: 2px 0;
  color: #fff;
  font-size: clamp(21px, 4vw, 28px);
  font-weight: 950;
}
.delivery-focus-header p {
  margin: 0;
  color: #cdd1d6;
  font-size: 11px;
  font-weight: 650;
}
.dedicated-delivery-flow-host .yovoy-delivery { margin: 0; }
.dedicated-delivery-flow-host .yovoy-delivery.has-active-request .delivery-hero,
.dedicated-delivery-flow-host .yovoy-delivery.has-active-request .driver-strip,
.dedicated-delivery-flow-host .yovoy-delivery.has-active-request .delivery-console { display: none !important; }
.dedicated-delivery-flow-host .delivery-tracking-card { margin-top: 0; }
.store-delivery-focus-card {
  display: grid;
  gap: 13px;
  padding: 17px;
  border: 1px solid #e3e6e9;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(21,25,30,.12);
}
.store-delivery-focus-status {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.store-delivery-focus-status > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  color: #fff;
  background: #ff6500;
  font-size: 23px;
  box-shadow: 0 8px 19px rgba(255,101,0,.25);
}
.store-delivery-focus-status.is-complete > span { background: #079967; box-shadow: 0 8px 19px rgba(7,153,103,.23); }
.store-delivery-focus-status.is-stopped > span { background: #d92d20; box-shadow: none; }
.store-delivery-focus-status > div { min-width: 0; }
.store-delivery-focus-status small,
.store-delivery-product small,
.store-delivery-driver small {
  color: #f05a00;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .1em;
}
.store-delivery-focus-status h3 { margin: 2px 0; color: #17191c; font-size: 21px; font-weight: 950; }
.store-delivery-focus-status p { margin: 0; color: #717986; font-size: 11px; }
.store-delivery-focus-status > b {
  padding: 7px 9px;
  border-radius: 999px;
  color: #a9470c;
  background: #fff0e6;
  font-size: 9px;
  white-space: nowrap;
}
.store-delivery-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 13px 7px;
  border-radius: 17px;
  background: #f5f6f7;
}
.store-delivery-progress span {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #9aa1aa;
}
.store-delivery-progress span:not(:last-child)::after {
  position: absolute;
  z-index: 0;
  top: 11px;
  left: calc(50% + 13px);
  width: calc(100% - 26px);
  height: 3px;
  border-radius: 3px;
  background: #d9dde2;
  content: "";
}
.store-delivery-progress span.active:not(:last-child)::after { background: #ff6500; }
.store-delivery-progress i {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #d9dde2;
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
}
.store-delivery-progress span.active { color: #f05a00; }
.store-delivery-progress span.active i { color: #fff; background: #ff6500; }
.store-delivery-progress small { font-size: 8px; font-weight: 850; }
.store-delivery-product,
.store-delivery-driver {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid #eceef1;
  border-radius: 17px;
}
.store-delivery-product > i {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 14px;
  color: #ff6500;
  background: #fff0e6;
  font-size: 19px;
}
.store-delivery-product > span,
.store-delivery-driver > div { display: grid; min-width: 0; }
.store-delivery-product strong,
.store-delivery-driver strong {
  overflow: hidden;
  color: #22262b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store-delivery-product em,
.store-delivery-driver em {
  overflow: hidden;
  color: #7b838e;
  font-size: 9px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store-delivery-product > b { color: #17191c; font-size: 16px; }
.store-delivery-driver {
  grid-template-columns: 48px minmax(0, 1fr);
  color: #fff;
  border-color: transparent;
  background: #17191c;
}
.store-delivery-driver-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #fff;
  background: #ff6500;
  font-size: 19px;
  font-weight: 950;
}
.store-delivery-driver small { color: #ffad78; }
.store-delivery-driver strong { color: #fff; }
.store-delivery-driver em { color: #c5c9ce; }
.store-delivery-live-route {
  display: grid;
  gap: 8px;
  overflow: hidden;
  padding: 12px;
  border: 1px solid #e3e6e9;
  border-radius: 18px;
  background: #fff;
}
.store-delivery-live-route-heading {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}
.store-delivery-live-route-heading > i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: #ff6500;
  font-size: 17px;
}
.store-delivery-live-route-heading > span { display: grid; min-width: 0; }
.store-delivery-live-route-heading small {
  color: #e85700;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .1em;
}
.store-delivery-live-route-heading strong {
  color: #1c2025;
  font-size: 13px;
  font-weight: 950;
}
.store-delivery-user-map {
  width: 100%;
  min-height: 260px !important;
  overflow: hidden;
  border: 1px solid #e2e5e9;
  background: #eef1f3;
}
.store-delivery-live-route .delivery-user-map-msg {
  margin: 0;
  padding: 8px 10px;
  font-size: 9px;
  line-height: 1.4;
}
.store-pickup-location {
  display: grid;
  gap: 10px;
  overflow: hidden;
  padding: 12px;
  border: 1px solid #ffd2b5;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff8f3, #fff);
}
.store-pickup-location-copy {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}
.store-pickup-location-copy > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: #ff6500;
  font-size: 20px;
  box-shadow: 0 8px 18px rgba(255,101,0,.2);
}
.store-pickup-location-copy > div { display: grid; min-width: 0; gap: 2px; }
.store-pickup-location-copy small {
  color: #e85700;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .1em;
}
.store-pickup-location-copy strong {
  color: #1c2025;
  font-size: 14px;
  font-weight: 950;
  overflow-wrap: anywhere;
}
.store-pickup-location-copy p {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin: 0;
  color: #68717c;
  font-size: 10px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.store-pickup-location-copy p i { flex: 0 0 auto; color: #ff6500; }
.store-pickup-map {
  height: 240px;
  overflow: hidden;
  border: 1px solid #e2e5e9;
  border-radius: 15px;
  background: #eef1f3;
}
.store-pickup-map iframe { width: 100%; height: 100%; border: 0; }
.store-pickup-map-empty {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: 15px;
  color: #737b86;
  background: #f1f3f5;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}
.store-pickup-map-empty i { color: #ff6500; font-size: 20px; }
.store-pickup-map-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 12px;
  color: #b64a08;
  background: #fff0e6;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
}
.store-delivery-focus-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  gap: 9px;
}
.store-delivery-focus-actions button,
.store-delivery-focus-actions a {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  color: #31363d;
  background: #f0f2f4;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}
.store-delivery-focus-actions .primary {
  color: #fff;
  background: #ff6500;
  box-shadow: 0 9px 18px rgba(255,101,0,.22);
}
.store-delivery-focus-actions .store-order-cancel-button {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  justify-content: initial;
  gap: 10px;
  padding: 8px 11px !important;
  border: 1px solid #ffb4ac !important;
  color: #b42318;
  background: linear-gradient(135deg, #fff 0%, #fff1ef 100%);
  box-shadow: 0 9px 22px rgba(180, 35, 24, .09);
  text-align: left;
}
.store-delivery-focus-actions .store-order-cancel-button:disabled {
  opacity: .72;
  cursor: wait;
}
.store-delivery-focus-actions .store-order-cancel-button .user-cancel-icon i,
.store-delivery-focus-actions .store-order-cancel-button .user-cancel-chevron {
  margin-right: 0;
}
.store-order-support-note {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #ffd59a;
  border-radius: 14px;
  color: #7a4312;
  background: #fff8eb;
}
.store-order-support-note > i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: #c45b00;
  background: #ffe9c8;
  font-size: 17px;
}
.store-order-support-note > span { display: grid; gap: 2px; }
.store-order-support-note strong { font-size: 11px; }
.store-order-support-note small { color: #936332; font-size: 9px; }
.user-order-history-actions .user-history-cancel {
  border-color: #ffc8c2;
  color: #b42318;
  background: #fff1ef;
}
.store-delivery-focus-actions i { margin-right: 6px; }

@media (max-width: 520px) {
  #app-view { padding-top: 0; }

  #app-view > .view:not(#view-home).active { padding-top: 32px; }

  .user-required-action {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    padding: 11px;
  }

  .user-required-action-icon { width: 42px; height: 42px; border-radius: 14px; font-size: 19px; }
  .user-required-action-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .user-required-action button { width: 100%; }
  .user-required-action > button { grid-column: 1 / -1; }

  .service-city-picker-actions { grid-template-columns: 1fr; }

  .delivery-focus-header {
    grid-template-columns: 38px 45px minmax(0, 1fr);
    gap: 9px;
    padding: 12px;
    border-radius: 20px;
  }
  .delivery-focus-header > button { width: 38px; height: 38px; }
  .delivery-focus-icon { width: 45px; height: 45px; border-radius: 14px; font-size: 20px; }
  .delivery-focus-header h2 { font-size: 18px; }
  .delivery-focus-header p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 9px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .store-delivery-focus-card { padding: 12px; border-radius: 20px; }
  .store-delivery-focus-status { grid-template-columns: 44px minmax(0, 1fr); }
  .store-delivery-focus-status > span { width: 44px; height: 44px; border-radius: 14px; font-size: 19px; }
  .store-delivery-focus-status h3 { font-size: 17px; }
  .store-delivery-focus-status > b { grid-column: 1 / -1; justify-self: start; }
  .store-delivery-progress { padding-inline: 3px; }
  .store-delivery-progress small { font-size: 7px; }
  .store-delivery-product { grid-template-columns: 39px minmax(0, 1fr); }
  .store-delivery-product > b { grid-column: 2; }
  .store-delivery-live-route { padding: 10px; }
  .store-delivery-user-map { min-height: 220px !important; }
  .store-pickup-location { padding: 10px; }
  .store-pickup-map { height: 210px; }
}
:where(button, [role="button"], a.btn, a[class*="button"], a[class*="action"]):not(:disabled):not([aria-disabled="true"]) {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transform-origin: center;
  transition:
    transform .09s ease,
    filter .09s ease,
    opacity .09s ease,
    box-shadow .16s ease !important;
}

:where(button, [role="button"], a.btn, a[class*="button"], a[class*="action"]):not(:disabled):not([aria-disabled="true"]):is(:active, .yovoy-button-pressed) {
  transform: translateY(2px) scale(.95) !important;
  filter: brightness(.84) saturate(1.16) !important;
  opacity: .92;
}

:where(button, [role="button"], a.btn, a[class*="button"], a[class*="action"]):not(:disabled):not([aria-disabled="true"]):focus-visible {
  outline: 3px solid rgba(255, 101, 0, .5) !important;
  outline-offset: 3px;
}

/* Los controles internos del mapa conservan el gesto y respuesta nativos de Google Maps. */
.gm-style :where(button, [role="button"], a) {
  touch-action: auto;
  transition: none !important;
}

.gm-style :where(button, [role="button"], a):is(:active, .yovoy-button-pressed) {
  transform: none !important;
  filter: none !important;
  opacity: 1;
}

button[aria-busy="true"] {
  animation: yovoy-button-working .72s ease-in-out infinite alternate;
}

@keyframes yovoy-button-working {
  from { box-shadow: 0 0 0 0 rgba(255, 101, 8, .2); }
  to { box-shadow: 0 0 0 7px rgba(255, 101, 8, 0); }
}

@media (prefers-reduced-motion: reduce) {
  :where(button, [role="button"], a.btn, a[class*="button"], a[class*="action"]):not(:disabled):not([aria-disabled="true"]) {
    transition: filter .01s linear, opacity .01s linear !important;
  }

  :where(button, [role="button"], a.btn, a[class*="button"], a[class*="action"]):not(:disabled):not([aria-disabled="true"]):is(:active, .yovoy-button-pressed) {
    transform: none !important;
  }

  .featured-promotion-next-actions button[aria-busy="true"] i.bi-arrow-repeat,
  .featured-promotion-store-catalog-finish[aria-busy="true"] i.bi-arrow-repeat,
  .featured-promotion-quantity-confirm[aria-busy="true"] i.bi-arrow-repeat {
    animation-duration: 1.5s;
  }
}
/* Descubrimiento jerárquico con iconografía flat */
.category-section .category-expand-button {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 2px !important;
}

.category-section .category-expand-button > small {
  color: #747b85;
  font-size: 10px;
  font-weight: 700;
}

.category-strip .category-tile {
  --flat-color: #e45109;
  --flat-bg: #fff0e7;
  position: relative;
  border-radius: 17px !important;
}

/* Los nombres forman parte de la navegacion: nunca deben quedar truncados. */
.category-strip .category-tile small {
  display: block;
  overflow: visible;
  min-height: 34px;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
  -webkit-line-clamp: unset;
}

.category-strip .category-tile.is-selected {
  background: var(--flat-bg) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--flat-color) 24%, transparent);
}

.category-strip .category-visual {
  width: clamp(52px, 8vw, 64px) !important;
  height: clamp(52px, 8vw, 64px) !important;
}

.category-strip .category-visual::before,
.category-strip .category-visual::after {
  display: none !important;
}

.category-strip .category-icon-flat,
.subcategory-icon-flat {
  position: relative !important;
  display: grid !important;
  width: 100% !important;
  height: 100% !important;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--flat-color) 18%, #fff) !important;
  border-radius: 18px !important;
  color: var(--flat-color) !important;
  background: var(--flat-bg) !important;
  box-shadow: 0 7px 16px color-mix(in srgb, var(--flat-color) 12%, transparent) !important;
  filter: none !important;
  transform: none !important;
  font-size: clamp(21px, 3.5vw, 27px);
  transition: transform .16s ease, box-shadow .16s ease !important;
}

.category-strip .category-tile:hover .category-icon-flat,
.category-strip .category-tile:focus-visible .category-icon-flat {
  box-shadow: 0 10px 21px color-mix(in srgb, var(--flat-color) 18%, transparent) !important;
  filter: none !important;
  transform: translateY(-2px) !important;
}

.category-strip .category-tile:active .category-icon-flat {
  transform: scale(.96) !important;
}

.category-tone-0 { --flat-color:#e44d16; --flat-bg:#fff0e8; }
.category-tone-1 { --flat-color:#0a7b55; --flat-bg:#e8f8f1; }
.category-tone-2 { --flat-color:#a12d70; --flat-bg:#fcebf5; }
.category-tone-3 { --flat-color:#315fc9; --flat-bg:#eaf0ff; }
.category-tone-4 { --flat-color:#aa6510; --flat-bg:#fff5de; }
.category-tone-5 { --flat-color:#6c45bd; --flat-bg:#f2edff; }
.category-tone-6 { --flat-color:#08788e; --flat-bg:#e7f7fa; }
.category-tone-7 { --flat-color:#bd3547; --flat-bg:#ffedf0; }

.category-browser {
  margin-top: 13px;
  padding: 13px;
  border: 1px solid #e6e8eb;
  border-radius: 20px;
  background: #fbfcfd;
  box-shadow: inset 0 1px 0 #fff;
}

.category-browser-head {
  display: grid;
  grid-template-columns: 38px 44px minmax(0,1fr) 36px;
  align-items: center;
  gap: 9px;
}

.category-browser-head button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  color: #39414c;
  background: #fff;
}

.category-browser-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: #ff6508;
  font-size: 20px;
}

.category-browser-head > div { min-width: 0; }
.category-browser-head small { color: #e25308; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.category-browser-head h3 { overflow: visible; margin: 1px 0 0; color: #1d232b; font-size: 17px; font-weight: 900; line-height: 1.15; overflow-wrap: normal; text-overflow: clip; white-space: normal; word-break: normal; }
.category-browser-head p { margin: 2px 0 0; color: #737b86; font-size: 9px; font-weight: 700; }

.category-subcategory-search,
.category-results-search {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 12px;
  padding: 0 13px;
  border: 1px solid #dfe3e8;
  border-radius: 14px;
  color: #e25308;
  background: #fff;
}

.category-subcategory-search:focus-within,
.category-results-search:focus-within {
  border-color: #ff8f4d;
  box-shadow: 0 0 0 3px rgba(255,101,8,.11);
}

.category-subcategory-search input,
.category-results-search input {
  width: 100%;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  outline: 0;
  color: #262c34;
  background: transparent;
  font-size: 12px;
  font-weight: 750;
}

.category-subcategories {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  margin-top: 10px;
}

.subcategory-tile {
  --flat-color: #e45109;
  --flat-bg: #fff0e7;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 62px;
  padding: 8px 10px;
  border: 1px solid #e4e7eb;
  border-radius: 16px;
  color: #242a31;
  background: #fff;
  text-align: left;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.subcategory-tile:hover,
.subcategory-tile:focus-visible {
  border-color: #ffad7d;
  outline: none;
  box-shadow: 0 8px 18px rgba(40,44,51,.07);
  transform: translateY(-1px);
}

.subcategory-tile.is-all { grid-column: 1 / -1; border-color: #ffd3b8; background: #fff8f3; }
.subcategory-icon-flat { width: 42px !important; height: 42px !important; border-radius: 13px !important; font-size: 18px; }
.subcategory-tile span { display: grid; min-width: 0; }
.subcategory-tile strong { display: block; overflow: visible; font-size: 13px; font-weight: 900; line-height: 1.25; overflow-wrap: anywhere; white-space: normal; -webkit-line-clamp: unset; }
.subcategory-tile small { margin-top: 3px; color: #6f7782; font-size: 10px; font-weight: 700; }
.subcategory-tile > i { color: #9ba1aa; font-size: 12px; }
.category-subcategories-empty { margin: 12px 0 0; color: #737b86; font-size: 11px; text-align: center; }

.search-view-head {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.search-view-head > div { min-width: 0; }
.search-view-breadcrumb { display: block; overflow: hidden; margin-bottom: 2px; color: #e65308; font-size: 8px; font-weight: 900; letter-spacing: .06em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.search-change-category { display: inline-flex; min-height: 38px; align-items: center; gap: 5px; padding: 0 10px; border: 1px solid #e1e4e8; border-radius: 12px; color: #505862; background: #fff; font-size: 9px; font-weight: 900; }
.category-results-search { margin: 0 0 13px; }

@media (max-width: 560px) {
  .category-strip { grid-template-columns: repeat(4,minmax(0,1fr)) !important; }
  .category-subcategories { grid-template-columns: 1fr; }
  .subcategory-tile.is-all { grid-column: auto; }
  .subcategory-tile { min-height: 68px; }
  .category-browser { padding: 11px; }
  .category-browser-head { grid-template-columns: 36px 40px minmax(0,1fr) 34px; gap: 7px; }
  .category-browser-icon { width: 40px; height: 40px; }
  .category-browser-head p { display: none; }
  .search-change-category { width: 38px; justify-content: center; padding: 0; font-size: 0; }
  .search-change-category i { font-size: 14px; }
}

@media (max-width: 390px) {
  .category-strip { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
}

@media (max-width: 360px) {
  .category-browser-head { grid-template-columns: 36px minmax(0,1fr) 34px; }
  .category-browser-icon { display: none !important; }
  .category-browser-head h3 { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .category-icon-flat,
  .subcategory-tile { transition: none !important; }
}

/* Web y Android comparten el mismo flujo: el hero nunca se solapa con la barra. */
html.yovoy-android-app #user-location-required.d-none + .home-discovery {
  margin-top: 8px !important;
}

@media (max-width: 520px) {
  html.yovoy-android-app #user-location-required.d-none + .home-discovery {
    margin-top: 8px !important;
  }
}

/* Familia original YOVOY 3D Color para categorías y subcategorías. */
.taxonomy-icon-tone-0 { --icon-front:#ff8a2b; --icon-back:#ed3f12; --icon-depth:#a92a0b; --icon-glow:rgba(255,111,32,.34); }
.taxonomy-icon-tone-1 { --icon-front:#ff5b58; --icon-back:#d9233f; --icon-depth:#94152d; --icon-glow:rgba(235,50,72,.32); }
.taxonomy-icon-tone-2 { --icon-front:#f04fbc; --icon-back:#a52acf; --icon-depth:#681790; --icon-glow:rgba(211,57,196,.32); }
.taxonomy-icon-tone-3 { --icon-front:#ff9b32; --icon-back:#ef397e; --icon-depth:#a71d62; --icon-glow:rgba(245,75,126,.33); }
.taxonomy-icon-tone-4 { --icon-front:#36b8ff; --icon-back:#1673df; --icon-depth:#0c479e; --icon-glow:rgba(30,132,231,.32); }
.taxonomy-icon-tone-5 { --icon-front:#5ac9ff; --icon-back:#287bd9; --icon-depth:#174a9b; --icon-glow:rgba(52,145,225,.31); }
.taxonomy-icon-tone-6 { --icon-front:#6c7485; --icon-back:#252936; --icon-depth:#10131c; --icon-glow:rgba(46,52,69,.28); }
.taxonomy-icon-tone-7 { --icon-front:#ffcb45; --icon-back:#f08a22; --icon-depth:#a95b12; --icon-glow:rgba(245,161,40,.32); }
.taxonomy-icon-tone-8 { --icon-front:#ffb548; --icon-back:#df6b21; --icon-depth:#954112; --icon-glow:rgba(226,116,36,.31); }
.taxonomy-icon-tone-9 { --icon-front:#bf60ff; --icon-back:#6534d6; --icon-depth:#3b1a91; --icon-glow:rgba(116,66,219,.32); }
.taxonomy-icon-tone-10 { --icon-front:#55d7ff; --icon-back:#237be5; --icon-depth:#174ca6; --icon-glow:rgba(43,139,231,.32); }
.taxonomy-icon-tone-11 { --icon-front:#9ba7b7; --icon-back:#596477; --icon-depth:#303847; --icon-glow:rgba(83,96,116,.28); }

.taxonomy-icon-3d {
  --icon-front:#ff8a2b;
  --icon-back:#ed3f12;
  --icon-depth:#a92a0b;
  --icon-glow:rgba(255,111,32,.34);
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.category-strip .category-icon-3d.has-image,
.category-browser-icon-3d.has-image {
  width: 100% !important;
  height: 100% !important;
  overflow: visible;
  border: 0 !important;
  border-radius: 0 !important;
  color: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

.taxonomy-icon-3d.has-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  filter: drop-shadow(0 6px 5px rgba(37,30,26,.20)) drop-shadow(0 10px 12px rgba(37,30,26,.10));
  transform: translateY(-1px);
  transition: filter .18s ease, transform .18s cubic-bezier(.2,.8,.2,1);
}

.category-strip .category-tile:hover .taxonomy-icon-3d.has-image img,
.category-strip .category-tile:focus-visible .taxonomy-icon-3d.has-image img {
  filter: drop-shadow(0 8px 7px rgba(37,30,26,.24)) drop-shadow(0 13px 15px rgba(37,30,26,.13));
  transform: translateY(-4px) scale(1.055);
}

.category-strip .category-tile:active .taxonomy-icon-3d.has-image img {
  filter: drop-shadow(0 3px 4px rgba(37,30,26,.18));
  transform: translateY(1px) scale(.96);
}

.subcategory-icon-3d:not(.has-image) {
  width: 48px;
  height: 48px;
  border: 1px solid color-mix(in srgb, var(--icon-front) 48%, #fff) !important;
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 27% 17%, rgba(255,255,255,.98) 0 4%, rgba(255,255,255,.25) 5%, transparent 17%),
    linear-gradient(145deg, color-mix(in srgb, var(--icon-front) 68%, #fff) 0%, var(--icon-front) 36%, var(--icon-back) 72%, var(--icon-depth) 100%);
  box-shadow:
    inset 0 2px 1px rgba(255,255,255,.62),
    inset 0 -5px 8px rgba(35,18,11,.18),
    0 4px 0 var(--icon-depth),
    0 9px 15px var(--icon-glow);
  transform: translateY(-2px);
  transition: transform .16s cubic-bezier(.2,.8,.2,1), box-shadow .16s ease;
}

.subcategory-icon-3d:not(.has-image)::before {
  position: absolute;
  top: 4px;
  right: 6px;
  left: 6px;
  height: 42%;
  border-radius: 11px 11px 8px 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.38), transparent);
  content: "";
  pointer-events: none;
}

.subcategory-icon-3d:not(.has-image)::after {
  position: absolute;
  right: 10%;
  bottom: -10px;
  left: 10%;
  z-index: -1;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--icon-depth) 38%, transparent), transparent 72%);
  filter: blur(3px);
  content: "";
}

.subcategory-icon-3d:not(.has-image) i {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(35,18,11,.28), 0 4px 7px rgba(35,18,11,.25);
  transform: translateY(-1px);
}

.subcategory-tile {
  grid-template-columns: 48px minmax(0,1fr) auto;
  min-height: 72px;
  gap: 11px;
  border-color: color-mix(in srgb, var(--icon-front) 16%, #e4e7eb);
  background: linear-gradient(110deg, color-mix(in srgb, var(--icon-front) 5%, #fff), #fff 48%);
}

.subcategory-tile:hover,
.subcategory-tile:focus-visible {
  border-color: color-mix(in srgb, var(--icon-front) 48%, #fff);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--icon-glow) 60%, transparent);
}

.subcategory-tile:hover .subcategory-icon-3d,
.subcategory-tile:focus-visible .subcategory-icon-3d {
  box-shadow:
    inset 0 2px 1px rgba(255,255,255,.68),
    inset 0 -5px 8px rgba(35,18,11,.16),
    0 5px 0 var(--icon-depth),
    0 12px 19px var(--icon-glow);
  transform: translateY(-4px) rotate(-1.5deg);
}

.subcategory-tile:active .subcategory-icon-3d {
  box-shadow: inset 0 2px 1px rgba(255,255,255,.5), 0 2px 0 var(--icon-depth), 0 5px 9px var(--icon-glow);
  transform: translateY(1px) scale(.96);
}

.category-browser-head {
  grid-template-columns: 38px 54px minmax(0,1fr) 36px;
}

.category-browser-icon {
  width: 54px;
  height: 54px;
  overflow: visible;
  border-radius: 0;
  color: inherit;
  background: transparent;
}

.category-browser-icon .category-browser-icon-3d {
  width: 54px !important;
  height: 54px !important;
}

@media (max-width: 560px) {
  .category-browser-head { grid-template-columns: 36px 50px minmax(0,1fr) 34px; }
  .category-browser-icon,
  .category-browser-icon .category-browser-icon-3d { width: 50px !important; height: 50px !important; }
}

@media (max-width: 340px) {
  .category-browser-head { grid-template-columns: 36px minmax(0,1fr) 34px; }
  .category-browser-icon { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .taxonomy-icon-3d,
  .taxonomy-icon-3d img { transition: none !important; }
}
