@font-face {
  font-family: 'grotesk';
  src: url('./fonts/Manrope-VariableFont_wght.ttf') format('truetype');
}

* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

body {
  font-family: 'grotesk';
  background-color: whitesmoke;
}

.site-header {
  background-color: whitesmoke;
  border-bottom: 1px solid #ddd;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  font-size: 20px;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 50px;
}

.nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #444;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: #6c5ce7;
}

.hero {
  background: linear-gradient(90deg, #a079c1 50%, #6f479a 100%);
  color: whitesmoke;
  padding: 3rem 2rem;
  clip-path: polygon(100% 0, 100% 100%, 60% 90%, 26% 100%, 0 94%, 0 0);
  margin-bottom: 4rem;
  height: 47vh;
}

.hero-content {
  max-width: 800px;
  margin: auto;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
}

.destacado {
  font-size: 1.2rem;
  line-height: 1.6;
  background-color: #131f0635;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin: 2rem auto;
  max-width: 600px;
}

.seccion.info {
  max-width: 80%;
  margin: 2rem auto;
  padding: 1rem 2rem;
  text-align: left;
  line-height: 2;
  font-size: 24px;
  color: #333;
}

.seccion.info h2 {
  margin-bottom: 1rem;
}

/* Imagen dentro de una caja */
.imagen-caja {
  display: flex;
  justify-content: center;
  margin: 2rem auto;
}

.imagen-seccion {
  width: 90%;
  max-width: 500px;
  border-radius: 16px;
  padding: 0.8rem;
  background-color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.barra-progreso {
  height: 15px;
  background-color: #eee;
  margin: 0 auto;
  position: sticky;
  top: 0;
  z-index: 999;
  border: solid 1px #44444428;
  border-radius: 10px;
  flex-grow: 1;
}

.progreso {
  height: 100%;
  background-color: #6f3ea4;
  transition: width 0.3s ease;
  border-radius: 10px;
}

.barra-progreso-wrapper {
  width: 70%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding-bottom: 2rem;
  gap: 1rem;
}

#progreso-text {
  font-weight: bold;
  font-size: 1rem;
  text-align: right;
}

main {
  width: 100%;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.hoja {
  display: none;
  transition: opacity 0.5s ease;
}

.hoja.active {
  display: block;
}

.pregunta {
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.pregunta.active {
  transform: translateY(0);
}

.pregunta,
.pregunta.active {
  border-bottom: solid 1px black;
  width: 40%;
  margin: 0 auto;
  padding: 3rem;
}

.pregunta p {
  font-size: 40px;
  margin-bottom: 3rem;
  text-align: justify;
}

button.siguiente,
button[type="submit"] {
  margin: 2rem;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  background-color: #8e66b7;
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #50316b;
}

input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  border: 2px solid #ccc;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-block;
  position: relative;
  margin-right: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

input[type="radio"]:checked {
  border-color: #6c5ce7;
  background-color: #6c5ce7;
}

input[type="radio"]::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  background-color: white;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s ease-in-out;
}

input[type="radio"]:checked::after {
  transform: translate(-50%, -50%) scale(1);
}

label {
  display: flex;
  align-items: center;
  margin: 0.4rem auto;
  gap: 0.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  font-size: 30px;
}

.site-footer {
  background-color: whitesmoke;
  border-top: 1px solid #ddd;
  padding: 1.5rem 2rem;
  margin-top: 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1000px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-text p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

.footer-logos {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.footer-logos img {
  height: 40px;
  max-width: 120px;
  object-fit: contain;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-family: 'grotesk';
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #fafafa;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: border 0.3s ease;
}

textarea {
  resize: none;
  min-height: 100px;
}

input:focus,
textarea:focus {
  border-color: #6c5ce7;
  outline: none;
}

.instruccion-enter {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #999;
  font-style: italic;
}

main.gracias {
  max-width: 700px;
  margin: 10vh auto;
  background-color: white;
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  font-size: 1.4rem;
  line-height: 1.8;
  color: #333;
}

main.gracias h1 {
  font-size: 2.5rem;
  color: #6f3ea4;
  margin-bottom: 1rem;
}

.volver1 {
  margin-top: 2rem;
  display: inline-block;
  background-color: #8e66b7;
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.volver1:hover {
  background-color: #50316b;
}


.link-rellenar {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 1rem;
  color: #6f3ea4;
  text-decoration: underline;
  cursor: pointer;
}

.link-rellenar:hover {
  color: #50316b;
}

#aviso-espera {
  margin-top: 1rem;
  font-style: italic;
  font-size: 1rem;
  color: #555;
  animation: fadeIn 0.5s ease forwards;
  text-align: center;
  max-width: 500px;
  margin-inline: auto;
}

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

.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #6f3ea4;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: inline-block;
  animation: spin 1s linear infinite;
  margin-right: 0.5rem;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



@media screen and (min-width: 700px) and (max-width: 1400px) {
  .hero {
    height: 40vh;
  }
}

@media screen and (min-width: 600px) and (max-width: 700px) {
  .hero h1 {
    font-size: 2.3rem;
  }

  .destacado {
    margin-top: 5rem;
    font-size: 16px;
    text-align: justify;
  }
}




@media screen and (max-width: 600px) {
  body {
    font-size: 90%;
  }

  main {
    padding: 1rem;
  }

  .site-header {
    font-size: 15px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .destacado {
    font-size: 11px;
    text-align: justify;
  }

  .pregunta p {
    font-size: 20px;
  }

  label {
    font-size: 20px;
  }

  #progreso-text {
    font-size: 0.9rem;
  }

  .footer-text p {
    font-size: 0.8rem;
  }

  .seccion.info {
    max-width: 90%;
    font-size: 20px;
  }

  .seccion.info p {
    font-size: 17px;
    text-align: justify;
  }

  .imagen-seccion {
    width: 70%;
  }

  .pregunta,
  .pregunta.active {
    width: 90%;
    padding: 2rem 1rem;
  }

  main.gracias h1 {
  font-size: 1.8rem;
  }

  main.gracias {
  font-size: 0.8rem;
  max-width: 80vw;
  }
}

@media screen and (orientation: landscape) and (max-width: 900px) {
  .hero {
    height: 90vh;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .destacado {
    font-size: 1rem;
    text-align: justify;
  }

  label,
  .pregunta p {
    font-size: 1.2rem;
  }

  .seccion.info p {
    font-size: 17px;
    text-align: justify;
  }

  .imagen-seccion {
    width: 50%;
  }

  input[type="radio"],
  input[type="text"],
  textarea {
    font-size: 1rem;
  }

  .pregunta,
  .pregunta.active {
    width: 70%;
    padding: 2rem 1rem;
  }

  main.gracias h1 {
  font-size: 1.8rem;
  }

  main.gracias {
  font-size: 0.8rem;
  max-width: 80vw;
  }
}