
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 25px 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #102747, #245b83, #397e91);
  font-family: Arial, sans-serif;
  color: #203047;
}

.container {
  width: 100%;
  max-width: 760px;
  background: white;
  padding: 35px;
  border-radius: 20px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.pantalla {
  text-align: center;
}

.oculto {
  display: none !important;
}

.etiqueta {
  color: #28758a;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 2px;
}

h1 {
  color: #173c5b;
  font-size: 2rem;
  margin-bottom: 15px;
}

h2 {
  color: #173c5b;
  font-size: 1.5rem;
  line-height: 1.4;
}

h3 {
  color: #244e68;
}

.introduccion {
  color: #536477;
  line-height: 1.6;
}

.instrucciones {
  background: #eef5f8;
  padding: 18px;
  border-radius: 12px;
  text-align: left;
  margin: 25px 0;
  line-height: 1.6;
}

.instrucciones ul {
  padding-left: 22px;
}

button {
  border: none;
  border-radius: 10px;
  padding: 13px 18px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
  margin: 5px;
}

button:hover {
  transform: translateY(-2px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.principal {
  background: #176b87;
  color: white;
}

.principal:hover {
  background: #10536b;
}

.secundario {
  background: #e4edf2;
  color: #24465d;
}

.barra-superior {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: bold;
  color: #34536b;
  margin-bottom: 12px;
}

.barra-progreso {
  height: 10px;
  background: #e3eaf0;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 25px;
}

#progresoRelleno {
  height: 100%;
  width: 0%;
  background: #2696a6;
  transition: width 0.3s;
}

.ayuda {
  color: #718096;
  line-height: 1.5;
}

.respuestas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 25px 0;
}

.respuesta {
  background: #edf3f7;
  color: #203c54;
  border: 2px solid transparent;
  min-height: 60px;
}

.respuesta:hover {
  background: #dceaf1;
}

.respuesta.correcta {
  background: #d8f3df;
  border-color: #329653;
  color: #175b2d;
}

.respuesta.incorrecta {
  background: #ffe0e0;
  border-color: #cf5555;
  color: #852929;
}

#respuestaEscrita {
  display: block;
  width: 100%;
  padding: 15px;
  border: 2px solid #cbd8e2;
  border-radius: 10px;
  font-size: 1rem;
  margin: 15px 0;
}

#respuestaEscrita:focus {
  outline: 2px solid #2696a6;
}

.palabras {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin: 20px 0;
}

.palabra {
  background: #e3eff5;
  color: #24465d;
  padding: 12px 15px;
}

.palabra.usada {
  opacity: 0.35;
  cursor: not-allowed;
}

.orden-elegido {
  min-height: 48px;
  padding: 13px;
  background: #f1f5f8;
  border-radius: 10px;
  line-height: 1.6;
}

#resultado {
  min-height: 30px;
  font-weight: bold;
  line-height: 1.5;
  margin: 18px 0;
}

#resultado.bien {
  color: #218047;
}

#resultado.mal {
  color: #bd3939;
}

#siguiente {
  min-width: 220px;
}

.puntuacion-final {
  font-size: 2rem;
  color: #176b87;
  font-weight: bold;
}

@media (max-width: 520px) {
  .container {
    padding: 23px 17px;
  }

  h1 {
    font-size: 1.65rem;
  }

  .respuestas {
    grid-template-columns: 1fr;
  }

  .barra-superior {
    font-size: 0.9rem;
  }
}
/* Y si te vas??? */