@font-face {
  font-family: "Lato Black Italic";
  src: url("assets/Lato-BlackItalic.ttf") format("truetype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --green: #9fd43a;
  --green-hover: #b4e84d;
  --glass: rgba(28, 62, 112, 0.42);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.82);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Lato", sans-serif;
  color: var(--text);
  background: #061018;
}

.page {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px 40px 36px;
  background:
    linear-gradient(180deg, rgba(4, 12, 24, 0.28) 0%, rgba(4, 12, 24, 0.18) 40%, rgba(4, 12, 24, 0.45) 100%),
    url("assets/fondo.png") center / cover no-repeat;
}

.top-bar {
  display: flex;
  justify-content: flex-end;
}

.cta {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  color: #1a2a08;
  background: var(--green);
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  transition: background 0.2s ease, transform 0.2s ease;
}

.cta:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 48px;
  padding: 24px 0 12px;
}

h1 {
  margin: 0;
  max-width: min(1080px, 100%);
  padding: 0 8px;
  font-family: "Lato Black Italic", "Lato", sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(24px, 3.6vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: pretty;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.title-break {
  display: none;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.unit {
  width: 148px;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.value {
  font-family: "Lato Black Italic", "Lato", sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 56px;
  line-height: 1;
}

.label {
  font-size: 15px;
  color: var(--muted);
}

.brand {
  display: flex;
  justify-content: center;
  padding-bottom: 8px;
}

.logo {
  width: min(220px, 48vw);
  height: auto;
  mix-blend-mode: lighten;
}

.modal {
  width: min(460px, calc(100% - 32px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 0;
  background: rgba(12, 28, 48, 0.92);
  color: var(--text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px);
}

.modal::backdrop {
  background: rgba(4, 10, 18, 0.62);
}

.form,
.success {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 32px 28px 28px;
}

.form[hidden],
.success[hidden],
.form-error[hidden] {
  display: none !important;
}

.form h2,
.success h2 {
  margin: 0;
  padding-right: 28px;
  font-family: "Lato Black Italic", "Lato", sans-serif;
  font-style: italic;
  font-size: 28px;
}

.form-intro,
.success p {
  margin: 0 0 6px;
  color: var(--muted);
}

.close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

label {
  display: grid;
  gap: 6px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
}

input:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.submit {
  margin-top: 8px;
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #1a2a08;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

.submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.form-error {
  margin: 0;
  color: #ffb4b4;
  font-size: 14px;
}

.success {
  text-align: center;
}

@media (max-width: 720px) {
  .page {
    padding: 16px 14px 24px;
  }

  .top-bar {
    justify-content: center;
  }

  .cta {
    font-size: 13px;
    padding: 10px 14px;
    white-space: nowrap;
  }

  .hero {
    gap: 28px;
  }

  h1 {
    font-size: clamp(20px, 5.4vw, 26px);
    padding: 0 10px;
  }

  .title-break {
    display: block;
  }

  .unit {
    width: calc(50% - 10px);
    min-height: 118px;
    border-radius: 22px;
  }

  .value {
    font-size: 42px;
  }

  .countdown {
    gap: 16px;
    width: min(360px, 100%);
  }
}

@media (min-width: 1280px) {
  h1 {
    white-space: nowrap;
  }
}
