.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  padding: 72px 0 56px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.82) 0%, rgba(10, 10, 10, 0.55) 45%, rgba(10, 10, 10, 0.82) 100%),
    var(--hero-image) center/cover no-repeat;
  opacity: 0.9;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: end;
}

.hero__copy,
.hero__card {
  padding: 32px;
  border-radius: 32px;
  border: 1px solid rgba(231, 216, 195, 0.12);
  background: rgba(18, 18, 18, 0.58);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  margin: 20px 0 16px;
}

.hero__logo--na {
  width: min(180px, 34vw);
}

.hero__logo--chile {
  width: min(260px, 48vw);
}

.hero__copy h1 {
  max-width: 18ch;
  margin-bottom: 18px;
  color: var(--accent);
  text-shadow: 0 0 24px rgba(198, 60, 60, 0.28);
  line-height: 1.08;
  min-height: 2.3em;
}

.hero__lead {
  max-width: 62ch;
  color: var(--text);
  text-shadow: none;
  line-height: 1.7;
}

.typewriter-target {
  position: relative;
  display: grid;
  align-items: start;
}

.typewriter-target__ghost,
.typewriter-target__text {
  grid-area: 1 / 1;
}

.typewriter-target__ghost {
  visibility: hidden;
  pointer-events: none;
}

.typewriter-target__text {
  min-width: 1ch;
}

.typewriter-target.is-typing .typewriter-target__text::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.95em;
  margin-left: 0.12em;
  vertical-align: -0.08em;
  background: currentColor;
  box-shadow: 0 0 12px rgba(198, 60, 60, 0.55);
  animation: typewriter-caret 0.9s steps(1) infinite;
}

.typewriter-target.is-complete .typewriter-target__text::after {
  opacity: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
  justify-content: center;
}

.hero__button {
  position: relative;
}

.hero__button--menu {
  box-shadow:
    0 12px 28px rgba(198, 60, 60, 0.34),
    0 0 0 1px rgba(198, 60, 60, 0.24),
    0 0 34px rgba(198, 60, 60, 0.38);
}

.hero__button--menu:hover,
.hero__button--menu:focus-visible {
  box-shadow:
    0 16px 34px rgba(198, 60, 60, 0.4),
    0 0 0 1px rgba(212, 72, 72, 0.3),
    0 0 42px rgba(198, 60, 60, 0.46);
}

.hero__button--booking {
  background: #0B735E;
  color: #fff;
  border-color: rgba(11, 115, 94, 0.62);
  box-shadow:
    0 12px 28px rgba(11, 115, 94, 0.24),
    0 0 0 1px rgba(11, 115, 94, 0.28),
    0 0 30px rgba(11, 115, 94, 0.26);
}

.hero__button--booking:hover,
.hero__button--booking:focus-visible {
  background: #14957b;
  border-color: rgba(11, 115, 94, 0.78);
  box-shadow:
    0 16px 34px rgba(11, 115, 94, 0.24),
    0 0 0 1px rgba(11, 115, 94, 0.34),
    0 0 38px rgba(11, 115, 94, 0.34);
}

.hero__card {
  gap: 18px;
  display: grid;
  justify-items: start;
}

.hero__mark {
  width: 118px;
}

.hero__card p,
.hero__card li {
  color: var(--muted);
  line-height: 1.7;
}

.hero__card ul {
  margin: 0;
  padding-left: 20px;
}

.showcase,
.features,
.contacts {
  padding: 84px 0;
}

.showcase__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.showcase__item {
  grid-column: span 6;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: var(--panel);
}

.showcase__item--tall {
  grid-column: span 6;
}

.showcase__item img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.showcase__item:hover img {
  transform: scale(1.04);
}

.features {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0));
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(231, 216, 195, 0.08);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(36, 36, 36, 0.92), rgba(21, 21, 21, 0.92));
}

.feature-card__icon {
  width: 52px;
  height: 52px;
}

.feature-card h3,
.contacts__copy h2,
.contacts__panel h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.feature-card p,
.contacts__copy p,
.contacts__panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.contacts__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 20px;
}

.contacts__copy,
.contacts__panel {
  padding: 28px;
  border: 1px solid rgba(231, 216, 195, 0.08);
  border-radius: 28px;
  background: rgba(24, 24, 24, 0.86);
}

.contacts__copy {
  display: grid;
  gap: 16px;
}

.contacts__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.contacts__panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.contacts__panel a {
  color: var(--green);
}

@keyframes typewriter-caret {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 960px) {
  .hero__inner,
  .contacts__inner,
  .features__grid {
    grid-template-columns: 1fr;
  }

  .showcase__item,
  .showcase__item--tall {
    grid-column: span 12;
  }
}

@media (max-width: 640px) {
  .hero,
  .showcase,
  .features,
  .contacts {
    padding: 64px 0;
  }

  .hero__copy,
  .hero__card,
  .feature-card,
  .contacts__copy,
  .contacts__panel {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .typewriter-target.is-typing::after {
    animation: none;
  }
}
