html {
  scroll-snap-type: y mandatory;
}

body {
  scroll-snap-type: y mandatory;
  transition: background-color 0.5s ease-out;
  max-width: 100vw;
}

header {
  height: 100dvh;
  scroll-snap-align: start;
}
.hd2 {
  display: flex;
  align-items: center;
  height: 100%;
  width: 990px;
  margin: 0 auto;
  gap: 50px;
}

.hd2 img {
  width: 450px;
}
.hd2 div {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2vh;
}
.hd2 h3 {
  font-weight: 900;
  font-size: clamp(1.5rem, 0.4063rem + 3.5vw, 2.375rem);
  text-align: center;
  margin-block: 0;
  margin-bottom: 3vh;
  color: var(--text-black);
  user-select: none;
}
.hd2 a {
  max-width: 360px;
  padding: 12px 16px;
}
.a-yellow-2 {
  display: none;
}

/* SECTIONs */
section {
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
}

.section1,
.section2 {
  height: 100dvh;
  width: 990px;
  margin: 0 auto;
}

.section1 {
  flex-direction: row;
  gap: 50px;
}
.section1 h3 {
  font-weight: 900;
  font-size: clamp(1.5rem, -0.0625rem + 5vw, 2.75rem);
  text-align: left;
  margin-block: 1vh;
  color: #bc4ed8;
  user-select: none;
}
.section1 h4 {
  font-weight: 600;
  font-size: clamp(1rem, 0.5313rem + 1.5vw, 1.375rem);
  text-align: left;
  margin-block: 0;
  margin-bottom: 3vh;
  color: #4c3b5b;
  user-select: none;
}

#e1 {
  animation: effect1 2.5s steps(1) infinite;
}
#e2 {
  animation: effect2 2.5s steps(1) infinite;
}
#e3 {
  animation: effect3 2.5s steps(1) infinite;
}

@keyframes effect1 {
  0% {
    color: #bc4ed8;
  }
  33% {
    color: #5d2270;
  }
  66% {
    color: #8a38a4;
  }
}
@keyframes effect2 {
  0% {
    color: #8a38a4;
  }
  33% {
    color: #bc4ed8;
  }
  66% {
    color: #5d2270;
  }
}
@keyframes effect3 {
  0% {
    color: #5d2270;
  }
  33% {
    color: #8a38a4;
  }
  66% {
    color: #bc4ed8;
  }
}

.section1 img {
  width: 400px;
}

.section2 {
  flex-direction: column;
  width: 430px;
}
.section2 h3 {
  font-weight: 900;
  font-size: clamp(1.5rem, -0.0625rem + 5vw, 2.75rem);
  text-align: center;
  margin-block: 1vh;
  color: #bc4ed8;
  user-select: none;
}
.section2 a {
  padding: 12px 16px;
  margin: 5vh auto;
}
.section2 img {
  width: 170px;
  margin-top: 16px;
}

.purple {
  color: var(--hard-purple);
}

@media screen and (max-width: 1080px) {
  .hd1 {
    justify-content: center;
    border-bottom: none;
  }
  .hd1 img {
    width: 210px;
  }
  .a-yellow {
    display: none;
  }
  .a-yellow-2 {
    display: initial;
  }
  .hd2 {
    flex-direction: column;
    justify-content: center;
    gap: 5vh;
    width: 80vw;
  }
  .hd2 img {
    max-width: 300px;
    width: 60vw;
  }
  .hd2 div {
    max-width: 450px;
  }

  .section1 {
    flex-direction: column;
    width: 90vw;
    gap: 0;
  }
  .section1 div {
    max-width: 450px;
  }
  .section1 h3,
  .section1 h4 {
    text-align: center;
  }
  .section1 img {
    max-width: 300px;
    width: 80vw;
  }

  .section2 {
    max-width: 400px;
    width: 70vw;
  }
  .section2 img {
    max-width: 150px;
    width: 50vw;
  }
}

/* Estilos para Google Nest Hub */
@media screen and (min-width: 600px) and (max-width: 1080px) and (max-height: 850px) {
  .hd2 {
    flex-direction: row;
    width: 90vw;
  }
  .hd2 img {
    max-width: 380px;
  }
  .section1 {
    flex-direction: row;
  }
  .section1 h3,
  .section1 h4 {
    text-align: left;
  }
  :is(.hd2, .section1, .section2) h3 {
    font-size: 2rem;
  }
  .section2 h4 {
    font-size: 1rem;
  }
  :is(.hd2, .section1, .section2) a {
    font-size: 1.5rem;
  }
}
