/* Ensō Market — web publica.
   Basado en el design system "Organic" + la identidad de Ensō (ver
   landing-enso/proyecto/HANDOFF.md). Colores y tipografias de la marca. */

:root {
  --color-bg: #E9E5DA;
  --color-surface: #F3F1EA;
  --color-text: #2D2D2D;
  --color-accent: #D17A45;
  --color-accent-2: #A3B18A;
  --color-divider: color-mix(in srgb, #2D2D2D 14%, transparent);
  --color-accent-100: #FBEFE6;
  --color-accent-200: #F4DAC7;
  --color-accent-600: #B6642F;
  --color-accent-700: #8E4C22;
  --color-accent-2-100: #EDF1E4;
  --color-accent-2-200: #DCE4CC;
  --color-accent-2-700: #6B705C;
  --color-accent-2-800: #4E5343;
  --color-neutral-100: #F6F4EE;
  --color-neutral-300: #CFC9BA;
  --color-neutral-600: #8B8578;
  --color-neutral-700: #6B705C;
  --color-neutral-900: #2D2D2D;
  --font-heading: "Poppins", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --font-label: "Quicksand", system-ui, sans-serif;
  --font-script: "Satisfy", cursive;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px color-mix(in srgb, #2e2b25 14%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2e2b25 22%, transparent);
  --header-h: 69px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--color-accent-700); text-underline-offset: 3px; }
a:hover { color: var(--color-accent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }
[hidden] { display: none !important; }

@keyframes ensoIn { from { opacity: 0; transform: scale(.94) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto !important; } }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.kicker {
  font-family: var(--font-label); font-size: 12px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--color-accent-700);
}
.script { font-family: var(--font-script); color: var(--color-accent-700); }
.muted { color: var(--color-neutral-700); }

/* — botones (pill) — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; text-decoration: none; font: inherit; font-weight: 700; font-size: 15px;
  line-height: 1.2; color: var(--color-text); background: transparent;
  border: 1px solid transparent; border-radius: 999px; padding: 13px 26px;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-600); color: #fff; }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); font-weight: 600; }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); color: var(--color-text); }
.btn-ghost { color: var(--color-accent-700); padding: 8px 10px; font-weight: 600; font-size: 14px; }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-round { width: 36px; height: 36px; padding: 0; font-size: 18px; }
.btn-block { width: 100%; }

/* — cards — */
.card { display: flex; flex-direction: column; border-radius: calc(var(--radius-lg) * 1.15); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.card-kicker {
  font-family: var(--font-label); font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--color-accent-700);
}

/* — header — */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-divider);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; margin-right: auto; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-family: var(--font-heading); font-weight: 600; font-size: 17px; letter-spacing: 0.14em; }
.brand-text small { font-family: var(--font-label); font-size: 10px; letter-spacing: 0.34em; color: var(--color-accent-2-700); }
.site-nav { display: flex; gap: 26px; font-size: 14px; }
.site-nav a { text-decoration: none; color: inherit; }
.site-nav a:hover { color: var(--color-accent-700); }
.cart-btn { padding: 9px 18px; font-size: 14px; }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: color-mix(in srgb, #2D2D2D 22%, transparent); font-size: 12px;
}

/* — hero — */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 84px; }
.hero-text { animation: riseIn .7s ease both; }
.hero h1 { font-size: 58px; line-height: 1.03; max-width: 15ch; }
.hero-lead { font-size: 19px; line-height: 1.65; max-width: 44ch; margin-top: 22px; color: var(--color-neutral-700); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 40px; font-size: 14px; color: var(--color-neutral-700); }
.hero-tags span { display: flex; align-items: center; gap: 8px; }
.hero-tags span::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--color-accent-2); }
.hero-logo { display: grid; place-items: center; }
.hero-logo img { width: 88%; max-width: 430px; animation: ensoIn 1.1s cubic-bezier(.2,.8,.2,1) both; }

/* — filosofia — */
.band { background: var(--color-surface); padding: 88px 0; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 60px; margin-top: 18px; align-items: start; }
.band h2 { font-size: 40px; line-height: 1.1; max-width: 20ch; }
.prose p { font-size: 17px; color: var(--color-neutral-700); margin-top: 18px; max-width: 52ch; }
.prose .script { font-size: 30px; line-height: 1.35; margin-top: 30px; }
.feature-list { display: grid; gap: 16px; }
.feature { background: var(--color-bg); padding: 26px; }
.feature h3 { font-size: 22px; margin-top: 6px; }
.feature p { margin-top: 8px; font-size: 15px; color: var(--color-neutral-700); }

/* — como comprar — */
.steps-section { padding-top: 84px; padding-bottom: 20px; }
.section-title { font-size: 36px; margin-top: 14px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 38px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
  flex: none; width: 56px; height: 56px; border-radius: 999px; background: var(--color-accent-2-200);
  color: var(--color-accent-2-800); display: grid; place-items: center;
  font-family: var(--font-heading); font-weight: 600; font-size: 22px;
}
.step h3 { margin: 8px 0 4px; font-size: 19px; }
.step p { font-size: 15px; color: var(--color-neutral-700); }

/* — catalogo — */
.catalog { padding-top: 64px; padding-bottom: 24px; }
.catalog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.catalog-head p { font-size: 14px; color: var(--color-neutral-700); max-width: 34ch; }
.filters {
  position: sticky; top: var(--header-h); z-index: 30;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 18px 0; margin-top: 26px; border-bottom: 1px solid var(--color-divider);
  display: flex; flex-direction: column; gap: 14px;
}
.search {
  width: 100%; max-width: 420px; min-height: 46px; padding: 6px 18px; font: inherit; font-size: 15px;
  color: var(--color-text); background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: 999px;
}
.search:focus-visible, .input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 9px; }
.pill {
  padding: 9px 18px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
  border: 1px solid var(--color-divider); border-radius: 999px; background: transparent; color: var(--color-text);
  white-space: nowrap;
}
.pill:hover { background: color-mix(in srgb, var(--color-text) 6%, transparent); }
.pill[aria-pressed="true"] { background: var(--color-accent-2-700); border-color: transparent; color: #fff; }
.result-count { font-size: 13px; color: var(--color-neutral-700); margin-top: 16px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.product { flex-direction: row; gap: 20px; padding: 18px; align-items: flex-start; }
.product-photo { flex: none; width: 132px; aspect-ratio: 1; display: grid; place-items: center; }
.product-photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-photo.empty { background: var(--color-bg); border-radius: 22px; }
.product-photo.empty img { width: 42%; height: auto; opacity: .22; mix-blend-mode: normal; }
.product-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.product h3 { margin-top: 5px; font-size: 17px; line-height: 1.25; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.product-desc { margin-top: 4px; font-size: 13px; color: var(--color-neutral-700); line-height: 1.45; white-space: pre-line; }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.size {
  padding: 6px 13px; cursor: pointer; font: inherit; font-family: var(--font-label); font-weight: 700;
  font-size: 12.5px; letter-spacing: 0.04em; color: var(--color-text); background: var(--color-bg);
  border: 1px solid var(--color-divider); border-radius: 999px;
}
.size:hover { border-color: var(--color-accent-2-700); }
.size[aria-checked="true"] { background: var(--color-accent-2-700); border-color: transparent; color: #fff; }
.size-static { cursor: default; }
.size-static:hover { border-color: var(--color-divider); }
.buy { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.price { font-size: 20px; font-weight: 700; margin-right: auto; min-width: 80px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--color-divider); border-radius: 999px; background: var(--color-bg); }
.stepper button { width: 34px; height: 36px; border: 0; background: none; font: inherit; font-size: 18px; cursor: pointer; color: var(--color-text); border-radius: 999px; }
.stepper button:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.stepper span { min-width: 22px; text-align: center; font-weight: 700; font-size: 15px; }
.stepper.small button { width: 28px; height: 30px; font-size: 16px; }
.add-btn { padding: 10px 20px; font-size: 14px; min-width: 96px; }
.in-cart { margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--color-accent-2-700); min-height: 1em; }
.in-cart:empty { display: none; }
.variant-note { margin-top: 8px; font-size: 12.5px; color: var(--color-neutral-700); }
.variant-note:empty { display: none; }
.empty-state { padding: 56px 0; text-align: center; color: var(--color-neutral-700); }
.empty-state .script { font-size: 26px; }
.empty-state p + p { margin-top: 8px; font-size: 15px; }

/* — entregas — */
.zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 34px; }
.zone { background: var(--color-bg); padding: 32px; }
.zone-head { display: flex; align-items: center; gap: 12px; }
.zone-dot { width: 40px; height: 40px; border-radius: 999px; background: var(--color-accent-2-200); }
.zone:nth-child(2) .zone-dot { background: var(--color-accent-200); }
.zone h3 { font-size: 24px; }
.zone > p { margin-top: 16px; color: var(--color-neutral-700); }
.zone dl { display: grid; gap: 10px; margin: 18px 0 0; font-size: 15px; }
.zone dl div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--color-divider); }
.zone dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.zone dt { color: var(--color-neutral-700); }
.zone dd { margin: 0; font-weight: 700; text-align: right; }
.zone dd.ok { color: var(--color-accent-2-700); }
.zones-note { margin-top: 26px; font-size: 17px; text-align: center; color: var(--color-neutral-900); }

/* — footer — */
.site-footer { padding-top: 70px; padding-bottom: 48px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; align-items: start; }
.footer-cols img { width: 64px; height: 64px; object-fit: contain; }
.footer-cols .script { font-size: 24px; margin-top: 14px; }
.footer-links { display: grid; gap: 10px; font-size: 15px; }
.footer-links a { text-decoration: none; }
.footer-label { font-family: var(--font-label); font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-neutral-700); }
.legal { margin-top: 46px; font-size: 13px; color: var(--color-neutral-700); }

/* — panel del pedido — */
.drawer { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-end; }
.drawer-backdrop { position: absolute; inset: 0; background: color-mix(in srgb, #2D2D2D 45%, transparent); }
.drawer-panel {
  position: relative; width: min(460px, 100%); height: 100%; background: var(--color-surface);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  animation: slideIn .25s ease both;
}
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { padding: 20px 24px; border-bottom: 1px solid var(--color-divider); display: flex; align-items: center; gap: 14px; }
.drawer-head h2 { font-size: 22px; flex: 1; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.drawer-foot { padding: 18px 24px; border-top: 1px solid var(--color-divider); background: var(--color-bg); }
.line { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--color-divider); }
.line + .line { margin-top: 14px; }
.line-photo { flex: none; width: 60px; height: 60px; display: grid; place-items: center; background: var(--color-bg); border-radius: 16px; }
.line-photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.line-photo.empty img { width: 50%; height: auto; opacity: .22; mix-blend-mode: normal; }
.line-info { flex: 1; min-width: 0; }
.line-name { font-size: 15px; font-weight: 700; line-height: 1.3; }
.line-meta { margin-top: 2px; font-size: 13px; color: var(--color-neutral-700); }
.line-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.line-total { font-weight: 700; font-size: 15px; }
.totals { display: flex; justify-content: space-between; font-size: 15px; color: var(--color-neutral-700); }
.totals b { color: var(--color-text); }
.note { margin-top: 10px; font-size: 13px; color: var(--color-neutral-700); }
.note.warn { color: var(--color-accent-700); font-weight: 700; }
.drawer-foot .btn-primary { margin-top: 12px; padding: 14px; }
.drawer-empty { text-align: center; padding: 60px 10px; }
.drawer-empty .script { font-size: 26px; }
.drawer-empty p + p { margin-top: 10px; font-size: 15px; color: var(--color-neutral-700); }
.drawer-empty .btn { margin-top: 20px; }

.form { display: grid; gap: 18px; align-content: start; }
fieldset.group { border: 0; margin: 0; padding: 0 0 18px; min-width: 0; display: grid; gap: 12px; border-bottom: 1px solid var(--color-divider); }
fieldset.group:last-child { border-bottom: 0; padding-bottom: 0; }
fieldset.group legend { padding: 0; margin-bottom: 12px; font-family: var(--font-label); font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-accent-700); }
.optional { text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-weight: 400; color: var(--color-neutral-700); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.callout { font-size: 13px; line-height: 1.5; color: var(--color-accent-2-800); background: var(--color-accent-2-100); border-radius: 16px; padding: 10px 14px; }
.field label, .field legend { display: block; font-size: 13px; margin-bottom: 5px; color: var(--color-neutral-700); padding: 0; }
.field fieldset, fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.input {
  width: 100%; min-height: 42px; padding: 8px 16px; font: inherit; font-size: 15px;
  color: var(--color-text); background: var(--color-bg);
  border: 1px solid var(--color-divider); border-radius: 999px;
}
textarea.input { min-height: 84px; resize: vertical; border-radius: 20px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--color-neutral-700) 50%), linear-gradient(135deg, var(--color-neutral-700) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice span {
  display: inline-block; padding: 9px 18px; border: 1px solid var(--color-divider); border-radius: 999px;
  background: var(--color-bg); font-weight: 600; font-size: 14px; cursor: pointer;
}
.choice input:checked + span { background: var(--color-accent-2-700); border-color: transparent; color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.form-actions { display: flex; gap: 10px; margin-top: 12px; }
.form-actions .btn-primary { flex: 1; margin-top: 0; }

.done-check {
  width: 74px; height: 74px; border-radius: 999px; border: 3px solid var(--color-accent-2);
  display: grid; place-items: center; font-size: 30px; color: var(--color-accent-2-700);
}
.done h3 { margin-top: 22px; font-size: 26px; }
.done > p { margin-top: 10px; color: var(--color-neutral-700); }
.summary { background: var(--color-bg); margin-top: 22px; padding: 22px; }
.summary-lines { display: grid; gap: 8px; margin-top: 12px; font-size: 14px; }
.summary-lines div { display: flex; justify-content: space-between; gap: 12px; }
.summary-total { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--color-divider); font-weight: 700; }
.summary + .summary { margin-top: 12px; }
.summary-data { display: grid; gap: 6px; margin: 12px 0 0; font-size: 14px; }
.summary-data div { display: flex; gap: 12px; }
.summary-data dt { flex: none; width: 92px; color: var(--color-neutral-700); }
.summary-data dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.summary .callout { margin-top: 14px; }
.done-links { display: flex; justify-content: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.done .btn-primary { margin-top: 18px; padding: 14px; }

/* toast al agregar */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translateX(-50%);
  background: var(--color-text); color: var(--color-neutral-100); padding: 11px 20px; border-radius: 999px;
  font-size: 14px; box-shadow: var(--shadow-lg); display: flex; gap: 14px; align-items: center;
  max-width: calc(100vw - 32px);
}
.toast button { background: none; border: 0; color: var(--color-accent-200); font: inherit; font-weight: 700; cursor: pointer; padding: 0; white-space: nowrap; }

/* — celular — */
@media (max-width: 960px) {
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --header-h: 61px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .site-header .wrap { gap: 12px; padding-top: 8px; padding-bottom: 8px; }
  .site-nav { display: none; }
  .hero { padding-top: 36px; padding-bottom: 56px; gap: 28px; }
  .hero h1 { font-size: 40px; }
  .hero-lead { font-size: 17px; }
  .hero-logo { order: -1; }
  .hero-logo img { width: 58%; }
  .band { padding: 64px 0; }
  .band h2 { font-size: 30px; }
  .section-title { font-size: 28px; }
  .two-col { gap: 32px; }
  .steps-section { padding-top: 60px; }
  .catalog { padding-top: 48px; }
  .filters { padding: 12px 0; gap: 10px; margin-top: 18px; }
  .search { max-width: none; }
  .pills { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .pills::-webkit-scrollbar { display: none; }
  /* En celular: foto a la izquierda del nombre/tamaños, y la fila de compra a todo el ancho. */
  .product { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 14px; padding: 14px; }
  .product-body { display: contents; }
  .product-photo { width: 84px; grid-row: 1 / span 4; align-self: start; }
  .product-body > * { grid-column: 2; }
  .product .buy, .product .in-cart, .product .variant-note { grid-column: 1 / -1; }
  .product .buy { margin-top: 12px; }
  .product h3 { font-size: 16px; }
  .price { font-size: 18px; min-width: 0; }
  .add-btn { padding: 10px 16px; min-width: 0; }
  .zone { padding: 24px; }
  .zones-note { font-size: 15px; }
  .drawer-head, .drawer-body, .drawer-foot { padding-left: 18px; padding-right: 18px; }
}
