@font-face {
  font-family: "Publico";
  src: url("Publico-Roman.otf") format("opentype");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "Publico";
  src: url("Publico-Light.otf") format("opentype");
  font-display: swap;
  font-weight: 300;
}

@font-face {
  font-family: "Publico";
  src: url("Publico-Bold.otf") format("opentype");
  font-display: swap;
  font-weight: 700;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Publico';
}

body {
  background-color: white;
  color: #333;
  font-size: 16px;
  line-height: 1.6;
}

.header {
  display: flex;
  align-items: center;
  padding: 1.5rem 2rem;
  justify-content: center;
}

@media (width < 760px) {
  .header_container{
    padding: 15px 0px;
    width: 92%;
    gap: 0;
    margin: 0 auto;
  }
}


.header_container{
  max-width: 1288px;
  width: 86%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (width < 760px) {
  .header_container{
    width: 100%;
    max-width: 100%;
  }
}

.logo{
  width: 112px;
}

#logo svg{
  height: 55px;
  width: auto;
}

.language-switch {
  font-size: 16px;
  color: #333;
  cursor: pointer;
  display: flex;
  justify-content: space-around;
  width: 80px;
}

.main-content {
  display: flex;
  justify-content: space-between;
  padding-block: 2rem;
  gap: 100px;
  max-width: 1288px;
  margin: 0 auto;
}

@media (width < 760px) {
  .main-content{
    max-width: 100%;
    width: 100%;
    flex-direction: column;
    padding-inline: 20px;
    gap: 40px;
  }
}

.main-content_grey{
  background-color: #f5f5f5;
  padding-block: 96px;
}

@media (width < 760px) {
  .main-content_grey{
    padding-block: 20px;
  }
}

.content {
  max-width: 48%;
  color: #6a6d77;
}

@media (width < 760px) {
  .content{
    width: 100%;
    max-width: 100%;
  }
}

.content_title {
  font-size: 57px;
  color: #222326;
  margin-bottom: 1rem;
  line-height: 57px;
  padding-top: 48px;
}

@media (width < 760px) {
  .content_title{
    font-size: 35px;
    line-height: 38px;
    padding-top: 0;
  }
}

.content_text{
  margin: 1rem 0;
  color: #666;
  font-weight: 300;
  font-size: 18px;
}

.content_list{
  list-style-type: none;
  padding-left: 0;
  margin-top: 1rem;
}

.content_list_element {
  margin: 0.5rem 0;
  font-weight: 300;
  font-size: 18px;
}

.content_list_element_text{
  padding-left: 10px;
}

.section{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.title-section{
  font-size: 42px;
  color: #000000;
  padding-bottom: 50px;
}

@media (width < 760px){
  .title-section{
    font-size: 27px;
    padding-bottom: 30px;
  }
}

.cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
  height: 340px;
}

@media (width < 760px){
  .cards{
    flex-direction: column;
    height: max-content;
  }
}

.card {
  background-color: white;
  border-radius: 24px;
  box-shadow: 0 16px 32px rgba(34,35,38,.05),0 8px 16px rgba(34,35,38,.05);
  padding: 24px;
  width: 100%;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
}

@media (width < 760px){
  .card{
    height: 300px;
  }
}

.card h3 {
  font-size: 20px;
  color: #000000;
}

.card p {
  font-size: 18px;
  color: #666;
  font-weight: 300;
  max-width: 340px;
  margin: 0 auto;
}


.join-button {
    text-align: center;
    text-decoration: none;
    background-color: #D8423A;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    align-self: center;
    width: 190px;
    height: 60px;
    margin-top: 30px;
}

.book-cover {
  margin-top: 2rem;
  max-width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-section {
  max-width: 40%;
  background-color: #f8f9fb;
  padding: 48px;
  border-radius: 24px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (width < 760px) {
  .form-section {
    max-width: 100%;
    padding: 20px;
  }
}

.form_title {
  font-size: 28px;
  margin-bottom: 1rem;
  color: #222326;
  font-weight: 700;
}

@media (width < 760px) {
  .form_title {
    font-size: 6vw;
  }
}

.label {
  display: block;
  margin: 0.5rem 0;
  font-weight: bold;
  color: #666;
}

.input {
  background-color: #fff;
  border: 1px solid #e3e6ec;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(34, 35, 38, .05), 0 4px 8px rgba(34, 35, 38, .05);
  color: #222326;
  display: block;
  font-size: inherit;
  font-weight: 300;
  line-height: 1.56;
  padding: .91rem;
  width: 100%;
  margin-top: 24px;
  height: 60px;
  transition: all 0.2s ease-in-out;
}

.input-error {
  border-color: #74b320;
  box-shadow: 0 0 0 4px rgba(116, 179, 32, .15), inset 0 0 0 1px #74b320;
  outline: none;
}

.error{
  width: max-content;
  position: relative;
  top: -15px;
  left: 17px;
  background: #74b320;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  padding: 4px 8px;
}

.error2{
  top: 0;
  left: 0;
}

#val-firstname, #val-lastname, #val-email, #val-telephone, #val-terms{
  display: none;
  font-weight: 300;
  width: max-content;
  background: #74b320;
  padding: 1px 7px;
  border-radius: 10px;
  color: white;
  position: relative;
  top: -12px;
  left: 15px;
}

.select{
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.input:hover {
  box-shadow: 0 0 0 8px rgba(227, 230, 236, .4);
}

.input:focus,
.input:focus-visible {
  border-color: #74b320;
  box-shadow: 0 0 0 4px rgba(116, 179, 32, .15), inset 0 0 0 1px #74b320;
  outline: none;
}

.small{
  width: 30% !important;
}

.big{
  width: 68% !important;
}

.number_container{
  width: 100%;
  display: flex;
  justify-content: space-between;
}

/* Estilos del contenedor para mejorar la alineacin */
.custom-checkbox {
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: #333;
  margin: 10px 0;
}

/* Oculta el checkbox por defecto */
.custom-checkbox input[type="checkbox"] {
  display: none;
}

/* Estilo del checkbox personalizado */
.custom-checkbox label {
  position: relative;
  padding-left: 32px;
  cursor: pointer;
  color: #6a6d77;
  font-size: 14px;
  font-weight: 300;
  transition: .2s ease-in-out;
}

/* Caja del checkbox */
.custom-checkbox label:before {
  display: inline-block;
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 4px;
  background-color: #ffffff;
  transition: background-color 0.2s ease;
  cursor: pointer;
  display: inline-block;
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
  height: 20px;
  line-height: normal;
  margin: 0;
  margin-inline-end: .56rem;
  padding: 0;
  vertical-align: middle;
  width: 20px !important;
  outline: 2px solid #cfd2d8;
  transition: .2s ease-in-out;
}

/* Checkmark visible cuando el checkbox estÃ¡ seleccionado */
.custom-checkbox input[type="checkbox"]:checked + label:after {
  content: url('check.svg');
  display: block;
  width: 13px;
  color: #ff6400;
  font-size: 18px;
  line-height: 20px;
  text-align: center;
  font-weight: bold;
  position: absolute;
  top: 2px;
  left: 3px;
}

.custom-checkbox input[type="checkbox"]:checked + label:before {
  background-color: #74b320; /* Cambia este color al que prefieras */
  outline: #74b320; /* Cambia el borde al mismo color, si lo deseas */
}

/* Cambio de color de fondo al hacer hover */
.custom-checkbox label:hover:before {
  box-shadow: 0 0 0 8px rgba(227,230,236,.4);
}

/* Estilo para el enlace dentro de los labels */
.link {
  color: #74b320;
  text-decoration: underline;
}

.link:hover {
  color: #388E3C; /* Cambia a un tono mÃ¡s oscuro al pasar el ratÃ³n */
}


.download-button {
  margin-top: 26px;
  width: 100%;
  padding: 1rem;
  background-color: #74b320;
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 18px;
  cursor: pointer;
  font-weight: 300;
  height: 60px;
  transition: all 0.2s ease-in-out;
}

.download-button:hover {
  color: #fff;
  text-decoration: none;
  transform: scale(1.07);
}

.download-button_gracias{
  width: max-content;
  padding-inline: 30px;
  margin-top: 0;
  text-decoration: none;
}

/* Estilos generales para el footer */
.footer {
  background-color: #384518; /* Color verde oscuro */
  padding: 20px;
  font-size: 14px;
  color: #ffffff;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1288px;
  margin: 0 auto;
}

/* Estilos para el texto y enlaces del footer */
.footer_text {
  margin: 0;
  font-weight: 300;
  font-size: 16px;
}

@media (width < 760px) {
  .footer_text{
    text-align: center;
    width: 80%;
    margin: 0 auto;
  }
}

.footer-links {
  display: flex;
  gap: 15px;
  font-weight: 300;
}

@media (width < 760px) {
  .footer-links{
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    gap: 0;
    margin-top: 12px;
  }
}

.link_footer {
  color: #ffffff;
  text-decoration: none;
  font-weight: 300;
  border-right: 1px solid white;
  padding-right: 10px;
  font-size: 16px;
  text-decoration: underline;
}

@media (width < 760px) {
  .link_footer{
    border-right: none;
    padding: 0;
  }
}

.footer-links .link_footer:last-child{
  border-right: none;
}
