@font-face {
  font-family: "Red Hat Display";
  src: url("../fonts/RedHatDisplay-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Red Hat Display";
  src: url("../fonts/RedHatDisplay-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Red Hat Display";
  src: url("../fonts/RedHatDisplay-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --avianca-red: #e30613;
  --text: #fff;
  --card-max: 580px;
  --side-space: clamp(32px, 10vw, 62px);
}

* {
  box-sizing: border-box;
}

html {
  background: #1d1b1c;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "Red Hat Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
}

.experience-card {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  width: min(100%, var(--card-max));
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background:
    url("../Fondo-d58b651b-dd42-4e3e-a4b1-c8ac3caac946.png") center / cover no-repeat,
    linear-gradient(135deg, #ff0913 0%, #e80050 58%, #c900a3 100%);
  padding:
    max(28px, env(safe-area-inset-top))
    var(--side-space)
    max(24px, env(safe-area-inset-bottom));
}

.brand-header {
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.avianca-logo {
  width: clamp(145px, 35vw, 190px);
  width: clamp(145px, 35cqw, 190px);
  height: auto;
  object-fit: contain;
}

.brand-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 28px;
}

.transport-logo {
  width: clamp(112px, 28vw, 154px);
  height: auto;
}

.star-logo {
  width: clamp(125px, 32vw, 148px);
  height: auto;
}

.home-content {
  margin: clamp(80px, 14vh, 145px) calc(var(--side-space) * -1) 0;
}

.home-content .eyebrow,
.home-content h1,
.home-content .primary-button {
  margin-left: var(--side-space);
  margin-right: var(--side-space);
}

.eyebrow {
  margin-top: 0;
  margin-bottom: 36px;
  font-size: clamp(27px, 7vw, 39px);
  font-size: clamp(27px, 7cqw, 39px);
  font-weight: 300;
  line-height: 1.22;
}

.eyebrow strong {
  font-weight: 700;
}

.flight-line {
  height: 38px;
  width: 82%;
  margin: 0 0 27px;
  background: url("../Avion-2e1ad381-0027-4ff1-9e3e-474cd1aa9306.png") center / 100% auto no-repeat;
  mix-blend-mode: screen;
}

.flight-line span {
  display: none;
}

h1 {
  margin-top: 0;
  font-weight: 300;
}

.home-content h1 {
  margin-bottom: clamp(52px, 9vh, 82px);
  font-size: clamp(52px, 13vw, 76px);
  font-size: clamp(52px, 13cqw, 76px);
  line-height: 1.08;
  letter-spacing: -2px;
}

.primary-button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--avianca-red);
  padding: 12px 23px;
  font-size: clamp(21px, 5.8vw, 30px);
  font-size: clamp(21px, 5.8cqw, 30px);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 120ms ease, box-shadow 120ms ease;
  -webkit-tap-highlight-color: transparent;
}

.primary-button:hover {
  box-shadow: 0 7px 22px rgb(99 0 34 / 25%);
}

.primary-button:active {
  transform: scale(0.98);
}

.primary-button:focus-visible,
input:focus-visible {
  outline: 3px solid #ffe44c;
  outline-offset: 3px;
}

.form-content {
  margin-top: clamp(74px, 12vh, 118px);
}

.form-content h1 {
  margin-bottom: 39px;
  font-size: clamp(30px, 7.4vw, 40px);
  font-size: clamp(30px, 7.4cqw, 40px);
  line-height: 1.2;
}

.field-group {
  margin-bottom: 21px;
}

.field-group label {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(21px, 5.7vw, 29px);
  font-size: clamp(21px, 5.7cqw, 29px);
  font-weight: 700;
  line-height: 1.15;
}

.field-group input:not([type="hidden"]) {
  display: block;
  width: 100%;
  height: 58px;
  border: 2px solid #fff;
  border-radius: 999px;
  outline: 0;
  background: rgb(255 255 255 / 5%);
  color: #fff;
  padding: 0 24px;
  font-size: 18px;
  caret-color: #fff;
  appearance: none;
  -webkit-appearance: none;
}

.field-group input::placeholder {
  color: rgb(255 255 255 / 58%);
}

.field-group input:focus {
  border-color: #fff;
  background: rgb(255 255 255 / 12%);
  box-shadow: 0 0 0 3px rgb(255 255 255 / 24%);
}

.field-group.has-error input,
.field-group input[aria-invalid="true"] {
  border-color: #ffe44c;
}

.field-error {
  min-height: 18px;
  margin: 6px 12px 0;
  color: #fff8aa;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.form-alert {
  margin-bottom: 18px;
  border-radius: 12px;
  background: rgb(80 0 25 / 45%);
  padding: 12px 16px;
  font-weight: 600;
}

.submit-button {
  min-width: 295px;
  margin-top: 7px;
}

.button-loading {
  display: none;
}

.submit-button.is-loading span:first-child {
  display: none;
}

.submit-button.is-loading .button-loading {
  display: inline;
}

.success-content {
  margin: clamp(135px, 21vh, 220px) calc(var(--side-space) * -1) 0;
}

.success-content h1,
.success-content p {
  margin-left: var(--side-space);
  margin-right: var(--side-space);
}

.success-content h1 {
  margin-bottom: 40px;
  font-size: clamp(60px, 15vw, 84px);
  font-size: clamp(60px, 15cqw, 84px);
  line-height: 1.02;
  letter-spacing: -2px;
}

.success-content .flight-line {
  margin-bottom: 29px;
}

.success-content p {
  margin-top: 0;
  font-size: clamp(29px, 7.4vw, 40px);
  font-size: clamp(29px, 7.4cqw, 40px);
  font-weight: 300;
  line-height: 1.21;
}

@media (max-height: 620px) and (orientation: landscape) {
  .experience-card {
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .home-content,
  .form-content {
    margin-top: 42px;
  }

  .home-content h1 {
    margin-bottom: 34px;
  }

  .success-content {
    margin-top: 75px;
  }

  .field-group {
    margin-bottom: 10px;
  }

  .form-content h1 {
    margin-bottom: 22px;
  }

  .field-group input:not([type="hidden"]) {
    height: 52px;
  }
}

@media (min-width: 700px) {
  .page-shell {
    padding: 0;
  }

  .experience-card {
    min-height: min(1024px, 100svh);
    border-radius: 22px;
    box-shadow: 0 18px 60px rgb(0 0 0 / 38%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
