/* SECTIONS */
main section {
  display: flex;
  height: fit-content;
  justify-content: space-between;
  background-color: var(--background-main);
  padding: 50px 17%;
  color: var(--gray);
  text-align: right;
}

main section p {
  display: flex;
  flex-direction: column;
  font-size: larger;
}

main section h1{ 
  font-size: 3rem;
  color: var(--primary);
}

main section.alt {
  background-color: var(--background-section);
  text-align: left;
}
main section.double {height: 750px;}

main section img {
  border-radius: 5px;
  height: 300px;
}

/* NEWLETTER */
.newsletter{
  background: var(--background-card);
  padding: 15px;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
}

.newsletter h3{
  margin-bottom: 15px;
}

.newsletter-form{
  display: flex;
  gap: 10px;
}

.newsletter input{
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  outline: none;
  transition: all 0.3s ease;
}

.newsletter input:focus{
  border-color: var(--primary);
}

.newsletter button{
  padding: 10px 15px;
  background: var(--primary);
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter button:hover{
  background: var(--primary-hover);
}

/* MENSAJE */
#feedbackMsg{
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* estados */
.success{
  color: var(--success);
}

.error{
  color: var(--error);
}

#feedbackMsg{
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s ease;
}

#feedbackMsg.success,
#feedbackMsg.error{
  opacity: 1;
  transform: translateY(0);
}

.newsletter.alt {
  justify-self: end;
  margin-top: 20px;
}

/* MOBILE VERSION */
@media (max-width: 768px) {
  main section {
    flex-direction: column;
    height: fit-content;
    padding: 30px 30px;
  }

  .content h1 {
    font-size: 2rem;
  }

  main section img {
    height: auto;
    margin-bottom: 20px;
  }

  .logo_santa {
    height: 250px;
    width: 250px;
    margin-bottom: 50px;
    align-self: center;
  }

  .newsletter {
    margin: 20px 0;
  }
}