@font-face {
  font-family: "TeX Gyre Heros";
  src: url("fonts/texgyreheros-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TeX Gyre Heros";
  src: url("fonts/texgyreheros-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #1c1c1c;
  --pink: #ff9ce1;
  font-family: "TeX Gyre Heros", Arial, Helvetica, sans-serif;
  background: var(--ink);
  color: #fff;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-width: 280px; }
body { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.cover {
  position: relative;
  flex: 1 0 auto;
  height: calc(100vh - 70px);
  height: calc(100svh - 70px);
  min-height: 50.694445vw;
  overflow: hidden;
  isolation: isolate;
  background-image: url("puntos.jpg");
  background-size: 100% auto;
  background-position: center top;
  background-repeat: repeat-y;
}
.cover-logo { position: absolute; width: 18.402778%; height: auto; top: 8.493151%; left: 50%; transform: translateX(-50%); }
.collaboration {
  position: absolute;
  top: 54.520548%;
  left: 0;
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: 1.944445vw;
  font-weight: 400;
  line-height: 1.2;
}
h1 {
  position: absolute;
  top: 61.232877%;
  left: 1.59375%;
  width: 96.805556%;
  margin: 0;
  text-align: center;
  font-size: 9.88125vw;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .03em;
  white-space: nowrap;
}
.cover-products { position: absolute; bottom: -4.861111vw; left: 0; width: 100%; height: auto; aspect-ratio: 1440 / 800; pointer-events: none; }
.newsletter {
  flex: 0 0 auto;
  position: relative;
  color-scheme: light;
  color: #000;
  background: var(--pink);
  padding: 18px 24px 8px;
  min-height: 70px;
}
.newsletter-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18.25px;
  transform: translateX(-4vw);
}
h2 { margin: 0; width: 322px; font-size: 30.75px; line-height: 23.98px; font-weight: 700; letter-spacing: .61px; white-space: nowrap; transform: translateY(-4px); }
.newsletter-form { display: flex; width: 335px; max-width: 100%; }
input, button { font: 14px "TeX Gyre Heros", Arial, Helvetica, sans-serif; border-radius: 0; color: #000; }
input[type="email"] {
  min-width: 0;
  width: 225px;
  flex: 1 1 auto;
  border: 1px solid #000;
  background: transparent;
  padding: 12px 15px;
  min-height: 44px;
  appearance: none;
}
input::placeholder { color: #000; opacity: 1; }
button {
  flex: 0 0 111px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #000;
  border-left: 0;
  background: #fff;
  cursor: pointer;
}
button:hover { background: #f3f3f3; }
button:active { background: #e7e7e7; }
button:disabled { cursor: wait; opacity: .7; }
input:focus-visible, button:focus-visible { outline: 3px solid #000; outline-offset: 3px; position: relative; z-index: 1; }
.form-status { margin: 12px auto 4px; max-width: 675px; font-size: 14px; line-height: 1.5; text-align: center; }
.form-status[hidden] { display: none; }
.visually-hidden, .form-trap { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  .newsletter { padding: 16px 20px; }
  .newsletter-content { transform: none; gap: 16px; }
  h2 { width: auto; font-size: clamp(20px, 3.1vw, 28px); line-height: 1.2; letter-spacing: .01984em; transform: none; }
  .newsletter-form { width: 320px; }
}
@media (max-width: 600px) {
  .cover { height: calc(100vh - 132px); height: calc(100svh - 132px); min-height: 460px; background-size: auto 100%; }
  .cover-logo { width: clamp(155px, 45vw, 230px); top: 8%; left: 50%; transform: translateX(-50%); }
  .collaboration { top: 55%; font-size: clamp(17px, 4.5vw, 24px); }
  h1 { top: 67%; left: 4%; width: 92%; font-size: 13.4vw; line-height: 1.04; white-space: normal; text-wrap: balance; }
  .cover-products { width: 180%; max-width: none; left: -40%; bottom: -8.75vw; }
  .newsletter { padding: 15px 20px 18px; }
  .newsletter-content { flex-direction: column; gap: 12px; }
  h2 { font-size: clamp(22px, 6.2vw, 30.75px); line-height: 1.15; text-align: center; white-space: normal; }
  .newsletter-form { width: 335px; }
  button { flex-basis: 100px; }
}
@media (max-height: 500px) and (min-width: 601px) {
  .cover { min-height: 50.694445vw; }
}

/* En escritorio, la composición se ajusta al espacio que deja el formulario.
   Las medidas de Figma se conservan a 1440 × 800; en ventanas más bajas
   los elementos reducen su tamaño en proporción a la altura disponible. */
@media (min-width: 901px) {
  html { height: 100%; overflow: hidden; }
  body {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    overflow: hidden;
  }
  .cover {
    height: auto;
    min-height: 0;
    min-width: 0;
    container-type: size;
  }
  .cover-logo { width: min(18.402778cqw, 36.301370cqh); }
  .collaboration { font-size: min(1.944445cqw, 3.835616cqh); }
  h1 { font-size: min(9.88125cqw, 19.491781cqh); }
  .cover-products {
    width: min(100cqw, 197.260274cqh);
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(-1 * min(4.861111cqw, 9.589041cqh));
  }
}
