@font-face {
  font-family: "Bystander Serif";
  src: url("./assets/fonts/BystanderSerif-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bystander Serif";
  src: url("./assets/fonts/BystanderSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bystander Serif";
  src: url("./assets/fonts/BystanderSerif-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bystander Serif";
  src: url("./assets/fonts/BystanderSerif-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bystander Serif";
  src: url("./assets/fonts/BystanderSerif-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #fff7e8;
  --red: #eb3427;
  --red-dark: #651814;
  --yellow: #ffc84a;
  color: var(--red-dark);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  margin: 0;
  background: #f66a31;
}

body {
  overflow-x: hidden;
}

@media (hover: hover) and (pointer: fine) {
  html,
  body,
  body * {
    cursor: url("./assets/cursor-baston-clasico.png") 16 7, auto !important;
  }

  input,
  textarea,
  [contenteditable="true"] {
    cursor: text !important;
  }

  [disabled],
  [aria-disabled="true"] {
    cursor: not-allowed !important;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  isolation: isolate;
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: url("./assets/optimized/mockup-background-1280.webp") center center / cover no-repeat;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: clamp(20px, 3.1vh, 42px);
  left: 3.35vw;
  right: 3.35vw;
  display: grid;
  grid-template-columns: 31.5% 48% 20.5%;
  align-items: start;
}

.brand {
  display: block;
  width: clamp(255px, 25.5vw, 410px);
  transition: transform 180ms ease;
}

.brand:hover {
  transform: translateY(-2px);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.menu-toggle {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(34px, 4.15vw, 68px);
  margin-top: clamp(18px, 2.6vh, 34px);
  color: var(--red-dark);
  font-size: clamp(0.76rem, 1vw, 1.04rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 7px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  transition: right 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  right: 0;
}

.hero__copy {
  position: absolute;
  z-index: 15;
  top: 25.4%;
  left: 5.15%;
  width: 47%;
  max-width: 760px;
}

h1 {
  width: 100%;
  margin: 0;
  color: var(--red);
  font-family: "Bystander Serif", Cambria, Georgia, serif;
  font-size: clamp(5.2rem, 8.35vw, 8.45rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.9;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 2px 0 rgba(182, 39, 27, 0.05);
}

.hero__lead {
  margin: clamp(22px, 2.5vh, 32px) 0 0;
  color: var(--red-dark);
  font-size: clamp(1.7rem, 2.55vw, 2.55rem);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.35vw, 22px);
  margin-top: clamp(46px, 4.7vh, 56px);
}

.button {
  position: relative;
  display: inline-flex;
  height: clamp(58px, 7.2vh, 78px);
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: clamp(0.9rem, 1.5vw, 1.42rem);
  font-weight: 950;
  letter-spacing: -0.025em;
  line-height: 1;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button--primary {
  width: clamp(235px, 20.5vw, 330px);
  gap: clamp(14px, 2vw, 28px);
  background: linear-gradient(130deg, #f04430, #ed2d25);
  color: white;
  box-shadow: 0 16px 28px rgba(219, 50, 35, 0.16);
}

.button--primary:hover {
  box-shadow: 0 20px 34px rgba(219, 50, 35, 0.24);
}

.button__arrow {
  font-family: Arial, sans-serif;
  font-size: 1.55em;
  font-weight: 400;
  line-height: 0;
}

.button--game {
  width: clamp(260px, 22.5vw, 360px);
  gap: clamp(11px, 1.1vw, 18px);
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 250, 240, 0.8);
  color: var(--red);
  box-shadow: 0 15px 28px rgba(124, 49, 25, 0.08);
  backdrop-filter: blur(8px);
}

.button--game:hover {
  box-shadow: 0 20px 34px rgba(124, 49, 25, 0.14);
}

.button--game img {
  display: block;
  width: clamp(35px, 3.05vw, 47px);
  height: auto;
  filter: drop-shadow(0 5px 8px rgba(115, 24, 18, 0.15));
}

.button__badge {
  position: absolute;
  top: clamp(-26px, -2.2vh, -17px);
  left: 50%;
  min-width: clamp(132px, 10.3vw, 164px);
  padding: clamp(7px, 0.85vh, 10px) 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd35c, #ffba37);
  color: var(--red-dark);
  font-size: clamp(0.66rem, 0.88vw, 0.85rem);
  letter-spacing: 0.025em;
  text-align: center;
  transform: translateX(-50%);
}

.hero__visual {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
}

.mascot {
  position: absolute;
  z-index: 8;
  top: 7%;
  right: 5.5%;
  display: block;
  width: auto;
  height: 88%;
  filter: drop-shadow(0 26px 19px rgba(104, 35, 19, 0.2));
}

.decor {
  position: absolute;
  z-index: 10;
  display: block;
  width: auto;
  height: auto;
  filter: drop-shadow(0 12px 11px rgba(103, 35, 17, 0.12));
}

.decor--splash {
  top: 39.5%;
  left: 44.3%;
  width: clamp(58px, 5.4vw, 88px);
  transform: rotate(-4deg);
}

.decor--pineapple {
  width: clamp(54px, 6.1vw, 95px);
}

.decor--pineapple-1 {
  top: 11.8%;
  right: 5.4%;
  transform: rotate(13deg);
}

.decor--pineapple-2 {
  top: 34.2%;
  left: 49%;
  transform: rotate(-32deg) scale(0.92);
}

.decor--pineapple-3 {
  top: 66.2%;
  left: 50.4%;
  transform: rotate(21deg) scale(0.9);
}

.decor--pineapple-4 {
  top: 43.2%;
  right: 12.6%;
  transform: rotate(-13deg) scale(0.58);
}

.decor--cilantro {
  width: clamp(44px, 4.5vw, 72px);
}

.decor--cilantro-1 {
  z-index: 7;
  top: 21.2%;
  right: 11.2%;
  transform: rotate(22deg);
}

.decor--cilantro-2 {
  top: 63.4%;
  right: 3.6%;
  transform: rotate(-18deg) scale(1.08);
}

.foreground {
  position: absolute;
  z-index: 12;
  left: -5%;
  bottom: -18%;
  width: 30%;
  height: 35%;
  filter: blur(8px);
  opacity: 0.94;
}

.foreground img {
  position: absolute;
  display: block;
  height: auto;
}

.foreground__pineapple {
  left: -2%;
  bottom: 4%;
  width: 61%;
  transform: rotate(-35deg);
}

.foreground__cilantro {
  left: 47%;
  bottom: 3%;
  width: 48%;
  transform: rotate(16deg);
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 34% 66%;
  }

  .site-nav {
    gap: clamp(24px, 3.4vw, 42px);
    font-size: 0.75rem;
  }

  .hero__copy {
    width: 50%;
  }

  h1 {
    font-size: clamp(4.6rem, 8vw, 6rem);
  }
}

@media (min-width: 761px) and (max-height: 700px) {
  .hero__copy {
    top: 25.2%;
  }

  h1 {
    font-size: clamp(4.7rem, 7.6vw, 6.2rem);
  }

  .hero__lead {
    margin-top: 17px;
  }

  .hero__actions {
    margin-top: 33px;
  }

  .mascot {
    top: 7%;
    height: 88%;
  }
}

@media (max-width: 760px) {
  .hero {
    height: 100svh;
    height: 100dvh;
    min-height: 680px;
    background-position: 65% center;
  }

  .hero::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 249, 235, 0.99) 0 47%, rgba(255, 249, 235, 0.72) 56%, transparent 70%);
  }

  .site-header {
    top: 16px;
    left: 20px;
    right: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
  }

  .brand {
    width: min(68vw, 270px);
  }

  .menu-toggle {
    display: grid;
    width: 48px;
    height: 48px;
    place-content: center;
    gap: 5px;
    border: 1px solid rgba(101, 24, 20, 0.14);
    border-radius: 50%;
    background: rgba(255, 250, 240, 0.84);
    box-shadow: 0 10px 22px rgba(101, 24, 20, 0.09);
    backdrop-filter: blur(10px);
  }

  .menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--red-dark);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 58px;
    right: 0;
    width: min(250px, calc(100vw - 40px));
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 10px;
    border: 1px solid rgba(101, 24, 20, 0.12);
    border-radius: 20px;
    background: rgba(255, 250, 240, 0.96);
    box-shadow: 0 18px 38px rgba(101, 24, 20, 0.14);
    backdrop-filter: blur(14px);
  }

  .site-nav.is-open {
    display: flex;
    flex-direction: column;
  }

  .site-nav a {
    padding: 13px 14px;
    border-radius: 12px;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(235, 52, 39, 0.08);
  }

  .site-nav a::after {
    display: none;
  }

  .hero__copy {
    top: clamp(126px, 16vh, 142px);
    left: 20px;
    right: 20px;
    width: auto;
  }

  h1 {
    width: 100%;
    font-size: clamp(3.25rem, 14.8vw, 4.3rem);
    letter-spacing: -0.03em;
    line-height: 0.86;
    white-space: normal;
  }

  .hero__lead {
    margin-top: 18px;
    font-size: clamp(1.08rem, 5.1vw, 1.35rem);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 28px;
  }

  .button {
    height: 56px;
    font-size: 0.76rem;
  }

  .button--primary,
  .button--game {
    width: 100%;
    flex: 0 0 auto;
  }

  .button--game img {
    width: 30px;
  }

  .button__badge {
    top: -18px;
    min-width: 112px;
    padding: 6px 12px;
    font-size: 0.56rem;
  }

  .mascot {
    top: auto;
    right: 0;
    bottom: 0;
    height: 45%;
  }

  .decor--splash {
    top: 55%;
    left: 7%;
  }

  .decor--pineapple-1 {
    top: 55%;
    right: 4%;
  }

  .decor--pineapple-2 {
    top: 67%;
    left: 4%;
  }

  .decor--pineapple-3 {
    top: 81%;
    left: 10%;
  }

  .decor--pineapple-4,
  .decor--cilantro-2 {
    display: none;
  }

  .decor--cilantro-1 {
    top: 60%;
    right: 8%;
  }

  .foreground {
    left: -18%;
    bottom: -10%;
    width: 62%;
    height: 25%;
  }
}

@media (min-width: 520px) and (max-width: 760px) {
  .hero__actions {
    flex-direction: row;
  }

  .button--primary,
  .button--game {
    flex: 1 1 0;
  }

  .mascot {
    right: 2%;
    height: 49%;
  }
}

@media (min-width: 600px) and (max-width: 960px) and (max-height: 560px) {
  .hero {
    min-height: 0;
  }

  .site-header {
    top: 12px;
  }

  .brand {
    width: 205px;
  }

  .hero__copy {
    top: 24%;
    width: 55%;
  }

  h1 {
    font-size: clamp(3rem, 7.4vw, 4rem);
  }

  .hero__lead {
    margin-top: 10px;
    font-size: 1.05rem;
  }

  .hero__actions {
    flex-direction: row;
    margin-top: 24px;
  }

  .button {
    height: 50px;
  }

  .mascot {
    top: 3%;
    right: 2%;
    bottom: auto;
    height: 94%;
  }

  .decor--pineapple-2,
  .decor--pineapple-3,
  .decor--cilantro-1,
  .decor--splash,
  .foreground {
    display: none;
  }
}

/* Motion uses translate independently of each ingredient's authored rotation. */
.hero { --px: 0px; --py: 0px; }
.hero__visual { translate: var(--px) var(--py); transition: translate 450ms ease-out; }
.hero__copy { animation: arrive 800ms both; }
.hero__lead { animation: arrive 850ms 100ms both; }
.hero__actions { animation: arrive 850ms 180ms both; }
.mascot { animation: arrive 950ms 120ms both; }
.decor { animation: drift 6s ease-in-out infinite alternate; }
.decor:nth-child(2n) { animation-duration: 7.5s; animation-delay: -2s; }
.decor:nth-child(3n) { animation-duration: 9s; animation-delay: -4s; }
.button--game img { transition: transform 250ms ease; }
.button--game:hover img { transform: rotate(-12deg) scale(1.12); }
.button:active { transform: translateY(1px) scale(.97); }
:is(a, button):focus-visible { outline: 3px solid var(--red-dark); outline-offset: 5px; }
.hero.is-paused .decor { animation-play-state: paused; }
@keyframes arrive { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes drift { from { translate: 0 0; } to { translate: 0 -9px; } }

/* Portrait layout reserves actual space for artwork, including tablets. */
@media (max-width: 1100px) and (orientation: portrait) {
  .hero { height: auto; min-height: 100svh; display: flex; flex-direction: column; background-position: 65% bottom; }
  .site-header { position: relative; top: auto; left: auto; right: auto; margin: 18px 20px 0; }
  .hero__copy { position: relative; inset: auto; margin: 30px 20px 0; width: auto; max-width: none; }
  .hero__visual { position: relative; inset: auto; flex: 1 0 auto; min-height: 380px; height: min(58svh, 680px); margin-top: 20px; }
  .mascot { top: auto; bottom: 12px; right: 4%; height: calc(100% - 24px); max-width: 92%; object-fit: contain; object-position: bottom; }
  .decor--splash { top: 12%; left: 7%; }
  .decor--pineapple-1 { top: 5%; right: 3%; }
  .decor--pineapple-2 { top: 43%; left: 3%; }
  .decor--pineapple-3 { top: 72%; left: 8%; }
  .decor--cilantro-1 { top: 27%; right: 4%; }
  .foreground { bottom: -14%; }
}
@media (min-width: 761px) and (max-width: 1100px) and (orientation: portrait) {
  .site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 24px 5%; }
  .brand { width: 300px; }
  .site-nav { gap: 24px; margin: 0; }
  .hero__copy { margin: 24px 6% 0; }
  h1 { font-size: clamp(80px, 11vw, 112px); }
  .hero__actions { margin-top: 30px; }
  .hero__visual { height: 58svh; }
  .mascot { right: 12%; }
}
@media (max-width: 519px) and (orientation: portrait) {
  .hero__visual { height: 112vw; min-height: 350px; }
  .hero__copy { margin-top: 28px; }
  .hero__actions { margin-top: 26px; gap: 20px; }
  .brand { max-width: 100%; }
}
@media (hover: none) {
  .button:hover { transform: none; }
  @keyframes drift { from { translate: 0 0; } to { translate: 0 -5px; } }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation: none !important;
    translate: none !important;
  }
}

@media(max-width:600px){.hero{background:url('./assets/optimized/mockup-background-640.webp') center center / cover no-repeat}}
