:root {
  color-scheme: dark;
  --ink: #141310;
  --panel: #1d1a16;
  --champagne: #e6cc9e;
  --parchment: #ead9b9;
  --paper: #f7ecdb;
  --muted: #c9baaa;
  --rule: #514638;
  --serif: "Bodoni Moda", Didot, "Times New Roman", serif;
  --sans: "Instrument Sans", Arial, sans-serif;
  --wordmark: "Oooh Baby", "Segoe Script", "URW Chancery L", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 500 1rem/1.5 var(--sans); letter-spacing: .018em; }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
img[hidden] { display: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
[id] { scroll-margin-block-start: 1.5rem; }
h1, h2, h3, p, figure { margin: 0; }
.wrap { max-width: 85rem; width: calc(100% - 6rem); margin-inline: auto; }
.skip { position: fixed; top: .75rem; left: .75rem; translate: 0 -160%; z-index: 4; background: var(--champagne); color: var(--ink); padding: .5rem 1rem; }
.skip:focus { translate: 0; }
.wordmark { display: block; width: fit-content; padding-inline: .04em .09em; color: var(--champagne); font: 400 1em/1.1 var(--wordmark); letter-spacing: normal; text-decoration: none; }
.icon-library { position: absolute; overflow: hidden; }
.wa-icon { display: block; flex: 0 0 1.15em; width: 1.15em; height: 1.15em; }

.site-header { border-bottom: 1px solid #342e25; }
.header-inner { min-height: 4.65rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; }
.header-wordmark { font-size: 2.15rem; }
.header-inner > .button { justify-self: end; }
.navigation { display: flex; align-items: center; gap: 2.25rem; }
.navigation a, .nav-button { font-size: .9rem; color: var(--muted); text-decoration: none; }
.nav-button { border: 0; background: transparent; padding: 0; }
.navigation a:hover, .nav-button:hover { color: var(--champagne); }

.button { min-height: 2.8rem; display: inline-flex; align-items: center; justify-content: center; gap: .55em; text-align: center; padding: .65rem 1.2rem; border: 1px solid transparent; font-size: .9rem; font-weight: 700; line-height: 1.15; text-decoration: none; transition: background-color .18s, color .18s, border-color .18s; }
.button-outline { border-color: #9c805a; color: var(--champagne); }
.button-outline:hover { background: var(--champagne); color: var(--ink); border-color: var(--champagne); }
.button-gold { background: var(--champagne); color: var(--ink); border-color: var(--champagne); }
.button-gold:hover { background: var(--paper); border-color: var(--paper); }
.button-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.button-ink:hover { background: #44392a; border-color: #44392a; }
.button-gold:focus-visible { outline-color: var(--champagne); }
.button-ink:focus-visible { outline-color: var(--ink); }
.text-link { width: fit-content; color: inherit; border: 0; background: transparent; padding: 0; font-size: .9rem; text-decoration: underline; text-underline-offset: .27em; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--champagne); }

.hero { position: relative; display: grid; grid-template-columns: .87fr 1.35fr; min-height: clamp(29rem, 42vw, 36rem); border-bottom: 1px solid var(--rule); }
.hero-copy { position: relative; z-index: 1; align-self: center; padding: 2.6rem 0 2.6rem clamp(0rem, 1.75vw, 1.75rem); }
.eyebrow { color: var(--champagne); font-size: .8rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; display: flex; align-items: center; gap: .65rem; }
.eyebrow span { width: 1.55rem; height: 1px; background: currentColor; }
.hero h1 { margin-top: 1.15rem; }
.hero-wordmark { font-size: clamp(2.85rem, 6.55vw, 6.4rem); }
.claim { display: block; margin-top: .3em; font: italic 500 clamp(2rem, 2.85vw, 3.15rem)/1.08 var(--serif); letter-spacing: .02em; }
.intro { max-width: 19rem; margin-top: 1.38rem; color: var(--muted); }
.hero-actions { display: flex; align-items: center; gap: 1.45rem; margin-top: 1.65rem; }
.hero-picture { position: relative; overflow: hidden; align-self: stretch; min-width: 0; border-right: 1px solid #332a21; }
.hero-picture img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 52% 54%; }
.hero-picture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink), rgb(20 19 16 / .30) 11%, transparent 28%); pointer-events: none; }

.flavors { padding-block: 2rem 2.35rem; }
.section-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .95rem; }
.section-top h2, .dialog h2 { font: 600 clamp(2rem, 3.4vw, 3.4rem)/1.08 var(--serif); letter-spacing: .025em; }
.gallery-actions, .rail-controls { display: flex; align-items: center; gap: .56rem; }
.gallery-actions { gap: 1.25rem; }
.round { display: grid; place-items: center; width: 2.34rem; height: 2.34rem; flex: 0 0 2.34rem; padding: 0; border: 1px solid #7e6a51; background: transparent; border-radius: 50%; color: var(--champagne); font: 400 1.45rem/1 var(--sans); }
.round span { translate: 0 -.055em; }
.round:hover:not(:disabled) { background: var(--champagne); color: var(--ink); }
.round:disabled { opacity: .42; }
.flavor-rail { --columns: 5; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--columns) - 1) * 1rem) / var(--columns)); gap: 1rem; list-style: none; margin: 0; padding: 4px 2px 6px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #7e6a51 var(--ink); scroll-snap-type: x mandatory; }
.flavor-card { scroll-snap-align: start; min-width: 0; }
.flavor-card button { display: block; width: 100%; text-align: left; padding: 0 0 .45rem; border: 0; color: var(--paper); background: transparent; }
.flavor-card button:focus-visible { outline-offset: -2px; }
.flavor-frame { display: block; overflow: hidden; aspect-ratio: 1.46; border: 1px solid #4d3e2e; background: var(--panel); }
.flavor-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 54%; transition: transform .24s; }
.flavor-card button:hover img { transform: scale(1.05); }
.flavor-name { display: block; margin-top: .48rem; font: 600 clamp(1.12rem, 1.65vw, 1.55rem)/1.16 var(--serif); }

.packs { background: var(--parchment); color: var(--ink); }
.packs-inner { padding-block: 1.75rem 2.1rem; }
.pack-header { align-items: baseline; margin-bottom: 1.22rem; }
.pack-header p { color: #504332; }
.pack-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid #a68e6a; }
.pack-card { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .44rem .75rem; padding: 1rem clamp(.8rem, 2vw, 2.1rem) 1.15rem; }
.pack-card:first-child { padding-left: 0; }
.pack-card:last-child { padding-right: 0; }
.pack-card + .pack-card { border-left: 1px solid #a68e6a; }
.pack-card h3 { font: 600 clamp(1.55rem, 2.7vw, 2.3rem)/1.08 var(--serif); letter-spacing: .015em; white-space: nowrap; }
.price { font-weight: 700; font-size: 1.23rem; white-space: nowrap; }
.pack-detail { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: .16rem .6rem; color: #504332; font-size: .9rem; }
.pack-detail small, .order-volume { font-size: .8rem; }
.pack-card .button { justify-self: start; grid-column: 1 / -1; margin-top: .28rem; }
.site-footer { color: var(--muted); }
.footer-inner { min-height: 4.65rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-wordmark { font-size: 1.95rem; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .3rem 1.15rem; }

.dialog { width: min(34rem, calc(100% - 1.35rem)); max-height: calc(100dvh - 1.35rem); margin: auto; padding: 0; border: 1px solid #917a59; background: var(--panel); color: var(--paper); overscroll-behavior: contain; }
.dialog::backdrop { background: rgb(10 9 8 / .78); }
.dialog-content { position: relative; padding: clamp(1rem, 4vw, 2rem); }
.dialog h2 { padding-right: 2.5rem; color: var(--champagne); }
.dialog-close { position: absolute; top: 1rem; right: 1rem; }
.order-volume { display: block; margin-top: .42rem; color: var(--muted); }
.order-summary { margin: .6rem 0 .95rem; color: var(--muted); }
.order-flavors { display: grid; }
.order-row { min-height: 2.74rem; display: flex; align-items: center; justify-content: space-between; gap: .65rem; border-top: 1px solid var(--rule); }
.stepper { display: grid; align-items: center; justify-items: center; grid-template-columns: 2rem 1.55rem 2rem; gap: .16rem; }
.stepper button { width: 1.85rem; height: 1.85rem; padding: 0; line-height: 1; background: transparent; color: var(--champagne); border: 1px solid #77674f; }
.stepper button:hover:not(:disabled) { background: var(--champagne); color: var(--ink); }
.stepper button:disabled { opacity: .38; }
.stepper output { font-variant-numeric: tabular-nums; }
.order-count { border-top: 1px solid var(--rule); padding-block: .62rem; color: var(--champagne); }
.order-submit { display: flex; width: 100%; }
.order-submit[aria-disabled="true"] { background: #41382b; border-color: #6b5b43; color: #e0d1b3; }
.order-skip { display: block; margin: .65rem auto 0; color: var(--muted); }
.gallery-dialog { width: min(48rem, calc(100% - 1.35rem)); }
.gallery-figure { margin-top: .9rem; }
.gallery-figure img { width: 100%; height: min(60dvh, 30rem); object-fit: contain; background: #141310; }
.gallery-caption { display: flex; gap: 1rem; justify-content: space-between; align-items: center; margin-top: .7rem; }
#galeria-nombre { font: 600 1.6rem/1.08 var(--serif); }
#galeria-credito { font-size: .82rem; color: var(--muted); margin-top: .22rem; }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 3.5rem); }
  .hero { grid-template-columns: .9fr 1.15fr; }
  .flavor-rail { --columns: 4; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { grid-template-columns: 1fr auto; min-height: 4.05rem; gap: .5rem; }
  .header-wordmark { font-size: clamp(1.48rem, 6.7vw, 2.1rem); }
  .header-inner > .button { padding-inline: .8rem; }
  .navigation { display: none; }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-copy { align-self: start; padding: 1.65rem .16rem .9rem; }
  .hero h1 { margin-top: .78rem; }
  .hero-wordmark { font-size: clamp(2.6rem, 12.5vw, 5.85rem); }
  .claim { font-size: clamp(1.75rem, 6.4vw, 3.15rem); }
  .intro { margin-top: .78rem; }
  .hero-actions { margin-top: .95rem; }
  .hero-picture { min-height: 0; width: 100%; aspect-ratio: 1.47; margin-block: .35rem .85rem; border: 1px solid #332a21; }
  .hero-picture img { object-position: 50% 54%; }
  .hero-picture::after { background: linear-gradient(180deg, rgb(20 19 16 / .36), transparent 22%); }
  .flavors { padding-block: 1.2rem 1.45rem; }
  .section-top { margin-bottom: .7rem; }
  .gallery-actions { gap: .7rem; }
  .flavor-rail { --columns: 2.35; grid-auto-columns: calc((100% - 1rem) / var(--columns)); gap: .65rem; }
  .flavor-name { font-size: 1.18rem; }
  .pack-header { align-items: start; flex-direction: column; gap: .33rem; }
  .pack-grid { grid-template-columns: 1fr; }
  .pack-card { grid-template-columns: 1fr auto; padding: .67rem 0 .78rem; gap: .31rem .5rem; }
  .pack-card + .pack-card { border-left: 0; border-top: 1px solid #a68e6a; }
  .pack-card h3 { font-size: 1.72rem; }
  .pack-card .button { grid-column: 2; justify-self: end; min-height: 2.4rem; margin: 0; padding-inline: .58rem; }
  .pack-detail { display: grid; grid-column: 1; }
  .footer-inner { min-height: 4rem; padding-block: .6rem; }
  .footer-wordmark { font-size: 1.65rem; }
}
@media (max-width: 360px) {
  .gallery-actions { gap: .43rem; }
  .gallery-actions .round { width: 2.12rem; height: 2.12rem; flex-basis: 2.12rem; }
  .pack-card .button { font-size: .81rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}
