/* =====================================================================
   Catálogo - estilos
   Paleta y formas tomadas del diseño de referencia (crema, marrón, terracota, mostaza).
   ===================================================================== */
:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #403327;
  --muted: #8c8278;
  --soft: #796f65;
  --line: #e7e2da;
  --line-strong: #ded7ce;
  --pale: #f3eee7;
  --image-bg: #eeeae3;
  --accent: #b65338;
  --gold: #f1c45b;
  --gold-ink: #4b3422;
  --label: #a0784e;
  --wa: #258b61;
  --wa-dark: #1d704e;
  --danger: #b42318;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-size: 16px; line-height: 1.55; -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.1; margin: 0; }
p { margin: 0; }
.icon { flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { width: min(1216px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); font-size: .95rem; }

/* ---------- Barra superior y encabezado ---------- */
.announce { background: var(--ink); color: #fff; text-align: center; font-size: .78rem; font-weight: 700; padding: 8px 16px; }

.site-header { background: var(--surface); border-bottom: 1px solid #e8e2d9; }
.bar { display: flex; align-items: center; gap: 16px 28px; padding: 14px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--gold); color: var(--ink); }
.brand-name { font-size: 1.3rem; font-weight: 900; letter-spacing: -.03em; }
.brand-name .dot { color: var(--accent); }

.main-nav, .admin-nav { display: flex; gap: 28px; }
.main-nav a, .admin-nav a { white-space: nowrap; color: #685d52; text-decoration: none; font-size: .9rem; font-weight: 700; padding: 4px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .admin-nav a:hover { color: var(--accent); }
.admin-nav { gap: 20px; margin-right: auto; flex-wrap: wrap; }
.admin-nav a[aria-current=page] { color: var(--ink); border-bottom-color: var(--accent); }
.admin .brand { margin-right: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 16px; border: 1px solid var(--ink); border-radius: 8px;
  background: var(--ink); color: #fff; font: inherit; font-size: .9rem; font-weight: 700;
  text-decoration: none; cursor: pointer; line-height: 1.2; transition: background .15s, border-color .15s;
}
.btn:hover { filter: brightness(1.15); }
.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn-wa { background: var(--wa); border-color: var(--wa); }
.btn-wa:hover { background: var(--wa-dark); border-color: var(--wa-dark); filter: none; }
.btn-ghost { background: transparent; color: var(--soft); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--pale); color: var(--ink); filter: none; }
.btn-danger { background: transparent; color: var(--danger); border-color: #f0c4c0; }
.btn-danger:hover { background: #fdf0ef; filter: none; }
.btn-lg { padding: 14px 22px; font-size: 1rem; }
.btn-sm { padding: 7px 12px; font-size: .8rem; }

/* ---------- Portada ---------- */
.hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; padding: 64px 0; }
.pill-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  background: #f7e8c0; color: #8c632d; font-size: .75rem; font-weight: 700;
  padding: 6px 12px; border-radius: 99px;
}
.hero h1 { max-width: 14ch; font-size: clamp(2.6rem, 6vw, 3.75rem); font-weight: 900; line-height: .98; letter-spacing: -.05em; }
.hl { color: var(--accent); }
.lead { margin-top: 20px; max-width: 34em; font-size: 1.12rem; line-height: 1.7; color: var(--soft); }
.hero .btn { margin-top: 28px; }

.hero-art { position: relative; overflow: hidden; border-radius: 24px; background: #d8c2a7; min-height: 330px; }
.hero-img { width: 100%; height: 100%; min-height: 330px; max-height: 420px; object-fit: cover; }
.collage { display: grid; gap: 4px; height: 390px; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage.c1 { grid-template-columns: 1fr; }
.collage.c2 { grid-template-columns: 1fr 1fr; }
.collage.c3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.collage.c3 img:first-child { grid-row: span 2; }
.collage.c4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.art-empty { height: 390px; display: grid; place-items: center; color: #fff; opacity: .7; }
.float-card {
  position: absolute; left: 20px; bottom: 20px; max-width: calc(100% - 40px);
  background: rgba(255,255,255,.95); border-radius: 12px; padding: 12px 16px;
  box-shadow: 0 10px 25px rgba(64,51,39,.18);
}
.float-title { margin-top: 2px; font-weight: 900; }

.kicker { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.float-card .kicker { color: var(--label); letter-spacing: .1em; }
.kicker.dark { color: #785529; }

/* ---------- Franja de ofertas ---------- */
.offers { background: var(--gold); padding: 28px 0; }
.offers-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.offers-head { display: flex; align-items: center; gap: 16px; }
.offers-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--gold); }
.offers h2 { font-size: 1.5rem; font-weight: 900; margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  background: rgba(255,255,255,.6); color: var(--ink); text-decoration: none;
  font-size: .88rem; font-weight: 700; padding: 8px 16px; border-radius: 8px;
}
.chip:hover { background: rgba(255,255,255,.9); }
.chip.is-active { background: var(--ink); color: #fff; }

/* ---------- Secciones ---------- */
.section-head h2 { margin-top: 8px; font-size: 1.9rem; font-weight: 900; letter-spacing: -.02em; }
.section-head .muted { margin-top: 8px; }
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }

.delivery { padding: 56px 0 8px; }
.points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.points li { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.pt-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: #f7e8c0; color: #8c632d; }
.points strong { display: block; font-weight: 800; }
.points small { display: block; color: var(--muted); font-size: .8rem; }

.catalog { padding: 56px 0; }
.search { position: relative; width: 100%; max-width: 300px; }
.search input[type=search] {
  width: 100%; padding: 12px 16px 12px 40px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: .9rem;
}
.search input[type=search]:focus { outline: none; border-color: var(--accent); }
.search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #9a9086; display: flex; }

.cats { display: flex; gap: 8px; margin-top: 28px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.cats a {
  flex: none; white-space: nowrap; padding: 10px 16px; border-radius: 8px; text-decoration: none;
  font-size: .9rem; font-weight: 700; background: var(--surface); color: var(--soft);
  box-shadow: inset 0 0 0 1px #e7e0d7;
}
.cats a:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.cats a[aria-current=page] { background: var(--ink); color: #fff; box-shadow: none; }

.filter-note { margin-top: 18px; padding: 10px 14px; background: #f7e8c0; color: #6f4e22; border-radius: 8px; font-size: .92rem; font-weight: 700; }
.filter-note a { color: inherit; }

/* ---------- Tarjetas de producto ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.card {
  position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 30px rgba(64,51,39,.1); }
.card-media { display: block; aspect-ratio: 4 / 3; background: var(--image-bg); overflow: hidden; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.05); }
.noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .9rem; }
.badges { position: absolute; left: 12px; top: 12px; display: flex; flex-wrap: wrap; gap: 8px; pointer-events: none; }
.badge { padding: 4px 10px; border-radius: 99px; font-size: .7rem; font-weight: 800; }
.badge-accent { background: var(--accent); color: #fff; }
.badge-gold { background: var(--gold); color: var(--gold-ink); }
.badge-dark { background: var(--ink); color: #fff; }

.card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--label); text-decoration: none; }
.card h3 { margin-top: 4px; font-size: 1rem; font-weight: 800; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-desc { margin-top: 4px; font-size: .88rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; padding-top: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.price { font-size: 1.25rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.was { font-size: .78rem; color: #aaa099; text-decoration: line-through; }
.is-out .card-media img, .is-out.photo img { filter: grayscale(1); opacity: .55; }
.is-out .price { color: var(--muted); }

/* ---------- Cómo comprar ---------- */
.how { background: var(--surface); border-top: 1px solid #e8e2d9; padding: 56px 0; }
.how h2 { font-size: 1.5rem; font-weight: 900; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.step { border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.step-n { font-size: .85rem; font-weight: 900; color: var(--accent); }
.step h3 { margin-top: 28px; font-size: 1rem; font-weight: 900; }
.step p { margin-top: 8px; font-size: .88rem; line-height: 1.6; color: var(--muted); }

.site-footer { background: var(--ink); color: #d8cfc3; font-size: .88rem; padding: 32px 0; }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot strong { color: #fff; font-weight: 900; }
.foot a { color: #b9ae9f; text-decoration: none; }
.foot a:hover { color: #fff; }

.empty { text-align: center; padding: 64px 0; color: var(--muted); }
.empty h1 { color: var(--ink); margin-bottom: 8px; font-size: 1.8rem; }
.empty .btn { margin-top: 12px; }

/* ---------- Detalle de producto ---------- */
.back { margin: 28px 0 18px; font-size: .9rem; font-weight: 700; }
.detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-bottom: 56px; }
.photo { position: relative; aspect-ratio: 1; background: var(--image-bg); border-radius: 20px; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.info { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.info h1 { margin-top: 6px; font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 900; letter-spacing: -.03em; }
.price-row { display: flex; align-items: baseline; gap: 12px; margin: 14px 0 16px; }
.price.big { font-size: 2rem; }
.price-row .was { font-size: 1rem; }
.stock-note { margin-bottom: 14px; color: var(--danger); font-weight: 800; }
.desc { white-space: pre-line; max-width: 60ch; color: var(--soft); margin-bottom: 22px; }

.promo-box { width: 100%; background: #fbf1d4; border: 1px solid #f0dca0; border-radius: 14px; padding: 14px 16px; margin-bottom: 22px; }
.promo-box .kicker { color: #785529; }
.promo-box ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.promo-box li strong { display: block; font-weight: 900; }
.promo-box li small { display: block; color: #7a6338; font-size: .8rem; }
.promo-box .fine { margin-top: 10px; font-size: .78rem; color: #7a6338; }

.calc { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; }
.calc label { font-size: .85rem; font-weight: 800; color: var(--soft); }
.stepper { display: inline-flex; align-items: stretch; margin: 6px 0 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; vertical-align: middle; }
.stepper button { width: 38px; border: 0; background: var(--pale); color: var(--ink); font: inherit; font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.stepper button:hover { background: #e9e1d5; }
.stepper input { width: 56px; border: 0; text-align: center; font: inherit; font-weight: 800; padding: 8px 0; -moz-appearance: textfield; }
.stepper input:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-total { font-size: 1.1rem; }
.calc-total strong { font-size: 1.5rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.calc-save { margin-top: 4px; font-size: .88rem; font-weight: 800; color: var(--wa-dark); }

.ship-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; max-width: 46ch; font-size: .88rem; color: var(--soft); }
.ship-note .icon { margin-top: 2px; color: var(--accent); }

/* ---------- Panel y formularios ---------- */
.admin main { padding-bottom: 56px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 32px 0 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.9rem; font-weight: 900; letter-spacing: -.02em; }
.page-head .muted { margin-top: 6px; max-width: 60ch; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.stat-icon { display: inline-flex; color: var(--accent); }
.stat-icon.ok { color: var(--wa); }
.stat p { margin-top: 18px; font-size: .85rem; color: var(--muted); }
.stat strong { font-size: 2rem; font-weight: 900; }

.alert { background: #fdf0ef; border: 1px solid #f0c4c0; color: var(--danger); padding: 10px 14px; border-radius: 8px; margin: 0 0 18px; }
.notice { background: #e3f4ea; border: 1px solid #b7e0c6; color: #14532d; padding: 10px 14px; border-radius: 8px; margin: 0 0 18px; }

input[type=text], input[type=search], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #cfc7bb; border-radius: 8px;
  background: #fff; color: var(--ink); font: inherit;
}
textarea { resize: vertical; }
input[type=file] { font: inherit; max-width: 100%; }

.form { display: grid; gap: 18px; max-width: 420px; }
.form.wide { max-width: 720px; }
.form label, .form .field > label { display: grid; gap: 6px; font-weight: 700; }
.form small { font-weight: 400; color: var(--muted); font-size: .82rem; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-items: start; }
.form .check { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.form .check input { width: 18px; height: 18px; }
.form .field { display: grid; gap: 8px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.limits { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 0; background: var(--surface); display: grid; gap: 16px; }
.limits legend { padding: 0 8px; font-weight: 900; }

.current-img { display: flex; align-items: center; gap: 16px; }
.current-img img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }

.login { max-width: 420px; margin: 12vh auto 0; background: var(--surface); padding: 28px; border: 1px solid var(--line); border-radius: 16px; }
.login h1 { font-size: 1.5rem; font-weight: 900; margin-bottom: 18px; }
.login .form { max-width: none; }

.inline-form { display: flex; gap: 8px; max-width: 460px; margin-bottom: 22px; flex-wrap: wrap; }
.inline-form.wide-inline { max-width: 720px; }
.inline-form input { flex: 1 1 200px; width: auto; }

.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; }
.table-wrap.narrow { max-width: 760px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #eee8df; vertical-align: middle; }
.table th { font-size: .8rem; color: var(--muted); font-weight: 700; background: #fcfaf7; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .t-img { width: 64px; }
.table .t-img img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.table td a:not(.btn) { font-weight: 700; text-decoration: none; color: var(--ink); }
.table td a:not(.btn):hover { text-decoration: underline; color: var(--accent); }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions form, .table .actions a { display: inline-block; }
.mini-gold { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--gold); color: var(--gold-ink); font-size: .7rem; font-weight: 800; }

.pill { border: 0; border-radius: 99px; padding: 5px 12px; font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer; }
.pill.on { background: #dcf3e4; color: #14532d; }
.pill.off { background: #fde4e1; color: #7a271a; }
.pill.wait { background: #fbeac0; color: #6f4e22; }
.pill.done { background: #ebe7e0; color: #6b6258; }

/* ---------- Pantallas chicas ---------- */
@media (max-width: 1023px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; padding: 40px 0; }
  .hero h1 { max-width: none; }
}
@media (max-width: 760px) {
  .bar { gap: 12px; }
  .main-nav { order: 3; width: 100%; gap: 22px; overflow-x: auto; padding-bottom: 2px; }
  .admin-nav { order: 3; width: 100%; }
  .detail { grid-template-columns: 1fr; gap: 22px; }
  .steps, .stats { grid-template-columns: 1fr; }
  .offers-in { align-items: flex-start; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .search { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .card:hover { transform: none; }
}

.cart-link { white-space: nowrap; }
.cart-add { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.cart-add label { font-size: .85rem; font-weight: 800; color: var(--soft); }
.cart-add input { width: 72px; }
.cart-page { padding: 42px 0 72px; }
.cart-page h1 { margin-top: 8px; font-size: 2rem; font-weight: 900; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; margin-top: 28px; align-items: start; }
.cart-lines { display: grid; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.cart-thumb { width: 84px; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--image-bg); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-info { display: grid; gap: 3px; }
.cart-name { color: var(--ink); font-weight: 900; text-decoration: none; }
.cart-line-info small { color: var(--wa-dark); font-size: .78rem; }
.cart-line-info strong { font-variant-numeric: tabular-nums; }
.cart-qty { display: flex; align-items: center; gap: 8px; }
.cart-qty input { width: 64px; }
.cart-summary { display: grid; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.cart-summary h2 { font-size: 1.2rem; }
.cart-summary p { display: flex; justify-content: space-between; gap: 16px; color: var(--soft); }
.cart-summary p strong { color: var(--ink); font-size: 1.25rem; }
.admin-filters { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin: 0 0 24px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.admin-filters label { display: grid; gap: 5px; min-width: 180px; color: var(--soft); font-size: .8rem; font-weight: 800; }
.admin-filters input, .admin-filters select { min-width: 0; }

@media (max-width: 700px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 64px minmax(0, 1fr); }
  .cart-thumb { width: 64px; }
  .cart-qty { grid-column: 2; }
  .cart-qty input { flex: 1; }
}

/* =====================================================================
   Estilo editorial de tienda: conserva la estructura del catálogo.
   ===================================================================== */
.public.market {
  --bg: #f4f1e8; --surface: #fdfbf6; --ink: #2d382e; --muted: #77786d; --soft: #646b60;
  --line: #dfd8cb; --line-strong: #c9bfad; --pale: #eee9dd; --image-bg: #e9e3d7;
  --accent: #65784a; --label: #a65f43; --gold: #d9b96f; --gold-ink: #493a21;
  --wa: #39764e; --wa-dark: #2e623f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  background: var(--bg);
  color: var(--ink);
}
.market .brand-name .dot { display: inline; color: var(--label); }

/* Encabezado */
.market .mk-header {
  position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line-strong);
  background: rgba(253, 251, 246, .94); box-shadow: 0 7px 20px rgba(45, 56, 46, .06);
}
.mk-bar { display: flex; align-items: center; gap: 12px; padding: 10px 20px; }
.mk-header .brand { margin-right: 0; }
.mk-header .logo { background: var(--ink); color: var(--surface); border-radius: 6px; }
.mk-header .brand-name { font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; font-weight: 700; letter-spacing: .035em; }
.mk-search { position: relative; flex: 1 1 auto; max-width: 380px; margin-right: auto; }
.mk-search input[type=search] {
  width: 100%; padding: 10px 14px 10px 40px; border: 1px solid var(--line-strong); border-radius: 5px;
  background: var(--surface); color: var(--ink); font: inherit;
}
.mk-search input[type=search]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(101, 120, 74, .14); background: var(--surface); }
.mk-header .btn-wa { border-radius: 5px; }

/* Navegación de categorías y ventajas */
.mk { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
.mk-side {
  position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto;
  background: var(--pale); padding: 22px 14px 26px; border-right: 1px solid var(--line);
}
.mk-title { padding: 0 8px 10px; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; font-weight: 600; }
.mk-side h2 { display: flex; align-items: center; gap: 6px; margin: 18px 8px 8px; font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--label); }
.mk-cats { display: flex; flex-direction: column; gap: 3px; }
.mk-cats a {
  padding: 9px 10px; border-radius: 4px; text-decoration: none; color: var(--ink); font-weight: 600;
  transition: background-color .18s ease, color .18s ease;
}
.mk-cats a:hover { background: #e6e1d5; }
.mk-cats a[aria-current=page] { background: #e0e6d6; color: var(--ink); box-shadow: inset 3px 0 0 var(--accent); }
.mk-points ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mk-points li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--line); font-weight: 600; }
.mk-points small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; }
.mk-pin { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 5px; background: #e0e6d6; color: var(--accent); }
.mk-note { margin: 8px 10px 0; font-size: .82rem; color: var(--muted); }

.mk-main { padding: 24px 30px 56px; min-width: 0; }
.mk-notice { background: #f5edda; color: #66542f; padding: 11px 14px; border-left: 3px solid var(--gold); font-weight: 600; margin-bottom: 20px; }
.mk-promos h2 { display: flex; align-items: center; gap: 6px; font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.mk-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.mk-chip {
  flex: none; white-space: nowrap; padding: 8px 14px; border-radius: 4px; background: var(--surface);
  border: 1px solid var(--line-strong); color: var(--ink) !important; font-weight: 600; text-decoration: none; font-size: .9rem;
}
.mk-chip:hover { background: var(--pale); }
.mk-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--surface) !important; }
.mk-filter { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.mk-h { margin: 24px 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 600; letter-spacing: -.02em; }
.mk-count { margin-left: 6px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .85rem; font-weight: 500; color: var(--muted); }

/* Grilla de productos */
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 24px 16px; }
.mk-card { display: block; color: var(--ink); text-decoration: none; }
.mk-card, .mk-card:hover { color: var(--ink); }
.mk-img { position: relative; aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: var(--image-bg); }
.mk-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.mk-card:hover .mk-img img { transform: scale(1.035); }
.mk-badges { position: absolute; left: 8px; top: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.market .badge-accent { background: var(--label); }
.mk-price { margin-top: 8px; font-size: 1.08rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.mk-price .now { color: var(--label); }
.mk-price s { margin-left: 6px; font-size: .85rem; font-weight: 400; color: var(--muted); }
.mk-name { margin-top: 2px; color: var(--soft); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-meta { margin-top: 2px; font-size: .8rem; color: var(--muted); }
.mk-card.is-out .mk-img img { filter: grayscale(1); opacity: .5; }

/* Elementos compartidos y detalle de producto */
.market .site-footer { background: var(--pale); color: var(--muted); border-top: 1px solid var(--line); }
.market .site-footer strong { color: var(--ink); }
.market .foot a { color: var(--muted); }
.market .btn-accent { background: var(--accent); border-color: var(--accent); }
.market .back { margin: 20px 0 12px; }
.market .detail {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0; align-items: stretch; padding-bottom: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  box-shadow: 0 16px 38px rgba(45, 56, 46, .08); margin-bottom: 48px;
}
.market .photo { aspect-ratio: auto; min-height: 480px; border-radius: 0; background: var(--image-bg); }
.market .photo img { object-fit: contain; }
.market .info { padding: 28px; }
.market .info h1 { font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; font-weight: 600; letter-spacing: -.02em; }
.market .card-cat { color: var(--label); letter-spacing: .08em; }
.market .price.big { font-size: 1.7rem; }
.market .promo-box { background: #f5edda; border-color: #e6d6ad; }
.market .promo-box .kicker, .market .promo-box li small, .market .promo-box .fine { color: #66542f; }
.market .calc { background: var(--pale); border: 1px solid var(--line); }
.market .stepper button { background: #e4dfd3; }
.market .ship-note .icon { color: var(--accent); }

@media (max-width: 899px) {
  .mk { grid-template-columns: 1fr; }
  .mk-side { position: static; height: auto; background: var(--bg); padding: 12px 12px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .mk-title, .mk-cats-block h2 { display: none; }
  .mk-cats { flex-direction: row; gap: 8px; overflow-x: auto; padding-bottom: 10px; }
  .mk-cats a { flex: none; white-space: nowrap; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 4px; padding: 8px 14px; }
  .mk-cats a[aria-current=page] { background: var(--ink); color: var(--surface); border-color: var(--ink); box-shadow: none; }
  .mk-points h2 { margin: 12px 4px 6px; font-size: .78rem; }
  .mk-points ul { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 8px; }
  .mk-points li { flex: none; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 5px 12px 5px 6px; }
  .mk-points small, .mk-note { display: none; }
  .mk-main { padding: 18px 20px 48px; }
  .market .detail { grid-template-columns: 1fr; }
  .market .photo { min-height: 320px; }
}
@media (max-width: 560px) {
  .mk-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 10px; }
  .mk-bar { flex-wrap: wrap; }
  .mk-search { order: 3; flex: 1 1 100%; max-width: none; }
  .mk-header .brand { margin-right: auto; }
  .mk-wa-text { display: none; }
}

/* Refinamiento visual de tienda: conserva la estructura, clases y paletas existentes. */
:root {
  --shop-shadow-sm: 0 4px 14px rgba(64, 51, 39, .06);
  --shop-shadow-md: 0 14px 34px rgba(64, 51, 39, .12);
  --shop-shadow-lg: 0 24px 55px rgba(64, 51, 39, .16);
  --shop-radius: 18px;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-image: radial-gradient(ellipse at 90% -8%, rgba(241, 196, 91, .12), transparent 34rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 1px 0 rgba(64, 51, 39, .06), 0 8px 24px rgba(64, 51, 39, .035);
  backdrop-filter: blur(14px);
}

.announce {
  letter-spacing: .035em;
  padding-block: 9px;
}

.logo {
  box-shadow: 0 5px 12px rgba(182, 83, 56, .12);
}

.main-nav a,
.admin-nav a {
  transition: color .18s ease, border-color .18s ease;
}

.btn {
  min-height: 42px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(64, 51, 39, .08);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

.btn:hover {
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(64, 51, 39, .14);
}

.btn-ghost,
.btn-danger {
  box-shadow: none;
}

.btn-ghost:hover,
.btn-danger:hover {
  transform: translateY(-1px);
}

.hero {
  padding-block: clamp(44px, 7vw, 80px);
}

.hero h1 {
  line-height: 1.02;
  text-wrap: balance;
}

.lead {
  color: #74685d;
}

.hero-art {
  border-radius: 28px;
  box-shadow: var(--shop-shadow-lg);
}

.float-card {
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 16px 40px rgba(64, 51, 39, .18);
  backdrop-filter: blur(12px);
}

.offers {
  background: linear-gradient(115deg, #f1c45b, #f5d77f 70%, #f7e5ad);
}

.chip,
.cats a,
.mk-chip,
.mk-cats a {
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.chip:hover,
.cats a:hover,
.mk-chip:hover,
.mk-cats a:hover {
  transform: translateY(-1px);
}

.section-head h2,
.mk-h {
  text-wrap: balance;
}

.points li,
.step,
.stat,
.login,
.limits,
.calc,
.promo-box {
  border-radius: var(--shop-radius);
  box-shadow: var(--shop-shadow-sm);
}

.points li {
  transition: transform .18s ease, box-shadow .18s ease;
}

.points li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shop-shadow-md);
}

.search input[type=search],
.mk-search input[type=search],
input[type=text],
input[type=search],
input[type=password],
input[type=number],
input[type=date],
select,
textarea {
  border-radius: 12px;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.search input[type=search]:focus,
.mk-search input[type=search]:focus,
input[type=text]:focus,
input[type=search]:focus,
input[type=password]:focus,
input[type=number]:focus,
input[type=date]:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: var(--shop-focus, 0 0 0 4px rgba(182, 83, 56, .14));
  outline: none;
}

.grid {
  gap: 24px;
}

.card {
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(64, 51, 39, .035);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: #d9c9b8;
  box-shadow: var(--shop-shadow-md);
}

.card-media {
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #f4f0e9, #eae3d9);
}

.card-media img {
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}

.card-body {
  padding: 18px;
}

.card h3 {
  line-height: 1.35;
}

.price {
  color: var(--ink);
  letter-spacing: -.025em;
}

.badge {
  box-shadow: 0 3px 10px rgba(64, 51, 39, .12);
  letter-spacing: .025em;
}

.how {
  background: linear-gradient(180deg, #fff, #fcfaf7);
}

.step {
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shop-shadow-md);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, .08);
}

/* Formularios y panel: la misma identidad visual, sin alterar su funcionamiento. */
input[type=file]::file-selector-button {
  margin-right: 12px;
  padding: 8px 12px;
  border: 0;
  border-radius: 9px;
  background: var(--pale);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.stat,
.login {
  box-shadow: var(--shop-shadow-sm);
}

.table-wrap {
  border-radius: 16px;
  box-shadow: var(--shop-shadow-sm);
}

.table th {
  letter-spacing: .04em;
  text-transform: uppercase;
}

.table tbody tr:hover td {
  background: #fcfaf7;
}

.alert,
.notice {
  border-radius: 12px;
}

/* Acabados editoriales para la tienda, sin alterar la estructura del catálogo. */
.market .mk-header {
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 5px 16px rgba(45, 56, 46, .06);
  backdrop-filter: blur(14px);
}

.market .mk-side {
  border-right: 1px solid var(--line);
}

.market .mk-cats a[aria-current=page] {
  font-weight: 750;
  box-shadow: inset 3px 0 0 var(--accent);
}

.market .mk-chip,
.market .mk-cats a {
  border-radius: 4px;
}

.market .mk-chip.is-active {
  box-shadow: 0 3px 10px rgba(101, 120, 74, .14);
}

.market .mk-grid {
  gap: 22px 18px;
}

.market .mk-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 3px 10px rgba(45, 56, 46, .04);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.market .mk-card:hover {
  transform: translateY(-4px);
  border-color: #c5cdae;
  box-shadow: 0 14px 28px rgba(45, 56, 46, .11);
}

.market .mk-img {
  flex: none;
  aspect-ratio: 1 / 1;
  margin: 10px 10px 0;
  border-radius: 4px;
  background: var(--image-bg);
}

.market .mk-img img {
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.market .mk-card:hover .mk-img img {
  opacity: 1;
  transform: scale(1.04);
}

.market .mk-badges {
  left: 18px;
  top: 18px;
}

.market .mk-badges .badge {
  border-radius: 3px;
  box-shadow: none;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.market .mk-price,
.market .mk-name,
.market .mk-meta {
  padding-inline: 12px;
}

.market .mk-price {
  margin-top: 12px;
  font-size: 1.12rem;
  letter-spacing: -.025em;
}

.market .mk-name {
  margin-top: 5px;
  color: var(--soft);
  font-size: .9rem;
}

.market .mk-meta {
  margin-top: auto;
  padding-top: 7px;
  padding-bottom: 13px;
}

.market .detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(45, 56, 46, .08);
}

.market .photo {
  background: var(--image-bg);
}

.market .info {
  gap: 2px;
}

.market .calc {
  box-shadow: none;
}

.market .btn {
  box-shadow: 0 5px 14px rgba(101, 120, 74, .16);
}

.market .site-footer {
  background: var(--pale);
}

@media (max-width: 760px) {
  .site-header {
    position: relative;
  }

  .market .mk-header {
    position: relative;
  }

  .hero-art {
    border-radius: 22px;
  }

  .grid {
    gap: 18px;
  }

  .market .mk-side {
    border-right: 0;
  }
}

@media (max-width: 560px) {
  .card-body {
    padding: 14px;
  }

  .market .mk-grid {
    gap: 14px 10px;
  }

  .market .mk-card {
    border-radius: 6px;
  }

  .market .mk-img {
    margin: 7px 7px 0;
    border-radius: 3px;
  }

  .market .mk-price,
  .market .mk-name,
  .market .mk-meta {
    padding-inline: 9px;
  }

  .market .mk-price {
    font-size: 1rem;
  }

  .market .mk-name {
    font-size: .82rem;
  }

  .market .mk-meta {
    padding-bottom: 10px;
    font-size: .74rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover,
  .chip:hover,
  .cats a:hover,
  .mk-chip:hover,
  .mk-cats a:hover,
  .points li:hover,
  .card:hover,
  .step:hover,
  .market .mk-card:hover {
    transform: none;
  }

  .card-media img,
  .market .mk-img img {
    transform: none !important;
  }
}

