/* Serif */
@font-face {
  font-family: "LonginesSerif";
  src: url("/fonts/LonginesSerifTextRegular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "LonginesSerif";
  src: url("/fonts/LonginesSerifTextBold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

/* Sans */
@font-face {
  font-family: "LonginesSans";
  src: url("/fonts/LonginesSansTextLight.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "LonginesSans";
  src: url("/fonts/LonginesSansTextRegular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "LonginesSans";
  src: url("/fonts/LonginesSansTextBold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

body {
  margin: 0;
  font-family: "LonginesSans", "Segoe UI", sans-serif;
  background-image: url("/img/fondo.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  color: #1e1e1e;
  /* background-position: right; */
  background-position: 70% center;
}
header {
  background-color: #00324b;
  color: white;
  padding: 20px;
  text-align: center;
}

header img {
  margin-top: 2rem;
}
section {
  padding: 40px 20px;
  min-height: 80vh;
  height: fit-content;

  color: #00324b;
}

h1 {
  font-family: "LonginesSerif";
}

h2 {
  font-size: 2.5rem;
}

p {
  line-height: 1.5;
  font-size: 1.2rem;
}

.question-head h3 {
  font-family: "LonginesSerif";
  font-size: 2rem;
}

.question h3 {
  font-family: "LonginesSerif";
  font-size: 2.5rem;
}

.intro {
  font-family: "LonginesSans";
  font-size: 2rem;
  width: 50%;
}

.registrar {
  font-family: "LonginesSerif";
}

.intro {
  margin-top: 7rem;
  margin-left: 10rem;
  text-align: start;
}

.start-button {
  justify-self: center;
  align-self: center;
  margin-top: 4rem;
  padding-bottom: 12rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flecha-inicio {
  width: 30px;
}

.center {
  text-align: center;
}
.button {
  background: none;
  display: inline-block;
  color: #e8d8b8;
  padding: 22px 44px;
  margin: 20px 0;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  background-image: url("/img/form/boton_contenedor.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  font-size: 1.5rem;
  cursor: pointer;
  font-weight: 400;
}

.datos-personales {
  display: flex;
  margin-top: 6rem;
  gap: 100px;
  margin-bottom: 15rem;
  width: 100%;
  justify-content: center;
}

.datos-personales input {
  width: 25%;
  border-radius: 40px;
}
.question {
  margin-top: 40px;
  margin-bottom: 10rem;
}
.question img {
  max-width: 18rem;
  margin-left: 20px;
}

.question-head {
  display: flex;
  align-items: center;
}

.question h3 {
  width: 55%;
}

.question.last {
  margin-bottom: 2rem;
}
.sendBtn {
  margin-left: 20%;
}

.options {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  line-height: 4;
}
.options label {
  margin: 10px 0;
  background-color: white;
  width: fit-content;
  padding: 1rem;
  border-radius: 10px;
}

input[type="radio"] {
  display: none;
}

input[type="radio"]:checked + .opcion {
  background-color: #00324b; /* color azul Longines */
  color: white;
  border-color: #00324b;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 20px;
  margin-top: 1.5rem;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
}
textarea {
  width: 60%;
  height: 10rem;
  resize: vertical;
}
.footer-img {
  text-align: center;
  margin-top: 40px;
}

.question {
  margin-left: 20%;
}

.options label {
  user-select: none;
  cursor: pointer;
}

.g-recaptcha {
  margin-left: 20%;
}

.alert-success {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-top: 10rem;
  font-size: 2.5rem;
  font-family: "LonginesSerif";
  color: #00324b;
}

.contacts-name {
  display: flex;
  flex-direction: column;
}

/* Fondo del modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* Contenido del modal */
.modal {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: fadeIn 0.3s ease;
  color: #00324b;
}

.modal h2 {
  margin-top: 0;
  font-family: "LonginesSerif";
}

.modal h3 {
  font-family: "LonginesSerif";
}

.modal button.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.open-modal-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 20%;
  color: #00324b;
  font-family: "LonginesSans";
  font-weight: 700;
  background: none;
  text-decoration: underline;
  font-size: 0.9rem;
}

.modal p {
  font-size: 1rem;
}

.modal h2 {
  font-size: 1.4rem;
}

.modal-content {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.contacts-name,
.contacts-email {
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .datos-personales {
    display: flex;
    flex-direction: column;
    width: 70%;
  }

  .question img {
    max-width: 8rem;
  }

  .question-head h3 {
    font-size: 1.5rem;
  }

  .question {
    font-size: 1rem;
    margin-left: 0px;
  }

  .sendBtn {
    margin-left: 0px;
  }

  .g-recaptcha {
    margin-left: 0px;
  }

  .open-modal-btn {
    margin-left: 0px;
  }

  .button {
    font-size: 1rem;
  }

  .intro {
    margin-left: 1rem;
    width: 90%;
  }

  h2 {
    font-size: 1.5rem;
    font-family: "LonginesSerif";
  }

  textarea {
    width: 80%;
  }

  .question.last h3 {
    width: 100%;
    font-size: 1.5rem;
  }

  .question.last p {
    font-size: 1rem;
  }

  .options {
    font-size: 0.7rem;
  }
}
