body {
  display: flex;
  margin: 0;
  min-height: 100vh;
  flex-direction: column;
  background: #F3F4F6;
  font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}
.app {
  display: flex;
  justify-content: center;   
  align-items: start;
  flex: 1;                   
  padding-top: 20px;
}
.inicial{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
  padding: 20px;
  width: 75%;
  max-width: 600px;

  padding: 40px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  background: #ffffff;
}
.inicial *{
  margin: 0;
}
.inicial-id{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 60%;


}
.inicial-texto{
  background: #224292;
  color: white;
  padding: 20px;
  border-radius: 15px;
  font-size: 17px;
  font-weight: 900;
}
.input-inicial{
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 900;
  border: 2px solid #777777;    
  border-radius: 10px;
  outline: none;
  width: 40%;
  text-align: center;
  min-height: 40px;
}
.titulo-consultar{
  font-size: 20px;
  font-weight: 900;
}
.caja-principal{
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  background: #ffffff;
  
}
.btn-consultar {

  font-weight: 700;
  background-color: #2c51b8;
  color: white;
  border: 0px;
  border-radius: 10px;
  padding: 20px;
  font-size: 15px;
  cursor: pointer;
  width: 30%;
}
.btn-consultar:hover{
  background: #001b66;
}
h2{
    font-size: clamp(35px, 4vw, 54px);
}
.expansor{
    display: inline-grid;
    padding: 8px;
}
.input-id {      
  min-width: 2ch;  
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 900;
  border: 2px solid #777777;    
  border-radius: 10px;
  outline: none;
  max-width: 200px;

}
.medidor{
  visibility: hidden;
    position: absolute;
    font-size: 22px;
    padding: 6px;
    background: #132e73;
}


.caja-buscar   {
  grid-area: buscar;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  width: 80%;
}
.nombre{
  display: flex;


  background: #ff0000;
  width: 50%;
  height: 95%;
}
.racha{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 50px;
  font-weight: 800;
}
.racha-img{
    width: 100%;
  max-width: 48px;
}
.principal {
  display: grid;
  grid-template-columns: 0.5fr 1fr 1fr 1fr 1fr;
  grid-template-rows: auto;
  grid-template-areas:

    "progreso progreso tiempo tiempo tiempo"
    "progreso progreso mate quimi fisi ";
  gap: 15px;
  padding: 20px;
  width: 100%;
  max-width: 1200px;
}

.caja-img{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
   gap: 40px;
   width: 100%;
  background: #dcebde;

}
.caja-progreso { 
  grid-area: progreso;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.pgr-principal{
  display: flex;
  flex-direction: column;
}

.caja-mate {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  grid-area: mate; 
}

.caja-tiempo { 
  grid-area: tiempo;
  display: flex;
  align-items: center;
  padding: 30px;
  border-radius: 20px;
  background: #211e62;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.tmp-texto{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 50%;
  gap: 20px;
}
.tmp-diseño{
  background: #7477ad;
  border-radius: 25px;
  padding: 0px 30px;
}
.img-reloj{
  width: 100%;
  max-width: 50px;
}
.img-libro{
  width: 100%;
  max-width: 50px;
  height: 100%;
}
.tmp-img{
  display: flex;
  align-items: center;
  gap: 10px;
}
.caja-quimi    { 
  display: flex;
  grid-area: quimi; 
  align-items: center;
  flex-direction: column;
  gap: 10px;
}
.caja-fisi     { 
  display: flex;
  align-items: center;
  grid-area: fisi; 
  flex-direction: column;
  gap: 10px;
}
.img-materias
{
   width: 100%;
  max-width: 30px;
}
.materias-nombre{
  display: flex;
  align-items: center;
  gap: 30px;
  width: 100%;
  font-size: 20px;
  font-weight: 900;

}
.materias-mate{
   display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  font-size: 20px;
  font-weight: 900;
}
.materias-fisica{
   display: flex;
  align-items: center;
  gap: 45px;
  width: 100%;
  font-size: 20px;
  font-weight: 900;
}
.perfil{
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1 / 1;
  border-radius: 100px;
    outline: 3px solid #c2c2c2;
     outline-offset: 3px;
}
.estadisticas{
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}
.info-general{
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 900;
  color: #7e807e;
}

.xp{
  display: flex;
  justify-content: space-between;
  width: 40%;
  font-weight: 900;
}
.titulo{
  color: #7477ad;
}
.texto{
  color: #777777;
  font-weight: 600;
}
.texto2{
  font-weight: 600;
}
.caja-progreso *, 
.caja-mate *, 
.caja-quimi *, 
.caja-fisi * {
  margin: 0;
}

.espacios{
  display: flex;
  justify-content: space-between;
  width: 100%;
 
}
.barra-principal{
 width: 40%;
 font-weight: 900;
}
.div-barra{
  width: 100%;
}
.barra-fondo{
    background: #ECEDF1;
    width: 100%;
    max-height: 10px;
    border-radius: 50px;
}
.fondo-materias{
  background: #ECEDF1;
    width: 100%;
    max-height: 10px;
    border-radius: 50px;
}
.barra{
    background: #8F4CB6;
    width: var(--progreso);
    min-height: 6px;
    border-radius: 50px;
}
.barra-mate{
  background: #0b6f39;
    width: var(--progreso-mate);
    min-height: 6px;
    border-radius: 50px;
}
.barra-quimi{
  background: #681766;
    width: var(--progreso-quimi);
    min-height: 6px;
    border-radius: 50px;
}
.barra-fisi{
  background: #132e73;
    width: var(--progreso-fisi);
    min-height: 6px;
    border-radius: 50px;
}

.titulo-estadisticas{
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
    color: #312D81;
    text-align: center;
    margin-bottom: 20px;
    margin: 0;
    
}
/*#region Movil */
@media (max-width: 768px) {
  .principal {
    grid-template-columns: 1fr;
    grid-template-areas:
      "buscar"
      "progreso"
      "tiempo"
      "mate"
      "quimi"
      "fisi";
    padding: 12px;
    gap: 12px;
  }
  .caja-buscar{
    width: 75%;
  }
  .caja-img{
    gap: 10px;
  }
  .nombre{
    height: 100%;
  }
  .tmp-diseño {
    font-size: 14px;
    padding-inline: 20px;
  }
  .titulo{
      font-size: 13px;
  }
  .img-libro{
    max-width: 40px;
  }
  .img-reloj{
    max-width: 40px;
  }
  .materias-mate{
    gap: 60px;
  }
   .materias-nombre{
    gap: 85px;
  }
   .materias-fisica{
    gap: 100px;
   }
   .inicial-id{
    width: 100%;
   }
   .btn-consultar{
    padding: 10px;
   }
   .titulo-estadisticas{
    font-size: 47px;
   }
   
}
/*#endregion */

