@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;600&display=swap");

:root {
  /* COLOR *
  /* Primary */
  --desaturated-red: hsl(0, 36%, 70%);
  --soft-red: hsl(0, 93%, 68%);

  /* Neutral */
  --dark-grayish-red: hsl(0, 6%, 24%);

  /* ? FONTS */
  --ff-josefin-sans: "Josefin Sans", sans-serif;
}

/* Gradients
- Linear, 135deg, from hsl(0, 0%, 100%), to hsl(0, 100%, 98%)
- Linear, 135deg, from hsl(0, 80%, 86%), to hsl(0, 74%, 74%) 
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 16px;
}

html {
  font-size: 62.5%;
  font-family: var(--ff-josefin-sans);
}

body {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
}

.image-logo {
  min-height: 40px;
  width: 20%;
  background: url(./images/logo.svg) no-repeat center center / contain;
  align-self: flex-start;
  margin: 20px 10%;
  margin-left: 10%;
}

.hero-image-section {
  width: 100%;
}

.image-hero-mobile {
  width: 100%;
  max-width: 900px;
  margin-bottom: 50px;
  user-select: none;
}

.text-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.text-section h1 {
  font-size: 4rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1.4rem;
  color: var(--desaturated-red);
  margin-bottom: 20px;
}

.text-section span {
  display: block;
  color: var(--dark-grayish-red);
  font-weight: 600;
  font-size: 4rem;
}

.text-section p {
  max-width: 600px;
  font-size: min(3.9vw, 2rem);
  margin: 0 7%;
  line-height: 2.1rem;
  color: var(--desaturated-red);
  margin-bottom: 35px;
}

.email-section {
  width: 85%;
  max-width: 500px;
  min-height: 50px;
  display: flex;
  position: relative;
  margin-bottom: 50px;
}

#errorMessage {
  margin: -40px 12%;
  align-self: flex-start;
  font-size: 1.49rem;
  color: white;
}

#email-input {
  width: 100%;
  color: var(--dark-grayish-red);
  font-family: var(--ff-josefin-sans);
  border: 1px solid var(--desaturated-red);
  border-radius: 25px;
  position: relative;
  z-index: 1;
  padding-left: 25px;
}

#email-input::placeholder {
  color: var(--desaturated-red);
  font-size: 1.49rem;
  font-family: var(--ff-josefin-sans);
}

.email-button {
  height: 100%;
  width: 90px;
  position: absolute; /* Posición absoluta para superponer el botón */
  z-index: 2;
  right: 0;
  border-radius: 25px;
  background-color: var(--soft-red);
  color: white;
  border: none;
  cursor: pointer;
  /* box-shadow: 5px 13px 20px -5px var(--desaturated-red);
  background-color: var(--desaturated-red); */
}

.email-button img {
  padding-top: 3px;
}

#email-input:focus {
  outline: none;
  color: var(--dark-grayish-red);
}

.icon-error {
  position: relative; 
  right: 100px; 
  align-self: center;
  z-index: 10;
  display: none;
}


@media (min-width: 1200px) {
  body {
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    max-height: 700px;
  }

  .image-logo {
    /* display: none; */
    position: absolute;
    left: 0px;
    margin: 35px 6%;
  }

  .text-section {
    width: 460px;
    margin-right: 50%;
    text-align: left;
  }

  .text-section p {
    margin: 0;
    margin-bottom: 40px;
    font-size: 1.7rem;
  }

  .email-section {
    width: 100%;
  }

  #errorMessage {
    margin: -40px 25px;
  }

  .hero-image-section {
    margin: unset;
    height: 100%;
    width: auto;
  }

  .image-hero-mobile {
    content: url(./images/hero-desktop.jpg);
    margin: unset;
    height: 100vh;
    width: auto;
    position: absolute;
    right: 0px;
  }
}
