/* Ta Mu Te Tú · cafetería en Sanlúcar de Barrameda */
:root {
  /* Palette from the logo: white, black type, sand-gold cube lines,
     plus the sky blue of their Instagram highlights */
  --deep: #141414;
  --paper: #fcfbf7;
  --bg: #fcfbf7;
  --bg-2: #f3efe6;
  --ink: #141414;
  --ink-2: #625d55;
  --line: rgba(20, 20, 20, .13);
  --sand: #d8c8a4;
  --accent: #9c7c42;
  --accent-soft: #d8c8a4;
  --sky: #c3e6ea;
  --butter: #d8c8a4;
  --card: #ffffff;
  --glass: rgba(252, 251, 247, .7);
  --cubes: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='27.71' height='48.00' viewBox='0 0 27.71 48.00'><path d='M0.00 -16.00L13.86 -8.00 M13.86 -8.00L13.86 8.00 M13.86 8.00L0.00 16.00 M0.00 16.00L-13.86 8.00 M-13.86 8.00L-13.86 -8.00 M-13.86 -8.00L0.00 -16.00 M0.00 0.00L0.00 -16.00 M0.00 0.00L13.86 8.00 M0.00 0.00L-13.86 8.00 M27.71 -16.00L41.57 -8.00 M41.57 -8.00L41.57 8.00 M41.57 8.00L27.71 16.00 M27.71 16.00L13.86 8.00 M13.86 8.00L13.86 -8.00 M13.86 -8.00L27.71 -16.00 M27.71 0.00L27.71 -16.00 M27.71 0.00L41.57 8.00 M27.71 0.00L13.86 8.00 M13.86 8.00L27.71 16.00 M27.71 16.00L27.71 32.00 M27.71 32.00L13.86 40.00 M13.86 40.00L-0.00 32.00 M-0.00 32.00L0.00 16.00 M0.00 16.00L13.86 8.00 M13.86 24.00L13.86 8.00 M13.86 24.00L27.71 32.00 M13.86 24.00L-0.00 32.00 M0.00 32.00L13.86 40.00 M13.86 40.00L13.86 56.00 M13.86 56.00L0.00 64.00 M0.00 64.00L-13.86 56.00 M-13.86 56.00L-13.86 40.00 M-13.86 40.00L0.00 32.00 M0.00 48.00L0.00 32.00 M0.00 48.00L13.86 56.00 M0.00 48.00L-13.86 56.00 M27.71 32.00L41.57 40.00 M41.57 40.00L41.57 56.00 M41.57 56.00L27.71 64.00 M27.71 64.00L13.86 56.00 M13.86 56.00L13.86 40.00 M13.86 40.00L27.71 32.00 M27.71 48.00L27.71 32.00 M27.71 48.00L41.57 56.00 M27.71 48.00L13.86 56.00 M13.86 -40.00L27.71 -32.00 M27.71 -32.00L27.71 -16.00 M27.71 -16.00L13.86 -8.00 M13.86 -8.00L-0.00 -16.00 M-0.00 -16.00L0.00 -32.00 M0.00 -32.00L13.86 -40.00 M13.86 -24.00L13.86 -40.00 M13.86 -24.00L27.71 -16.00 M13.86 -24.00L-0.00 -16.00 M13.86 56.00L27.71 64.00 M27.71 64.00L27.71 80.00 M27.71 80.00L13.86 88.00 M13.86 88.00L-0.00 80.00 M-0.00 80.00L0.00 64.00 M0.00 64.00L13.86 56.00 M13.86 72.00L13.86 56.00 M13.86 72.00L27.71 80.00 M13.86 72.00L-0.00 80.00' fill='none' stroke='%23d8c8a4' stroke-width='1'/></svg>");
  --serif: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --sans: "Inter Tight", system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --pad: clamp(1rem, 4vw, 3rem);
  --radius: 20px;
  color-scheme: light;
}
/* "De tarde" mode: black with sand-gold, like the logo inverted */
body.is-tarde {
  --bg: #121212;
  --bg-2: #1d1c1a;
  --ink: #fcfbf7;
  --ink-2: #b8b1a4;
  --line: rgba(252, 251, 247, .14);
  --accent: #d8c8a4;
  --card: #1d1c1a;
  --glass: rgba(18, 18, 18, .62);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
  transition: background-color .6s ease, color .6s ease;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
a, button { touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; }
em { font-style: normal; color: var(--accent); transition: color .6s ease; }

.eyebrow {
  margin: 0 0 1rem;
  font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-2);
}
.h2 { margin: 0; font: 300 clamp(2.2rem, 5.4vw, 4.2rem)/1.02 var(--serif); letter-spacing: -.035em; }
.h2 a { text-decoration: none; }

/* Press feedback: instant on pointer-down */
.press { transition: transform 160ms var(--ease-out), background-color .2s ease, color .2s ease, border-color .2s ease; }
.press:active { transform: scale(.97); }

/* Pills */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 1.4rem;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: .95rem; text-decoration: none; white-space: nowrap;
}
.pill--dark { background: var(--ink); color: var(--bg); }
.pill--line { border-color: var(--line); }
.pill--light { background: var(--paper); color: var(--deep); }
.pill--ghost { border-color: rgba(255,255,255,.3); color: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .pill--dark:hover { background: var(--accent); color: #fff; }
  .pill--line:hover { border-color: var(--ink); }
  .pill--light:hover { background: #fff; }
  .pill--ghost:hover { border-color: var(--paper); }
}

/* ---------- Intro: the logo builds itself (first visit only) ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center; justify-items: center;
  background: var(--paper) var(--cubes) center / 56px 97px;
  color: #141414;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s var(--ease-in-out);
}
.intro::before { content: ""; position: absolute; inset: 0; background: radial-gradient(closest-side, var(--paper) 35%, rgba(252,251,247,.55)); }
.intro__mark { position: relative; font-size: clamp(2.6rem, 10vw, 6.5rem); }
.intro .mark__t > span { display: inline-block; transform: translateY(110%); animation: rise .8s var(--ease-out) forwards; }
.intro .mark__t > span:nth-child(2) { animation-delay: .04s } .intro .mark__t > span:nth-child(4) { animation-delay: .08s }
.intro .mark__t > span:nth-child(5) { animation-delay: .12s } .intro .mark__t > span:nth-child(7) { animation-delay: .16s }
.intro .mark__t > span:nth-child(8) { animation-delay: .2s } .intro .mark__t > span:nth-child(10) { animation-delay: .24s }
.intro .mark__t > span:nth-child(11) { animation-delay: .28s }
.intro .mark::before, .intro .mark::after { transform: scaleX(0); animation: draw .9s var(--ease-in-out) .35s forwards; }
.intro .mark__u::before, .intro .mark__u::after { opacity: 0; animation: fade .4s ease .8s forwards; }
.intro__sub { position: relative; margin-top: 1.6rem; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: #625d55; opacity: 0; animation: fade .6s ease .9s forwards; }
.is-ready .intro { clip-path: inset(0 0 100% 0); pointer-events: none; }
@keyframes rise { to { transform: none; } }
@keyframes draw { to { transform: scaleX(1); } }
@keyframes fade { to { opacity: 1; } }
html:not(.js) .intro { display: none; }

/* ---------- Wordmark: TA MU TE TÚ between two rules, the Ú is a cup ---------- */
.mark {
  position: relative; display: inline-flex; align-items: center;
  padding: .32em .1em .3em;
  font: 400 1em/1 var(--serif); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
}
.mark::before, .mark::after { content: ""; position: absolute; left: -.35em; right: -.35em; height: max(1px, .03em); background: currentColor; transform-origin: center; }
.mark::before { top: 0; } .mark::after { bottom: 0; }
.mark__t { display: inline-flex; overflow: hidden; padding: .02em .38em .1em 0; }
.mark__t .sp { width: .3em; }
.mark__u { position: relative; display: inline-block; }
.mark__u::before { /* saucer */
  content: ""; position: absolute; left: -.04em; right: -.04em; bottom: -.06em; height: max(1.5px, .055em); background: currentColor;
}
.mark__u::after { /* handle */
  content: ""; position: absolute; right: -.3em; top: .24em; width: .22em; height: .3em;
  border: max(1.5px, .055em) solid currentColor; border-left: 0; border-radius: 0 .2em .2em 0;
}
.mark--xl { font-weight: 300; }

/* ---------- Header: translucent material ---------- */
.hdr {
  position: fixed; z-index: 50; top: max(12px, env(safe-area-inset-top)); left: 50%;
  width: min(1180px, calc(100% - 24px));
  transform: translateX(-50%);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .4s var(--ease-out), background-color .6s ease, border-color .6s ease;
}
.hdr.is-hidden { transform: translate(-50%, -140%); }
.hdr__logo { justify-self: start; font-size: 1.05rem; text-decoration: none; padding-left: .3rem; }
.hdr__nav { display: flex; gap: .2rem; justify-self: center; }
.hdr__cta { justify-self: end; }
.hdr__nav a {
  padding: .55rem .9rem; border-radius: 999px; text-decoration: none; font-size: .92rem; color: var(--ink-2);
  transition: color .2s ease, background-color .2s ease;
}
.hdr__nav a.is-active { color: var(--ink); background: var(--line); }
@media (hover: hover) and (pointer: fine) { .hdr__nav a:hover { color: var(--ink); background: var(--line); } }
.hdr__progress {
  position: absolute; left: 22px; right: 22px; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
}
.hdr__menu {
  display: none; justify-self: end; grid-column: 3;
  width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink);
  position: relative; flex: none;
}
.hdr__menu i { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--bg); transition: transform .3s var(--ease-out); }
.hdr__menu i:first-child { top: 19px; } .hdr__menu i:last-child { top: 26px; }
.menu-open .hdr__menu i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .hdr__menu i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Mobile sheet: opens out of the menu button and closes back into it, faster */
.sheet {
  position: fixed; z-index: 45; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px var(--pad) calc(2rem + env(safe-area-inset-bottom));
  background: var(--deep); color: var(--paper);
  clip-path: circle(0 at calc(100% - 46px) 46px);
  transition: clip-path .3s var(--ease-out), visibility 0s linear .3s;
  visibility: hidden;
}
.menu-open .sheet { clip-path: circle(150% at calc(100% - 46px) 46px); visibility: visible; transition: clip-path .5s var(--ease-drawer); }
.sheet__nav a {
  display: flex; align-items: baseline; gap: 1rem;
  padding: .4rem 0; font: 300 clamp(2.2rem, 10vw, 3.2rem)/1.1 var(--serif); letter-spacing: -.03em; text-decoration: none;
  opacity: 0; transform: translateY(16px);
  transition: opacity .2s ease, transform .2s ease;
}
.sheet__nav a em { font: 500 .75rem var(--sans); color: var(--accent-soft); letter-spacing: .1em; }
.menu-open .sheet__nav a { opacity: 1; transform: none; transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.menu-open .sheet__nav a:nth-child(2) { transition-delay: .05s } .menu-open .sheet__nav a:nth-child(3) { transition-delay: .1s }
.menu-open .sheet__nav a:nth-child(4) { transition-delay: .15s } .menu-open .sheet__nav a:nth-child(5) { transition-delay: .2s }
.sheet__foot { margin-top: 2.5rem; display: grid; gap: 1rem; justify-items: start; }
.sheet__foot p { margin: 0; color: rgba(247,241,227,.6); font-size: .9rem; }

/* ---------- Hero: split screen ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
  padding: 120px var(--pad) 3rem;
  max-width: 1400px; margin: 0 auto;
}
.hero::before {
  content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1;
  background: var(--cubes) center top / 56px 97px; opacity: .55;
  -webkit-mask-image: radial-gradient(120% 70% at 75% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(120% 70% at 75% 30%, #000 20%, transparent 75%);
  transition: opacity .6s ease;
}
body.is-tarde .hero::before { opacity: .18; }
.hero__text { will-change: transform, opacity; }
.hero__title { margin: 0 0 2rem; font: 300 clamp(2.8rem, 6.6vw, 6rem)/.98 var(--serif); letter-spacing: -.045em; }
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); }
.line:nth-child(2) > span { transition-delay: .07s } .line:nth-child(3) > span { transition-delay: .14s } .line:nth-child(4) > span { transition-delay: .21s }
.is-ready .hero .line > span, .split.is-in .line > span { transform: none; }
.hero__swap { list-style: none; margin: 0 0 2.2rem; padding: 0; border-top: 1px solid var(--line); max-width: 460px; }
.hero__swap li { border-bottom: 1px solid var(--line); }
.hero__swap button {
  width: 100%; text-align: left; background: none; border: 0; padding: .85rem 0;
  font-size: 1.05rem; color: var(--ink-2);
  display: flex; justify-content: space-between; align-items: center;
  transition: color .2s ease, transform .3s var(--ease-out);
}
.hero__swap button::after { content: "→"; opacity: 0; transform: translateX(-8px); transition: opacity .2s ease, transform .3s var(--ease-out); }
.hero__swap button.is-on { color: var(--ink); transform: translateX(.5rem); }
.hero__swap button.is-on::after { opacity: 1; transform: translateX(-.5rem); color: var(--accent); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero__media { position: relative; will-change: transform; }
.hero__stack {
  position: relative; aspect-ratio: 4 / 5; border-radius: 32px; overflow: hidden; background: var(--bg-2);
  clip-path: inset(100% 0 0 0 round 32px);
  transition: clip-path 1.3s var(--ease-in-out) .1s;
}
.is-ready .hero__stack { clip-path: inset(0 0 0 0 round 32px); }
.hero__stack img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); filter: blur(4px);
  transition: opacity .6s ease, transform 1.2s var(--ease-out), filter .6s ease;
}
.hero__stack img.is-on { opacity: 1; transform: scale(1); filter: none; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 1.1rem 0; }
.marquee__track { display: flex; width: max-content; gap: 2rem; align-items: center; will-change: transform; }
.marquee__track span { font: 300 clamp(1.6rem, 3.6vw, 2.8rem)/1 var(--serif); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.marquee__track i { display: block; width: 22px; color: var(--accent); }
.marquee__track svg { display: block; width: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }

/* ---------- La casa ---------- */
.casa { max-width: 1180px; margin: 0 auto; padding: clamp(5rem, 12vw, 9rem) var(--pad); }
.casa__text { margin: 0 0 clamp(3rem, 7vw, 5rem); font: 300 clamp(1.6rem, 3.3vw, 2.6rem)/1.22 var(--serif); letter-spacing: -.025em; max-width: 30ch; }
.read .w { opacity: .18; transition: opacity .25s linear; }
.read .w.on { opacity: 1; }
.casa__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.casa__img { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.casa__img img, .casa__small img { width: 100%; height: 100%; object-fit: cover; }
.casa__side { display: grid; gap: 2rem; }
.casa__small { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; max-width: 300px; justify-self: end; }
.stats { list-style: none; margin: 0; padding: 0; }
.stats li { padding: 1.1rem 0; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 1rem; }
.stats strong { font: 200 clamp(2.4rem, 4vw, 3.2rem)/1 var(--serif); letter-spacing: -.04em; min-width: 3.6ch; font-variant-numeric: tabular-nums; }
.stats span { color: var(--ink-2); }

/* ---------- Vitrina: pinned horizontal scroll ---------- */
.vit { position: relative; height: var(--vit-h, 300vh); }
.vit__pin {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(1.5rem, 4vh, 2.5rem);
}
.vit__head { padding: 0 var(--pad); max-width: 1180px; width: 100%; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 2rem; }
.vit__head .eyebrow { grid-column: 1 / -1; }
.vit__bar { width: clamp(120px, 18vw, 220px); height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; margin-bottom: .8rem; }
.vit__bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.vit__track {
  list-style: none; margin: 0; padding: 0 var(--pad) 0 max(var(--pad), calc((100vw - 1180px) / 2 + var(--pad)));
  display: flex; gap: clamp(1rem, 2vw, 1.6rem); width: max-content; will-change: transform;
}
.vcard { flex: 0 0 clamp(250px, 26vw, 360px); background: var(--card); box-shadow: 0 0 0 1px var(--line); border-radius: var(--radius); overflow: hidden; transition: background-color .6s ease; }
.vcard__img { aspect-ratio: 1 / 1.05; overflow: hidden; }
.vcard__img img { width: 118%; max-width: none; height: 100%; object-fit: cover; margin-left: -9%; will-change: transform; }
.vcard__txt { padding: 1.1rem 1.3rem 1.4rem; }
.vcard h3 { margin: .6rem 0 .3rem; font: 400 1.45rem/1.15 var(--serif); letter-spacing: -.02em; }
.vcard p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.vcard:nth-child(3n+2) .tag { background: transparent; box-shadow: inset 0 0 0 1px var(--sand); }
.vcard:nth-child(3n) .tag { background: var(--sand); }
.tag { display: inline-block; padding: .3rem .7rem; border-radius: 999px; background: var(--sky); color: #141414; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
body.is-tarde .vcard:nth-child(3n+2) .tag { color: var(--ink); }
/* Reduced motion: no pinning, a plain swipeable row */
.vit--native { height: auto; }
.vit--native .vit__pin { position: static; height: auto; padding: clamp(4rem, 10vw, 7rem) 0; }
.vit--native .vit__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; }
.vit--native .vcard { scroll-snap-align: start; }

/* ---------- Carta ---------- */
.carta { position: relative; max-width: 1180px; margin: 0 auto; padding: clamp(4rem, 10vw, 7rem) var(--pad); }
.carta__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem; }
.seg {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
  padding: 5px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line);
  transition: background-color .6s ease;
}
.seg button { position: relative; z-index: 1; border: 0; background: none; padding: .7rem 1.3rem; border-radius: 999px; font-weight: 500; font-size: .95rem; color: var(--ink-2); transition: color .2s ease, transform 160ms var(--ease-out); }
.seg button[aria-selected="true"] { color: var(--bg); }
.seg__thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--ink); will-change: transform; }
.menu { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.menu[hidden] { display: none; }
.menu.is-in .menu__col { animation: menuIn .35s var(--ease-out) both; }
.menu.is-in .menu__col + .menu__col { animation-delay: .05s; }
@keyframes menuIn { from { opacity: 0; transform: translateY(10px); } }
.menu h3 { margin: 0 0 .6rem; font: 400 .8rem/1.1 var(--serif); text-transform: uppercase; letter-spacing: .22em; color: var(--accent); }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { display: flex; align-items: baseline; gap: .6rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.menu li > span:first-child { transition: transform .25s var(--ease-out), color .2s ease; }
.menu li b { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.menu li span:last-child { color: var(--ink-2); font-size: .85rem; }
@media (hover: hover) and (pointer: fine) { .menu li:hover > span:first-child { transform: translateX(.5rem); color: var(--accent); } }
.carta__note { margin: 2rem 0 0; font-size: .85rem; color: var(--ink-2); }
.peek {
  position: fixed; z-index: 30; left: 0; top: 0; width: 220px; aspect-ratio: 4 / 5; pointer-events: none;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.35);
  opacity: 0; transition: opacity .2s ease;
  will-change: transform;
}
.peek.is-on { opacity: 1; }
.peek img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(.92); transition: opacity .2s ease, transform .25s var(--ease-out); }
.peek.is-on img { opacity: 1; transform: none; }

/* ---------- Instagram ---------- */
.ig { max-width: 1180px; margin: 0 auto; padding: clamp(4rem, 10vw, 7rem) var(--pad); }
.ig__head { margin-bottom: 2.5rem; }
.ig__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.5rem, 1.5vw, 1rem); }
.ig__tile { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 1; }
.ig__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.ig__tile::after {
  content: "Ver en Instagram ↗"; position: absolute; inset: auto 12px 12px auto;
  padding: .45rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 500;
  background: rgba(247,241,227,.8); color: var(--deep);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(6px) scale(.97); transition: opacity .2s ease, transform .2s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .ig__tile:hover img { transform: scale(1.05); }
  .ig__tile:hover::after { opacity: 1; transform: none; }
}

/* ---------- Visítanos ---------- */
.visit { padding: 0 var(--pad) clamp(4rem, 10vw, 7rem); }
.visit__card {
  max-width: 1180px; margin: 0 auto; padding: clamp(2rem, 6vw, 4.5rem);
  border-radius: 32px; background: var(--deep); color: var(--paper);
  position: relative; overflow: hidden;
}
.visit__card::before {
  content: ""; position: absolute; inset: 0; opacity: .14;
  background: var(--cubes) right top / 56px 97px;
  -webkit-mask-image: linear-gradient(250deg, #000, transparent 60%); mask-image: linear-gradient(250deg, #000, transparent 60%);
}
.visit__card .eyebrow { color: rgba(247,241,227,.6); }
.visit__card em { color: var(--accent-soft); }
.visit__info { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin: 3rem 0; }
.visit__info dt { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(247,241,227,.55); margin-bottom: .5rem; }
.visit__info dd { margin: 0; font-size: 1.05rem; }
.visit__info a { text-decoration: none; border-bottom: 1px solid rgba(247,241,227,.3); }
.visit__ctas { position: relative; display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- Footer ---------- */
.foot { padding: 0 var(--pad) calc(2rem + env(safe-area-inset-bottom)); overflow: hidden; }
.foot__big { position: relative; isolation: isolate; }
.foot__big::before {
  content: ""; position: absolute; inset: 0 calc(-1 * var(--pad)); z-index: -1;
  background: var(--cubes) center / 56px 97px;
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent); mask-image: radial-gradient(closest-side, #000 40%, transparent);
}
body.is-tarde .foot__big::before { opacity: .25; }
.foot__big { display: flex; justify-content: center; padding: 1.2em 0 .6em; font-size: clamp(2.6rem, 11.5vw, 10rem); color: var(--ink); transition: color .6s ease; }
.foot__big .mark__t > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease-out); }
.foot__big .mark::before, .foot__big .mark::after { transform: scaleX(0); transition: transform 1.1s var(--ease-in-out) .2s; }
.foot__big.is-in .mark__t > span { transform: none; }
.foot__big.is-in .mark::before, .foot__big.is-in .mark::after { transform: none; }
.foot__row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 2rem; margin-top: 2rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-2); }
.foot__row a { text-decoration: none; }

/* ---------- Scroll reveals (fire once) ---------- */
.js .fade-up { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .fade-up.is-in { opacity: 1; transform: none; }
.js .clip { clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease-in-out); }
.js .clip img { transform: scale(1.15); transition: transform 1.4s var(--ease-out); }
.js .clip.is-in { clip-path: inset(0 0 0 0); }
.js .clip.is-in img { transform: none; }
@media (hover: hover) and (pointer: fine) { .js .ig__tile.clip.is-in:hover img { transform: scale(1.05); } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hdr__nav, .hdr__cta { display: none; }
  .hdr__menu { display: block; }
  .hero { grid-template-columns: 1fr; padding-top: 100px; min-height: 0; }
  .hero__media { order: -1; }
  .hero__stack { aspect-ratio: 4 / 4.2; }
  .hero__text { padding-top: 1.8rem; }
  .casa__grid, .menu, .visit__info { grid-template-columns: 1fr; }
  .casa__small { display: none; }
  .menu { gap: 2.5rem; }
  .ig__grid { grid-template-columns: repeat(2, 1fr); }
  .peek { display: none; }
  .vit__head { grid-template-columns: 1fr; }
  .vit__bar { margin-top: 1rem; }
  .vcard { flex-basis: 74vw; }
}
@media (max-width: 480px) {
  .carta__head { flex-direction: column; align-items: stretch; }
  .seg button { padding: .7rem .8rem; }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-delay: 0s !important; }
  .line > span, .foot__big .mark__t > span, .foot__big .mark::before, .foot__big .mark::after, .js .fade-up, .js .clip img { transform: none !important; }
  .js .clip { clip-path: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .hdr { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
