@font-face {
  font-family: "interregular";
  src: url("fonts/inter-variablefont_slntwght-webfont.woff2") format("woff2"), url("fonts/inter-variablefont_slntwght-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Inter-Bold";
  src: url("fonts/Inter-Bold.eot");
  src: url("fonts/Inter-Bold.eot?#iefix") format("embedded-opentype"), url("fonts/Inter-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Inter-Medium";
  src: url("fonts/Inter-Medium.eot");
  src: url("fonts/Inter-Medium.eot?#iefix") format("embedded-opentype"), url("fonts/Inter-Medium.woff2") format("woff2");
}
body {
  background: url(../assets/images/fondo.png) no-repeat;
  background-size: cover;
  font-family: "interregular";
  position: relative;
  color: white;
  font-size: 20px;
  margin: 0;
  padding: 0;
  background-attachment: fixed;
}

p {
  margin: 0;
  padding: 0;
}

.solapa {
  clip-path: polygon(100% 0, 100% 51%, 100% 100%, 100% 100%, 84% 47%, 53% 0);
  background-color: white;
  position: absolute;
  right: 0;
  top: 0;
  height: 90vh;
  width: 30vw;
}
@media (max-width: 575.98px) {
  .solapa {
    clip-path: polygon(100% 0, 100% 67%, 100% 100%, 101% 47%, 89% 21%, 6% 0);
  }
}

.pc {
  position: absolute;
  right: 1.5vw;
  top: 3vh;
  z-index: 1;
}
@media (max-width: 575.98px) {
  .pc {
    right: 2vw;
    top: 2vh;
  }
}
@media (max-width: 575.98px) {
  .pc img {
    max-width: 50px;
  }
}

.container {
  width: 90%;
  max-width: 1200px;
  height: calc(100vh - 40px);
  margin: auto;
  padding: 20px;
  position: relative;
}
.container .logo {
  position: absolute;
  left: 0;
}
@media (max-width: 1400px) {
  .container .logo {
    position: relative;
  }
}
@media (max-width: 575.98px) {
  .container .logo img {
    max-width: 150px;
  }
}

h2 {
  font-size: min(max(3.33vw, 20px), 40px);
  text-align: left;
  font-weight: 800;
}
h2 span {
  font-family: "Inter-Medium";
  font-weight: 400;
}

img.foto {
  width: 30%;
  max-width: 680px;
  right: 3%;
  bottom: 0;
  position: fixed;
}
@media (max-width: 575.98px) {
  img.foto {
    display: none;
  }
}

#pantalla-inicial {
  width: 50%;
  max-width: 500px;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 7%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}
@media (max-width: 767.98px) {
  #pantalla-inicial {
    width: 65%;
  }
}
#pantalla-inicial .titulo {
  padding: 20px 0;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
#pantalla-inicial .titulo::before {
  content: "";
  width: 100vw;
  height: 100%;
  right: 0;
  top: 0;
  border: 1px solid white;
  position: absolute;
  z-index: 0;
}
#pantalla-inicial .titulo h1 {
  font-size: min(max(5.83vw, 40px), 70px);
}
#pantalla-inicial .titulo h1 span {
  font-size: min(max(4.16vw, 30px), 50px);
}
@media (max-width: 767.98px) {
  #pantalla-inicial .titulo h1 {
    margin-right: 20px;
  }
}
#pantalla-inicial .titulo img {
  width: 30%;
  max-width: 180px;
  margin-right: -15%;
  position: relative;
  z-index: 1;
}
@media (max-width: 767.98px) {
  #pantalla-inicial .titulo img {
    margin: -15px 0;
    width: 40%;
  }
}
#pantalla-inicial #btn-jugar {
  background-color: #EE2724;
  font-size: min(max(2.5vw, 20px), 30px);
  font-family: "Inter-Bold";
  padding: 20px 40px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 40px;
  max-width: 300px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: white;
  text-decoration: none;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
@media (max-width: 767.98px) {
  #pantalla-inicial #btn-jugar {
    padding: 20px;
  }
}
#pantalla-inicial #btn-jugar:hover {
  background-color: #F78F1E;
  border: 1px solid #F78F1E;
}
#pantalla-inicial #btn-jugar:hover img {
  width: 8%;
}
#pantalla-inicial #btn-jugar img {
  width: 6%;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
@media (max-width: 767.98px) {
  #pantalla-inicial #btn-jugar img {
    width: 10px;
  }
}

.titulo {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  position: relative;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  z-index: 1;
}
.titulo h1 {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  text-align: left;
  white-space: nowrap;
  font-size: min(max(5vw, 40px), 60px);
  font-family: "Inter-Bold";
  margin: 0;
  padding: 0;
}
.titulo h1 span {
  font-size: min(max(3.33vw, 20px), 40px);
  font-family: "interregular";
}
.titulo img {
  width: 30%;
  max-width: 100px;
}
@media (max-width: 767.98px) {
  .titulo img {
    max-width: 80px;
    margin-top: -15px;
  }
}

#pregunta-container {
  max-width: 460px;
  margin: 20px auto;
}
#pregunta-container h2 {
  position: absolute;
  left: 20px;
  top: 30%;
  width: 40%;
  max-width: 340px;
}
@media (max-width: 767.98px) {
  #pregunta-container h2 {
    position: relative;
    width: 80%;
    max-width: 100%;
    margin: 20px 0;
    left: auto;
  }
}
#pregunta-container .bloque {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 80px;
  margin-top: 20px;
}
@media (max-width: 575.98px) {
  #pregunta-container .bloque {
    gap: 40px;
  }
}
#pregunta-container .bloque .informacion {
  background-color: #F78F1E;
  border-radius: 20px;
  padding: 0 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  font-size: 1rem;
}
@media (max-width: 575.98px) {
  #pregunta-container .bloque .informacion {
    font-size: 12px;
  }
}
#pregunta-container .bloque .informacion strong {
  font-weight: 800;
}
#pregunta-container .bloque .informacion .linea {
  width: 1px;
  height: 30px;
  background-color: white;
  display: block;
}
#pregunta-container .bloque .informacion .score, #pregunta-container .bloque .informacion .blVida {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
}
#pregunta-container .bloque .informacion .vidas {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 5px;
}
#pregunta-container .bloque .informacion .vidas .vida {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: transparent; /* Apagado por defecto */
  -webkit-transition: background-color 0.3s;
  transition: background-color 0.3s;
  border: 1px solid white;
}
#pregunta-container .bloque .informacion .vidas .vida.activa {
  background-color: #d9d9d9; /* Encendido */
}
#pregunta-container .bloque .progress-container {
  width: 100%;
  height: 12px;
  background: #d9d9d9;
  border-radius: 6px;
  overflow: hidden;
  margin: 6px 0;
}
#pregunta-container .bloque .progress-container #progress-bar {
  width: 0%;
  height: 100%;
  background: #F78F1E;
  -webkit-transition: width 0.4s ease;
  transition: width 0.4s ease;
}
#pregunta-container .bloque #pregunta {
  color: #006838;
  text-align: center;
  font-size: min(max(2.5vw, 20px), 30px);
  font-family: "Inter-Bold";
  width: 90%;
  margin: auto;
}
#pregunta-container .bloque #opciones button {
  background-color: #F78F1E;
  border-radius: 10px;
  border: transparent;
  color: white;
  font-family: "Inter-Bold";
  padding: 10px 20px;
  margin-top: 10px;
  font-size: 16px;
  cursor: pointer;
  display: block;
  width: 100%;
}

.oculto {
  display: none;
}

#overlay {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  left: 0;
  top: 0;
  -webkit-transition: all 0.5s ease-in;
  transition: all 0.5s ease-in;
}

#pantalla-final {
  max-width: 480px;
  margin: 6% auto 0;
  position: relative;
}
#pantalla-final > img {
  position: absolute;
  width: 50%;
}
@media (max-width: 575.98px) {
  #pantalla-final > img {
    width: 35%;
  }
}
#pantalla-final > img:nth-child(1) {
  left: 70%;
}
@media (max-width: 575.98px) {
  #pantalla-final > img:nth-child(1) {
    top: 10%;
    left: 75%;
  }
}
#pantalla-final > img:nth-child(2) {
  top: 70%;
  right: 70%;
}
@media (max-width: 575.98px) {
  #pantalla-final > img:nth-child(2) {
    top: 85%;
  }
}
#pantalla-final .bloque {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  margin-top: 30px;
  color: #006838;
  font-family: "Inter-Bold";
  text-align: center;
}
@media (max-width: 575.98px) {
  #pantalla-final .bloque {
    max-width: 80%;
    margin: 30px auto;
  }
}
#pantalla-final .bloque .puntaje {
  background-color: rgba(217, 217, 217, 0.2);
  border-radius: 10px;
  padding: 10px;
}
#pantalla-final .bloque .puntaje h2 {
  font-size: min(max(4.16vw, 30px), 50px);
  margin: 0 auto;
  text-align: center;
}
#pantalla-final .bloque #jugar-denuevo {
  background-color: #F78F1E;
  font-size: 1rem;
  font-family: "Inter-Bold";
  padding: 20px 40px;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin: 20px auto;
  border-radius: 16px;
  border: 1px solid transparent;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  color: white;
  text-decoration: none;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
#pantalla-final .bloque #jugar-denuevo:hover {
  background-color: #EE2724;
  border: 1px solid #EE2724;
}

.final-perfecto {
  color: green;
}

.final-bien {
  color: blue;
}

.final-regular {
  color: orange;
}

.final-malo {
  color: red;
}