.hero {
  min-height: 660px;
  background: #071725;
}

.hero::after {
  z-index: 1;
  height: 130px;
  background: linear-gradient(transparent, rgba(2, 12, 20, 0.72));
}

.hero-slider,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slider {
  z-index: 0;
}

.hero-slide {
  opacity: 0;
  transform: scale(1);
  background-repeat: no-repeat;
  background-size: cover;
  transition: opacity 0.85s ease;
  will-change: opacity, transform;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 20, 37, 0.5) 0%, rgba(3, 20, 37, 0.08) 34%, rgba(3, 17, 29, 0.05) 62%, rgba(3, 14, 25, 0.58) 100%);
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide-island {
  background-image: url("assets/visuals/hero-tizayuca-isla-v4-centered.png");
  background-position: center -72px;
}

.hero-slide-chef {
  background-image: url("assets/restaurant.webp");
  background-position: center 48%;
}

.hero-slide-chef::after {
  background:
    linear-gradient(90deg, rgba(3, 17, 29, 0.84) 0%, rgba(3, 17, 29, 0.6) 38%, rgba(3, 17, 29, 0.14) 70%),
    linear-gradient(180deg, rgba(3, 20, 37, 0.42), transparent 48%, rgba(3, 14, 25, 0.7));
}

.hero-slide.motion-in {
  animation: hero-zoom-in 5.6s ease-out both;
}

.hero-slide.motion-out {
  animation: hero-zoom-out 5.6s ease-out both;
}

@keyframes hero-zoom-in {
  from { transform: scale(1); }
  to { transform: scale(1.055); }
}

@keyframes hero-zoom-out {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

.nav {
  height: 84px;
}

.hero-content {
  padding: 25px 0 0;
}

.hero-copy {
  width: min(920px, 92%);
  margin: 0 auto;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hero-copy.is-changing {
  opacity: 0;
  transform: translateY(8px);
}

.hero-copy .eyebrow {
  margin: 0 0 10px;
  font-size: 10px;
  letter-spacing: 3.2px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.48);
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(38px, 3.5vw, 54px);
  line-height: 1.01;
  letter-spacing: -2.2px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.hero-copy > p:last-child {
  font-size: 16px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.62);
}

.city-sign {
  display: none;
}

.hero.is-chef .hero-content {
  text-align: left;
  padding-top: 95px;
}

.hero.is-chef .hero-copy {
  width: min(650px, 52%);
  margin-left: 0;
  margin-right: auto;
}

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 55%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(4, 21, 36, 0.38);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
}

.hero-arrow:hover {
  border-color: var(--green2);
  background: rgba(4, 21, 36, 0.7);
  color: var(--green2);
}

.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }

.hero-leds {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 66px;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.hero-led {
  width: 36px;
  height: 7px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 10px;
  background: rgba(3, 17, 29, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.hero-led span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--green2);
}

.hero-led.is-active span {
  animation: hero-led-progress 5s linear both;
}

@keyframes hero-led-progress {
  from { width: 0; }
  to { width: 100%; }
}

.discovery-dock {
  position: relative;
  z-index: 6;
  margin-top: -44px;
  padding-bottom: 18px;
  background: linear-gradient(180deg, transparent 0 44px, var(--paper) 44px 100%);
}

.discovery-dock-inner {
  display: grid;
  gap: 20px;
}

.discovery-dock .search {
  width: min(900px, calc(100% - 40px));
  height: 72px;
  margin: 0 auto;
  padding: 7px 8px 7px 25px;
  border: 1px solid rgba(207, 218, 226, 0.75);
  box-shadow: 0 18px 46px rgba(13, 37, 57, 0.18), 0 0 0 6px rgba(255, 255, 255, 0.14);
}

.discovery-dock .search-icon {
  font-size: 28px;
}

.discovery-dock .search input {
  font-size: 17px;
  font-weight: 500;
}

.discovery-dock .search button {
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 50%;
  font-size: 25px;
  line-height: 1;
}

.discovery-dock .categories {
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 0 12px;
}

.discovery-dock .category-pill {
  min-width: 92px;
  color: #102338;
  font-size: 12px;
  gap: 7px;
}

.discovery-dock .category-pill span {
  width: 88px;
  height: 88px;
  filter: drop-shadow(0 10px 12px rgba(22, 42, 60, 0.16));
}

.discovery-dock .category-pill span img {
  width: 112%;
  height: 112%;
  filter: drop-shadow(0 7px 7px rgba(25, 42, 55, 0.2));
}

.content {
  padding-top: 12px;
}

@media (max-width: 1050px) {
  .hero {
    min-height: 610px;
  }

  .hero-slide-island { background-position: center -54px; }

  .discovery-dock .categories {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 2px 8px 12px;
    scrollbar-width: none;
  }

  .discovery-dock .categories::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 520px;
  }

  .hero-slide-island { background-position: center top; }
  .hero-slide-chef { background-position: 67% center; }

  .nav {
    height: 72px;
  }

  .hero-content {
    padding-top: 34px;
    width: min(calc(100% - 28px), 1460px);
  }

  .hero-copy {
    width: 100%;
  }

  .hero-copy .eyebrow {
    font-size: 8px;
    letter-spacing: 2.3px;
  }

  .hero-copy h1 {
    font-size: clamp(27px, 8vw, 34px);
    line-height: 1;
    letter-spacing: -1px;
  }

  .hero-copy > p:last-child {
    max-width: 330px;
    margin: 0 auto;
    font-size: 13px;
  }

  .hero.is-chef .hero-content {
    padding-top: 58px;
    text-align: left;
  }

  .hero.is-chef .hero-copy {
    width: min(300px, 82%);
    margin-left: 0;
  }

  .hero-arrow {
    top: 61%;
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .hero-arrow-prev { left: 9px; }
  .hero-arrow-next { right: 9px; }

  .hero-leds {
    bottom: 48px;
  }

  .hero-led {
    width: 28px;
  }

  .discovery-dock {
    margin-top: -32px;
    background: linear-gradient(180deg, transparent 0 32px, var(--paper) 32px 100%);
  }

  .discovery-dock-inner {
    width: min(calc(100% - 20px), 1460px);
    gap: 16px;
  }

  .discovery-dock .search {
    display: flex;
    grid-template-columns: none;
    width: 100%;
    height: 64px;
    padding: 7px 7px 7px 18px;
  }

  .discovery-dock .search input {
    width: 0;
    font-size: 14px;
    padding: 0 9px;
  }

  .discovery-dock .search button {
    grid-column: auto;
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
  }

  .discovery-dock .categories {
    gap: 12px;
  }

  .discovery-dock .category-pill {
    min-width: 82px;
  }

  .discovery-dock .category-pill span {
    width: 72px;
    height: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.motion-in,
  .hero-slide.motion-out,
  .hero-led.is-active span {
    animation: none;
  }
}
