@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

body.modal-open {
  overflow: hidden;
}

.share-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #f2f2f2;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.share-btn:hover {
  background: #e8e8e8;
}

.cart-btn:active {
  transform: scale(0.94);
}

.search-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.clear-search-btn.active {
  display: grid;
}

.clear-search-btn svg {
  display: block;
  width: 16px;
  height: 16px;
}

.clear-search-btn:active {
  transform: translateY(-50%) scale(0.94);
}

.categories::-webkit-scrollbar {
  display: none;
}

.business-info {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.status-line.closed {
  color: #d93636;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.status-line.closed .status-dot {
  background: #d93636;
}

.empty-message {
  display: none;
  text-align: center;
  color: #666;
  padding: 35px 10px;
  font-size: 18px;
}

.floating-order.active {
  display: flex;
}

.floating-order-text {
  color: #fff;
  font-size: 15px;
  font-weight: 850;
  text-align: center;
}

.footer-brand a:hover {
  transform: translateY(-2px);
  opacity: 0.75;
}

/* ========================================
MODALES GENERALES
======================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 999;
  overflow-x: hidden;
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex;
}

.product-modal {
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-content {
  padding: 18px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.modal-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
  width: 100%;
  max-width: 100%;
}

.modal-title {
  flex: 1;
  min-width: 0;
}

.modal-title h2 {
  font-size: 23px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.modal-title p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin-top: 6px;
  overflow-wrap: break-word;
}

.close-modal {
  width: 36px;
  height: 36px;
  border: none;
  background: #f2f2f2;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  padding: 0;
}

.close-modal svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.modal-section {
  border-top: 1px solid #eee;
  padding-top: 16px;
  margin-top: 16px;
  width: 100%;
  max-width: 100%;
}

.modal-section h3 {
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 12px;
}

.flavors-section-subtitle {
  display: none;
  margin-top: -8px;
  margin-bottom: 12px;
  color: #777;
  font-size: 12px;
  font-weight: 500;
}

.combo-group-help {
  display: block;
  margin-top: -6px;
}

.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f1f1;
  width: 100%;
  max-width: 100%;
}

.option-row:last-child {
  border-bottom: none;
}

.option-row.is-limit-disabled {
  cursor: not-allowed;
}

.option-row.is-limit-disabled .option-left,
.option-row.is-limit-disabled .option-price {
  color: #aaa;
}

.option-row.is-limit-disabled input {
  opacity: 0.38;
  cursor: not-allowed;
}

.option-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  min-width: 0;
  overflow-wrap: break-word;
}

.option-left input {
  width: 18px;
  height: 18px;
  accent-color: #111;
  flex-shrink: 0;
}

.option-price {
  font-size: 14px;
  color: #555;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.notes-area {
  width: 100%;
  min-height: 82px;
  border: 1px solid #eee;
  background: #fafafa;
  border-radius: 16px;
  padding: 12px;
  resize: none;
  outline: none;
  font-size: 16px;
  line-height: 1.4;
}

.quantity-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.quantity-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  width: 112px;
  height: 38px;
  background: #f1f1f1;
  border-radius: 999px;
  padding: 3px 8px;
  flex-shrink: 0;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #111;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.quantity-btn:active {
  background: #dfdfdf;
  transform: scale(0.9);
}

.quantity-btn:focus-visible {
  outline: 3px solid rgba(23, 23, 23, 0.2);
  outline-offset: 2px;
}

.quantity-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.quantity-number {
  min-width: 20px;
  text-align: center;
  color: #171717;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.modal-add-btn {
  width: 100%;
  border: none;
  background: #111;
  color: #fff;
  border-radius: 16px;
  padding: 15px 16px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  margin-top: 18px;
}

@keyframes sectionTitleShake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-5px);
  }
  40% {
    transform: translateX(4px);
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(2px);
  }
}

.section-title-shake {
  color: #d92d20;
  animation: sectionTitleShake 420ms ease-in-out;
}

/* ========================================
PANEL DESLIZABLE DEL PEDIDO
======================================== */

.order-panel-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 1800;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
  opacity 0.28s ease,
  visibility 0.28s ease;
}

.order-panel-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.order-panel {
  width: 100%;
  max-width: 520px;
  height: 100vh;
  height: 100dvh;
  margin-left: auto;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -18px 0 45px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.order-panel-overlay.active .order-panel {
  transform: translateX(0);
}

.order-panel-header {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) 16px 14px;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.order-panel-back {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: #f3f3f3;
  color: #171717;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.order-panel-back svg {
  width: 22px;
  height: 22px;
  display: block;
}

.order-panel-back:active {
  transform: scale(0.94);
}

.order-panel-title {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.order-panel-title h2 {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
  color: #171717;
}

.order-panel-title p {
  margin-top: 5px;
  color: #6b6b6b;
  font-size: 13px;
  line-height: 1.4;
}

.order-panel-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 16px 26px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.order-panel-footer {
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid #ededed;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 22px rgba(0, 0, 0, 0.05);
}

.order-section {
  margin-bottom: 24px;
}

.order-section:last-child {
  margin-bottom: 0;
}

.order-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.order-section-heading h3 {
  font-size: 17px;
  font-weight: 900;
  color: #171717;
}

.order-clear-link {
  border: none;
  border-radius: 10px;
  background: rgba(217, 54, 54, 0.07);
  color: #c94a4a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 9px;
  cursor: pointer;
  transition:
  transform 0.15s ease,
  background-color 0.15s ease,
  color 0.15s ease;
}

.order-clear-link:active {
  transform: scale(0.95);
  background: #ffdede;
  color: #c72e2e;
}

.order-clear-link:focus-visible {
  outline: 3px solid rgba(217, 54, 54, 0.2);
  outline-offset: 2px;
}

.order-cart-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.order-cart-item {
  width: 100%;
  padding: 12px;
  border: 1px solid #e9e9e9;
  border-radius: 18px;
  background: #fafafa;
  overflow: hidden;
}

.order-cart-item-main {
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

.order-cart-item-image {
  width: 92px;
  height: 112px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center;
  background: #eeeeee;
  flex-shrink: 0;
  align-self: flex-start;
}

.order-cart-item-information {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.order-cart-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.order-cart-item-name {
  flex: 1;
  min-width: 0;
  color: #171717;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 900;
  overflow-wrap: break-word;
}

.order-cart-item-price {
  color: #171717;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
  flex-shrink: 0;
}

.order-cart-item-details {
  color: #686868;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.order-cart-item-details strong {
  color: #4c4c4c;
}

/* Botón para eliminar un producto del pedido */

.order-cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}

.order-quantity-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  width: 112px;
  height: 38px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f1f1;
}

.order-quantity-control button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #111;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.order-quantity-control button:disabled {
  background: transparent;
  color: #a7a7a7;
  opacity: 0.65;
  cursor: default;
}

.order-quantity-control button.is-remove {
  color: #111;
}

.order-quantity-control button.is-remove svg {
  width: 21px;
  height: 19px;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.order-quantity-control button.is-remove:active {
  background: #dfdfdf;
}

.order-quantity-control button:not(:disabled):active {
  background: #dfdfdf;
  transform: scale(0.9);
}

.order-quantity-control button:focus-visible {
  outline: 3px solid rgba(23, 23, 23, 0.2);
  outline-offset: 2px;
}

.order-quantity-control svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.order-quantity-control span {
  min-width: 20px;
  color: #171717;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

.order-remove-item {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border: none;
  border-radius: 13px;
  background: #fff0f0;
  color: #d93636;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
  transform 0.15s ease,
  background-color 0.15s ease,
  color 0.15s ease;
}

.order-remove-item svg {
  width: 21px;
  height: 21px;
  display: block;
  pointer-events: none;
}

.order-remove-item:active {
  transform: scale(0.92);
  background: #ffdede;
  color: #c72e2e;
}

.order-remove-item:focus-visible {
  outline: 3px solid rgba(217, 54, 54, 0.2);
  outline-offset: 2px;
}

@media (hover: hover) {
  .order-clear-link:hover {
    background: #ffe2e2;
    color: #c72e2e;
  }
  .order-remove-item:hover {
    background: #ffe2e2;
    color: #c72e2e;
  }
}

.order-summary-box {
  border-top: 1px solid #ededed;
  border-bottom: 1px solid #ededed;
  padding: 14px 0;
}

.order-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #666;
  font-size: 14px;
  padding: 5px 0;
}

.order-summary-row.total {
  color: #171717;
  font-size: 18px;
  font-weight: 900;
  padding-top: 10px;
}

.order-summary-row.subtotal {
  color: #171717;
  font-size: 18px;
  font-weight: 900;
  padding-top: 10px;
  display: none;
}

.order-summary-row.total strong {
  color: #171717;
  font-size: 20px;
}

.order-field {
  margin-bottom: 16px;
}

.order-field:last-child {
  margin-bottom: 0;
}

.order-field label {
  display: block;
  color: #171717;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 7px;
}

.order-input,
.order-textarea {
  width: 100%;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  color: #171717;
  border-radius: 15px;
  padding: 13px 14px;
  font-size: 16px;
  line-height: 1.4;
  outline: none;
  transition:
  border-color 0.18s ease,
  background 0.18s ease,
  box-shadow 0.18s ease;
}

.order-input::placeholder,
.order-textarea::placeholder {
  color: #a1a1a1;
}

.order-input:focus,
.order-textarea:focus {
  border-color: #171717;
  background: #fff;
  box-shadow: none;
}

.order-textarea {
  min-height: 78px;
  resize: vertical;
}

.order-error {
  display: none;
  color: #d93636;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
  margin-top: 6px;
}

.order-error.active {
  display: block;
}

.delivery-question {
  color: #171717;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 9px;
}

.delivery-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 15px;
}

.delivery-option {
  min-height: 88px;
  border: 1.5px solid #dfdfdf;
  border-radius: 16px;
  background: #fff;
  color: #333;
  padding: 13px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition:
  border-color 0.18s ease,
  background 0.18s ease,
  color 0.18s ease,
  transform 0.18s ease;
}

.delivery-option:active {
  transform: scale(0.97);
}

.delivery-option.active {
  border-color: #171717;
  background: #f3f3f3;
  color: #171717;
}

.delivery-option-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.pickup-information {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: #f3f3f3;
  border: 1px solid #e2e2e2;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 16px;
}

.pickup-information-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.pickup-information-content {
  min-width: 0;
}

.pickup-information-content span {
  display: block;
  color: #626262;
  font-size: 12px;
  margin-bottom: 3px;
}

.pickup-information-content strong {
  display: block;
  color: #171717;
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 3px;
}

.pickup-information-content p {
  color: #5e5e5e;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.order-footer-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.order-footer-total span {
  color: #666;
  font-size: 13px;
  font-weight: 700;
}

.order-footer-total strong {
  color: #171717;
  font-size: 21px;
  font-weight: 900;
}

.order-submit-btn {
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: 16px;
  background: #19b85b;
  color: #fff;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition:
  transform 0.15s ease,
  opacity 0.15s ease;
}

.order-submit-btn:active {
  transform: scale(0.985);
}

.order-empty-state {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 20px;
}

.order-empty-icon {
  width: 75px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 26px;
}

.order-empty-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.order-empty-state h3 {
  color: #171717;
  font-size: 19px;
  font-weight: 900;
  margin-bottom: 6px;
}

.order-empty-state p {
  color: #6a6a6a;
  font-size: 14px;
  line-height: 1.5;
  max-width: 290px;
}

.order-continue-btn {
  width: 100%;
  border: none;
  border-radius: 16px;
  background: #111;
  color: #fff;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

/* ========================================
MODAL DE NEGOCIO CERRADO
======================================== */

.closed-hours-modal {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 22px;
  padding: 26px 22px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  animation: modalIn 0.25s ease;
  overflow: hidden;
}

.closed-hours-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff1f1;
  color: #d93636;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 900;
  margin: 0 auto 16px;
}

.closed-hours-modal h3 {
  font-size: 21px;
  font-weight: 900;
  margin-bottom: 10px;
  color: #222;
}

.closed-hours-modal p {
  color: #666;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.closed-hours-btn {
  width: 100%;
  border: none;
  background: #111;
  color: #fff;
  padding: 13px 16px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
}

#closedHoursModal {
  z-index: 2000;
}

/* ========================================
MODAL DE INFORMACIÓN DEL NEGOCIO
======================================== */

#businessInfoModalOverlay {
  z-index: 1500;
}

.info-modal {
  width: 100%;
  max-width: 500px;
  max-height: 88vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  animation: modalIn 0.25s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 14px;
  border-bottom: 1px solid #eee;
  gap: 14px;
}

.modal-header h2 {
  font-size: 21px;
  font-weight: 900;
}

.modal-body {
  padding: 18px 20px 22px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.modal-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #128c45;
  font-weight: 900;
  margin-bottom: 16px;
  font-size: 16px;
}

.modal-status.closed {
  color: #d93636;
}

.modal-status-dot {
  width: 12px;
  height: 12px;
  border: 3px solid #128c45;
  border-radius: 50%;
  flex-shrink: 0;
}

.modal-status.closed .modal-status-dot {
  border-color: #d93636;
}

.modal-business {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.modal-business h3 {
  font-size: 22px;
  font-weight: 900;
  overflow-wrap: break-word;
}

.mini-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.share-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  margin: 10px auto 20px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #f2f2f2;
  color: #4a4a4a;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: none;
  transition:
  transform 0.16s ease,
  background-color 0.16s ease,
  color 0.16s ease;
}

.modal-divider {
  height: 1px;
  background: #eee;
  margin: 18px 0;
}

.modal-section-title {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 15px;
}

.service-detail {
  border-bottom: 1px solid #eee;
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.service-detail:last-child {
  margin-bottom: 0;
}

.service-detail-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.service-detail-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
  overflow-wrap: break-word;
}

.service-detail-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.service-detail-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.delivery-bag-icon svg {
  width: 27px;
  height: 27px;
}

.check-icon {
  font-size: 24px;
  color: #222;
  flex-shrink: 0;
}

.service-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555;
  font-size: 14px;
  margin: 7px 0;
  overflow-wrap: break-word;
}

.service-note strong {
  color: #333;
}

.schedule-list {
  display: grid;
  gap: 10px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 15px;
}

.schedule-day {
  color: #444;
  font-weight: 600;
}

.schedule-time {
  color: #555;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.schedule-row.today .schedule-day,
.schedule-row.today .schedule-time {
  color: #2563eb;
  font-weight: 800;
}

.modal-footer {
  text-align: center;
  color: #888;
  font-size: 12px;
  padding-top: 18px;
}

/* ========================================
RESPONSIVE
======================================== */

@media (max-width: 600px) {
  .order-panel-overlay {
    background: #fff;
  }

  .order-panel {
    max-width: none;
    box-shadow: none;
  }
}

@media (max-width: 420px) {
  .product-card {
    gap: 11px;
  }

  .product-img {
    width: 100px;
    height: 106px;
  }

  .product-info h3 {
    font-size: 16px;
  }

  .product-info p {
    font-size: 12.5px;
  }

  .price {
    font-size: 16px;
  }

  .add-btn {
    padding: 8px 11px;
    font-size: 12px;
  }

  .modal-img {
    height: 190px;
  }

  .modal-title h2 {
    font-size: 21px;
  }

  .modal-business h3 {
    font-size: 20px;
  }

  .schedule-row {
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .header {
    padding-left: 12px;
    padding-right: 12px;
  }

  .product-img {
    width: 88px;
    height: 100px;
  }

  .product-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .add-btn {
    align-self: flex-start;
  }

  .business-logo {
    width: 52px;
    height: 52px;
  }

  .business-info h2 {
    font-size: 17px;
  }

  .order-panel-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .order-panel-header,
  .order-panel-footer {
    padding-left: 12px;
    padding-right: 12px;
  }

  .delivery-option {
    min-height: 82px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .order-cart-item-main {
    gap: 10px;
  }

  .order-cart-item-image {
    width: 80px;
    height: 100px;
    border-radius: 12px;
  }

  .order-cart-item-name,
  .order-cart-item-price {
    font-size: 15px;
  }

  .order-remove-item {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 12px;
  }

  .order-remove-item svg {
    width: 20px;
    height: 20px;
  }
}

/* =========================================================
SISTEMA VISUAL BARYO
========================================================= */

:root {
  --baryo-brand: #42e85b;
  --baryo-brand-strong: #19b84d;
  --baryo-ink: #171717;
  --baryo-muted: #6f6f73;
  --baryo-surface: #ffffff;
  --baryo-soft: #f6f6f7;
  --baryo-line: rgba(23, 23, 23, 0.075);
  --baryo-shadow-card: 0 6px 24px rgba(0, 0, 0, 0.055);
  --baryo-shadow-float: 0 14px 34px rgba(0, 0, 0, 0.15);
  --baryo-radius-lg: 24px;
  --baryo-radius-md: 18px;
  --baryo-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  background: #ffffff;
  scroll-behavior: smooth;
}

body {
  background: #ffffff;
  color: var(--baryo-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Encabezado tipo app */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  padding: calc(11px + env(safe-area-inset-top)) 20px 14px;
  border-bottom: 1px solid var(--baryo-line);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  position: relative;
  min-height: 44px;
  margin-bottom: 13px;
}

.header-title {
  flex: 1;
  min-width: 0;
  position: absolute;
  inset: 0 56px;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.header-title h1 {
  line-height: 1.2;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.55px;
}

.back-btn {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #171717;
  border-radius: 50%;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  width: 42px;
  height: 42px;
  background: #f4f4f5;
  border: 1px solid rgba(0, 0, 0, 0.025);
  transition:
  transform 180ms var(--baryo-ease),
  background 180ms ease;
}

.back-btn:hover {
  background: #ededee;
}

.back-btn:active {
  transform: scale(0.93);
}

.back-btn svg {
  display: block;
  width: 21px;
  height: 21px;
}

.cart-btn {
  position: relative;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #292929;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: none;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  margin-left: auto;
  transition: transform 180ms var(--baryo-ease);
}

.cart-icon {
  display: block;
  width: 28px;
  height: 28px;
}

.cart-count {
  position: absolute;
  font-weight: 900;
  border: 2px solid #171717;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  top: -1px;
  right: -1px;
  min-width: 19px;
  height: 19px;
  background: #171717;
  color: #fff;
  font-size: 10.5px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.24);
}

/* Buscador compacto */
.search-box {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-bottom: 13px;
}

.search-box input {
  width: 100%;
  max-width: 100%;
  outline: none;
  display: block;
  height: 50px;
  padding: 0 48px 0 49px;
  border: 1px solid transparent;
  border-radius: 17px;
  background: #f5f5f6;
  color: var(--baryo-ink);
  font-size: 16px;
  font-weight: 450;
  transition:
  background 180ms ease,
  border-color 180ms ease,
  box-shadow 180ms ease;
}

.search-box input::placeholder {
  color: #a0a0a5;
}

.search-box input:focus {
  background: #f5f5f6;
  border-color: transparent;
  box-shadow: none;
}

.search-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 1;
  left: 16px;
  width: 22px;
  height: 22px;
  color: #2e2e30;
}

.clear-search-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 0;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  display: none;
  place-items: center;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  right: 12px;
  width: 27px;
  height: 27px;
  background: #e7e7e9;
  color: #66666b;
}

/* Categorías */
.categories {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scrollbar-width: none;
  width: 100%;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  gap: 9px;
  padding: 1px 0 3px;
  scroll-padding-inline: 20px;
}

.category-btn {
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid transparent;
  background: #f3f3f4;
  color: #242426;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.15px;
  transition:
  transform 180ms var(--baryo-ease),
  background 180ms ease,
  color 180ms ease,
  box-shadow 180ms ease;
}

.category-btn:hover {
  background: #ebebed;
}

.category-btn:active {
  transform: scale(0.96);
}

.category-btn.active {
  background: var(--baryo-ink);
  color: #fff;
}

/* Contenido */
.content {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  padding: 22px 20px 118px;
}

/* Tarjeta del negocio más compacta */
.business-card {
  display: flex;
  align-items: center;
  cursor: pointer;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  gap: 13px;
  padding: 13px;
  margin-bottom: 28px;
  border: 1px solid var(--baryo-line);
  border-radius: 22px;
  background: #fbfbfc;
  box-shadow: none;
  transition:
  transform 200ms var(--baryo-ease),
  box-shadow 200ms ease,
  background 200ms ease;
}

.business-card:hover {
  background: #fff;
  box-shadow: var(--baryo-shadow-card);
  transform: translateY(-1px);
}

.business-card:active {
  transform: scale(0.985);
}

.business-logo {
  object-fit: cover;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 16px;
}

.business-info h2 {
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: break-word;
  margin-bottom: 3px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.35px;
}

.business-info p {
  overflow-wrap: break-word;
  color: var(--baryo-muted);
  font-size: 13px;
  font-weight: 430;
  line-height: 1.35;
}

.status-line {
  display: flex;
  align-items: center;
  color: #777;
  flex-wrap: wrap;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.35;
  gap: 7px;
  margin-top: 5px;
  font-size: 12.5px;
  font-weight: 750;
}

.status-line.open {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  color: var(--baryo-brand-strong);
}

.status-line.open .status-dot {
  background: var(--baryo-brand);
  box-shadow: 0 0 0 4px rgba(66, 232, 91, 0.12);
}

.status-dot {
  background: #777;
  border-radius: 50%;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
}

.section-title {
  text-transform: capitalize;
  margin-bottom: 16px;
  font-size: 25px;
  font-weight: 820;
  letter-spacing: -0.8px;
  line-height: 1.12;
}

/* Productos */
.product-card {
  display: flex;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  gap: 16px;
  min-height: 148px;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--baryo-line);
  border-radius: var(--baryo-radius-lg);
  background: var(--baryo-surface);
  box-shadow: none;
  transition:
  transform 200ms var(--baryo-ease),
  box-shadow 200ms ease,
  border-color 200ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(23, 23, 23, 0.105);
  box-shadow: none;
}

.product-card:active {
  transform: scale(0.988);
}

.product-img {
  object-fit: cover;
  flex-shrink: 0;
  background: #eee;
  width: 124px;
  height: 124px;
  border-radius: 19px;
}

.product-card--promo .promo-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 5px 12px 5px 10px;
  border-radius: 14px 4px 13px 4px;
  color: #fff;
  background: linear-gradient(135deg, #ff2a35 0%, #e60012 100%);
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  pointer-events: none;
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 3px 1px 1px 0;
}

.product-info h3 {
  overflow-wrap: break-word;
  word-break: break-word;
  margin-bottom: 6px;
  color: var(--baryo-ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.42px;
  line-height: 1.2;
}

.product-info p {
  overflow-wrap: break-word;
  word-break: break-word;
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 13px;
  color: var(--baryo-muted);
  font-size: 13.5px;
  font-weight: 430;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 10px;
}

.price-group {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}

.original-price {
  color: var(--baryo-muted);
  font-size: 15px;
  font-family: "Inter", sans-serif;
  font-weight: 820;
}

.price {
  min-width: 0;
  overflow-wrap: break-word;
  color: var(--baryo-ink);
  font-size: 18px;
  font-weight: 820;
  letter-spacing: -0.45px;
}

.add-btn {
  border: none;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
  background: var(--baryo-ink);
  color: #fff;
  flex: 0 0 42px;
  transition:
  transform 180ms var(--baryo-ease),
  background 180ms ease,
  box-shadow 180ms ease;
}

.add-btn svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 21px;
  height: 21px;
  display: block;
  transform: translate(-50%, -50%);
}

.add-btn:hover {
  background: #000;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.add-btn:active {
  transform: scale(0.94);
}

.add-btn:disabled,
.add-btn.is-disabled,
.modal-add-btn:disabled {
  background: #b8b8b8;
  color: #f7f7f7;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.add-btn:disabled:hover,
.add-btn.is-disabled:hover,
.modal-add-btn:disabled:hover {
  background: #b8b8b8;
  box-shadow: none;
}

/* Barra flotante del pedido */
.floating-order-shell {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 50;
  width: calc(100% - 32px);
  max-width: 488px;
  background: transparent;
  transform: translateX(-50%);
  pointer-events: none;
}

.floating-order {
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  cursor: pointer;
  position: relative;
  left: auto;
  bottom: auto;
  width: 100%;
  max-width: none;
  min-height: 52px;
  padding: 7px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: #171717;
  box-shadow: none;
  transform: none;
  pointer-events: auto;
}

/* Footer */
.footer-brand {
  padding: 24px 18px 30px;
  text-align: center;
  background: #fff;
  border-top: 1px solid var(--baryo-line);
}

.footer-brand a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  text-transform: uppercase;
  transition: 0.2s;
  color: #6f6f73;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.65px;
}

.footer-brand span {
  font-size: 16px;
  color: var(--baryo-brand-strong);
}

/* Modales más pulidos */
.modal-overlay,
.order-panel-overlay {
  background: rgba(0, 0, 0, 0.38);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.product-modal,
.info-modal,
.closed-hours-modal {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.modal-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: #eee;
  border-radius: 26px 26px 0 0;
}

.close-modal,
.business-modal-close,
.order-panel-back {
  transition:
  transform 180ms var(--baryo-ease),
  background 180ms ease;
}

.close-modal:active,
.business-modal-close:active,
.order-panel-back:active {
  transform: scale(0.92);
}

.modal-add-btn,
.order-submit-btn {
  min-height: 52px;
  border-radius: 17px;
  background: var(--baryo-ink);
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.12);
  transition:
  transform 180ms var(--baryo-ease),
  box-shadow 180ms ease;
}

.modal-add-btn:active,
.order-submit-btn:active {
  transform: scale(0.98);
}

.modal-add-btn:disabled,
.modal-add-btn:disabled:hover,
.modal-add-btn:disabled:active {
  background: #b8b8b8;
  color: #f7f7f7;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* Accesibilidad de teclado */
.back-btn:focus-visible,
.cart-btn:focus-visible,
.category-btn:focus-visible,
.product-card:focus-visible,
.add-btn:focus-visible,
.business-card:focus-visible,
.floating-order:focus-visible {
  outline: 3px solid rgba(66, 232, 91, 0.52);
  outline-offset: 3px;
}

/* Ajustes responsive */
@media (max-width: 430px) {
  .header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .product-card {
    gap: 13px;
    min-height: 138px;
    border-radius: 22px;
  }

  .product-img {
    width: 116px;
    height: 116px;
    border-radius: 18px;
  }

  .product-info h3 {
    font-size: 17px;
  }

  .product-info p {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .price {
    font-size: 17px;
  }

  .add-btn {
    min-height: 40px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    flex-basis: 40px;
  }
}

@media (max-width: 365px) {
  .product-img {
    width: 104px;
    height: 112px;
  }

  .product-card {
    gap: 11px;
    padding: 10px;
  }

  /* Keep price and action on the same row at 360px. An older
     max-width: 360px rule stacks them and makes every card too tall. */
  .product-bottom {
    align-items: center;
    flex-direction: row;
  }

  .product-card--promo .promo-badge {
    top: 10px;
    left: 10px;
  }

  .add-btn {
    align-self: auto;
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-title-shake {
    animation: none;
  }
  .order-panel-overlay,
  .order-panel {
    transition: none;
  }

  .product-modal,
  .info-modal,
  .closed-hours-modal {
    animation: none;
  }

  .order-remove-item {
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }

  .product-card,
  .business-card,
  .category-btn,
  .add-btn,
  .floating-order {
    animation: none;
    transition: none;
  }
}

.business-hero {
  position: relative;
  width: 100%;
  height: clamp(300px, 69vw, 430px);
  overflow: hidden;
  background: #eeeeee;
}

.business-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Desvanecimiento de la fotografía hacia el fondo blanco */
.business-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 135px;
  pointer-events: none;
  background: linear-gradient(
  to bottom,
  rgba(255, 255, 255, 0) 0%,
  rgba(255, 255, 255, 0.08) 22%,
  rgba(255, 255, 255, 0.35) 50%,
  rgba(255, 255, 255, 0.78) 78%,
  #ffffff 100%
  );
}

.hero-cart-btn {
  position: absolute;
  top: calc(20px + env(safe-area-inset-top));
  right: 20px;
  z-index: 3;
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.96);
  color: #171717;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hero-cart-btn:hover {
  background: #ffffff;
}

.hero-cart-btn .cart-icon {
  width: 24px;
  height: 24px;
}

.hero-cart-btn .cart-count {
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-width: 2px;
  font-size: 10px;
}

.business-hero-info {
  position: relative;
  z-index: 2;
  margin-top: -38px;
  padding: 8px 22px 22px;
  text-align: center;
  background: transparent;
  cursor: pointer;
  border-radius: 18px;
  transition:
  opacity 0.15s ease,
  transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.business-hero-info:active {
  opacity: 0.72;
  transform: scale(0.99);
}

.business-hero-info:focus-visible {
  outline: 3px solid rgba(25, 184, 91, 0.22);
  outline-offset: -3px;
}

.business-hero-info h1 {
  color: #090909;
  font-size: clamp(34px, 8.5vw, 48px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1.8px;
}

.business-address {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 5px;
  color: #4f4f52;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
}

.business-hero-info .status-line {
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

.status-clock-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.business-hero-info .status-line.open {
  color: #19a951;
}

.business-hero-info .status-line.closed {
  color: #d33b3b;
}

.menu-controls {
  padding: 0 20px 4px;
}

.menu-controls .search-box {
  margin-bottom: 5px;
}

/* ========================================
TIPOGRAFÍA Y MODAL
======================================== */

/* Una sola familia tipográfica para toda la interfaz */
html,
body,
button,
input,
textarea,
select,
.business-hero-info,
.business-hero-info h1,
.business-address,
.status-line,
.product-card,
.product-info,
.product-info h3,
.product-info p,
.section-title,
.modal-header,
.order-clear-link,
.modal-body,
.order-panel,
.footer-brand {
  font-family: "Inter", sans-serif;
}

h1,
h2,
h3,
.business-hero-info h1,
.product-info h3,
.modal-title h2,
.modal-header h2,
.modal-business h3,
.modal-section h3,
.order-panel-title h2,
.closed-hours-modal h3,
.section-title,
.modal-section-title,
.order-section-heading,
.service-detail-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

button,
input,
textarea,
select {
  letter-spacing: inherit;
}

.business-hero-info h1,
.section-title,
.product-info h3,
.modal-header h2,
.modal-business h3,
.modal-section-title,
.order-panel-title h2 {
  letter-spacing: -0.02em;
}

.business-address,
.business-hero-info .status-line,
.product-info p,
.modal-body,
.service-note,
.schedule-row {
  letter-spacing: 0;
}

/* Botón compartir corregido */
.share-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  pointer-events: none;
}

.categories-sticky-wrap .categories {
  width: 100%;
  padding-bottom: 0;
}

.section {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin-bottom: 34px;
  scroll-margin-top: 82px;
}

/* CORRECCIÓN DEL STICKY:
overflow:hidden en un ancestro puede impedir position:sticky */
html,
body {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  background-color: #ffffff;
  color-scheme: only light;
  position: relative;
  overflow-x: clip;
}

.page {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.035);
  overflow: visible;
}

.business-hero-header {
  position: relative;
  top: auto;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--baryo-line, #eeeeee);
  background: #ffffff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  overflow: visible;
}

.categories-sticky-wrap {
  position: sticky;
  top: 0;
  z-index: 120;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 6px 20px 8px;
  background: rgba(255, 255, 255, 0.96);
  border: none;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.035);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  align-self: stretch;
  isolation: isolate;
}

.share-icon:hover {
  border-color: #dddddd;
  background: #e9e9e9;
  color: #252525;
}

.share-icon:active {
  transform: scale(0.93);
  background: #e4e4e4;
}

.share-icon.shared {
  transform: scale(0.92);
  background: #e4f8eb;
  color: #19a951;
}

.share-icon:focus-visible {
  outline: 3px solid rgba(25, 184, 91, 0.2);
  outline-offset: 3px;
}

.share-feedback {
  position: fixed;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  z-index: 3000;
  max-width: calc(100% - 40px);
  padding: 11px 16px;
  border-radius: 999px;
  background: #171717;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition:
  opacity 0.2s ease,
  transform 0.2s ease;
}

.share-feedback.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.share-feedback.error {
  background: #d93636;
}

.business-modal-close {
  width: 42px;
  height: 42px;
  border: none;
  background: #f2f2f2;
  border-radius: 50%;
  font-size: 34px;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  padding: 0 0 3px;
  color: #2f80ed;
  font-weight: 400;
}

.business-action-icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  padding: 0;
  margin: 14px auto 20px;
  border: none;
  border-radius: 50%;
  background: #f2f2f2;
  color: #4a4a4a;
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
  transition:
  transform 0.16s ease,
  background-color 0.16s ease,
  color 0.16s ease;
}

.business-action-icon svg {
  width: 26px;
  height: 26px;
  display: block;
  pointer-events: none;
}

.business-action-icon:hover {
  background: #e9e9e9;
  color: #252525;
}

.business-action-icon:active {
  transform: scale(0.93);
  background: #e4e4e4;
}

.business-action-icon:focus-visible {
  outline: 3px solid rgba(25, 184, 91, 0.2);
  outline-offset: 3px;
}

.business-action-icon.shared {
  transform: scale(0.92);
  background: #e4f8eb;
  color: #19a951;
}

.business-action-icon.share-icon {
  margin: 0;
}

.business-action-icon.share-icon svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 380px) {
  .business-hero {
    height: 300px;
  }

  .hero-cart-btn {
    top: calc(16px + env(safe-area-inset-top));
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .hero-cart-btn .cart-icon {
    width: 21px;
    height: 21px;
  }

  .business-hero-info {
    margin-top: -34px;
    padding: 8px 17px 20px;
  }

  .menu-controls {
    padding: 0 16px;
  }
  .categories-sticky-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  .business-action-icons {
    gap: 16px;
  }

  .business-action-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
  }

  .business-action-icon svg,
  .business-action-icon.share-icon svg {
    width: 26px;
    height: 26px;
  }
}

.business-action-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  margin: 18px auto 24px;
  align-items: center;
}

.business-action-icons .business-action-icon {
  margin: 0;
  flex: 0 0 54px;
}

.business-action-icons .share-icon {
  margin: 0;
}

.close-info-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f1f1f1;
  color: #1976d2;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  line-height: 1;
}

.close-info-btn svg {
  width: 22px;
  height: 22px;
  display: block;
}

.close-info-btn path {
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
}
