* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

body {
  background-color: #f8f8f8;
  color: #333;
  line-height: 1.6;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  text-align: center;
  margin-top: 26px;
  margin-bottom: 42px;
}

main {
  padding: 0 18px 8px 18px;
}

footer {
  padding-bottom: 18px; 
}

h1 {
  font-size: 3rem;
  letter-spacing: 3px;
  color: #000;
  margin-bottom: 10px;
  font-weight: 800;
}

h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 25px;
}

.benefits-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: flex-start;
}

.benefits {
  list-style-type: none;
  margin-bottom: 30px;
  flex: 0 1 40%;
  background-color: rgb(240, 240, 240);
  padding: 32px;
  height: fit-content;
}

.benefits li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.5;
}

.benefit-icon {
  width: 24px;
  height: 24px;
  margin-right: 15px;
  margin-top: 2px;
  transition: opacity 0.5s;
  flex-shrink: 0;
}

.benefits li:before {
  content: none;
}

.benefit-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  vertical-align: middle;
}

.benefits li {
  display: flex;
  align-items: center;
  padding-left: 0;
  margin-bottom: 15px;
  font-size: 1.1rem;
  min-height: auto;
  opacity: 1;
}

.benefits li:before {
  content: none;
}

.divider {
  height: 1px;
  background-color: #ddd;
  margin: 30px 0;
}

.form-group {
  margin-bottom: 20px;
  flex: 0 1 50%;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 1.1rem;
}

.email-container {
  display: flex;
  margin-bottom: 15px;
}

input[type="email"] {
  flex: 1;
  padding: 15px;
  border: 1px solid #ddd;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

input[type="email"]:focus {
  border-color: #000;
}

.submit-btn {
  background-color: #000;
  color: white;
  border: none;
  padding: 0 25px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #333;
}

.links-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  font-size: 0.9rem;
}

.links-container a {
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #000;
  padding-bottom: 2px;
  transition: color 0.3s;
}

.links-container a:hover {
  color: #666;
}

.terms {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.5;
  margin-top: 30px;
}

.terms strong {
  color: #000;
}

.asterisk {
  color: #e00;
}

/* Estilos para el checkbox */
.checkbox-container {
  display: none;
  margin-top: 15px;
  padding: 15px;
  background-color: #f0f0f0;
  border-radius: 4px;
}

.checkbox-label {
  cursor: pointer;
  font-size: 0.9rem;
}

.checkbox-label-textarea{
  cursor: pointer;
  font-size: 0.9rem;
}

.checkbox-input {
  margin-right: 10px;
  margin-top: 3px;
}

.privacy-link {
  color: #000;
  text-decoration: underline;
}

.action-buttons {
  display: flex;
  justify-content: end;
  margin-top: 20px;
}

.action-btn {
  padding: 10px 20px;
  background: none;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.join-btn {
  background-color: #000;
  color: white;
}

.unsubscribe-btn {
  background-color: none;
  color: black;
  border: 0px;
  text-decoration: underline;
}

.join-btn:disabled, .unsubscribe-btn:disabled {
  background-color: #F5F4F1;
  color: #ADAEB2;
  border: 1px solid #F5F4F1;
}

.action-btn:hover {
  opacity: 0.8;
}

.container {
  flex-grow: 1;
  margin: 0 auto;
  max-width: 1500px;
}

.error-message {
  color: #e00;
  font-size: 0.9rem;
  margin-top: 5px;
  display: none;
}

.thank-you-container {
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
}

.thank-you-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: block;
}

.thank-you-message {
  font-size: 1.2rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.join-btn2 {
  background-color: #333;
  color: white;
  margin: 0 5px;
}

.privacy-text {
  font-weight: normal;
}

.email-input {
  font-size: 0.8rem;
  color: #ADAEB2;
  font-weight: normal;
}

textarea {
  width: 100%;
  padding: 1em;
  margin-bottom: 6px;
  border: 1px solid #c9e6ff;
}

.collapsible {
  cursor: pointer;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active, .collapsible:hover {
  background-color: #ccc;
}

/* Style the collapsible content. Note: hidden by default */
.content {
  padding: 18px 18px;
  display: none;
  overflow: hidden;
  background-color: #f1f1f1;
}

@media (max-width: 900px) {
  .benefits-form {
    flex-direction: column;
  }
  .benefits {
    padding: 24px;
  }
}
