@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  color-scheme: dark;
  --green: #211710;
  --deep: #100d0b;
  --cream: #15100d;
  --paper: #1d1611;
  --gold: #ebbf7c;
  --ink: #f9ead3;
  --muted: #c8b7a4;
  --line: #72543969;
  --logo-blend: 0;
  --display: "Instrument Serif", Georgia, serif;
  --body: "DM Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--ink); background: radial-gradient(ellipse at 76% 11%, #332317 0%, #100d0b 43%, #100d0b 100%) fixed; font-family: var(--body); }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .42; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #ebbf7c; outline-offset: 4px; }
[hidden] { display: none !important; }
p { line-height: 1.58; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; }
.icon { width: 1.3rem; height: 1.3rem; flex: 0 0 auto; }
.wrap { width: min(calc(100% - 72px), 1200px); margin-inline: auto; }

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: fixed; z-index: 10; inset: .5rem auto auto .5rem; padding: .7rem; background: var(--paper); }

.header {
  position: sticky;
  z-index: 3;
  top: 0;
  color: var(--ink);
  background: #130f0eeb;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid #ebbf7c2e;
}
.header-inner { min-height: 75px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; width: max-content; }
.brand-wordmark {
  display: block;
  width: 120px;
  aspect-ratio: 2;
  background: url("/assets/facebook-perfil.webp") 50% 22.4% / 116.13% auto no-repeat;
  mix-blend-mode: screen;
  clip-path: polygon(1% 23%, 21% 16%, 69% 16%, 70% 1%, 90% 1%, 90% 18%, 99% 49%, 99% 100%, 73% 93%, 69% 99%, 30% 99%, 27% 93%, 1% 100%);
}
.nav { display: flex; align-items: center; gap: clamp(1rem, 4vw, 3rem); font-size: .91rem; font-weight: 600; }
.nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
.cart-toggle {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 42px;
  padding: .45rem .63rem .45rem .8rem;
  border: 1px solid #ebbf7c50;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
}
.cart-toggle:hover { background: var(--cream); }
.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  padding-inline: .28rem;
  border-radius: 100vw;
  background: var(--gold);
  color: var(--deep);
  font-size: .76rem;
}

.brand-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: -1;
}
body { isolation: isolate; }
.brand-backdrop img {
  width: min(79vw, 760px);
  height: auto;
  margin-top: 14vh;
  border-radius: 50%;
  opacity: calc(var(--logo-blend) * .32);
  transform: scale(calc(.84 + var(--logo-blend) * .16));
  mix-blend-mode: screen;
}
.hero {
  display: grid;
  grid-template-columns: minmax(225px, .79fr) minmax(0, 1.8fr);
  align-items: center;
  gap: clamp(1.3rem, 5vw, 4.8rem);
  min-height: 475px;
  padding-block: clamp(2.8rem, 5vw, 5rem) clamp(2.5rem, 4vw, 4rem);
}
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.hero-logo {
  display: block;
  width: clamp(208px, 22.8vw, 330px);
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: calc(1 - var(--logo-blend) * .45);
  animation: logo-arrival 1s cubic-bezier(.2,.7,.3,1) backwards;
}
@keyframes logo-arrival {
  from { opacity: 0; transform: translateY(13px) scale(.94); filter: brightness(.72); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: brightness(1); }
}
.location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  margin: .88rem 0 1rem;
  font-size: .78rem;
  color: #e6c291;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.location .icon { width: .95rem; height: .95rem; }
.hero-actions, .empty-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.hero-actions { justify-content: center; }
.feature-section { min-width: 0; }
.feature-section h2 {
  color: #fae9cc;
  margin: 0 0 .9rem;
  text-align: center;
  font-size: clamp(2.5rem, 4.35vw, 4.1rem);
  line-height: .95;
}
.featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.45rem, 1.6vw, 1.1rem); }
.featured-card, .product {
  border: 1px solid #e2b27043;
  background: linear-gradient(145deg, #59422e61, #17100db9 52%, #20150fd1);
  box-shadow: inset 0 1px #f5d29a19, 0 .45rem 1.5rem #08040135;
  backdrop-filter: blur(7px);
}
.featured-card {
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.featured-photo {
  display: grid;
  place-items: center;
  padding: 1.1rem .5rem .58rem;
  height: clamp(165px, 20vw, 290px);
  background: radial-gradient(ellipse at 50% 52%, #b67a3b29, transparent 72%);
}
.featured-photo img {
  display: block;
  width: min(100%, 220px);
  height: 100%;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 .48rem .55rem #000a);
}
.featured-info { flex: 1; padding: .15rem .8rem .8rem; text-align: center; display: flex; flex-direction: column; }
.featured-info h3 { margin: 0 0 .18rem; font-size: clamp(.92rem, 1.38vw, 1.18rem); font-weight: 700; line-height: 1.18; }
.featured-info p { color: var(--muted); font-size: .79rem; margin: 0 0 .65rem; }
.featured-add {
  min-height: 38px;
  margin-top: auto;
  border: 1px solid #ebbf7c55;
  border-radius: 6px;
  background: #ebbf7c16;
  color: #f6d49b;
  font-size: .86rem;
  font-weight: 700;
}
.featured-add:hover, .add-product:hover { background: var(--gold); color: var(--deep); }
.store-cover { margin-block: 0 clamp(2rem, 5vw, 4.3rem); }
.store-cover img { display: block; width: 100%; height: auto; border-radius: 13px; border: 1px solid #ebbf7c4d; }
.site-credit { text-align: center; color: var(--muted); font-size: .89rem; margin: 1.2rem 0 0; }
.site-credit a, #catalog-error a { color: var(--gold); text-decoration: underline; text-underline-offset: .24em; font-weight: 700; }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .69rem 1rem;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.button span { font-size: 1.06em; }
.button-gold { color: var(--deep); background: var(--gold); }
.button-gold:hover { background: #f1cc89; }
.button-hero-outline { color: #fffaf0; border-color: #ebbf7c55; background: #211710b3; }
.button-hero-outline:hover { background: #3b2a1c; }
.button-outline { border-color: #a4784d; color: var(--ink); background: transparent; }
.button-outline:hover { background: #332519; }
.button-dark { color: var(--deep); background: var(--gold); }
.button-dark:hover { background: #f1cc89; }

.section { padding-block: clamp(1.8rem, 4vw, 3.65rem) clamp(2.5rem, 5vw, 4.35rem); border-top: 1px solid #ebbf7c2f; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: .9rem 1.6rem; margin-bottom: 1.3rem; }
.section-head h2, .guide-intro h2 { margin-bottom: .38rem; font-size: clamp(2.75rem, 5vw, 4rem); line-height: .98; }
.section-head p { margin: 0; color: var(--muted); font-size: .96rem; }
.search {
  width: min(100%, 310px);
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: .52rem;
  padding-inline: .75rem;
  border: 1px solid #ebbf7c40;
  border-radius: 7px;
  background: var(--paper);
  color: #e1bf8b;
}
.search:focus-within { outline: 2px solid #ebbf7c; outline-offset: 1px; }
.search input { width: 100%; min-width: 0; min-height: 44px; outline: none; border: none; background: none; color: var(--ink); font-size: .94rem; }
.search input::placeholder { color: #b5a18a; }
.filters { display: flex; flex-wrap: wrap; gap: .42rem; }
.filter { min-height: 38px; padding: .35rem .78rem; color: var(--ink); background: transparent; border: 1px solid #ebbf7c42; border-radius: 100vw; font-weight: 600; font-size: .86rem; }
.filter:hover { background: #302218; }
.filter[aria-pressed="true"] { background: var(--gold); color: var(--deep); border-color: var(--gold); }
.result-row { color: var(--muted); font-size: .84rem; margin-block: 1rem .65rem; min-height: 1.1em; }

.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.product { display: flex; min-width: 0; flex-direction: column; border-radius: 11px; overflow: hidden; }
.product-visual {
  position: relative;
  min-height: 59px;
  display: flex;
  align-items: flex-end;
  padding: .65rem .76rem;
  background: radial-gradient(ellipse at 60% 30%, #f1be7c21, #1f150e36 73%);
}
.product-visual.has-photo { min-height: 0; aspect-ratio: 1.48; }
.product-visual.has-photo:not(.is-cutout) { background: #d3c2a2; }
.product-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: .6rem; }
.product-visual:not(.is-cutout) img { mix-blend-mode: multiply; }
.product-visual.is-cutout img { filter: drop-shadow(0 5px 9px #0009); }
.product-category { z-index: 1; color: #f6dfb7; background: #211710ed; padding: .25rem .49rem; border-radius: 4px; font-size: .71rem; font-weight: 700; }
.product-info { padding: .9rem; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.product-info h3 { margin-bottom: .32rem; line-height: 1.23; font-size: 1.035rem; font-weight: 700; }
.product-detail { margin-bottom: .8rem; color: var(--muted); font-size: .83rem; }
.add-product {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .38rem;
  width: 100%;
  min-height: 40px;
  margin-top: auto;
  border: 1px solid #bb8a535e;
  border-radius: 6px;
  background: #ebbf7c19;
  color: #f4d29e;
  font-size: .88rem;
  font-weight: 700;
}
.add-product span { font-size: 1.18em; }
.add-product:hover { background: var(--gold); color: var(--deep); }
.more { display: flex; justify-content: center; margin-top: 1.2rem; }
.more:has(button[hidden]) { display: none; }
.empty-results { padding: 1.4rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.empty-results h3, .empty-results p { margin-bottom: .45rem; }

.order-guide { background: #15110ddd; border-block: 1px solid #ebbf7c38; padding-block: clamp(2.5rem, 5vw, 4rem); }
.guide-inner { display: grid; grid-template-columns: 1fr 1.9fr; gap: clamp(1.2rem, 4vw, 3.4rem); align-items: start; }
.guide-intro p { color: var(--muted); margin: 0; max-width: 280px; }
.steps { margin: .2rem 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.steps li { counter-increment: step; padding-top: .9rem; border-top: 1px solid #ebbf7c52; }
.steps li::before { content: counter(step); color: #ebbf7c; display: block; margin-bottom: .56rem; font-size: .75rem; font-weight: 700; }
.steps strong { display: block; margin-bottom: .32rem; }
.steps span { display: block; color: var(--muted); line-height: 1.48; font-size: .86rem; }

.footer { color: #f8f4e8; background: var(--deep); padding-block: 2.1rem 1.6rem; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.1rem; }
.footer-top p { margin: .55rem 0 0; color: #c8b7a4; font-size: .87rem; }
.footer-contact { display: flex; flex-wrap: wrap; gap: .55rem 1.4rem; font-weight: 600; font-size: .87rem; padding-top: .5rem; }
.footer-contact span { color: var(--gold); }
.legal { margin: 1.3rem 0 0; padding-top: .85rem; border-top: 1px solid #ffffff30; color: #c8b7a4; font-size: .8rem; }

.mobile-cart { display: none; }
.toast {
  position: fixed;
  z-index: 4;
  inset: auto 1.4rem 1.4rem auto;
  max-width: min(420px, calc(100% - 2rem));
  padding: .68rem .9rem;
  border: 1px solid #ebbf7c66;
  border-radius: 7px;
  background: #251b12;
  color: var(--ink);
  box-shadow: 0 .25rem 1.4rem #0003;
  font-size: .88rem;
}
dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 445px);
  height: 100dvh;
  max-width: 100%;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  box-shadow: -8px 0 36px #0007;
}
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: #0a0706bd; }
.drawer-header { display: flex; flex: 0 0 auto; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.drawer-header h2 { margin: 0; line-height: .98; font-size: 2.55rem; }
.drawer-header p { margin: .27rem 0 0; color: var(--muted); font-size: .88rem; }
.drawer-header p:empty { display: none; }
.close-cart { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: none; color: var(--ink); font-size: 1.62rem; line-height: 1; }
.drawer-body { overflow-y: auto; overscroll-behavior: contain; padding: 1rem 1.2rem max(1rem, env(safe-area-inset-bottom)); }
.cart-empty p { color: var(--muted); }
.cart-lines { display: grid; gap: .4rem; padding: 0; margin: 0 0 1.2rem; list-style: none; }
.cart-line { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.cart-line small { display: block; color: var(--muted); margin-top: .2rem; }
.quantity { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: .26rem; white-space: nowrap; }
.quantity output { min-width: 1.45rem; text-align: center; font-variant-numeric: tabular-nums; }
.quantity button { height: 36px; width: 36px; padding: 0; color: var(--ink); background: #37291e; border: 1px solid var(--line); border-radius: 6px; font-size: 1.08rem; }
#order-form, .delivery-fields, .buyer-fields { display: grid; gap: .75rem; }
.order-mode { display: grid; grid-template-columns: 1fr 1fr; gap: .48rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.order-mode legend { margin-bottom: .48rem; padding: 0; font-size: .91rem; font-weight: 700; }
.order-mode label { position: relative; min-width: 0; }
.order-mode input { position: absolute; opacity: 0; }
.order-mode span { display: grid; align-items: center; min-height: 43px; padding: .5rem .3rem; border: 1px solid var(--line); border-radius: 6px; text-align: center; font-weight: 600; font-size: .87rem; cursor: pointer; }
.order-mode input:checked + span { background: #3c2d20; border-color: #c3955e; }
.order-mode input:focus-visible + span { outline: 3px solid #ebbf7c; outline-offset: 2px; }
.form-place { color: var(--muted); margin: 0; font-size: .86rem; }
.delivery-fields label, .buyer-fields label, .notes { font-size: .88rem; font-weight: 600; }
.delivery-fields input, .buyer-fields input, .notes textarea { display: block; width: 100%; min-height: 44px; margin-top: .28rem; padding: .5rem .62rem; border: 1px solid #ebbf7c61; border-radius: 6px; background: #17110e; color: var(--ink); font-size: 1rem; }
.notes textarea { resize: vertical; }
.optional { color: var(--muted); font-weight: 400; }
.age-check { display: flex; align-items: center; gap: .48rem; min-height: 34px; font-size: .87rem; cursor: pointer; }
.age-check input { width: 19px; height: 19px; margin: 0; accent-color: var(--gold); }
.send-order { width: 100%; }
.submit-note { margin: -.4rem 0 0; text-align: center; color: var(--muted); font-size: .8rem; }

@media (max-width: 900px) {
  .wrap { width: min(calc(100% - 48px), 1200px); }
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-inner { grid-template-columns: 1fr; }
  .guide-intro p { max-width: none; }
  .hero { gap: 1.15rem; min-height: 0; }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 70px; }
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 62px; grid-template-columns: 1fr auto; gap: .5rem; }
  .brand-wordmark { width: 99px; }
  .nav { display: none; }
  .cart-toggle { min-height: 39px; padding-inline: .56rem; }
  .cart-toggle .icon { width: 1.11rem; height: 1.11rem; }
  .cart-toggle .cart-label { font-size: .8rem; }
  .hero { display: block; padding-block: 1.45rem 2.1rem; }
  .hero-logo { width: min(55vw, 232px); }
  .hero-copy { margin-bottom: 1.7rem; }
  .brand-backdrop img { width: 108vw; opacity: calc(var(--logo-blend) * .27); }
  .location { margin: .7rem 0 .85rem; font-size: .68rem; }
  .hero-actions { gap: .5rem; }
  .hero-actions .button { padding-inline: .82rem; min-height: 42px; font-size: .84rem; }
  .feature-section h2 { font-size: 2.38rem; margin-bottom: .7rem; }
  .featured-card { border-radius: 8px; }
  .featured-photo { padding: .6rem .27rem .4rem; height: clamp(112px, 34vw, 187px); }
  .featured-info { padding: .1rem .32rem .35rem; }
  .featured-info h3 { font-size: .76rem; }
  .featured-info p { font-size: .63rem; line-height: 1.3; margin-bottom: .4rem; }
  .featured-add { font-size: .72rem; min-height: 39px; }
  .section-head { margin-bottom: .85rem; }
  .section-head p { font-size: .87rem; }
  .search { width: 100%; }
  .filter { min-height: 38px; padding-inline: .65rem; font-size: .78rem; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .58rem; }
  .product-visual { min-height: 49px; padding: .48rem .55rem; }
  .product-visual.has-photo { aspect-ratio: 1.24; }
  .product-info { padding: .58rem; }
  .product-info h3 { font-size: .93rem; overflow-wrap: anywhere; }
  .product-detail { font-size: .75rem; margin-bottom: .53rem; }
  .add-product { min-height: 44px; }
  .steps { grid-template-columns: 1fr; gap: .8rem; }
  .steps li { display: grid; grid-template-columns: 1.7rem 1fr; padding-top: .7rem; }
  .steps li::before { grid-row: span 2; margin: .16rem 0 0; }
  .steps strong { margin-bottom: .17rem; }
  .footer-top { flex-direction: column; gap: .45rem; }
  body:has(.mobile-cart:not([hidden])) .footer { padding-bottom: 5.3rem; }
  .mobile-cart {
    position: fixed;
    z-index: 3;
    inset: auto 1rem max(.65rem, env(safe-area-inset-bottom)) 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    min-height: 49px;
    padding: .6rem .84rem;
    border: 1px solid #a9854a;
    border-radius: 8px;
    background: var(--green);
    color: var(--ink);
    font-weight: 700;
    box-shadow: 0 .2rem 1.25rem #080402a0;
  }
  .mobile-cart > span:last-child { color: var(--gold); }
  .toast { inset: auto 1rem 4.25rem; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-logo { animation: none; opacity: 1; }
}
