/* =====================================================================
   Ookies: styles (v2, "the yellow box")
   Mobile first: the base rules are for phones; the @media blocks at
   the bottom adjust things for bigger screens.
   ===================================================================== */

/* ---------- Fonts (self-hosted, no requests to Google) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-italic-var.woff2") format("woff2");
  font-style: italic;
  font-weight: 700 900;
  font-stretch: 100% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("../fonts/space-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("../fonts/space-mono-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";   /* stand-in for the Ookies logo until we get their file */
  src: url("../fonts/poppins-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* ---------- Brand tokens (estimated from their IG; swap for exact hex when we get brand files) ---------- */
:root {
  --yellow: #F7D730;   /* the shop, the boxes: the page itself */
  --choc:   #4A2A17;   /* logo, text, dark sections */
  --choc-2: #5E3920;   /* lighter chocolate for layers */
  --butter: #FFEFA6;   /* soft yellow */
  --red:    #C23B2C;   /* "nuevo" tags, stock strip */
  --paper:  #FFFFFF;   /* menu sheet */
  --muted:  #5A3E2C;   /* descriptions on white (dark enough to read on a phone) */

  --display: "Archivo", "Arial Black", sans-serif;
  --mono:    "Space Mono", ui-monospace, monospace;
  --logo:    "Poppins", system-ui, sans-serif;

  --pad: clamp(20px, 5vw, 56px);
  --maxw: 1280px;   /* content width on laptops; grows on big screens (see bottom) */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--yellow);
  color: var(--choc);
  font-family: var(--mono);
  font-size: 1.125rem;   /* 18px on phones; rem grows on bigger screens (see bottom) */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--choc); color: var(--yellow); padding: 8px 14px; border-radius: 999px;
}
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
/* on chocolate the red ring is too faint: use yellow there */
.nav :focus-visible, .nuevo :focus-visible, .locales :focus-visible, .footer :focus-visible { outline-color: var(--yellow); }
/* no lonely last words in headings and paragraphs */
.title, .nosotros__title, .drop__name, .local__name, .helado__title { text-wrap: balance; }
p, dd { text-wrap: pretty; }

/* ---------- Shared pieces ---------- */
.wordmark {
  font-family: var(--logo); font-weight: 700;
  font-size: 1.65rem; letter-spacing: -0.03em; line-height: 1;
  text-decoration: none;
}
.wordmark sup, .sheet__logo sup { font-size: .32em; vertical-align: top; position: relative; top: .15em; margin-left: 1px; }

/* Section titles: big extended italic type, like "Helado soft".
   (Rounded pills are only for buttons, so a title never looks clickable.) */
.title {
  font-family: var(--display); font-style: italic; font-weight: 900; font-stretch: 125%;
  font-size: clamp(2.3rem, 11vw, 5rem); line-height: .95;
  letter-spacing: -0.025em;
  color: var(--choc);
}
.title--yellow { color: var(--yellow); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 2.5px solid transparent;
  font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 110%;
  font-size: 1.05rem; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease;
}
.btn:active { transform: scale(.97); }
.btn--choc   { background: var(--choc); color: var(--yellow); }
.btn--yellow { background: var(--yellow); color: var(--choc); }
.btn--line   { border-color: var(--choc); color: var(--choc); }
.btn--small  { min-height: 40px; padding: 0 18px; font-size: .95rem; }
@media (hover: hover) {
  .btn--choc:hover   { background: var(--red); color: var(--butter); }
  .btn--yellow:hover { background: var(--butter); }
  .btn--line:hover   { background: var(--choc); color: var(--yellow); }
}

.tag {
  display: inline-block;
  padding: 3px 11px 4px;
  border-radius: 999px;
  background: var(--red); color: var(--paper);
  font-family: var(--display); font-style: italic; font-weight: 800; font-size: .95rem;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px var(--pad);
  background: var(--yellow);
  border-bottom: 2.5px solid var(--choc);
}
.topbar__actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { gap: 8px; padding: 0 16px; cursor: pointer; background: transparent; }
.menu-btn__icon { width: 18px; height: 13px; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; fill: none; }
/* small phones: tighter top-bar buttons, no menu icon */
@media (max-width: 419.98px) {
  .topbar .btn--small { padding: 0 13px; font-size: .9rem; }
  .menu-btn__icon { display: none; }
}
/* tiny phones: the order button is in the hero and in the menu, so the top bar keeps only Menú */
@media (max-width: 349.98px) { .topbar__order { display: none; } }
.no-popover .menu-btn { display: none; }

/* ---------- Menú: full-screen chocolate panel with big links ---------- */
.nav {
  /* reset the browser's default popover box */
  inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; border: 0; padding: 12px var(--pad) 32px;
  background: var(--choc); color: var(--butter);
  overflow-y: auto; overscroll-behavior: contain;
  flex-direction: column;
}
.nav:popover-open { display: flex; animation: nav-in .28s cubic-bezier(.2, .9, .3, 1); }
html:has(.nav:popover-open) { overflow: hidden; }   /* the page behind doesn't scroll */
@keyframes nav-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
.nav__top { display: flex; align-items: center; justify-content: space-between; min-height: 46px; }
.nav__wordmark { color: var(--yellow); }
/* round ✕, in the same corner as the Menú button */
.nav__close {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; padding: 0;
  border-radius: 50%; border: 2.5px solid var(--yellow);
  background: transparent; color: var(--yellow); cursor: pointer;
  transition: transform .12s ease;
}
.nav__close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 3; stroke-linecap: round; fill: none; }
.nav__close:active { transform: scale(.92); }
/* each section is a big pressable button: lighter chocolate block, red "base" underneath,
   arrow circle on the right. The whole row (name + hint) is the link. */
.nav__list { display: grid; gap: 12px; margin: 16px 0 24px; }
.nav__list a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name go" "hint go";
  align-items: center; column-gap: 12px;
  padding: 11px 12px 12px 18px;
  border-radius: 22px;
  background: var(--choc-2); color: var(--butter); text-decoration: none;
  box-shadow: 0 5px 0 var(--red);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.nav__name {
  grid-area: name;
  font-family: var(--display); font-style: italic; font-weight: 900; font-stretch: 125%;
  font-size: clamp(1.55rem, 7.4vw, 2.6rem); line-height: 1; letter-spacing: -0.02em;
  color: var(--yellow);
}
.nav__hint { grid-area: hint; margin-top: 5px; font-size: 1rem; line-height: 1.3; }
.nav__go {
  grid-area: go; width: 42px; height: 42px; padding: 10px;
  border-radius: 50%; background: var(--yellow); color: var(--choc);
}
.nav__list a:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--red); }
@media (hover: hover) {
  .nav__list a:hover { background: var(--red); box-shadow: 0 5px 0 var(--yellow); }
  .nav__list a:hover .nav__name { color: var(--butter); }
  .nav__close:hover { background: var(--yellow); color: var(--choc); }
}
.nav__order { align-self: stretch; margin-top: auto; }
.btn--yellow-line { border-color: var(--yellow); color: var(--yellow); background: transparent; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  display: grid; gap: 8px;
  padding: 14px var(--pad) 36px;
  overflow-x: hidden;   /* older browsers */
  overflow-x: clip;     /* the spinning ring's corners must never push the page sideways */
}
.hero__title {
  font-family: var(--display); font-style: italic; font-weight: 900; font-stretch: 125%;
  font-size: clamp(2rem, 9vw, 4.5rem);                 /* older browsers */
  font-size: min(10.4cqi, 6rem);   /* % of the column width: the longest line always fits */
  line-height: .95; letter-spacing: -0.025em;
}
.hero__copy { container-type: inline-size; }
.hero__title span { display: block; white-space: nowrap; }
.hero__sub { margin-top: 16px; font-size: 1.2rem; max-width: 30ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
/* phones: the spinning ring already says "cookies artesanales, hechas por y para vos",
   so the subline is skipped to keep the jump tiles on the first screen */
@media (max-width: 759.98px) { .hero__sub { display: none; } }
.hero__ctas .btn { padding: 0 18px; }
.hero__order { flex: 1 1 100%; min-height: 54px; font-size: 1.15rem; }   /* phones: full width */

/* Jump tiles: chocolate "stickers" that take you straight to a section */
.jump { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; margin-top: 12px; }
.jump li { display: flex; }   /* tiles in the same row share a height */
.jump a {
  flex: 1;
  display: flex; align-items: center; gap: 9px;
  min-height: 58px; padding: 7px 10px 7px 7px;
  border-radius: 22px;
  background: var(--choc); color: var(--yellow);
  font-family: var(--display); font-style: italic; font-weight: 900; font-stretch: 112%;
  font-size: clamp(1rem, 4.4vw, 1.15rem); line-height: 1.05; text-decoration: none;
  white-space: nowrap;   /* one line, always */
  box-shadow: 4px 4px 0 var(--red);
  transition: transform .15s ease;
}
.jump li:nth-child(odd)  a { transform: rotate(-1.2deg); }
.jump li:nth-child(even) a { transform: rotate(1.2deg); }
.jump img {
  flex: none; width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 3px var(--yellow);
}
.jump a:active { transform: scale(.97); }
/* very narrow phones (≤340 px): photo on top, name below */
@media (max-width: 339.98px) {
  .jump a { flex-direction: column; align-items: flex-start; gap: 6px; padding: 9px 12px 11px; }
}
@media (hover: hover) { .jump a:hover { transform: rotate(0) translateY(-2px); background: var(--red); color: var(--butter); box-shadow: 4px 4px 0 var(--choc); } }

/* The sticker: round cookie photo inside a rotating ring of text */
.stamp {
  position: relative;
  order: -1;                       /* phones: the cookie comes first */
  width: min(52vw, 215px); aspect-ratio: 1;   /* phones: smaller, so the tiles fit on the first screen */
  margin: 2px auto 8px;
  animation: stamp-in .9s cubic-bezier(.2, 1.4, .4, 1) both .15s;
}
.stamp__ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  animation: spin 28s linear infinite;
  overflow: visible;
}
.stamp__ring text {
  font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 110%;
  font-size: 15.5px; fill: var(--choc); letter-spacing: .02em;
}
.stamp__photo {
  position: absolute; inset: 15%;
  width: 70%; height: 70%;
  object-fit: cover; border-radius: 50%;
  box-shadow: 0 0 0 7px var(--choc), 0 0 0 14px var(--butter);
}
.stamp__bolt { position: absolute; fill: var(--red); }
.stamp__ringbolt { fill: var(--red); }
.stamp__bolt--a { width: 11%; height: 15%; top: -4%; right: -3%; transform: rotate(14deg); animation: pop .5s ease-out both .8s; }
.stamp__bolt--b { width: 9%; height: 12%; bottom: -3%; left: -3%; transform: rotate(-18deg); fill: var(--choc); animation: pop .5s ease-out both .95s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes stamp-in { from { transform: scale(.6) rotate(-25deg); opacity: 0; } }
@keyframes pop { from { transform: scale(0); } }

/* ---------- Stock strip ---------- */
.strip {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px var(--pad);
  background: var(--red); color: var(--butter);
  font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 110%;
  font-size: clamp(1rem, 4.2vw, 1.4rem); line-height: 1.2; text-align: center;
}
.strip__bolt { width: 18px; height: 24px; flex: none; fill: var(--yellow); }

/* ---------- Lo nuevo ---------- */
.nuevo {
  background: var(--choc); color: var(--butter);
  padding: 48px 0 56px;
}
.nuevo__head { padding: 0 var(--pad); }
.nuevo__intro { margin-top: 16px; max-width: 36ch; }

/* phones: one flavor under the other, like the rest of the page */
.drops {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding: 36px var(--pad) 0;
}
/* each flavor is its own panel, so a name never seems to belong to the next photo */
.drop {
  background: var(--choc-2);
  border-radius: 30px;
  padding: 16px 16px 28px;
}
.drop > :not(img):not(.drop__ph) { margin-left: 6px; margin-right: 6px; }
.drop img, .drop__ph {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 28px;
  border: 5px solid var(--yellow);
  margin-bottom: 14px;
}
.drop:nth-child(odd)  img, .drop:nth-child(odd)  .drop__ph { transform: rotate(-2deg); }
.drop:nth-child(even) img, .drop:nth-child(even) .drop__ph { transform: rotate(2deg); }
/* no photo yet: a colored square with the bolt, same size as a photo */
.drop__ph { display: grid; place-items: center; background: var(--butter); }
.drop__ph svg { width: 26%; height: 34%; fill: var(--choc); }
.drop__ph--red { background: var(--red); }
.drop__ph--red svg { fill: var(--butter); }
.drop__name {
  margin-top: 10px;
  font-family: var(--display); font-style: italic; font-weight: 900; font-stretch: 115%;
  font-size: 1.45rem; line-height: 1.05; color: var(--yellow);
}
.drop__name { font-size: 1.7rem; }
.drop__desc { margin-top: 10px; font-size: 1.1rem; line-height: 1.55; max-width: 38ch; }
.nuevo__cta { padding: 36px var(--pad) 0; }
.nuevo__cta .btn { width: 100%; min-height: 54px; font-size: 1.15rem; }

/* phones only: compact rows (photo left, tag + name right, description below) to keep the page short */
@media (max-width: 759.98px) {
  .drop {
    display: grid; grid-template-columns: 116px minmax(0, 1fr);
    column-gap: 16px; align-items: center;
  }
  .drop img, .drop__ph {
    grid-column: 1; grid-row: 1 / span 2;
    margin-bottom: 0; border-width: 4px; border-radius: 20px;
  }
  .drop .tag { grid-column: 2; grid-row: 1; align-self: end; justify-self: start; }
  .drop__name { grid-column: 2; grid-row: 2; align-self: start; margin-top: 8px; font-size: 1.45rem; }
  .drop__desc { grid-column: 1 / -1; grid-row: 3; margin-top: 16px; }
}

/* ---------- Carta (menu sheet) ---------- */
.carta { padding: 56px var(--pad); }
.carta__title { margin-bottom: 32px; }

/* three tilted photos pinned above the menu sheet.
   Phones: one tall photo on the left, two stacked on the right. */
.fijas-fotos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px;
  max-width: 620px; margin: 0 auto 40px;
}
.fijas-fotos li { position: relative; }
.fijas-fotos li:first-child { grid-row: span 2; }
.fijas-fotos img {
  width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 20px; border: 4px solid var(--paper);
  box-shadow: 5px 5px 0 var(--choc);
}
.fijas-fotos li:first-child img { aspect-ratio: auto; }
.fijas-fotos li:nth-child(1) { transform: rotate(-2.5deg); }
.fijas-fotos li:nth-child(2) { transform: rotate(2deg); }
.fijas-fotos li:nth-child(3) { transform: rotate(-1.5deg); }
.fijas-fotos span {
  position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%);
  white-space: nowrap;
  background: var(--butter); color: var(--choc);   /* label, not a button: never the button's chocolate */
  padding: 4px 13px 5px; border-radius: 999px;
  font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1rem;
}
.sheet {
  max-width: 620px; margin: 0 auto;
  background: var(--paper);
  border-radius: 34px;
  padding: 36px 24px 32px;
  box-shadow: 10px 10px 0 var(--choc);
}
.sheet__logo {
  font-family: var(--logo); font-weight: 700; text-align: center;
  font-size: 3rem; line-height: 1; letter-spacing: -0.03em;
}
.sheet__kicker {
  text-align: center; margin-top: 4px;
  font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 125%;
  font-size: 1.1rem; letter-spacing: .3em; text-transform: uppercase;
}
.sheet__head {
  display: inline-block; margin-top: 30px;
  padding: 6px 20px 8px; border-radius: 999px;
  background: var(--red); color: var(--paper);   /* their menu-story pill, but red so it never looks like the chocolate "Pedí online" button */
  font-family: var(--display); font-style: italic; font-weight: 900; font-stretch: 125%;
  font-size: 1.5rem; line-height: 1;
}
.sheet__pill {
  display: table; margin-top: 8px;
  padding: 3px 14px 4px; border-radius: 999px;
  background: var(--butter);
  font-family: var(--display); font-style: italic; font-weight: 700; font-size: 1.05rem;
}
.menu { margin-top: 6px; }
.menu li { padding: 14px 0; border-bottom: 2px dotted rgba(74, 42, 23, .22); }
.menu li:last-child { border-bottom: 0; }
.menu h4 {
  font-family: var(--display); font-style: italic; font-weight: 900; font-stretch: 112%;
  font-size: 1.3rem; line-height: 1.15;
}
.menu p { margin-top: 6px; font-size: 1.1rem; line-height: 1.55; color: var(--muted); }
.sheet__cta { display: flex; margin-top: 26px; }

/* ---------- Helado ---------- */
.helado { background: var(--butter); display: grid; }
.helado__media { padding: 44px var(--pad) 0; }
.helado__img {
  width: min(100%, 300px); aspect-ratio: 1; object-fit: cover; margin: 0 auto;   /* 640 px source: keep it small on phones */
  border-radius: 28px; border: 5px solid var(--paper);
  box-shadow: 8px 8px 0 var(--choc);
  transform: rotate(-2.5deg);
}
.helado__copy { padding: 30px var(--pad) 44px; }
.helado__title {
  font-family: var(--display); font-style: italic; font-weight: 900; font-stretch: 125%;
  font-size: clamp(2.8rem, 15vw, 6.5rem); line-height: .9; letter-spacing: -0.03em;
  color: var(--red);
}
.helado__text { margin-top: 16px; font-size: 1.2rem; max-width: 32ch; }
.helado__cta { margin-top: 22px; white-space: normal; text-align: center; line-height: 1.15; padding-top: 8px; padding-bottom: 8px; }   /* may wrap on tiny phones */

/* ---------- Locales ---------- */
.locales { background: var(--choc); color: var(--butter); padding: 52px var(--pad) 60px; }
.locales__intro { margin-top: 12px; font-size: 1.15rem; }
.locales__jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.locales__list { display: grid; gap: 0; margin-top: 12px; }
.local {
  display: grid; gap: 6px;
  grid-template-columns: minmax(0, 1fr) 92px; column-gap: 14px;
  padding: 48px 0;
  border-bottom: 3px solid var(--choc-2);
}
.local > * { grid-column: 1 / -1; }
.local__head { grid-column: 1; grid-row: 1; align-self: center; display: grid; gap: 6px; }
.local:last-child { border-bottom: 0; padding-bottom: 0; }
.local__img {
  grid-column: 2; grid-row: 1;
  width: 92px; aspect-ratio: 1; object-fit: cover;
  border-radius: 18px;
}
.local__name {
  font-family: var(--display); font-style: italic; font-weight: 900; font-stretch: 125%;
  font-size: clamp(1.9rem, 7.8vw, 3.4rem); line-height: .95; letter-spacing: -0.02em;
  font-stretch: 112%; overflow-wrap: anywhere;
  color: var(--yellow);
}
.local__addr { font-weight: 700; color: var(--paper); margin-top: 4px; }
.local__where { font-size: 1.1rem; }
.hours { margin: 10px 0 18px; font-size: 1.1rem; max-width: 460px; }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed rgba(255, 239, 166, .25); }
.hours dd { font-weight: 700; color: var(--paper); white-space: nowrap; }
.local .btn { justify-self: start; }
.locales__nota { margin-top: 36px; font-size: 1.1rem; max-width: 52ch; }
.locales__nota a { color: var(--yellow); font-weight: 700; text-underline-offset: 3px; }
.locales__list, .locales__nota { max-width: 720px; }

/* ---------- Nosotros ---------- */
.nosotros {
  background: var(--paper);
  padding: 56px var(--pad);
  display: grid; gap: 20px;
}
.nosotros__title {
  font-family: var(--display); font-style: italic; font-weight: 900; font-stretch: 115%;
  font-size: clamp(1.9rem, 8vw, 3.4rem); line-height: 1; letter-spacing: -0.02em;
  max-width: 16ch;
}
.nosotros__body { max-width: 46ch; }
.nosotros__body p + p { margin-top: 10px; }
.nosotros__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.nosotros__photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 24px; }
.nosotros__photos img:first-child { transform: rotate(-2.5deg); }
.nosotros__photos img:last-child  { transform: rotate(2deg) translateY(24px); }

/* ---------- Seguinos ---------- */
.seguinos { padding: 56px 0 0; }
.seguinos__head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 32px;
  padding: 0 var(--pad) 32px;
}
.seguinos__head p { margin-top: 12px; font-size: 1.1rem; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.ig-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.ig-grid { text-decoration: none; }
.ig-grid span { display: block; overflow: hidden; }
@media (hover: hover) {
  .ig-grid img { transition: transform .35s ease; }
  .ig-grid span:hover img { transform: scale(1.06); }
}

/* ---------- Footer ----------
   Big wordmark on top, then the links, then a thin bottom row: the page clearly ends here. */
.footer {
  background: var(--choc); color: var(--butter);
  padding: 48px var(--pad) 28px;
}
.footer__giant {
  font-family: var(--logo); font-weight: 700;
  font-size: 26vw; line-height: .9; letter-spacing: -0.05em;
  color: var(--yellow);
  margin-left: -0.04em;
  pointer-events: none;   /* decoration only: never sits on top of a link */
  user-select: none;
}
.footer__giant sup { font-size: .16em; vertical-align: top; position: relative; top: .5em; margin-left: .05em; letter-spacing: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 28px; }
.footer__links a {
  display: inline-block; padding: 8px 0;   /* comfortable tap target */
  font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.35rem;
  color: var(--yellow); text-decoration: none;
}
.footer__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 32px; padding-top: 20px;
  border-top: 2px solid var(--choc-2);
  font-size: 1.05rem;
}
.footer__credit { opacity: .85; }

/* ---------- Respect "reduce motion" ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   Bigger screens
   ===================================================================== */
@media (min-width: 760px) {
  .stamp { width: min(40vw, 300px); margin: 4px auto 14px; }
  .drops { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .helado { grid-template-columns: 1fr 1fr; align-items: center; }
  .helado__media { padding: 64px var(--pad); }
  .helado__img { width: min(100%, 440px); margin: 0 0 0 auto; }
  .helado__copy { padding: 40px var(--pad); }
  .helado__title { font-size: min(6.5rem, 8vw); }   /* must fit half the screen */
  .nosotros { grid-template-columns: 1.2fr 1fr; column-gap: 56px; align-items: start; }
  .nosotros__title { grid-column: 1; }
  .nosotros__body  { grid-column: 1; }
  .nosotros__photos { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .ig-grid { grid-template-columns: repeat(6, 1fr); }
}

/* tablets / small laptops: photo left, info right (3 columns only from 1040px) */
@media (min-width: 760px) and (max-width: 1039.98px) {
  .locales__list, .locales__nota { max-width: none; }
  .local { grid-template-columns: 280px minmax(0, 1fr); column-gap: 32px; align-items: start; }
  .local > * { grid-column: 2; }
  .local__img { grid-column: 1; grid-row: 1 / span 6; width: 100%; aspect-ratio: 4 / 3; border-radius: 22px; }
  .local__head { grid-column: 2; grid-row: 1; }
}

@media (min-width: 1040px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; column-gap: 32px;
    padding: 56px var(--pad) 72px;
    max-width: var(--maxw); margin: 0 auto;
  }
  /* Title size is capped so "Buenos Aires" always fits its column and never reaches the sticker */
  .hero { column-gap: 56px; }
  .stamp { order: 0; margin: 0; justify-self: end; width: min(32vw, 440px); }
  .hero__order { flex: 0 0 auto; padding: 0 40px; min-height: 64px; font-size: 1.35rem; }
  .jump { max-width: 560px; }
  .jump a { min-height: 76px; font-size: 1.35rem; }
  .jump img { width: 58px; height: 58px; }
  /* top bar and Menú panel line up with the content column (✕ sits exactly where Menú was) */
  .topbar, .nav { --edge: calc(max(0px, (100vw - var(--maxw)) / 2) + var(--pad)); }
  .topbar { padding-left: var(--edge); padding-right: var(--edge); }
  .nav { padding: 10px var(--edge) 48px; }
  /* Menú panel on laptops: two columns of buttons, a normal-size order button */
  .nav__list { grid-template-columns: 1fr 1fr; gap: 20px 24px; margin-top: 40px; }
  .nav__list a { padding: 20px 20px 22px 28px; }
  .nav__name { font-size: clamp(2.2rem, 3.4vw, 3.4rem); }
  .nav__go { width: 52px; height: 52px; padding: 13px; }
  .locales__jump { display: none; }   /* the 3 shops are side by side already */
  .carta__title { grid-column: 1 / -1; margin-bottom: 8px; }
  .nuevo__cta { max-width: var(--maxw); margin: 0 auto; padding-top: 48px; }
  .nuevo__cta .btn { width: auto; padding: 0 40px; }
  .nav__order { align-self: flex-start; margin-top: 8px; min-height: 58px; padding: 0 40px; font-size: 1.2rem; }
  html { font-size: 106.25%; }   /* everything a bit bigger on laptops (1rem = 17px) */
  .locales__list, .locales__nota { max-width: none; }
  .locales__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 72px; margin-top: 40px; }
  .local { border-bottom: 0; padding: 0; align-content: start; grid-template-columns: minmax(0, 1fr); }
  .local__img { grid-column: 1; grid-row: 1; width: 100%; aspect-ratio: 4 / 3; border-radius: 22px; margin-bottom: 8px; }
  .local__head { grid-row: 2; }
  .local__name { font-size: clamp(2rem, 3vw, 3.2rem); }
  .sheet { transform: rotate(-1deg); }
  .nuevo { padding: 72px 0 80px; }
  .nuevo__head, .drops { max-width: var(--maxw); margin: 0 auto; }
  /* title left, intro right: uses the width instead of leaving it empty */
  .nuevo__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 64px; }
  .nuevo__intro { margin: 0 0 .5em; }
  .drops { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding-top: 48px; }
  .drop__name { font-size: 1.6rem; }
  .drop__desc { font-size: 1.05rem; }

  /* Sabores: photo column on the left, the menu sheet on the right (fills the whole width) */
  .carta {
    display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    column-gap: 72px; align-items: start;
    padding: 96px var(--pad);
    max-width: var(--maxw); margin: 0 auto;
  }
  .fijas-fotos {
    grid-template-columns: minmax(0, 1fr); gap: 48px;
    max-width: none; margin: 24px 0 0;
  }
  .fijas-fotos li:first-child { grid-row: auto; }
  .fijas-fotos img, .fijas-fotos li:first-child img { height: auto; aspect-ratio: 4 / 5; }
  .fijas-fotos li:nth-child(2) { transform: rotate(2deg) translateX(24px); }
  .sheet { max-width: none; padding: 56px 56px 48px; }
  /* keep content within --maxw on very wide screens, backgrounds still full width */
  .locales, .nosotros, .seguinos__head, .helado__media, .helado__copy, .footer { --wide: max(var(--pad), calc((100vw - var(--maxw)) / 2)); }
  .footer { padding-left: var(--wide); padding-right: var(--wide); }
  .footer { padding-top: 64px; }
  .footer__giant { font-size: min(24vw, 320px); }
  .locales { padding: 80px var(--wide) 88px; }
  .nosotros { padding: 88px var(--wide); }
  .seguinos { padding-top: 88px; }
  .seguinos__head { padding-left: var(--wide); padding-right: var(--wide); padding-bottom: 40px; }
  .helado { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .helado__media { padding-left: var(--wide); }
  .helado__copy { padding-right: var(--wide); padding-left: 72px; }
}

/* Big screens (e.g. 2560px laptops at 125%): wider content and slightly bigger everything */
@media (min-width: 1600px) {
  :root { --maxw: 1440px; }
  html { font-size: 112.5%; }   /* 1rem = 18px */
  /* wider photo column: square photos keep it as tall as the menu sheet */
  .fijas-fotos img, .fijas-fotos li:first-child img { aspect-ratio: 1; }
}
@media (min-width: 2000px) {
  :root { --maxw: 1600px; }
  html { font-size: 118.75%; }  /* 1rem = 19px */
}
