/* Sassita Vibes — "pop por sabor". One stylesheet, no build step. */
@view-transition { navigation: auto; }

@property --c  { syntax: "<color>"; inherits: true; initial-value: #ffb901; }
@property --on { syntax: "<color>"; inherits: true; initial-value: #12231f; }

:root {
  --ink: #12231f;
  --paper: #fff6e3;
  --deep: #0e3b34;
  --display: "Bowlby One", "Arial Black", Impact, sans-serif;
  --script: "Caveat Brush", "Comic Sans MS", cursive;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gut: clamp(18px, 4vw, 56px);
  --head: 68px;
}

/* Flavor tokens — backdrop colors sampled from the product photography. */
.f-blanco     { --c: #157bdd; --on: #fff6e3; }
.f-orange     { --c: #ff7714; --on: #12231f; }
.f-mango      { --c: #ffb901; --on: #12231f; }
.f-grapefruit { --c: #ff5e6a; --on: #12231f; }
.f-cucumber   { --c: #7ee0a8; --on: #12231f; }
.f-paloma     { --c: #ff7f61; --on: #12231f; }
.f-margarita  { --c: #fed73d; --on: #12231f; }
.f-paper      { --c: #fff6e3; --on: #12231f; }
.f-deep       { --c: #0e3b34; --on: #fff6e3; }
.f-teal       { --c: #1fb5a8; --on: #12231f; }
.f-magenta    { --c: #e83e8c; --on: #fff6e3; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 clamp(16px, 1.05vw + 12px, 19px)/1.55 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- type ---------- */
.display {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  line-height: 1.04; letter-spacing: -.01em; text-wrap: balance;
}
.d-xl { font-size: clamp(54px, 11.5vw, 190px); }
.d-l  { font-size: clamp(42px, 7.4vw, 118px); }
.d-m  { font-size: clamp(30px, 4.2vw, 62px); }
.d-s  { font-size: clamp(21px, 2vw, 30px); line-height: 1.02; }
.script {
  font-family: var(--script); font-weight: 400; line-height: 1;
  font-size: clamp(26px, 3.1vw, 46px); transform: rotate(-3deg); transform-origin: left; display: inline-block;
}
.lede { font-size: clamp(18px, 1.5vw, 24px); line-height: 1.45; max-width: 34em; text-wrap: pretty; }
.tag {
  display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  padding: .45em .9em; border: 2px solid currentColor; border-radius: 99px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em; min-height: 52px; padding: 0 1.5em;
  font-family: var(--display); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  background: var(--ink); color: var(--paper); border: 0; border-radius: 99px; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 5px 0 rgba(0, 0, 0, .28); -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn::after { content: "→"; font-family: var(--body); font-weight: 700; transition: transform .25s var(--ease); }
.btn.no-arrow::after { content: none; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0, 0, 0, .28); }
.btn-ghost:active { box-shadow: inset 0 0 0 2px currentColor; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn:hover::after { transform: translateX(4px); }
}
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- header ---------- */
.head {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--head);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gut);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--ink);
}
.head .logo img { height: 38px; width: auto; }
.nav { display: flex; gap: clamp(14px, 2.2vw, 34px); margin-left: auto; }
.nav a, .lang {
  font-weight: 700; font-size: 14px; letter-spacing: .09em; text-transform: uppercase; text-decoration: none;
  padding: 12px 2px; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 3px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a[aria-current]::after { transform: scaleX(1); }
@media (hover: hover) { .nav a:hover::after { transform: scaleX(1); } }
.lang { border: 2px solid var(--ink); border-radius: 99px; padding: 6px 12px; }
.head .btn { min-height: 42px; font-size: 13px; box-shadow: none; }
.burger { display: none; }

@media (max-width: 860px) {
  .burger {
    display: grid; place-items: center; width: 46px; height: 46px; margin-left: auto;
    background: var(--ink); color: var(--paper); border: 0; border-radius: 50%; cursor: pointer;
  }
  .burger span, .burger span::before {
    content: ""; display: block; width: 18px; height: 2.5px; background: currentColor; border-radius: 2px;
    transition: transform .3s var(--ease);
  }
  .burger span::before { transform: translateY(6px); }
  .open .burger span { transform: translateY(3px) rotate(45deg); }
  .open .burger span::before { transform: rotate(-90deg); }
  .nav {
    position: fixed; inset: var(--head) 0 0 0; height: calc(100dvh - var(--head)); margin: 0; padding: 28px var(--gut);
    flex-direction: column; gap: 4px; background: var(--paper); overflow: auto; overscroll-behavior: contain;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .35s var(--ease), opacity .25s, visibility .25s;
  }
  .open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a { font-family: var(--display); font-size: clamp(30px, 9vw, 44px); letter-spacing: 0; padding: 8px 0; }
  .nav a::after { content: none; }
  .head > .btn { display: none; }
}

/* ---------- sections ---------- */
main { padding-top: var(--head); }
.band { background: var(--c); color: var(--on); position: relative; }
.wrap { max-width: 1320px; margin: 0 auto; padding: clamp(64px, 9vw, 140px) var(--gut); }
.wrap.tight { padding-block: clamp(40px, 5vw, 72px); }
.stack > * + * { margin-top: clamp(16px, 1.6vw, 26px); }
.split { display: grid; gap: clamp(28px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.flip > :first-child { order: 2; } }

/* Wave edge — the three-stripe wave from the can artwork, drawn in the next section's color. */
.wave {
  position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(22px, 3vw, 44px); background: var(--to, var(--paper));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40' preserveAspectRatio='none'%3E%3Cpath d='M0 22c20 0 20-18 40-18s20 18 40 18 20-18 40-18v36H0z'/%3E%3C/svg%3E") 0 0 / 160px 100% repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40' preserveAspectRatio='none'%3E%3Cpath d='M0 22c20 0 20-18 40-18s20 18 40 18 20-18 40-18v36H0z'/%3E%3C/svg%3E") 0 0 / 160px 100% repeat-x;
  animation: drift 9s linear infinite; pointer-events: none;
}
@keyframes drift { to { -webkit-mask-position: 160px 0; mask-position: 160px 0; } }

/* ---------- flavor dial (home hero) + product hero ---------- */
.dial {
  background: var(--c); color: var(--on); position: relative; overflow: hidden;
  transition: --c .7s var(--ease), --on .4s linear;
  min-height: calc(100svh - var(--head)); display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr); padding: clamp(20px, 3vw, 40px) var(--gut) clamp(70px, 8vw, 110px);
}
.rays {
  position: absolute; width: 170vmax; aspect-ratio: 1; left: 72%; top: 46%; translate: -50% -50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .16) 0 7.5deg, transparent 7.5deg 15deg);
  animation: spin 80s linear infinite; pointer-events: none;
}
@keyframes spin { to { rotate: 360deg; } }
.dial-copy { position: relative; z-index: 2; }
.dial-name { margin-top: .08em; font-size: clamp(40px, 6.2vw, 104px); }
.dial[data-dial] .dial-name { min-height: 2.08em; }
.dial-name span { display: block; }
.dial-line { margin-top: 18px; min-height: 3.1em; }
.dial-copy .btns { margin-top: 26px; }
.stage { position: relative; z-index: 1; aspect-ratio: 4 / 5; width: min(100%, 70svh); margin-inline: auto; }
.stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
}
.dial[data-dial] .stage img {
  opacity: 0; transform: translateY(8%) rotate(4deg) scale(.94);
  transition: opacity .45s linear, transform .8s var(--ease);
}
.dial[data-dial] .stage img.on { opacity: 1; transform: none; }
.swap { transition: opacity .22s linear, transform .22s var(--ease); }
.swapping .swap { opacity: 0; transform: translateY(10px); }
.chips {
  position: relative; z-index: 3; display: flex; gap: 10px; margin-top: 30px; padding: 6px 2px 10px;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; width: 58px; height: 58px; border-radius: 50%; border: 3px solid var(--ink); background: var(--chip);
  padding: 0; cursor: pointer; position: relative; overflow: hidden; -webkit-tap-highlight-color: transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); box-shadow: 0 4px 0 var(--ink);
}
.chip img { position: absolute; left: 50%; top: -58%; height: 160%; width: auto; max-width: none; translate: -50% 0; pointer-events: none; }
/* cans: show the artwork, not the lid */
.chip.can img { top: -14%; height: 150%; }
.chip[aria-pressed="true"] { transform: translateY(-6px) scale(1.12); box-shadow: 0 8px 0 var(--ink); }
.chip:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
@media (min-width: 900px) {
  .dial { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); column-gap: 3vw; }
  .dial-copy { grid-column: 1; grid-row: 1; }
  .stage { grid-column: 2; grid-row: 1; }
}
@media (max-width: 899px) {
  .stage { width: min(88%, 46svh); order: -1; }
  .rays { left: 50%; top: 26%; }
  .dial-line { min-height: 4.4em; }
  .dial-name { font-size: clamp(38px, 11.4vw, 76px); }
}

.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---------- marquee ---------- */
.marq { overflow: hidden; background: var(--ink); color: var(--paper); padding: 16px 0; }
.marq div { display: flex; width: max-content; animation: marq 28s linear infinite; }
.marq span { font-family: var(--display); font-size: clamp(18px, 2.2vw, 30px); text-transform: uppercase; white-space: nowrap; padding-right: 1.1em; }
.marq span::after { content: "✺"; padding-left: 1.1em; color: #ffb901; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- photo cards ---------- */
.shot { border-radius: clamp(18px, 2.2vw, 34px); overflow: hidden; border: 3px solid var(--ink); background: var(--c); box-shadow: 0 10px 0 var(--ink); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.r45 { aspect-ratio: 4 / 5; } .r169 { aspect-ratio: 16 / 9; } .r11 { aspect-ratio: 1; }
.tilt-l { rotate: -2deg; } .tilt-r { rotate: 2deg; }

/* lineup: horizontal snap strip of the seven flavors */
.lineup {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(74vw, 340px); gap: clamp(14px, 1.6vw, 24px);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 10px var(--gut) 34px; scroll-padding-inline: var(--gut); scrollbar-width: none;
}
.lineup::-webkit-scrollbar { display: none; }
.card {
  scroll-snap-align: start; display: block; text-decoration: none; background: var(--c); color: var(--on);
  border: 3px solid var(--ink); border-radius: 28px; overflow: hidden; box-shadow: 0 8px 0 var(--ink);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; transition: scale .6s var(--ease); }
.card div { padding: 16px 20px 20px; border-top: 3px solid var(--ink); }
.card small { display: block; font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-top: 6px; }
.card:active { transform: translateY(5px); box-shadow: 0 3px 0 var(--ink); }
@media (hover: hover) {
  .card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 14px 0 var(--ink); }
  .card:hover img { scale: 1.05; }
}
.grid { display: grid; gap: clamp(16px, 2vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }

/* two doors: bottles / cans */
.doors { display: grid; }
@media (min-width: 860px) { .doors { grid-template-columns: 1fr 1fr; } }
.door {
  position: relative; display: grid; align-content: end; min-height: min(86svh, 780px); padding: var(--gut);
  text-decoration: none; color: var(--on); background: var(--c); overflow: hidden; isolation: isolate;
}
.door img {
  position: absolute; z-index: -1; left: 50%; top: 6%; height: 47%; width: auto; max-width: none; translate: -50% 0;
  filter: drop-shadow(0 26px 22px rgba(0, 0, 0, .28)); transition: transform .7s var(--ease);
}
.door img:nth-of-type(2) { translate: -150% 8%; rotate: -9deg; height: 40%; }
.door img:nth-of-type(3) { translate: 50% 8%; rotate: 9deg; height: 40%; }
@media (hover: hover) {
  .door:hover img:nth-of-type(1) { transform: translateY(-4%) scale(1.04); }
  .door:hover img:nth-of-type(2) { transform: translate(-10%, -2%) rotate(-5deg); }
  .door:hover img:nth-of-type(3) { transform: translate(10%, -2%) rotate(5deg); }
}
.door .btn { margin-top: 18px; justify-self: start; }
/* half-width columns: nine-letter names (MARGARITA) must fit */
.door .display { font-size: clamp(38px, 11vw, 84px); }
@media (min-width: 860px) { .door .display { font-size: clamp(38px, 5.3vw, 92px); } }

/* illustrated tiles */
.tiles { display: grid; gap: clamp(12px, 1.6vw, 22px); grid-template-columns: repeat(auto-fit, minmax(min(46%, 200px), 1fr)); counter-reset: s; }
.tiles li { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 26px; overflow: hidden; box-shadow: 0 8px 0 var(--ink); }
.tiles img { aspect-ratio: 1; width: 100%; object-fit: cover; border-bottom: 3px solid var(--ink); transition: scale .6s var(--ease); }
.tiles div { padding: 16px clamp(12px, 1.4vw, 18px) 20px; }
.tiles h3 { font-size: clamp(16px, 1.75vw, 26px); overflow-wrap: anywhere; }
.tiles p { margin-top: 6px; font-size: .95em; }
.tiles.num li { counter-increment: s; }
.tiles.num h3::before { content: counter(s) ". "; }
@media (hover: hover) { .tiles li:hover img { scale: 1.06; } }

/* steps (a real sequence: chill → crack → pour → vibe) */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); counter-reset: s; }
.steps li { counter-increment: s; border: 3px solid currentColor; border-radius: 24px; padding: 22px; }
.steps li::before { content: counter(s); font-family: var(--display); font-size: 54px; line-height: 1; display: block; margin-bottom: 10px; }
.steps p { margin-top: 6px; }

/* product detail */
.notes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.notes li { background: var(--ink); color: var(--paper); border-radius: 22px; padding: 22px; font-family: var(--display); font-size: clamp(20px, 2vw, 28px); text-transform: uppercase; line-height: 1; }
.serve li { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 18px 0; border-top: 2px solid currentColor; }
.serve li:last-child { border-bottom: 2px solid currentColor; }
.serve b { font-family: var(--display); font-weight: 400; text-transform: uppercase; min-width: 7em; }
.cutout { height: min(64svh, 620px); width: auto; margin-inline: auto; filter: drop-shadow(0 30px 26px rgba(0, 0, 0, .3)); }
.next {
  display: grid; place-items: center; text-align: center; text-decoration: none; background: var(--c); color: var(--on);
  padding: clamp(60px, 9vw, 130px) var(--gut); overflow: hidden; position: relative;
}
.next .d-xl { transition: transform .5s var(--ease); }
@media (hover: hover) { .next:hover .d-xl { transform: scale(1.04) rotate(-1.5deg); } }

/* recipes */
.recipe { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 28px; overflow: hidden; box-shadow: 0 8px 0 var(--ink); display: grid; }
.recipe img { aspect-ratio: 1; width: 100%; object-fit: cover; border-bottom: 3px solid var(--ink); }
.recipe > div { padding: 22px; }
.recipe ul { margin: 12px 0; font-weight: 600; }
.recipe li { padding: 5px 0; border-bottom: 1.5px dashed rgba(18, 35, 31, .35); }
.recipe p { font-size: .95em; }
.recipe[hidden] { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filters button {
  min-height: 44px; padding: 0 1.1em; border-radius: 99px; border: 2.5px solid var(--ink); background: transparent; cursor: pointer;
  font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; transition: background .2s, color .2s, transform .2s var(--ease);
}
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.filters button:active { transform: scale(.96); }
.recipe.wide { max-width: 940px; }
@media (min-width: 720px) { .recipe.wide { grid-template-columns: 1fr 1fr; } .recipe.wide img { height: 100%; border-bottom: 0; border-right: 3px solid var(--ink); } .recipe.wide > div { padding: clamp(22px, 3vw, 40px); align-self: center; } }

/* form */
.form { display: grid; gap: 16px; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.form input, .form select, .form textarea {
  font-size: 16px; font-weight: 500; letter-spacing: 0; text-transform: none; width: 100%;
  padding: 14px 16px; border: 2.5px solid var(--ink); border-radius: 16px; background: #fff; color: var(--ink);
}
.form textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 14px; }
.prose { max-width: 46em; } .prose h2 { margin-top: 1.6em; } .prose p, .prose li { margin-top: .8em; }
.prose ul { list-style: disc; padding-left: 1.2em; }

/* footer */
.foot { background: var(--deep); color: var(--paper); position: relative; }
.foot .logo img { height: 64px; width: auto; filter: brightness(0) invert(1) sepia(.25); }
.foot-grid { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.foot h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; opacity: .7; }
.foot li a { display: inline-block; padding: 6px 0; text-decoration: none; font-weight: 600; }
.foot li a:hover { text-decoration: underline; }
.fine { margin-top: 46px; padding-top: 22px; border-top: 1.5px solid rgba(255, 246, 227, .3); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: space-between; }
.fine a { text-underline-offset: 3px; }

/* age gate */
.gate { border: 3px solid var(--ink); border-radius: 30px; padding: clamp(26px, 5vw, 48px); max-width: min(92vw, 520px); background: #fed73d; color: var(--ink); text-align: center; box-shadow: 0 12px 0 var(--ink); }
.gate::backdrop { background: rgba(14, 59, 52, .92); }
.gate img { height: 54px; width: auto; margin: 0 auto 18px; }
.gate .btns { justify-content: center; margin-top: 22px; }
.gate p { margin-top: 12px; }
.gate[open] { animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.9) rotate(-3deg); opacity: 0; } }

/* ---------- motion ---------- */
.rv { opacity: 0; transform: translateY(34px); transition: opacity .6s linear, transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.rv.in { opacity: 1; transform: none; }
@supports (animation-timeline: view()) {
  .float { animation: float linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  @keyframes float { from { translate: 0 40px; } to { translate: 0 -40px; } }
}
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}
