:root {
  --ink: #fff6df;
  --charcoal: #130b08;
  --gold: #f9b21d;
  --deep-gold: #c77619;
  --red: #b72b21;
  --blue: #177d96;
  --green: #25d366;
  --green-dark: #087d45;
  --mx: 52%;
  --my: 32%;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--charcoal);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--charcoal);
}

a {
  color: inherit;
}

.landing {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--charcoal);
}

.landing::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(rgba(255, 223, 143, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 223, 143, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.8;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.sun-trace {
  position: absolute;
  inset: -22%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      circle at var(--mx) var(--my),
      rgba(255, 220, 90, 0.62),
      rgba(249, 178, 29, 0.28) 12%,
      transparent 34%
    ),
    repeating-conic-gradient(
      from 9deg at var(--mx) var(--my),
      rgba(249, 178, 29, 0.16) 0deg 4deg,
      transparent 4deg 12deg
    );
  filter: blur(9px);
  mix-blend-mode: screen;
  opacity: 0.72;
  animation: breathe 8s ease-in-out infinite;
}

.andean-frame {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.andean-frame::before,
.andean-frame::after {
  position: absolute;
  right: 0;
  left: 0;
  height: 18px;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.28)),
    repeating-linear-gradient(
      90deg,
      var(--red) 0 18px,
      var(--gold) 18px 34px,
      var(--blue) 34px 50px,
      var(--deep-gold) 50px 66px,
      var(--red) 66px 84px,
      transparent 84px 92px
    );
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.38);
}

.andean-frame::before {
  top: 0;
}

.andean-frame::after {
  bottom: 0;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: clamp(56px, 8svh, 86px) 18px clamp(92px, 11svh, 112px);
  place-items: center;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background-image: url("assets/slider-inti.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  filter: saturate(1.12) contrast(1.05);
  transition: transform 900ms ease;
}

.landing:hover .hero::before {
  transform: scale(1.075);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 51% 20%, rgba(255, 197, 49, 0.28), transparent 27%),
    linear-gradient(90deg, rgba(8, 4, 3, 0.9), rgba(8, 4, 3, 0.28) 28%, rgba(8, 4, 3, 0.2) 53%, rgba(8, 4, 3, 0.72)),
    linear-gradient(180deg, rgba(10, 6, 4, 0.38), rgba(10, 6, 4, 0.38) 39%, rgba(10, 6, 4, 0.86));
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100%, 980px);
  justify-items: center;
  padding: clamp(20px, 4vw, 42px) 0;
  text-align: center;
}

.hero-copy::before {
  position: absolute;
  inset: -24px max(0px, calc((100% - 760px) / 2));
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 199, 54, 0.18), transparent 44%),
    linear-gradient(180deg, rgba(14, 7, 4, 0.28), rgba(14, 7, 4, 0.64));
  border-top: 1px solid rgba(249, 178, 29, 0.34);
  border-bottom: 1px solid rgba(249, 178, 29, 0.22);
  box-shadow: 0 28px 86px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(2px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: clamp(0.78rem, 1.8vw, 1rem);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

h1 {
  max-width: 900px;
  margin: 0;
  color: #fff8e8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 6.9vw, 6.35rem);
  line-height: 0.95;
  font-weight: 700;
  text-shadow:
    0 5px 24px rgba(0, 0, 0, 0.72),
    0 1px 0 rgba(78, 36, 13, 0.8);
  text-wrap: balance;
}

.supporting-copy {
  max-width: 760px;
  margin: clamp(18px, 2.4vw, 28px) 0 0;
  color: rgba(255, 246, 223, 0.92);
  font-size: clamp(1.03rem, 1.9vw, 1.42rem);
  line-height: 1.48;
  font-weight: 700;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.72);
  text-wrap: balance;
}

.whatsapp-button {
  position: relative;
  display: inline-grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: min(100%, 520px);
  min-height: 82px;
  margin-top: clamp(30px, 4vw, 46px);
  padding: 18px 30px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 30%),
    linear-gradient(135deg, #36ec78, var(--green), var(--green-dark));
  box-shadow:
    0 0 0 8px rgba(37, 211, 102, 0.1),
    0 24px 68px rgba(0, 0, 0, 0.44),
    0 22px 72px rgba(37, 211, 102, 0.52),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  font-size: clamp(1rem, 2vw, 1.23rem);
  font-weight: 900;
  text-decoration: none;
  text-align: left;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.28);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease;
}

.whatsapp-button::before {
  position: absolute;
  inset: -90% auto -90% -40%;
  width: 36%;
  content: "";
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.72),
    transparent
  );
  transform: rotate(18deg);
  animation: sheen 3.4s ease-in-out infinite;
}

.whatsapp-button::after {
  position: absolute;
  inset: 8px;
  z-index: -1;
  content: "";
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--red), var(--blue), var(--gold));
  filter: blur(22px);
  opacity: 0.56;
}

.whatsapp-button:hover,
.whatsapp-button:focus-visible {
  transform: translateY(-4px) scale(1.015);
  filter: saturate(1.12);
  box-shadow:
    0 0 0 10px rgba(37, 211, 102, 0.13),
    0 30px 82px rgba(0, 0, 0, 0.48),
    0 25px 86px rgba(37, 211, 102, 0.64),
    inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.whatsapp-button:focus-visible {
  outline: 4px solid rgba(249, 178, 29, 0.72);
  outline-offset: 6px;
}

.whatsapp-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.whatsapp-icon svg {
  display: block;
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.whatsapp-button.is-pressed {
  transform: translateY(0) scale(0.99);
}

.site-footer {
  position: absolute;
  right: 18px;
  bottom: 32px;
  left: 18px;
  z-index: 5;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.site-footer a {
  pointer-events: auto;
  padding: 9px 16px;
  border: 1px solid rgba(249, 178, 29, 0.32);
  border-radius: 999px;
  color: rgba(255, 246, 223, 0.9);
  background: rgba(12, 7, 5, 0.42);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.28);
  font-size: clamp(0.82rem, 1.4vw, 0.96rem);
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(3px);
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff8e8;
  border-color: rgba(249, 178, 29, 0.7);
  transform: translateY(-2px);
}

.site-footer a:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.55);
  outline-offset: 4px;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(1);
  }

  50% {
    opacity: 0.86;
    transform: scale(1.03);
  }
}

@keyframes sheen {
  0%,
  45% {
    transform: translateX(0) rotate(18deg);
  }

  70%,
  100% {
    transform: translateX(500%) rotate(18deg);
  }
}

@media (max-width: 760px) {
  .landing::before {
    background-size: 28px 28px;
  }

  .sun-trace {
    inset: -26%;
  }

  .andean-frame::before,
  .andean-frame::after {
    height: 14px;
  }

  .hero {
    min-height: 100svh;
    padding: 48px 14px 82px;
  }

  .hero::before {
    background-position: 47% center;
    transform: scale(1.08);
  }

  .hero::after {
    background:
      radial-gradient(circle at 50% 16%, rgba(255, 197, 49, 0.24), transparent 28%),
      linear-gradient(90deg, rgba(8, 4, 3, 0.7), rgba(8, 4, 3, 0.18) 45%, rgba(8, 4, 3, 0.55)),
      linear-gradient(180deg, rgba(10, 6, 4, 0.28), rgba(10, 6, 4, 0.42) 30%, rgba(10, 6, 4, 0.9));
  }

  .hero-copy {
    width: min(100%, 560px);
    padding: 16px 0;
    align-self: end;
  }

  .hero-copy::before {
    inset: -18px -8px;
  }

  .eyebrow {
    margin-bottom: 10px;
  }

  h1 {
    font-size: clamp(2.35rem, 12.5vw, 4.35rem);
  }

  .supporting-copy {
    max-width: 96%;
    font-size: clamp(1rem, 4.2vw, 1.12rem);
    line-height: 1.42;
  }

  .whatsapp-button {
    grid-template-columns: 38px minmax(0, 1fr);
    width: min(100%, 374px);
    min-height: 74px;
    margin-top: 26px;
    padding: 15px 20px;
    font-size: clamp(0.94rem, 3.8vw, 1.05rem);
  }

  .whatsapp-icon {
    width: 38px;
    height: 38px;
  }

  .whatsapp-icon svg {
    width: 29px;
    height: 29px;
  }

  .site-footer {
    bottom: 24px;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: clamp(2.1rem, 11.4vw, 3.5rem);
  }

  .whatsapp-button {
    gap: 10px;
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
