:root {
  --rl-ink: #171310;
  --rl-ink-soft: #322822;
  --rl-paper: #f4eee3;
  --rl-paper-2: #ebe0cf;
  --rl-card: #fffaf0;
  --rl-card-2: #fdf5e7;
  --rl-copper: #c9822f;
  --rl-copper-dark: #9d5c27;
  --rl-saffron: #e6b24f;
  --rl-fig: #4d2634;
  --rl-moss: #4f6147;
  --rl-sea: #2f5f5a;
  --rl-line: rgba(70, 52, 38, .18);
  --rl-line-strong: rgba(70, 52, 38, .32);
  --rl-muted: #74695d;
  --rl-radius: 8px;
  --rl-shadow: 0 18px 50px rgba(23, 19, 16, .12);
  --rl-shadow-soft: 0 10px 28px rgba(23, 19, 16, .08);
  --rl-focus: 0 0 0 4px rgba(201, 130, 47, .26);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--rl-ink);
  background:
    linear-gradient(90deg, rgba(79, 97, 71, .08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(77, 38, 52, .05) 1px, transparent 1px),
    var(--rl-paper);
  background-size: 48px 48px, 48px 48px, auto;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(230, 178, 79, .42);
}

a,
button,
input,
select,
textarea {
  transition:
    background-color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    color .18s ease,
    opacity .18s ease,
    transform .18s ease;
}

button:active,
.button:active,
.qty-btn:active,
.carousel-btn:active {
  transform: translateY(1px) scale(.99);
}

.public-shell {
  min-height: min(86vh, 820px);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(23, 19, 16, .48) 0%, rgba(23, 19, 16, .8) 100%),
    linear-gradient(110deg, rgba(77, 38, 52, .38), rgba(47, 95, 90, .2) 48%, rgba(201, 130, 47, .18)),
    var(--public-hero-image, linear-gradient(var(--rl-paper-2), var(--rl-paper-2))) var(--public-hero-position, center 42%) / cover no-repeat,
    var(--public-hero-bg, var(--rl-paper-2));
  isolation: isolate;
}

.public-shell::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  background: linear-gradient(180deg, rgba(244, 238, 227, 0), var(--rl-paper));
  pointer-events: none;
  z-index: 0;
}

.public-header,
.public-main,
.public-footer {
  width: min(1280px, calc(100% - 36px));
}

.public-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  padding: 22px 0 0;
}

.brand-lockup {
  width: min(var(--public-logo-size-desktop, 360px), 68vw);
  border: 1px solid rgba(255, 250, 240, .22);
  border-radius: 8px;
  background: rgba(255, 250, 240, .86);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .18);
  padding: 12px 22px;
  transform: translateZ(0);
}

.brand-lockup:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  z-index: 1;
  min-height: clamp(390px, 62vh, 640px);
  align-content: center;
  padding: 42px 0 78px;
}

.hero h1 {
  max-width: 920px;
  color: var(--rl-ink);
  font-size: clamp(54px, 9vw, var(--public-hero-title-size-desktop, 92px));
  line-height: .88;
  text-wrap: balance;
}

/* Cuerpo y enlaces del hero "simple" (confirmación, error, no encontrado,
   aviso de privacidad): fondo crema -> texto oscuro legible. */
.hero p {
  max-width: 700px;
  color: var(--rl-muted);
  font-weight: 500;
  line-height: 1.5;
}
.hero a {
  color: var(--zyme-gold-text, #8a6011);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(230, 178, 79, .46);
  border-radius: 999px;
  background: rgba(23, 19, 16, .28);
  padding: 8px 12px;
  backdrop-filter: blur(12px);
}

.hero-copy {
  max-width: 700px;
  color: var(--rl-muted);
  font-weight: 500;
}

.content-band {
  position: relative;
  border-top: 0;
  background:
    linear-gradient(180deg, var(--rl-paper) 0%, #f8f2e8 46%, #eee4d4 100%);
  padding: 42px 0 72px;
}

.section-title {
  align-items: center;
  border-bottom: 1px solid var(--rl-line);
  margin-bottom: 24px;
  padding-bottom: 16px;
}

.section-title h2,
.topline h1 {
  color: var(--rl-ink);
  font-size: clamp(42px, 6vw, 68px);
  letter-spacing: 0;
  line-height: .9;
  text-wrap: balance;
}

.section-title p,
.topline p,
.category-header p {
  color: var(--rl-muted) !important;
}

.pill {
  border: 1px solid rgba(79, 97, 71, .28);
  background: var(--rl-moss);
  color: #fffaf0;
  box-shadow: 0 10px 26px rgba(79, 97, 71, .18);
}

.catalog-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-variant-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-variant-pills .pill {
  min-height: 36px;
  justify-content: center;
  text-align: center;
}

.admin-hard-delete-inline {
  display: inline-grid;
  grid-template-columns: minmax(120px, 1fr) minmax(130px, auto);
  gap: 8px;
  align-items: stretch;
  max-width: 360px;
  margin-top: 8px;
}

.admin-hard-delete-inline input,
.admin-hard-delete-inline button {
  min-width: 0;
}

.inventory-row-form {
  display: none;
}

.inventory-ingredient-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.inventory-ingredient-cell > span:first-child {
  min-width: 0;
}

.inventory-ingredient-cell .status {
  flex: 0 0 auto;
}

.shop-layout {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
  gap: 26px;
}

.category-nav {
  position: sticky;
  top: calc(var(--public-sticky-stack-height, var(--public-header-height, 0px)) - 1px);
  z-index: 20;
  margin: 0 -4px 24px;
  padding: 9px 4px;
  background: linear-gradient(180deg, rgba(244, 238, 227, .96), rgba(244, 238, 227, .78));
  backdrop-filter: blur(16px);
}

.category-nav a {
  border: 1px solid var(--rl-line-strong);
  background: rgba(255, 250, 240, .82);
  color: var(--rl-ink);
  box-shadow: 0 8px 20px rgba(23, 19, 16, .06);
}

.category-nav a:hover,
.category-nav a:focus-visible {
  background: var(--rl-ink);
  color: #fffaf0;
}

.category-stack {
  gap: 38px;
}

.category-section {
  position: relative;
}

.category-header {
  margin-bottom: 16px;
}

.category-header h3 {
  color: var(--rl-ink);
  font-size: clamp(38px, 5vw, 58px);
  line-height: .88;
}

.carousel-btn {
  width: 48px;
  min-height: 48px;
  border: 1px solid var(--rl-line-strong);
  background: #fffaf0;
  color: var(--rl-ink);
  box-shadow: 0 8px 22px rgba(23, 19, 16, .08);
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
  background: var(--rl-copper);
  color: #fffaf0;
}

.category-carousel-shell::after {
  width: 86px;
  background: linear-gradient(90deg, rgba(244, 238, 227, 0), var(--rl-paper));
}

.category-carousel {
  grid-auto-columns: minmax(310px, 31%);
  gap: 18px;
  padding: 4px 64px 18px 4px;
}

.product-card {
  border: 1px solid var(--rl-line);
  border-radius: 8px;
  background: var(--rl-card);
  box-shadow: var(--rl-shadow-soft);
}

.shop-card {
  min-height: 100%;
  overflow: hidden;
  transform: translateZ(0);
}

.shop-card:hover {
  border-color: rgba(201, 130, 47, .42);
  box-shadow: 0 22px 58px rgba(23, 19, 16, .15);
  transform: translateY(-3px);
}

.product-media {
  background:
    linear-gradient(135deg, rgba(201, 130, 47, .24), rgba(47, 95, 90, .16)),
    #d8cab2;
}

.product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 10px solid rgba(255, 250, 240, .12);
  pointer-events: none;
  z-index: 2;
}

.product-initial::before {
  color: var(--rl-copper);
  font-size: clamp(40px, 5vw, 54px);
}

.product-initial::after {
  color: var(--rl-ink);
  font-size: 13px;
  letter-spacing: .12em;
}

.product-body {
  gap: 0;
  padding: 18px;
}

.product-title {
  min-height: calc(var(--public-product-title-size-desktop, 26px) * 2.08);
  color: var(--public-product-title-color, var(--rl-ink));
  font-size: clamp(23px, 2.5vw, var(--public-product-title-size-desktop, 30px));
  line-height: .98;
  text-transform: uppercase;
  text-wrap: balance;
}

.product-meta {
  color: var(--public-product-description-color, var(--rl-muted));
  font-size: var(--public-product-description-size, 14px);
  line-height: 1.48;
  min-height: 62px;
}

.variant-heading {
  margin: 16px 0 10px;
  color: var(--rl-fig);
  font-size: 11px;
  letter-spacing: .1em;
}

.variant-row {
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  border: 1px solid rgba(70, 52, 38, .16);
  border-radius: 8px;
  background: rgba(255, 250, 240, .86);
  padding: 12px;
}

.variant-row strong {
  color: var(--rl-ink);
  font-size: 18px;
}

.variant-row span {
  color: var(--rl-muted);
  font-size: 13px;
}

.qty-control {
  grid-template-columns: 48px minmax(68px, 1fr) 48px;
  gap: 8px;
}

.qty-btn,
.qty-control input {
  border-radius: 8px;
  min-height: 48px;
}

.qty-btn {
  width: 48px;
  background: var(--rl-ink);
  color: #fffaf0;
  font-size: 20px;
}

.qty-btn:hover,
.qty-btn:focus-visible {
  background: var(--rl-copper);
}

.qty-control input {
  border-color: rgba(201, 130, 47, .28);
  background: #fffaf0;
  color: var(--rl-ink);
  font-size: 19px;
}

.panel {
  border: 1px solid var(--rl-line);
  border-radius: 8px;
  background: rgba(255, 250, 240, .94);
  box-shadow: var(--rl-shadow-soft);
  padding: 22px;
}

.panel h2,
.panel h3 {
  color: var(--rl-ink);
}

.customer-panel {
  margin-top: 28px;
}

.customer-panel h2,
.promo-panel h3 {
  font-size: clamp(34px, 5vw, 48px);
}

.required-note {
  margin: -8px 0 16px;
  color: var(--rl-muted, #74695d);
  font-size: .92rem;
}

label {
  color: var(--rl-fig);
  letter-spacing: .05em;
}

.required-mark {
  color: var(--zyme-burnt-orange, #c45824);
  font-weight: 900;
  margin-left: 2px;
}

input,
select,
textarea {
  border: 1px solid rgba(70, 52, 38, .2);
  border-radius: 8px;
  background: rgba(255, 250, 240, .92);
  color: var(--rl-ink);
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
.button:focus-visible,
.nav-link:focus-visible {
  box-shadow: var(--rl-focus);
}

.button.primary,
button.primary {
  background: var(--rl-copper);
  color: #fffaf0;
  box-shadow: 0 12px 30px rgba(201, 130, 47, .22);
}

.button.primary:hover,
button.primary:hover {
  background: var(--rl-copper-dark);
}

.button.secondary,
button.secondary,
.panel .button.ghost,
.panel button.ghost,
.topline .button.ghost,
.topline button.ghost,
td .button.ghost,
td button.ghost {
  border-color: var(--rl-line-strong);
  background: #fffaf0;
  color: var(--rl-ink);
}

.button.ghost:hover,
button.ghost:hover {
  background: var(--rl-paper-2);
}

.promo-panel,
.privacy-consent-block {
  border-color: rgba(201, 130, 47, .3);
  background: rgba(235, 224, 207, .42);
}

.promo-message,
.notice {
  border-color: rgba(201, 130, 47, .32);
  background: #f6ead8;
  color: var(--rl-fig);
}

.order-summary-panel {
  border: 1px solid rgba(23, 19, 16, .16);
  background: var(--rl-ink);
  color: #fffaf0;
  box-shadow: 0 24px 72px rgba(23, 19, 16, .22);
}

@media (min-width: 921px) {
  .order-summary-panel {
    position: sticky;
    top: calc(var(--public-sticky-stack-height, var(--public-header-height, 132px)) + 18px);
    z-index: 51;
    max-height: calc(100dvh - var(--public-sticky-stack-height, var(--public-header-height, 132px)) - 36px);
    overflow: auto;
    scroll-margin-top: calc(var(--public-sticky-stack-height, var(--public-header-height, 132px)) + 18px);
  }
}

.order-summary-panel h3,
.order-summary-panel .summary-mobile-head p,
.order-summary-panel .summary-cart h4,
.order-summary-panel .summary-note,
.order-summary-panel .summary-empty {
  color: rgba(255, 250, 240, .74);
}

.order-summary-panel h3 {
  font-family: var(--zyme-font-display);
  font-size: 40px;
  line-height: .95;
}

.summary-details {
  margin-top: 18px;
}

.summary-cart-line {
  border-color: rgba(255, 250, 240, .14);
  background: rgba(255, 250, 240, .07);
}

.summary-cart-line strong,
.summary-cart-line b,
.summary-list li,
.summary-total-row,
.summary-mobile-head strong {
  color: #fffaf0;
}

.summary-cart-line span {
  color: rgba(255, 250, 240, .64);
}

.summary-list li {
  border-bottom-color: rgba(255, 250, 240, .16);
}

.summary-total-row {
  border-top: 1px solid rgba(230, 178, 79, .32);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 21px;
}

.summary-submit {
  min-height: 54px;
}

.summary-submit[data-ready="0"],
.mobile-order-bar button[data-ready="0"] {
  background: rgba(255, 250, 240, .14);
  border-color: rgba(255, 250, 240, .22);
  color: rgba(255, 250, 240, .88);
  box-shadow: none;
}

.summary-submit[data-ready="1"],
.mobile-order-bar button[data-ready="1"] {
  background: var(--rl-saffron);
  color: var(--rl-ink);
}

.mobile-order-bar {
  border: 1px solid rgba(255, 250, 240, .2);
  border-radius: 8px;
  background: rgba(23, 19, 16, .94);
  box-shadow: 0 18px 58px rgba(23, 19, 16, .34);
  backdrop-filter: blur(16px);
  z-index: 60;
}

.mobile-order-bar button {
  background: var(--rl-saffron);
  color: var(--rl-ink);
}

.public-footer {
  display: flex;
  justify-content: center;
  color: var(--rl-muted);
  padding: 28px 0;
}

.public-footer a {
  font-weight: 800;
}

.admin-shell {
  grid-template-columns: 282px minmax(0, 1fr);
  background:
    linear-gradient(90deg, rgba(47, 95, 90, .06), transparent 42%),
    var(--rl-paper);
}

body.admin-menu-collapsed .admin-shell {
  grid-template-columns: 92px minmax(0, 1fr);
}

.admin-sidebar {
  background:
    linear-gradient(180deg, #181412 0%, #241713 54%, #171310 100%);
  border-right: 1px solid rgba(255, 250, 240, .1);
  box-shadow: 18px 0 50px rgba(23, 19, 16, .12);
  padding: 20px;
}

.admin-brand {
  border-bottom-color: rgba(255, 250, 240, .12);
}

.admin-brand-icon {
  border: 1px solid rgba(255, 250, 240, .16);
  background: #fffaf0;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .18);
}

.admin-brand strong {
  color: var(--rl-saffron);
}

.admin-sidebar-toggle {
  border-color: rgba(255, 250, 240, .16);
  background: rgba(255, 250, 240, .08);
}

.admin-sidebar-toggle:hover,
.admin-nav a:hover {
  background: rgba(230, 178, 79, .16);
}

.admin-nav {
  gap: 8px;
}

.admin-nav-group {
  border: 1px solid rgba(255, 250, 240, .12);
  border-radius: 10px;
  background: rgba(255, 250, 240, .045);
  overflow: hidden;
}

.admin-nav-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 10px 12px;
  color: color-mix(in srgb, var(--rl-saffron) 82%, #fffaf0);
  cursor: pointer;
  font-family: var(--zyme-font-body);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .13em;
  list-style: none;
  text-transform: uppercase;
}

.admin-nav-group summary::-webkit-details-marker {
  display: none;
}

.admin-nav-group summary::after {
  content: "+";
  color: rgba(255, 250, 240, .72);
  font-size: 1rem;
  line-height: 1;
}

.admin-nav-group[open] summary::after {
  content: "-";
}

.admin-nav-group summary:hover,
.admin-nav-group summary:focus-visible {
  background: rgba(230, 178, 79, .1);
  outline: none;
}

.admin-nav-list {
  display: grid;
  gap: 5px;
  padding: 0 7px 8px;
}

.admin-nav a {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 12px;
}

.admin-nav a:hover,
.admin-nav a:focus-visible {
  border-color: rgba(230, 178, 79, .24);
  color: #fffaf0;
}

.admin-main {
  padding: 30px;
}

.topline {
  align-items: center;
  border-bottom: 1px solid var(--rl-line);
  margin-bottom: 22px;
  padding-bottom: 18px;
}

.metric {
  border-color: var(--rl-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, .98), rgba(235, 224, 207, .58));
  box-shadow: var(--rl-shadow-soft);
}

.metric strong {
  color: var(--rl-copper);
}

.table-wrap {
  border: 1px solid var(--rl-line);
  border-radius: 8px;
  background: rgba(255, 250, 240, .72);
}

table {
  overflow: hidden;
}

th {
  background: #e7dbc8;
  color: var(--rl-ink);
}

td,
th {
  border-bottom-color: var(--rl-line);
}

tbody tr:hover td {
  background: rgba(230, 178, 79, .08);
}

.status {
  border: 1px solid rgba(70, 52, 38, .12);
}

.status.pending,
.status.nuevo,
.status.pendiente_confirmacion {
  background: #f5ead4;
  color: var(--rl-fig);
}

.status.confirmed,
.status.in_production,
.status.ready,
.status.confirmado,
.status.en_produccion,
.status.listo_para_entregar,
.status.entregado {
  background: #e5eadc;
  color: var(--rl-moss);
}

.status.cancelled,
.status.cancelado,
.status.eliminado {
  background: #f4dfd4;
  color: #a24524;
}

.production-sheet-header {
  border-color: var(--rl-line);
  background:
    linear-gradient(135deg, rgba(23, 19, 16, .94), rgba(77, 38, 52, .84)),
    var(--rl-ink);
  color: #fffaf0;
}

.production-sheet-header h2,
.production-sheet-header p {
  color: #fffaf0;
}

.production-kicker {
  color: var(--rl-saffron);
}

.production-block {
  border-color: var(--rl-line);
  box-shadow: var(--rl-shadow-soft);
}

.production-block header h3 {
  background: var(--rl-ink);
}

.production-block header div,
.production-meta-row {
  background: #f5ead9;
}

.login-page {
  background:
    linear-gradient(140deg, rgba(23, 19, 16, .9), rgba(77, 38, 52, .78)),
    var(--rl-paper-2);
}

.login-card {
  border: 1px solid rgba(255, 250, 240, .22);
  background: rgba(255, 250, 240, .96);
}

@keyframes zyme-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-section,
.panel,
.metric,
.production-block {
  animation: zyme-rise .46s ease both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

@media (max-width: 920px) {
  /* Lock horizontal scroll on mobile; carousels keep their own overflow-x: auto.
     Usamos clip (no hidden) para no romper position: sticky del header. */
  html, body {
    overflow-x: clip;
    max-width: 100%;
  }

  .admin-shell,
  body.admin-menu-collapsed .admin-shell {
    grid-template-columns: 1fr;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .category-nav {
    top: calc(var(--public-sticky-stack-height, var(--public-header-height, 0px)) - 1px);
    margin-inline: -18px;
    padding-inline: 18px;
  }

  .category-carousel {
    grid-auto-columns: minmax(280px, 43%);
  }

  .order-summary-panel {
    background: var(--rl-ink);
    margin-top: 18px;
  }

  .admin-main {
    padding: 20px;
  }

  .admin-sidebar,
  body.admin-menu-collapsed .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 60;
    align-items: stretch;
    background: rgba(23, 19, 16, .96);
    backdrop-filter: blur(16px);
    padding: 12px;
  }

  .admin-sidebar-head,
  body.admin-menu-collapsed .admin-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
  }

  .admin-brand,
  body.admin-menu-collapsed .admin-brand {
    justify-content: flex-start;
    flex: 1 1 auto;
    min-width: 0;
    border-bottom: 0;
    padding-bottom: 0;
  }

  body.admin-menu-collapsed .admin-brand span {
    display: grid;
  }

  body.admin-menu-collapsed .admin-nav,
  body.admin-menu-collapsed .admin-user {
    display: none;
  }

  body.admin-menu-collapsed .admin-sidebar-toggle-text {
    display: inline;
  }

  .admin-sidebar-toggle,
  body.admin-menu-collapsed .admin-sidebar-toggle {
    width: auto;
    flex: 0 0 auto;
    padding-inline: 12px;
  }

  .admin-brand,
  body.admin-menu-collapsed .admin-brand {
    align-items: center;
    gap: 14px;
  }

  .admin-brand-icon,
  body.admin-menu-collapsed .admin-brand-icon {
    width: 62px;
    height: 62px;
    border-radius: 13px;
    padding: 7px;
  }

  .admin-brand span,
  body.admin-menu-collapsed .admin-brand span {
    display: flex;
    min-height: 62px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
  }

  .admin-brand-name,
  body.admin-menu-collapsed .admin-brand-name {
    width: 112px;
    max-height: 34px;
    object-position: left center;
  }

  .admin-brand strong {
    font-size: 13px;
    letter-spacing: .18em;
    line-height: 1;
  }

  .admin-nav {
    grid-template-columns: 1fr;
  }

  .admin-nav-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .public-header,
  .public-main,
  .public-footer {
    width: min(100% - 22px, 1280px);
  }

  .public-shell {
    min-height: 72vh;
  }

  .brand-lockup {
    width: min(var(--public-logo-size-mobile, 310px), 88vw);
    padding: 10px 16px;
  }

  .hero {
    min-height: 430px;
    padding: 36px 0 68px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, var(--public-hero-title-size-mobile, 64px));
  }

  .hero-copy {
    font-size: 15px !important;
  }

  .section-title {
    gap: 12px;
  }

  .section-title h2 {
    font-size: 44px;
  }

  .pill {
    align-self: flex-start;
  }

  .category-header h3 {
    font-size: 40px;
  }

  .category-carousel {
    grid-auto-columns: clamp(282px, 84vw, 330px);
    gap: 14px;
    padding-right: 30px;
  }

  .category-carousel-shell::after {
    width: 26px;
  }

  .product-body {
    padding: 16px;
  }

  .product-title {
    min-height: calc(var(--public-product-title-size-mobile, 22px) * 2.16);
    font-size: var(--public-product-title-size-mobile, 22px);
  }

  .product-meta {
    min-height: 46px;
    max-height: 46px;
  }

  .variant-row {
    grid-template-columns: 1fr;
    padding: 11px;
  }

  .qty-control {
    grid-template-columns: 52px minmax(78px, 1fr) 52px;
  }

  .qty-btn {
    width: 52px;
    min-height: 52px;
  }

  .qty-control input {
    min-height: 52px;
  }

  .mobile-order-bar {
    left: 10px;
    right: 10px;
    bottom: 9px;
  }

  .mobile-order-bar span {
    font-size: 12px;
  }

  .mobile-order-bar button {
    padding-inline: 12px;
  }

  .panel {
    padding: 16px;
  }

  .order-summary-panel {
    width: 100%;
    margin-left: 0;
    border: 1px solid rgba(23, 19, 16, .16);
    /* Flota frente al header fijo (z 50) para que el resumen siempre se lea.
       app.css fuerza position:static !important en móvil; lo sobreescribimos. */
    position: relative !important;
    z-index: 51;
  }

  .summary-mobile-head h3 {
    font-size: 34px;
  }

  .admin-main {
    padding: 16px;
  }

  .topline h1 {
    font-size: 44px;
  }

  .metric-grid {
    gap: 10px;
  }

  .table-wrap {
    border-radius: 8px;
  }
}

/* =========================================================================
   Capa premium (port del rediseño "Hueso & Terracota + dorado")
   Aditivo: menú drawer, footer con redes, WhatsApp flotante. No altera el
   hero configurable, la galería ni el resumen de zyme-web.
   ========================================================================= */

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* ---- Barra superior de envío gratis ---- */
.free-shipping-bar {
  position: sticky;
  top: 0;
  z-index: 54;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px clamp(18px, 5vw, 64px);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--zyme-gold) 88%, #fff4df), var(--zyme-sand));
  color: var(--zyme-surface-strong);
  border-bottom: 1px solid color-mix(in srgb, var(--zyme-caramel) 34%, transparent);
  box-shadow: 0 8px 24px rgba(34, 34, 34, .08);
  text-align: center;
  transform: translateY(0);
  margin-bottom: 0;
  transition: transform .24s ease, opacity .2s ease, margin-bottom .24s ease;
  will-change: transform;
}
.free-shipping-bar.is-hidden {
  margin-bottom: calc(-1 * var(--public-announcement-flow-height, 42px));
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}
.free-shipping-bar span {
  font-family: var(--zyme-font-body);
  font-size: clamp(.82rem, 1.6vw, .98rem);
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.25;
  text-transform: uppercase;
}
.free-shipping-bar strong {
  color: #fff;
  font-weight: 900;
}

/* ---- Hamburguesa fija ---- */
.site-menu-fab {
  position: fixed;
  top: calc(var(--public-announcement-height, 0px) + 14px); right: 14px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.4px;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--zyme-gold) 34%, var(--zyme-sand));
  border-radius: 999px;
  background: color-mix(in srgb, var(--zyme-cream) 78%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
  box-shadow: 0 6px 16px rgba(34, 34, 34, .10);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.site-menu-fab:hover {
  background: color-mix(in srgb, var(--zyme-gold) 12%, var(--zyme-surface-strong));
  border-color: color-mix(in srgb, var(--zyme-gold) 55%, transparent);
  box-shadow: 0 8px 20px rgba(138, 96, 17, .16);
}
.site-menu-fab:focus-visible {
  outline: none;
  box-shadow: var(--zyme-focus);
}
.site-menu-fab span {
  display: block; width: 22px; height: 2.6px; border-radius: 999px;
  background: var(--zyme-gold-text);
  transition: transform .26s cubic-bezier(.22,.61,.36,1), opacity .14s ease, background .2s ease;
}
body.nav-open .site-menu-fab span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .site-menu-fab span:nth-child(2) { opacity: 0; }
body.nav-open .site-menu-fab span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- Drawer ---- */
.site-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 95;
  width: min(440px, 90vw);
  display: flex; flex-direction: column; gap: 24px;
  padding: clamp(24px, 5vw, 44px);
  background: var(--zyme-surface-strong);
  border-left: 1px solid var(--zyme-border);
  box-shadow: -24px 0 60px rgba(34,34,34,.22);
  transform: translateX(100%);
  transition: transform .26s cubic-bezier(.16,1,.3,1);
  overflow-y: auto;
}
body.nav-open .site-drawer { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--zyme-font-body);
  font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--zyme-gold-text);
}
.drawer-close {
  width: 44px; height: 44px; padding: 0;
  border-radius: 999px; border: 1px solid var(--zyme-border-strong);
  background: var(--zyme-surface); color: var(--zyme-black);
  font-size: 1.1rem; cursor: pointer;
}
.drawer-close:hover { border-color: var(--zyme-gold); }
.drawer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.drawer-nav a {
  display: flex; align-items: baseline; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--zyme-border);
  font-family: var(--zyme-font-display);
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem); font-weight: 500;
  color: var(--zyme-black); text-decoration: none;
  transition: color .26s ease, padding-left .26s ease;
}
.drawer-nav a::before {
  content: attr(data-idx);
  font-family: var(--zyme-font-body); font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; color: var(--zyme-gold-text); transform: translateY(-.4em);
}
.drawer-nav a:hover { color: var(--zyme-gold-text); padding-left: 8px; }
.drawer-foot { margin-top: auto; display: grid; gap: 12px; }
.drawer-tagline { color: var(--zyme-muted); font-size: .86rem; line-height: 1.5; margin: 0; }
.drawer-social { display: flex; gap: 12px; flex-wrap: wrap; }
.drawer-social a {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  border-radius: 999px; border: 1px solid var(--zyme-border-strong);
  color: var(--zyme-black); background: var(--zyme-surface);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.drawer-social a:hover { background: var(--zyme-gold); color: var(--zyme-on-gold); border-color: var(--zyme-gold); }
.drawer-social svg { width: 22px; height: 22px; }

.site-scrim {
  position: fixed; inset: 0; z-index: 92;
  background: rgba(34,28,19,.5); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .26s ease, visibility .26s ease;
}
body.nav-open .site-scrim { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

/* ---- Footer centrado + Instagram ---- */
.public-footer .footer-inner {
  display: grid; justify-items: center; gap: 14px; text-align: center;
  width: min(900px, calc(100% - 40px)); margin-inline: auto;
}
/* El glifo "ē" (U+0113) de Fraunces sale con la macron despegada; el wordmark
   usa una serif Garamond (como el logo oficial) que la compone bien. */
.footer-brand { font-family: "Cormorant Garamond", Georgia, serif; font-size: 2.4rem; line-height: 1; }
.footer-fine { margin: 0; font-size: .82rem; color: var(--zyme-muted); max-width: 48ch; }
.footer-ig {
  display: inline-grid; place-items: center; width: 52px; height: 52px;
  border-radius: 999px; color: var(--zyme-gold);
  border: 1px solid color-mix(in srgb, var(--zyme-gold) 45%, transparent);
  background: color-mix(in srgb, var(--zyme-gold) 10%, transparent);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.footer-ig:hover { background: var(--zyme-gold); color: var(--zyme-on-gold); transform: translateY(-2px); }
.footer-ig svg { width: 24px; height: 24px; }

/* ---- WhatsApp flotante ---- */
.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 55;
  display: inline-grid; place-items: center; width: 58px; height: 58px;
  border-radius: 999px; background: #25d366; color: #fff;
  box-shadow: 0 12px 30px rgba(37,211,102,.42);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 38px rgba(37,211,102,.5); }
.wa-fab svg { width: 30px; height: 30px; }
@media (max-width: 1023px) {
  body.has-mobile-order-bar .wa-fab { bottom: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-drawer, .site-scrim, .site-menu-fab span, .wa-fab, .footer-ig { transition: none !important; }
}

/* =========================================================================
   Home editorial (hero con figura + metadatos, sección "Cómo funciona")
   Clases .ed-* propias para no colisionar con el hero configurable previo.
   ========================================================================= */

.button.primary {
  background: var(--zyme-gold) !important;
  color: var(--zyme-on-gold) !important;
  border: 1px solid var(--zyme-gold) !important;
  border-radius: 999px !important;
  font-weight: 700;
}
.button.primary:hover { background: #b27d22 !important; }
.button.ghost {
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--rl-ink, #171310) !important;
  border: 1px solid var(--rl-line-strong, rgba(70,52,38,.32)) !important;
}
.button.ghost:hover { border-color: var(--zyme-gold) !important; color: var(--zyme-gold-text) !important; }
.button.secondary { border-radius: 999px !important; }

.ed-wrap { width: min(1240px, calc(100% - clamp(40px, 10vw, 128px))); margin-inline: auto; }

/* ---- Hero editorial ---- */
.ed-hero {
  padding: clamp(32px, 6vw, 80px) clamp(20px, 5vw, 64px) clamp(28px, 5vw, 64px);
  background: var(--rl-paper, #f4eee3);
}
.ed-hero__inner {
  width: min(1240px, 100%); margin-inline: auto;
  display: grid; gap: clamp(28px, 5vw, 56px); align-items: center;
}
.ed-copy { display: grid; gap: 16px; align-content: center; }
.ed-hero h1 {
  font-family: var(--zyme-font-display);
  font-size: clamp(2.75rem, 1.6rem + 5.4vw, 5.2rem);
  line-height: .98; font-weight: 600; letter-spacing: -.01em;
  color: var(--rl-ink, #171310); margin: 0;
}
.ed-hero h1 em { font-style: italic; color: var(--zyme-gold-text); }
.ed-lede { font-size: 1.125rem; line-height: 1.6; color: var(--rl-ink-soft, #322822); max-width: 42ch; margin: 0; }
.ed-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.ed-meta {
  display: flex; flex-wrap: wrap; gap: 16px 36px;
  margin: 16px 0 0; padding-top: 18px; border-top: 1px solid var(--rl-line, rgba(70,52,38,.18));
}
.ed-meta div { display: grid; gap: 2px; }
.ed-meta dt { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--zyme-muted); font-weight: 700; }
.ed-meta dd { margin: 0; font-family: var(--zyme-font-display); font-size: 1.15rem; color: var(--rl-ink, #171310); }

.ed-figure {
  position: relative; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--rl-line, rgba(70,52,38,.18));
  box-shadow: var(--rl-shadow, 0 18px 50px rgba(23,19,16,.12));
  aspect-ratio: 16 / 11;
  background:
    linear-gradient(160deg, rgba(202,147,48,.16), rgba(86,90,57,.10)),
    var(--ed-figure-image, url('/static/brand/logos/logo-juntos.png')) center / cover no-repeat,
    var(--rl-paper-2, #ebe0cf);
}
.ed-figure::after {
  content: attr(data-tag);
  position: absolute; left: 16px; bottom: 16px;
  padding: 7px 13px; border-radius: 999px;
  background: rgba(23,19,16,.78); color: #fdf5e7;
  font-size: .72rem; font-weight: 600; letter-spacing: .06em;
  backdrop-filter: blur(4px);
}

/* ---- Sección "Cómo funciona" ---- */
.ed-process { padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px); background: var(--rl-paper-2, #ebe0cf); }
.ed-process > .ed-wrap { display: grid; gap: 32px; }
.ed-section-head { display: grid; gap: 6px; }
.ed-num { font-family: var(--zyme-font-display); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--zyme-gold-text); }
.ed-section-head h2 { font-family: var(--zyme-font-display); font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); line-height: 1.02; margin: 0; color: var(--rl-ink,#171310); }
.ed-steps { display: grid; gap: 16px; }
.ed-step {
  padding: 24px; background: var(--rl-card, #fffaf0);
  border: 1px solid var(--rl-line, rgba(70,52,38,.18)); border-radius: 16px;
  box-shadow: var(--rl-shadow-soft, 0 10px 28px rgba(23,19,16,.08));
  transition: transform .2s ease, box-shadow .2s ease;
}
.ed-step:hover { transform: translateY(-3px); }
.ed-step__num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  background: color-mix(in srgb, var(--zyme-gold) 18%, transparent); color: var(--zyme-gold-text);
  font-family: var(--zyme-font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: 12px;
}
.ed-step h3 { font-family: var(--zyme-font-display); font-size: 1.5rem; margin: 0 0 6px; color: var(--rl-ink,#171310); }
.ed-step p { margin: 0; color: var(--rl-muted, #74695d); font-size: .92rem; line-height: 1.55; }

@media (min-width: 1024px) {
  .ed-hero__inner { grid-template-columns: 1.05fr .95fr; }
  .ed-figure { aspect-ratio: 4 / 5; }
  .ed-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .ed-figure { aspect-ratio: 16 / 10; }
}

/* =========================================================================
   Arquitectura multi-página (portada + secciones con URL propia)
   ========================================================================= */

/* Todas las páginas usan lienzo claro (se retira el overlay oscuro del shell) */
.public-shell { background: var(--rl-paper, #f4eee3) !important; min-height: auto !important; }
.public-shell::after { display: none !important; }

/* ---- Header con navegación horizontal (estilo carátula) ---- */
.public-header {
  position: sticky; top: var(--public-announcement-height, 0px); z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  width: auto; max-width: none; margin: 0;
  padding: 16px clamp(18px, 5vw, 64px) 10px;
  background: color-mix(in srgb, var(--rl-paper, #f4eee3) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rl-line, rgba(70,52,38,.18));
  transition: padding .25s ease, top .24s ease;
}
.public-header .brand-lockup {
  background: none !important; border: 0 !important; box-shadow: none !important;
  padding: 0 !important; width: auto !important; display: inline-flex; align-items: center;
}
.public-header .brand-lockup img { height: clamp(78px, 10vw, 124px); width: auto; max-height: none; transition: height .25s ease; }
.public-header.is-scrolled { padding-top: 10px; }
.public-header.is-scrolled .brand-lockup img { height: clamp(44px, 5.2vw, 60px); }
.public-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }
.public-nav a {
  padding: 9px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .92rem; color: var(--rl-ink-soft, #322822);
  transition: background .18s ease, color .18s ease;
}
.public-nav a:hover { color: var(--zyme-gold-text); background: color-mix(in srgb, var(--zyme-gold) 10%, transparent); }
.public-nav a.is-active { color: var(--zyme-gold-text); background: color-mix(in srgb, var(--zyme-gold) 16%, transparent); }
@media (max-width: 899px) { .public-nav { display: none; } }
@media (min-width: 900px) { .site-menu-fab { display: none !important; } }

/* ---- Encabezado de página (secciones internas) ---- */
.page-header {
  background: var(--rl-paper, #f4eee3);
  padding: clamp(26px, 5vw, 56px) clamp(20px, 5vw, 64px) clamp(14px, 3vw, 26px);
}
.page-header h1 {
  font-family: var(--zyme-font-display); font-weight: 600; letter-spacing: -.01em;
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); line-height: 1; margin: 10px 0 0;
  color: var(--rl-ink, #171310);
}
.page-header__lede { margin: 12px 0 0; color: var(--rl-ink-soft, #322822); max-width: 62ch; font-size: 1.05rem; line-height: 1.6; }

/* ---- Portada: accesos a secciones ---- */
.portal-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 32px; }
@media (min-width: 700px) { .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .portal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.portal-card {
  position: relative; display: grid; gap: 8px; align-content: start;
  padding: 26px; border-radius: 18px; text-decoration: none; color: var(--rl-ink, #171310);
  background: var(--rl-card, #fffaf0); border: 1px solid var(--rl-line, rgba(70,52,38,.18));
  box-shadow: var(--rl-shadow-soft, 0 10px 28px rgba(23,19,16,.08)); min-height: 180px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.portal-card:hover { transform: translateY(-4px); box-shadow: var(--rl-shadow, 0 18px 50px rgba(23,19,16,.12)); border-color: color-mix(in srgb, var(--zyme-gold) 40%, transparent); }
.portal-card__idx { font-family: var(--zyme-font-display); font-size: .8rem; letter-spacing: .12em; color: var(--zyme-gold-text); }
.portal-card h3 { font-family: var(--zyme-font-display); font-weight: 600; font-size: 1.8rem; margin: 0; }
.portal-card p { margin: 0; color: var(--rl-muted, #74695d); font-size: .95rem; line-height: 1.5; }
.portal-card__go { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: .9rem; color: var(--zyme-gold-text); }
.portal-card--accent { background: linear-gradient(160deg, color-mix(in srgb, var(--zyme-gold) 16%, var(--rl-card, #fffaf0)), var(--rl-card, #fffaf0)); border-color: color-mix(in srgb, var(--zyme-gold) 32%, transparent); }

/* ---- Menú: precios por variante + botón pedir ---- */
.menu-variants { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 6px; }
.menu-variants li { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; padding-bottom: 6px; border-bottom: 1px solid var(--rl-line, rgba(70,52,38,.18)); }
.menu-variants strong { color: var(--zyme-gold-text); }
.button.block { width: 100%; margin-top: auto; }

/* ---- Texto largo (nosotros / faq) ---- */
.prose-wrap { max-width: 840px; margin-inline: auto; display: grid; gap: 18px; }
.prose h2 { font-family: var(--zyme-font-display); font-weight: 600; font-size: 1.6rem; margin: 16px 0 6px; }
.prose p { color: var(--rl-ink-soft, #322822); line-height: 1.7; }

/* ---- Contacto ---- */
.contact-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-card {
  display: grid; gap: 4px; padding: 24px; border-radius: 16px; text-decoration: none; color: var(--rl-ink, #171310);
  background: var(--rl-card, #fffaf0); border: 1px solid var(--rl-line, rgba(70,52,38,.18)); box-shadow: var(--rl-shadow-soft, 0 10px 28px rgba(23,19,16,.08));
  transition: transform .2s ease, border-color .2s ease;
}
a.contact-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--zyme-gold) 40%, transparent); }
.contact-card__k { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--zyme-gold-text); font-weight: 700; }
.contact-card strong { font-family: var(--zyme-font-display); font-weight: 600; font-size: 1.4rem; }
.contact-card__v { color: var(--rl-muted, #74695d); font-size: .9rem; }

/* ---- FAQ ---- */
.faq-item { border: 1px solid var(--rl-line, rgba(70,52,38,.18)); border-radius: 14px; background: var(--rl-card, #fffaf0); padding: 2px 18px; }
.faq-item + .faq-item { margin-top: 12px; }
.faq-item summary { cursor: pointer; padding: 14px 0; font-family: var(--zyme-font-display); font-weight: 600; font-size: 1.2rem; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { color: var(--zyme-gold-text); }
.faq-item p { margin: 0 0 14px; color: var(--rl-ink-soft, #322822); line-height: 1.6; }

/* ---- Envío a domicilio (página de pedido) ---- */
.delivery-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 6px; }
.delivery-option { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--rl-line, rgba(70,52,38,.18)); border-radius: 12px; cursor: pointer; background: var(--zyme-input-bg, #fffdf8); transition: border-color .15s ease, background .15s ease; }
.delivery-option:has(input:checked) { border-color: var(--zyme-gold); background: color-mix(in srgb, var(--zyme-gold) 10%, #fffdf8); }
.delivery-option input[type="radio"] { width: auto; min-height: 0; margin: 0; accent-color: var(--zyme-gold); }
.delivery-option span { display: grid; }
.delivery-option strong { font-size: .95rem; }
.delivery-option small { color: var(--rl-muted, #74695d); font-size: .82rem; }
.delivery-panel { margin-top: 14px; }
.delivery-map { height: 280px; border-radius: 12px; overflow: hidden; margin-top: 10px; border: 1px solid var(--rl-line, rgba(70,52,38,.18)); }
.delivery-quote { margin-top: 10px; min-height: 1.2em; font-weight: 600; color: var(--zyme-gold-text, #8a6011); }
.leaflet-container { font: inherit; }

/* ---- Admin móvil: tablas y paneles sin scroll horizontal ---- */
@media (max-width: 760px) {
  .admin-main {
    padding: 14px clamp(10px, 3.5vw, 16px);
  }

  .admin-shell .topline {
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .admin-shell .topline h1,
  .admin-shell .panel h2,
  .admin-shell .production-sheet-header h2 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .admin-shell .topline h1 {
    font-size: clamp(2rem, 10vw, 3.1rem);
    line-height: .96;
  }

  .admin-shell .panel,
  .admin-shell .customer-panel,
  .admin-shell .promo-panel,
  .admin-shell .production-sheet-header,
  .admin-shell .production-batch-panel,
  .admin-shell .production-block {
    max-width: 100%;
    overflow: clip;
  }

  .admin-shell .panel {
    border-radius: 12px;
    padding: 15px 12px;
  }

  .admin-shell .topline-actions,
  .admin-shell .inline-form,
  .admin-shell .form-grid,
  .admin-shell .bulk-delete-tools,
  .admin-shell .production-filter-panel form,
  .admin-shell .production-batch-head {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .admin-shell input,
  .admin-shell select,
  .admin-shell textarea,
  .admin-shell button,
  .admin-shell .button {
    max-width: 100%;
    min-width: 0;
  }

  .admin-shell .table-wrap {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .admin-shell table.responsive-table,
  .admin-shell table.responsive-table thead,
  .admin-shell table.responsive-table tbody,
  .admin-shell table.responsive-table tr,
  .admin-shell table.responsive-table td {
    width: 100%;
    max-width: 100%;
  }

  .admin-shell table.responsive-table {
    display: block;
    min-width: 0;
    border: 0;
    background: transparent;
    table-layout: auto;
  }

  .admin-shell table.responsive-table thead {
    display: none;
  }

  .admin-shell table.responsive-table tbody {
    display: grid;
    gap: 10px;
  }

  .admin-shell table.responsive-table tr {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--rl-line, rgba(70, 52, 38, .18));
    border-radius: 12px;
    background: rgba(255, 250, 240, .86);
    box-shadow: 0 8px 20px rgba(23, 19, 16, .06);
  }

  .admin-shell table.responsive-table td {
    display: grid;
    grid-template-columns: minmax(86px, 34%) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-width: 0;
    padding: 10px 12px;
    border-bottom: 1px solid var(--rl-line, rgba(70, 52, 38, .18));
    background: transparent;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .admin-shell table.responsive-table td:last-child {
    border-bottom: 0;
  }

  .admin-shell table.responsive-table td::before {
    content: attr(data-label);
    min-width: 0;
    color: var(--rl-muted, #74695d);
    font-family: var(--zyme-font-body);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1.25;
    text-transform: uppercase;
  }

  .admin-shell table.responsive-table td[data-label=""],
  .admin-shell table.responsive-table td.bulk-select-cell {
    grid-template-columns: 1fr;
  }

  .admin-shell table.responsive-table td[data-label=""]::before,
  .admin-shell table.responsive-table td.bulk-select-cell::before {
    content: none;
  }

  .admin-shell table.responsive-table td.num,
  .admin-shell table.responsive-table th.num {
    text-align: left;
  }

  .admin-shell table.responsive-table td > *,
  .admin-shell table.responsive-table a,
  .admin-shell table.responsive-table small,
  .admin-shell .summary-list li > *,
  .admin-shell .production-block td,
  .admin-shell .production-block th {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .admin-shell table.responsive-table .status {
    display: inline-flex;
    justify-content: flex-start;
    max-width: 100%;
    white-space: normal;
    text-align: left;
    line-height: 1.15;
    font-size: .72rem;
    padding: 6px 8px;
  }

  .admin-shell table.responsive-table td .button,
  .admin-shell table.responsive-table td button {
    width: 100%;
    justify-content: center;
    white-space: normal;
  }

  .admin-shell table.responsive-table td[data-label="Acciones"] {
    display: flex;
    flex-wrap: wrap;
    grid-template-columns: none;
    gap: 8px;
    align-items: stretch;
  }

  .admin-shell table.responsive-table td[data-label="Acciones"]::before {
    flex: 0 0 100%;
  }

  .admin-shell table.responsive-table td[data-label="Acciones"] > .button,
  .admin-shell table.responsive-table td[data-label="Acciones"] > a,
  .admin-shell table.responsive-table td[data-label="Acciones"] > button,
  .admin-shell table.responsive-table td[data-label="Acciones"] > form:not(.admin-hard-delete-inline) {
    flex: 1 1 136px;
    max-width: 100%;
    margin: 0 !important;
  }

  .admin-shell table.responsive-table td[data-label="Acciones"] > form:not(.admin-hard-delete-inline) {
    display: flex !important;
  }

  .admin-shell table.responsive-table td[data-label="Acciones"] .button,
  .admin-shell table.responsive-table td[data-label="Acciones"] button {
    min-height: 48px;
    line-height: 1.15;
    overflow-wrap: normal;
    word-break: normal;
  }

  .admin-shell table.responsive-table td[data-label="Acciones"] > .admin-hard-delete-inline {
    flex: 1 1 100%;
  }

  .admin-shell .admin-hard-delete-inline {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
  }

  .admin-shell .admin-hard-delete-inline input,
  .admin-shell .admin-hard-delete-inline button {
    width: 100%;
    min-height: 48px;
  }

  .admin-shell table.responsive-table .inventory-ingredient-cell {
    align-items: center;
    flex-wrap: nowrap;
  }

  .admin-shell table.responsive-table .inventory-ingredient-cell .status {
    max-width: 45%;
    justify-content: center;
  }

  .admin-shell table.responsive-table.inventory-table td {
    align-items: center;
  }

  .admin-shell table.responsive-table.inventory-table td::before {
    align-self: center;
  }

  .admin-shell table.responsive-table.inventory-table td[data-label="Acciones"] {
    align-items: stretch;
  }

  .admin-shell table.responsive-table.inventory-table td[data-label="Acciones"]::before {
    align-self: start;
  }

  .admin-shell table.responsive-table.inventory-table input {
    min-height: 52px;
  }

  .admin-shell .summary-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .admin-shell .metric-grid,
  .admin-shell .production-grid,
  .admin-shell .production-block-grid,
  .admin-shell .production-batch-grid {
    grid-template-columns: 1fr;
  }

  .admin-shell .production-sheet-header {
    padding: 16px 12px;
  }

  .admin-shell .production-sheet-header h2 {
    font-size: clamp(2.1rem, 10vw, 3.1rem);
  }

  .admin-shell .production-block header h3 {
    font-size: .86rem;
    line-height: 1.25;
    padding-inline: 8px;
  }

  .admin-shell .production-block header div {
    gap: 10px;
    padding: 8px;
  }

  .admin-shell .production-block table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .admin-shell .production-block th,
  .admin-shell .production-block td {
    padding: 9px 8px;
    font-size: .86rem;
    white-space: normal;
  }

  .admin-shell .production-block th:nth-child(1),
  .admin-shell .production-block td:nth-child(1) {
    width: 50%;
  }

  .admin-shell .production-block th:nth-child(2),
  .admin-shell .production-block td:nth-child(2) {
    width: 28%;
  }

  .admin-shell .production-block th:nth-child(3),
  .admin-shell .production-block td:nth-child(3) {
    width: 22%;
  }

  .admin-shell .catalog-top-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  .admin-shell .catalog-top-actions .button {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    padding-inline: 10px;
    text-align: center;
  }

  .admin-shell .catalog-variant-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .admin-shell .catalog-variant-pills .pill {
    align-self: stretch;
    width: 100%;
    min-height: 48px;
    padding: 8px 10px;
    white-space: normal;
    line-height: 1.15;
  }

  .admin-shell .recipe-editor-table input,
  .admin-shell .recipe-editor-table select,
  .admin-shell .recipe-editor-table td:first-child input {
    min-width: 0;
  }
}
