:root{
  --bgcolor:#181818;
  --bg-main:#0c96e1;
  --text:#333;
  --subtext:#555;
  --cover:linear-gradient(45deg, #00abf0, #006e9a);
  --pages:linear-gradient(45deg, #fff, #ddd);
  --borde:.125rem solid #0c96e1;
  --shadow:0 0 .6rem rgba(0,0,0, .2);
}
*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body{
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--bgcolor);
  overflow: hidden;
  /* se adiciono esta linea */
  overflow-y:auto;
}
.title{
  text-align: center;
  font-size: 1.8rem;
  background:linear-gradient(90deg,#0c96e1,#5ddcff);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  margin-bottom: 1.5rem;
}
.wrapper{
  /* position: relative;
  width: 66rem;
  height: 45rem;
  padding: 2rem; */
  width:66rem;
  max-width:95vw;
  height:90vh; /* ✅ ya no fija */
  padding:2rem;
  perspective:250rem;
  perspective: 250rem;
  animation: show-animate 2s forwards;
}
@keyframes show-animate{
  0%, 30%{opacity: 0; transform: rotate(-20deg);}
  100% {opacity: 1;transform: rotate(0deg);}
}
.cover{
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: var(--bg-main);
  box-shadow: var(--shadow);
  border-top-left-radius: .6rem;
  border-bottom-left-radius: .6rem;
  transform-origin: right;
}
.cover.cover-left{z-index: -1;}
.cover.cover-right{z-index: 100; transition: transform 1s cubic-bezier(.645, 0.45, .355, 1);}
.cover.cover-right.turn{transform: rotateY(180deg);}
.book{
  /* position: relative; */
  width: 100%;
  height: 100%;
  /* display: flex; */
  perspective: 250rem;
}
.book .book-page{
  position: absolute;
  width: 50%;
  height: 100%;
  background: var(--pages);
  box-shadow: 0 0 .6rem rgba(0,0,0, .1);
  display: flex;
  padding: 2rem;
}
.profile-page{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.profile-page img{
  max-width: 200px;
  border-radius: 50%;
  border: .25rem solid var(--bg-main);
  margin: 1.2rem;
}
.profile-page p{
  text-align: justify;
}
.btn-box{
  display: flex;
  gap: 4rem;
  margin-top: 1rem;
}
.btn{
  display: inline-flex;
  width: 9rem;
  height: 3rem;
  background: var(--bg-main);
  border: var(--borde);
  border-radius: .3rem;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #ddd;
  font-weight: 600;
}
.btn:hover{background: transparent; color: var(--bg-main);}
.btn-box .btn:nth-child(2){background: transparent; color: var(--bg-main);}

.book-page.page-right{
  position: absolute;
  right: 0;
  transform-style: preserve-3d;
  transform-origin: left;
  transition: transform 1s cubic-bezier(.645, .045, .355, 1);
}
.book-page.page-right.turn{transform: rotateY(-180deg);}
.book-page .page-front,
.book-page .page-back{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--pages);
  padding: 1.5rem 2rem;
}
.book-page .page-front{transform: rotateY(0deg) translateZ(1px);}
.book-page .page-back{transform: rotateY(180deg) translateZ(1px);}
.workeduc-box{border-left: var(--borde); height: 75%;overflow-y:auto; padding-right:.5rem;} /* el tamano era 80% */
.workeduc-box::-webkit-scrollbar{width: .6rem;}
.workeduc-box::-webkit-scrollbar-thumb{background: var(--bg-main); border-radius: .5rem;}
.workeduc-box .workeduc-content{
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 1.2rem;
}
.workeduc-box .workeduc-content::before{
  content: '';
  position: absolute;
  top: 0;
  left: -0.65rem;
  width: 1.2rem;
  height: 1.2rem;
  background: var(--bg-main);
  border-radius: 50%;
}

.workeduc-content .year{color: var(--bg-main); font-weight: 800;}
.workeduc-content .year i{margin-right: .4rem;}
.number-page{position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); font-weight: 700;}
.nextprev-btn{
  position: absolute; 
  width: 2rem;
  height: 2rem;
  bottom: .9rem;
  right: 1.5rem; 
  cursor: pointer;
  font-size: 2rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: var(--subtext);
  transition: .5s ease-out;
}
.nextprev-btn:hover{ color: var(--bg-main);}
.nextprev-btn.back{left: 1.5rem;}
.back-profile{
  position: absolute;
  bottom: 1.2rem;
  right: 2rem;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: var(--borde);
  border-radius: .3rem;
  font-size: 1.3rem;
  color: var(--bg-main);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}
.back-profile:hover{
  background: var(--bg-main);
  color: white;
}