/* Villa Emma — brandbook (colores, Arameza, Southland, Montserrat) sobre estructura inspirada en arrodz.com */

/* Fuentes de marca. Arameza Demo no trae ñ, tildes, ¿¡ ni €: unicode-range limita su uso a ASCII
   y esos caracteres caen en Italiana. Southland (la cursiva que usan en redes) sí los trae. */
@font-face {
  font-family: "Arameza";
  src: url("assets/fonts/AramezaDemo-Regular.otf") format("opentype");
  font-display: swap;
  unicode-range: U+0020-007E;
}
@font-face {
  font-family: "Southland";
  src: url("assets/fonts/Southland.ttf") format("truetype");
  font-display: swap;
}

:root {
  --night: #0D2526;
  --night-2: #112F30;
  --teal: #094D4F;
  --peach: #FFCDA9;
  --paper: #FBF3EA;
  --paper-2: #F3E4D5;
  --orange: #DD7731;
  --green: #5A872A;
  --brick: #AB4A3A;
  --brick-dark: #8E3B2D;
  --ink: #12302F;
  --line: rgb(255 205 169 / .28);

  --title: "Arameza", "Italiana", Georgia, serif;
  --script: "Southland", "Italiana", cursive;
  --body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --radius: clamp(14px, 1.6vw, 22px);
  --max: 1280px;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--grain), var(--night);
  color: var(--paper);
  font-family: var(--body); font-weight: 300;
  font-size: 1rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
strong, b { font-weight: 600; }

h1, h2, h3 { font-family: var(--title); font-weight: 400; line-height: 1; letter-spacing: .005em; margin: 0; }
em { font-family: var(--script); font-style: normal; font-weight: 400; color: var(--peach); letter-spacing: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* Isotipo original (PNG) usado como máscara para teñirlo con cualquier color de la paleta */
.iso {
  display: inline-block; width: 1em; height: 1em; flex: none;
  background-color: var(--peach);
  -webkit-mask: url("assets/logo/isotipo.png") center / contain no-repeat;
          mask: url("assets/logo/isotipo.png") center / contain no-repeat;
}

/* Datos provisionales (horario, precio de la Polarcita): sin marca visual en la web publicada */
.pending { outline: none; }

/* Piezas comunes */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.6rem; border-radius: 999px;
  font-weight: 500; font-size: .92rem; letter-spacing: .02em; text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-brick { background: var(--brick); color: var(--paper); }
.btn-brick:hover { background: var(--brick-dark); }
.btn-peach { background: var(--peach); color: var(--night); }
.btn-peach:hover { background: var(--paper); }

.chip {
  display: inline-block; width: fit-content;
  padding: .35rem .85rem; border-radius: 4px;
  font-family: var(--body); font-size: .76rem; font-weight: 500; line-height: 1.3; letter-spacing: .04em;
  box-shadow: 0 4px 14px rgb(0 0 0 / .18);
}
.chip-peach { background: var(--peach); color: var(--night); }
.chip-brick { background: var(--brick); color: var(--paper); }
.chip-green { background: var(--green); color: var(--paper); }
.tilt-l { transform: rotate(-3deg); }
.tilt-r { transform: rotate(2.5deg); }

.photo { background: var(--img) var(--pos, center) / cover no-repeat, linear-gradient(160deg, var(--teal), var(--night)); }

.link { font-weight: 500; text-underline-offset: 4px; }
.link:hover { color: var(--peach); }

/* Portada */
.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 980px);
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(13 37 38 / .75) 0%, rgb(13 37 38 / .45) 28%, rgb(13 37 38 / .05) 50%, rgb(13 37 38 / .55) 75%, rgb(13 37 38 / .9) 100%);
}

.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.25rem var(--gutter);
  color: var(--paper);
  background: rgb(13 37 38 / 0);
  border-bottom: 1px solid transparent;
  transition: background-color .45s ease, padding .45s ease, border-color .45s ease, backdrop-filter .45s ease, -webkit-backdrop-filter .45s ease;
}
/* Al bajar: vidrio translúcido para que se lea sobre fotos y fondos claros */
.top.is-scrolled {
  padding-top: .7rem; padding-bottom: .7rem;
  background: rgb(13 37 38 / .42);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
          backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: rgb(255 205 169 / .14);
}
/* Marca: logotipo completo arriba; al bajar se cambia por el isotipo */
.brand { display: grid; align-items: center; justify-items: start; }
.brand > * { grid-area: 1 / 1; }
.brand img { transition: opacity .45s ease, scale .5s ease, filter .45s ease; transform-origin: left center; }
.brand-iso {
  width: 42px; height: 42px;
  opacity: 0; scale: .6; rotate: -90deg;
  transition: opacity .45s ease .1s, scale .6s cubic-bezier(.3, 1.4, .5, 1) .1s, rotate .7s cubic-bezier(.2, .7, .2, 1) .1s;
}
.top.is-scrolled .brand img { opacity: 0; scale: .85; filter: blur(2px); pointer-events: none; }
.top.is-scrolled .brand-iso { opacity: 1; scale: 1; rotate: 0deg; }
.brand:hover .brand-iso { rotate: 45deg; }
section[id] { scroll-margin-top: 84px; }
.brand { line-height: 0; }
.brand img { width: clamp(150px, 15vw, 200px); height: auto; }
.top nav { display: flex; gap: 1.9rem; margin-left: auto; font-size: .88rem; font-weight: 400; letter-spacing: .03em; }
.top nav a { text-decoration: none; opacity: .88; padding: .5rem 0; }
.top nav a:hover { opacity: 1; color: var(--peach); }

.hero-copy {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: end;
  padding: clamp(7rem, 16vh, 10rem) var(--gutter) 0; margin-bottom: auto;
}
.hero-copy h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); }
.hero-copy h1 em { display: block; font-size: .92em; margin-top: .12em; }
.hero-copy p { margin: 0; max-width: 30rem; font-size: clamp(.95rem, 1.2vw, 1.05rem); justify-self: end; }

.giant-wrap { position: relative; padding: 0 var(--gutter); }
.giant {
  display: flex; align-items: center; justify-content: space-between; gap: .12em;
  margin: 0 0 -.1em; font-family: var(--title); font-size: clamp(3.6rem, 14.2vw, 13.5rem);
  line-height: .9; white-space: nowrap; color: var(--paper);
}
.giant .iso { width: .5em; height: .5em; }
.hero-meta {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
  margin-bottom: clamp(.75rem, 2vw, 1.5rem);
}
.hero-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.hero-chips .chip { font-size: clamp(.72rem, 1vw, .86rem); }

.round-cta {
  position: relative; flex: none;
  width: clamp(118px, 11vw, 150px); aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
  background: var(--brick); color: var(--paper); text-decoration: none; text-align: center;
  font-weight: 500; font-size: clamp(.78rem, 1vw, .95rem); line-height: 1.2; padding: 1rem;
  box-shadow: 0 10px 30px rgb(0 0 0 / .3);
  transition: transform .25s ease, background-color .25s ease;
}
.round-cta svg { width: 22px; height: 22px; }
.round-cta:hover { transform: scale(1.05) rotate(-4deg); background: var(--brick-dark); }

/* Cinta */
.ticker { border-block: 1px solid var(--line); overflow: hidden; }
.ticker-track { display: flex; width: max-content; }
.ticker ul { display: flex; margin: 0; padding: 0; list-style: none; }
.ticker li {
  display: flex; align-items: center; gap: 2.2rem; padding: 1.05rem 0 1.05rem 2.2rem;
  font-size: .82rem; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; color: var(--peach);
}
.ticker li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: ticker 45s linear infinite; }
  @keyframes ticker { to { transform: translateX(-50%); } }
}

/* Secciones */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(4.5rem, 9vw, 7.5rem) var(--gutter) 0; }
.section-head { text-align: center; max-width: 54rem; margin: 0 auto clamp(2.5rem, 5vw, 3.75rem); }
.section-head .chip { margin-bottom: 1.5rem; }
.section-head h2 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); }
.section-head h2 em { display: block; margin-top: .1em; }
.section-head p { margin: 1.4rem auto 0; max-width: 40rem; }
.section-head .note { font-size: .86rem; color: var(--peach); width: fit-content; padding: 0 .3rem; }

/* Tarjetas alternas */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.75rem, 1.5vw, 1.25rem); }
.card {
  background: var(--night-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 3.25rem);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.25rem;
  min-height: clamp(22rem, 36vw, 30rem);
}
.card h3 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.card p { margin: 0; max-width: 30rem; }
.card .btn { margin-top: .5rem; }
.tile { position: relative; margin: 0; border-radius: var(--radius); min-height: clamp(22rem, 36vw, 30rem); }
.tile figcaption { position: absolute; left: 1.25rem; top: 1.25rem; transform: rotate(-2deg); }

/* Carta: papel claro, como la carta impresa */
.menu-card, .drinks-card {
  background: var(--paper); color: var(--ink); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 3.5rem);
}
.menu { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(2rem, 6vw, 5rem); }
.menu h3 {
  font-size: clamp(2rem, 3vw, 2.6rem); color: var(--green);
  padding-bottom: .55rem; margin: 2.5rem 0 .75rem;
  border-bottom: 1px solid rgb(9 77 79 / .2);
}
.menu-col > h3:first-child { margin-top: 0; }
.menu ul, .drinks-card ul { list-style: none; margin: 0; padding: 0; }
.menu li, .drinks-card li { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; padding: .65rem 0; }
.dish { font-weight: 600; color: var(--brick); font-size: .92rem; letter-spacing: .02em; text-transform: uppercase; }
.price { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--teal); }
.desc { grid-column: 1 / -1; font-size: .88rem; font-weight: 400; max-width: 34rem; }
.plain { margin: 0; }
.plain.intro { margin: -.1rem 0 .4rem; font-size: .88rem; font-weight: 400; }

.drinks-card { margin-top: clamp(.75rem, 1.5vw, 1.25rem); padding-top: 0; padding-bottom: 0; }
.drinks-card summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 76px; cursor: pointer; list-style: none;
  font-family: var(--title); font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--green);
}
.drinks-card summary::-webkit-details-marker { display: none; }
.drinks-card summary svg { width: 28px; height: 28px; flex: none; color: var(--teal); transition: transform .25s ease; }
.drinks-card[open] summary svg { transform: rotate(180deg); }
.drinks-card[open] { padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.drinks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(1.5rem, 4vw, 3.5rem); padding-top: .5rem; }
.drinks-card h4 {
  margin: 1.75rem 0 .4rem; font-size: .74rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--green);
}
.drinks-grid > div > h4:first-child { margin-top: 0; }
.drinks-card li { padding: .4rem 0; }
.drinks-card .dish { font-size: .84rem; }

/* Eventos */
.stories { display: grid; gap: clamp(.75rem, 1.5vw, 1.25rem); }
.story {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius); min-height: clamp(30rem, 60vw, 42rem);
  display: flex; align-items: flex-end;
}
.story-photo { position: absolute; inset: 0; z-index: -2; transition: transform .8s ease; }
.story::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(13 37 38 / 0) 20%, rgb(13 37 38 / .55) 50%, rgb(13 37 38 / .94) 100%);
}
.story:hover .story-photo { transform: scale(1.03); }
.story-chip { position: absolute; top: 1.5rem; left: 1.5rem; }
.story-body { padding: clamp(1.5rem, 4vw, 3.5rem); max-width: 46rem; }
.story-kicker { margin: 0 0 .8rem; font-weight: 500; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--peach); }
.story h3 { font-size: clamp(2.8rem, 6.5vw, 5.2rem); }
.story-body > p:not(.story-kicker) { margin: 1.1rem 0 1.8rem; max-width: 34rem; }

/* Cifras */
.figures { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(.75rem, 1.5vw, 1.25rem); }
.figures-title { font-size: clamp(2.5rem, 5vw, 4.2rem); align-self: center; padding-right: 1rem; }
.figures-title em { display: block; margin-top: .1em; }
.figure {
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; min-height: 14rem;
}
.figure strong { font-family: var(--title); font-weight: 400; font-size: clamp(3.6rem, 7vw, 5.8rem); line-height: .9; color: var(--peach); }
.figure span { max-width: 18rem; }
.figure-wide { grid-column: 2 / 4; }

/* Reservas */
.booking {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem);
  background: var(--teal); border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 4.5rem);
  box-shadow: inset 0 0 0 1px var(--line);
}
.booking h2 { font-size: clamp(3rem, 7vw, 6rem); margin: 1.4rem 0 2rem; }
.steps { margin: 0 0 2.25rem; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 1rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.75rem 1fr; align-items: baseline; }
.steps li::before { content: counter(step); font-family: var(--title); font-size: 2.2rem; line-height: 1; color: var(--peach); }
.steps strong { color: var(--peach); font-weight: 500; }
.booking-info { display: grid; gap: 1.75rem; align-content: center; }
.booking-info > div { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.booking-info h4 { margin: 0 0 .4rem; font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--peach); }
.booking-info p { margin: 0 0 .5rem; }

/* Pie */
.foot { margin-top: clamp(4.5rem, 9vw, 7.5rem); border-top: 1px solid var(--line); overflow: hidden; padding-top: 2.5rem; }
.foot-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  padding: 1.25rem var(--gutter) 1.5rem; font-size: .82rem; border-top: 1px solid var(--line);
}
.giant-foot { color: var(--teal); padding: 0 var(--gutter); margin-bottom: .15em; }
.giant-foot .iso { background-color: var(--teal); }

/* Botón flotante */
.float-wa {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brick); color: var(--paper);
  box-shadow: 0 8px 24px rgb(0 0 0 / .3);
  transition: transform .2s ease, background-color .2s ease;
}
.float-wa svg { width: 28px; height: 28px; }
.float-wa:hover { transform: scale(1.08); background: var(--brick-dark); }
.float-wa { transition: transform .2s ease, background-color .2s ease, opacity .3s ease, visibility .3s; }
.float-wa.is-hidden { opacity: 0; visibility: hidden; transform: translateY(12px); }

/* Tablet */
@media (max-width: 960px) {
  .top nav { display: none; }
  .top .btn { margin-left: auto; }
  .hero-copy { grid-template-columns: 1fr; }
  .hero-copy p { justify-self: start; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figures-title { grid-column: 1 / -1; padding: 0 0 1rem; }
  .figure-wide { grid-column: 1 / -1; }
  .booking { grid-template-columns: 1fr; }
  .drinks-grid { grid-template-columns: 1fr 1fr; }
}

/* Móvil */
@media (max-width: 640px) {
  .brand img { width: 140px; }
  .top .btn { min-height: 44px; padding: .6rem 1.1rem; font-size: .86rem; }
  .hero { min-height: 92svh; }
  .hero-copy { padding-top: 6.5rem; }
  .giant { font-size: 14.5vw; }
  .round-cta { display: none; }
  .story::after { background: linear-gradient(180deg, rgb(13 37 38 / .1) 0%, rgb(13 37 38 / .8) 38%, rgb(13 37 38 / .95) 100%); }
  .bento { grid-template-columns: 1fr; }
  /* en una columna, cada texto va antes de su foto */
  .bento > :nth-child(1) { order: 1; }
  .bento > :nth-child(2) { order: 2; }
  .bento > :nth-child(3) { order: 4; }
  .bento > :nth-child(4) { order: 3; }
  .bento > :nth-child(5) { order: 5; }
  .bento > :nth-child(6) { order: 6; }
  .bento > :nth-child(7) { order: 8; }
  .bento > :nth-child(8) { order: 7; }
  .card, .tile { min-height: 0; }
  .tile { aspect-ratio: 4 / 3; }
  .menu { grid-template-columns: 1fr; }
  .menu-col + .menu-col > h3:first-child { margin-top: 2.5rem; }
  .drinks-grid { grid-template-columns: 1fr; }
  .drinks-grid > div + div > h4:first-child { margin-top: 1.75rem; }
  .figures { grid-template-columns: 1fr; }
  .figure-wide { grid-column: auto; }
  .figure { min-height: 0; gap: 1rem; }
  .story { min-height: 34rem; }
}

/* Juego tipográfico de la marca (como en sus posts):
   frase en Arameza + palabra de enlace pequeña en Montserrat + remate en Southland */
.joint {
  font-family: var(--body); font-weight: 400; font-size: .36em; letter-spacing: .02em;
  vertical-align: .35em; margin: 0 .15em; white-space: nowrap;
}
h1 em, h2 em, .figures-title em { display: block; margin-top: -.05em; font-size: 1.75em; line-height: .9; }
.hero-copy h1 em { font-size: 1.75em; margin-top: -.08em; }

/* Sobre papel claro el remate va en ladrillo y la frase en verde azulado */
.menu-card em, .drinks-card em { color: var(--brick); }
.menu-title {
  display: flex; align-items: baseline; gap: .15em; flex-wrap: wrap;
  margin: 0 0 clamp(2rem, 4vw, 3rem); font-family: var(--title); font-size: clamp(3rem, 6vw, 4.8rem); line-height: 1; color: var(--teal);
}
.menu-title em { font-size: 1.45em; transform: translateY(.3em); margin-left: -.15em; }
.menu-title .iso { width: .6em; height: .6em; background-color: var(--teal); align-self: center; margin-right: .2em; }
.drinks-card summary .menu-title { margin: 0; font-size: clamp(2.2rem, 4vw, 3rem); }
.drinks-card summary { min-height: 96px; }

/* Foto de la terraza dentro de la tarjeta de reservas */
.booking-photo { grid-column: 1 / -1; margin: 0; min-height: clamp(16rem, 32vw, 24rem); border-radius: calc(var(--radius) - 6px); order: -1; }

/* ============================================================
   Animaciones de scroll (se activan desde main.js con .js-motion)
   Se usan translate/scale/rotate individuales para no pisar
   los transform de las etiquetas inclinadas ni el hover.
   ============================================================ */
.js-motion [data-reveal] {
  --ease: cubic-bezier(.2, .7, .2, 1);
  transition:
    opacity .9s var(--ease) var(--d, 0s),
    translate .9s var(--ease) var(--d, 0s),
    clip-path 1.2s cubic-bezier(.7, 0, .2, 1) var(--d, 0s);
}
.js-motion [data-reveal="up"] { opacity: 0; translate: 0 32px; }
.js-motion [data-reveal="mask"] { clip-path: inset(22% 0 0 0 round var(--radius)); }
.js-motion [data-reveal].is-in { opacity: 1; translate: 0 0; }
.js-motion [data-reveal="mask"].is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
.js-motion [data-reveal="mask"].is-done { clip-path: none; transition: none; }

/* Parallax: la foto es un poco más alta que su marco para que no se vean bordes */
.hero-photo { translate: 0 var(--py, 0px); inset: -6% 0 -6% 0; }
.story-photo { translate: 0 var(--py, 0px); inset: -8% 0; }
/* Solo en escritorio: capas propias en la GPU para el parallax */
html:not(.is-touch) .hero-photo, html:not(.is-touch) .story-photo { will-change: translate; }
/* En táctil no hay parallax: las fotos no necesitan margen extra */
.is-touch .hero-photo { inset: 0; translate: none; }
.is-touch .story-photo { inset: 0; translate: none; }

/* Portada al cargar */
@keyframes ve-rise { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
@keyframes ve-spin { from { opacity: 0; rotate: -120deg; scale: .4; } to { opacity: 1; rotate: 0deg; scale: 1; } }
@keyframes ve-pop { from { opacity: 0; scale: .7; } to { opacity: 1; scale: 1; } }
@keyframes ve-zoom { from { scale: 1.12; } to { scale: 1; } }

.js-motion .hero-photo { animation: ve-zoom 2.4s cubic-bezier(.2, .7, .2, 1) both; }
.js-motion .top { animation: ve-rise .9s cubic-bezier(.2, .7, .2, 1) .1s both; }
.js-motion .hero-copy h1 { animation: ve-rise 1s cubic-bezier(.2, .7, .2, 1) .3s both; }
.js-motion .hero-copy p { animation: ve-rise 1s cubic-bezier(.2, .7, .2, 1) .6s both; }
/* Etiquetas: caen como una pieza de Lego y rebotan suave al aterrizar */
@keyframes ve-drop {
  0%   { opacity: 0; translate: 0 -160px; animation-timing-function: cubic-bezier(.55, 0, .9, .45); }
  12%  { opacity: 1; }
  55%  { translate: 0 0; animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
  70%  { translate: 0 -18px; animation-timing-function: cubic-bezier(.6, 0, .8, .4); }
  82%  { translate: 0 0; animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
  91%  { translate: 0 -5px; animation-timing-function: cubic-bezier(.6, 0, .8, .4); }
  100% { opacity: 1; translate: 0 0; }
}
.js-motion .hero-chips .chip { animation: ve-drop 1.5s both; }
.js-motion .hero-chips .chip:nth-child(1) { animation-delay: 1.4s; }
.js-motion .hero-chips .chip:nth-child(2) { animation-delay: 1.75s; }
.js-motion .round-cta { animation: ve-pop .7s cubic-bezier(.3, 1.4, .5, 1) 2.1s both; }
/* El círculo gira con el scroll (main.js actualiza --spin) */
.js-motion .round-cta { rotate: var(--spin, 0deg); }
.js-motion .hero .giant { animation: ve-rise 1.2s cubic-bezier(.2, .7, .2, 1) .8s both; }
.js-motion .hero .giant .iso { animation: ve-spin 1.4s cubic-bezier(.2, .7, .2, 1) 1.1s both; }

/* El isotipo del pie gira despacio al entrar */
.js-motion .giant-foot.is-in .iso { animation: ve-spin 1.6s cubic-bezier(.2, .7, .2, 1) .3s both; }

/* La cinta se detiene al pasar el ratón */
.ticker:hover .ticker-track { animation-play-state: paused; }

/* Remates en cursiva: barrido con borde difuminado, lento y suave.
   El padding compensado deja sitio a los trazos de Southland que sobresalen,
   para que la máscara no los corte. */
.js-motion [data-reveal="write"],
.js-motion .hero-copy h1 em {
  padding: .25em .2em .35em .3em;
  margin: -.25em -.2em -.35em -.3em;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 47%, rgb(0 0 0 / .5) 50%, transparent 53%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 0%, #000 47%, rgb(0 0 0 / .5) 50%, transparent 53%, transparent 100%);
  -webkit-mask-size: 220% 100%;
          mask-size: 220% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0;
          mask-position: 100% 0;
  opacity: 0;
}
.js-motion [data-reveal="write"] {
  transition:
    -webkit-mask-position 3.2s cubic-bezier(.42, .12, .58, .92) var(--d, 0s),
    mask-position 3.2s cubic-bezier(.42, .12, .58, .92) var(--d, 0s),
    opacity .6s ease-out var(--d, 0s);
}
.js-motion [data-reveal="write"].is-in {
  -webkit-mask-position: 0 0;
          mask-position: 0 0;
  opacity: 1;
}
@keyframes ve-ink {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; opacity: 0; }
  12%  { opacity: 1; }
  to   { -webkit-mask-position: 0 0; mask-position: 0 0; opacity: 1; }
}
.js-motion .hero-copy h1 em { animation: ve-ink 3.2s cubic-bezier(.42, .12, .58, .92) .9s both; }

/* ============================================================
   Cartas desplegables (Comidas y Bebidas)
   ============================================================ */
.menu-accordion { padding-top: 0; padding-bottom: 0; }
.menu-accordion + .menu-accordion { margin-top: clamp(.75rem, 1.5vw, 1.25rem); }
.menu-accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap;
  min-height: 112px; padding: 1rem 0; cursor: pointer; list-style: none;
}
.menu-accordion summary::-webkit-details-marker { display: none; }
.menu-accordion summary .menu-title { margin: 0; font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
.menu-accordion summary:focus-visible { outline-offset: -4px; border-radius: var(--radius); }
.menu-accordion[open] { padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.menu-accordion[open] > summary { border-bottom: 1px solid rgb(9 77 79 / .15); margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }

.menu-hint {
  display: inline-flex; align-items: center; gap: .5rem; flex: none;
  min-height: 46px; padding: .6rem 1.1rem .6rem 1.35rem; border-radius: 999px;
  background: var(--brick); color: var(--paper);
  font-family: var(--body); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  transition: background-color .25s ease;
}
.menu-accordion summary:hover .menu-hint { background: var(--brick-dark); }
.menu-hint svg { width: 20px; height: 20px; color: currentColor; transition: rotate .4s ease; }
.menu-accordion[open] .menu-hint { background: var(--teal); }
.menu-accordion[open] .menu-hint svg { rotate: 180deg; }
.menu-hint .hint-close { display: none; }
.menu-accordion[open] .menu-hint .hint-open { display: none; }
.menu-accordion[open] .menu-hint .hint-close { display: inline; }

/* Aviso al llegar a la sección: halo que respira y flecha que invita a abrir */
.menu-accordion.is-calling:not([open]) { box-shadow: 0 0 0 3px rgb(255 205 169 / .6); }
@media (prefers-reduced-motion: no-preference) {
  @keyframes ve-call {
    0%, 100% { box-shadow: 0 0 0 0 rgb(255 205 169 / .0), 0 12px 32px rgb(0 0 0 / .18); }
    50%      { box-shadow: 0 0 0 8px rgb(255 205 169 / .45), 0 0 46px 10px rgb(221 119 49 / .35); }
  }
  @keyframes ve-nudge {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 5px; }
  }
  @keyframes ve-hint {
    0%, 100% { scale: 1; }
    50%      { scale: 1.06; }
  }
  .menu-accordion.is-calling:not([open]) { animation: ve-call 2.4s ease-in-out infinite; }
  .menu-accordion.is-calling:not([open]) + .menu-accordion.is-calling:not([open]) { animation-delay: .5s; }
  .menu-accordion.is-calling:not([open]) .menu-hint { animation: ve-hint 2.4s ease-in-out infinite; }
  .menu-accordion.is-calling:not([open]) .menu-hint svg { animation: ve-nudge 1.2s ease-in-out infinite; }
}

@media (max-width: 640px) {
  .menu-accordion summary { min-height: 96px; }
  .menu-hint { font-size: .72rem; min-height: 44px; }
}
.menu-accordion summary .menu-title em { margin-left: .12em; }

/* Crédito de la agencia */
.foot-credit {
  margin: 0; padding: .9rem var(--gutter) 1.4rem; border-top: 1px solid rgb(255 205 169 / .12);
  font-size: .72rem; letter-spacing: .06em; text-align: center; color: rgb(251 243 234 / .55);
}
.foot-credit a { color: inherit; text-decoration: none; font-weight: 600; }
.foot-credit a:hover { color: var(--peach); }

/* ============================================================
   Móvil y táctil: menos trabajo de pintado al hacer scroll
   ============================================================ */
@media (hover: none), (pointer: coarse), (max-width: 900px) {
  /* El desenfoque sobre fotos en movimiento hace parpadear Safari: barra opaca */
  .top.is-scrolled {
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background: rgb(13 37 38 / .94);
  }
  .top { transition: background-color .35s ease, padding .35s ease, border-color .35s ease; }
  /* Sin zoom al "pasar el ratón" en pantallas táctiles */
  .story:hover .story-photo { transform: none; }
  .story-photo { transition: none; }
  /* Las fotos entran con un fundido simple en vez de máscara */
  .js-motion [data-reveal="mask"] { clip-path: none; opacity: 0; transition: opacity .8s ease var(--d, 0s); }
  .js-motion [data-reveal="mask"].is-in { clip-path: none; opacity: 1; }
  /* El zoom inicial de la portada no hace falta en el teléfono */
  .js-motion .hero-photo { animation: none; }
}
