:root {
   --book-height: 100vh;
   --book-width: 1000px;
   --color__brand1: #54BDBD;
   --color__brand2: #439B35;
   --color__brand3: #F7B800;
   --color__brand4: #F4E4D4;
}

.book {
   transition: opacity 0.4s 0.2s;
   perspective: 250vw;
   /* margin-top: 40px; */
   margin-bottom: 40px;

   -webkit-user-select: none;
   -moz-user-select: none;
   -ms-user-select: none;
   user-select: none;
}

@media (max-width: 767px) {
   .book {
      margin-bottom: 0;
   }
}

.book .pages {
   min-height: var(--book-height);
   max-width: var(--book-width);
   width: 100%;
   margin-left: auto;
   margin-right: auto;
   position: relative;
   transform-style: preserve-3d;
   backface-visibility: hidden;
   border-radius: 4px;
}

.book .page {
   float: none;
   clear: none;
   margin: 0;
   position: absolute;
   top: 0;
   width: 50%;
   height: var(--book-height);
   min-height: 450px;
   max-height: 530px;
   transform-origin: 0 0;
   transition: transform 1.4s;
   backface-visibility: hidden;
   transform-style: preserve-3d;
   cursor: pointer;
   user-select: none;
   background-color: #ffe6d5;
}


@media (min-width: 768px) {
   :root {
      --book-height: 450px;
   }
}

@media (max-width: 660px) {
   .book .page {
      transform-origin: 0 100%;
      top: 0;
      height: 50%;
      min-height: auto;
      width: 100%;
   }
}

.book .page:nth-child(odd):before,
.book .page:nth-child(even):before {
   content: "";
   position: absolute;
   left: 10px;
   top: 10px;
   right: 10px;
   bottom: 10px;
   /* border: 1px dashed #fff; */
}



.page:nth-child(even) {
   clear: both;
}

.book .page:nth-child(odd) {
   pointer-events: all;
   transform: rotateY(0deg);
   right: 0;
   border-radius: 0 4px 4px 0;
   background-image: linear-gradient(to right, rgba(0, 0, 0, 0.1) 0%, rgb(255 227 208) 10%);
}

/* .book .page:nth-child(odd)>div{
   background-image: linear-gradient(to right, rgba(0, 0, 0, 0.2) 0%, rgb(250 250 250 / 80%) 10%),
   url(../img/bg-body.svg);
} */

@media (max-width: 660px) {
   .book .page:nth-child(odd) {
      transform: rotateX(0deg);
      border-radius: 0 0 4px 4px;
      background-image: linear-gradient(to top, rgba(0, 0, 0, 0.1) 0%, rgb(255 227 208) 10%);
   }

}

.book .page:nth-child(odd):hover {
   transform: rotateY(-15deg);
}

@media (max-width: 660px) {
   .book .page:nth-child(odd):hover {
      transform: rotateX(-15deg);
   }
}

.book .page:nth-child(even) {
   pointer-events: none;
   transform: rotateY(180deg);
   transform-origin: 100% 0;
   left: 0;
   border-radius: 4px 0 0 4px;
   border-color: black;

}

@media (max-width: 660px) {
   .book .page:nth-child(even) {
      transform: rotateX(180deg);
      transform-origin: 0 0;
      top: auto;
      bottom: 0;
      border-radius: 4px 4px 0 0;
      background-image: linear-gradient(to bottom, rgba(0, 0, 0, .12) 0%, rgb(250 250 250 / 0) 10%);
   }
}

.book .page.grabbing {
   transition: none;
}

.book .page.flipped:nth-child(odd) {
   pointer-events: none;
   transform: rotateY(-180deg);
}

@media (max-width: 660px) {
   .book .page.flipped:nth-child(odd) {
      transform: rotateX(-180deg);
   }
}

.book .page.flipped:nth-child(even) {
   pointer-events: all;
   transform: rotateY(0deg);
}

@media (max-width: 660px) {
   .book .page.flipped:nth-child(even) {
      transform: rotateX(0deg);
   }
}

.book .page.flipped:nth-child(even):hover {
   transform: rotateY(15deg);
}

@media (max-width: 660px) {
   .book .page.flipped:nth-child(even):hover {
      transform: rotateX(15deg);
   }
}

.page:nth-child(odd) {
   background-position: right top;
}

.custom {
   height: 100%;
   padding: 0 30px;
   overflow: auto;
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   justify-content: center;
   position: relative;
   border: 1px solid #c3c2c200;
   border-left-width: 10px;
}

.custom img {
   border-radius: 5px;
   /* mix-blend-mode: darken; */
}

.custom img.mix {
   mix-blend-mode: multiply;
}

.mt-1 {
   margin-top: 10px;
}

.mt-2 {
   margin-top: 20px;
}

.mb-1 {
   margin-bottom: 10px;
}

.mb-2 {
   margin-bottom: 20px;
}

img.sz0 {
   max-width: 200px;
   width: 100%;
}

img.sz1 {
   max-width: 400px;
   width: 100%;
}

img.sz2 {
   max-width: 400px;
   width: 100%;
}

img.sz3 {
   max-width: 100%;
   max-height: 100%;
}

.footerImg {
   font-weight: bold;
   text-align: center;
   font-style: italic;
   font-size: 0.8rem;
   line-height: 1.2;
}

.custom img.fondo {
   max-width: 100%;
   max-height: 100%;
   mix-blend-mode: multiply;
   position: absolute;
   height: 100%;
   width: 100%;
   object-fit: cover;
   object-position: center center;
}

.custom span.fuente {
   position: absolute;
   bottom: 0;
   background: #757575;
   width: 100%;
   text-align: center;
   color: #ffffff;
   font-style: italic;
   font-size: 14px;
   padding: 2px;
}

.textContainer {
   /* position: absolute; */
   padding: 10px 15px;
   /* height: 100%; */
   /* top: 5%; */
   overflow-y: auto;
   max-width: 100%;
   /* left: 5%; */
   display: flex;
   align-items: center;
   justify-content: center;
   flex-wrap: wrap;
}

@media (max-width: 767px) {
   .textContainer {
      top: 0%;
      /* height: 100%; */
      padding: 20px 15px;
   }
}

/*.longText{
   overflow-y: scroll;
   width: 90%;
   left: 5%;
}*/

/*Scrollbar styles*/
.textContainer::-webkit-scrollbar {
   width: 8px;
   /* Tamaño del scroll en vertical */
   height: 8px;
   /* Tamaño del scroll en horizontal */
   right: 10px;
   /*display: none;  /* Ocultar scroll */
}

.textContainer::-webkit-scrollbar-thumb {
   border-radius: 4px;
   background: rgba(255, 255, 255, .3);
}

.textContainer::-webkit-scrollbar-thumb:hover {
   background: rgba(255, 255, 255, .7);
   box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2);
}

.textContainer::-webkit-scrollbar-thumb:active {
   background-color: #ffffff;
}

/* Ponemos un color de fondo y redondeamos las esquinas del track */
.textContainer::-webkit-scrollbar-track {
   background: rgba(0, 0, 0, 0.3);
   ;
   border-radius: 4px;
}

/* Cambiamos el fondo cuando esté en active o hover */
/*.textContainer::-webkit-scrollbar-track:hover,
.textContainer::-webkit-scrollbar-track:active {
   background: rgb(255, 255, 255);
}*/
/*Scrollbar styles*/

.textBook {
   margin: 0;
}

.textBook,
.textContainer ol li {
   font-size: 22px;
   /*color: #fff;*/
   text-align: left;
   line-height: 1.4;

}

.textContainer ol li {
   text-align: left;
}

.textContainer ol {
   margin-bottom: 0;
   margin-left: -1rem;
}

.textContainer h3 {
   width: 100%;
   text-align: center;
}

/*.longText{
   font-size: 14px;
}*/
/* 
@media (max-width: 992px) {

   .textBook,
   .textContainer ol li {
      font-size: 23px;
   }
}

@media (max-width: 660px) {

   .textBook,
   .textContainer ol li {
      font-size: 22px;
      margin-bottom: 0;
   }
} */

@media (max-width: 576px) {

   .textBook {
      font-size: 18px;
      line-height: 1.2;
   }

   .textContainer ol li {
      font-size: 18px;
      line-height: 1.2;
   }
}

.pageno {
   top: 0;
   position: absolute;
   width: 50%;
   height: var(--book-height);
   display: flex;
   flex-direction: column;
   justify-content: flex-end;
   align-items: center;
   font-size: 1rem;
}

.custom.coverPage__portada {
   display: flex;
   flex-flow: column;
   align-items: center;
   gap: 20px;
   background-color: var(--color__brand4);
   background-image: url(../img/bg-body.svg);
   background-size: 500px;
   background-position: center;
   background-repeat: repeat;
   background-blend-mode: color-dodge;
}

.custom.coverPage__portada h2 {
   margin: 0;
   text-align: center;
   font-weight: bold;
   padding: 15px 20px;
   color: #ffffff;
   font-size: 30px;
   display: inline-block;
   /* font-style: italic; */
   line-height: 1;
   background: var(--color__brand2);
   border-radius: 10px;
}

.custom.coverPage__portada img {
   max-width: 100%;
   max-height: 60%;
}

.custom.coverPage__portada img.tituloRedi {
   margin-top: 10px;
}

@media (max-width:660px) {
   .custom.coverPage__portada img {
      max-height: 60%;
   }

   .custom.coverPage__portada h2 {
      font-size: 30px;
      max-width: max-content;
      border-radius: 10px;
      padding: 5px;
   }

   .custom.coverPage__portada img.tituloRedi {
      margin-top: 0;
      max-width: 200px;
   }
}



.coverPage {
   background-image: url(../img/bg-body.svg);
   background-repeat: no-repeat;
   /*background-position: left top;*/
   background-size: cover;
   background-blend-mode: multiply;
}

.coverPage1 {
   background-color: var(--color__brand4);
   color: #fff;
   background-blend-mode: color-dodge;
}

.coverPage2 {
   background-color: var(--color__brand2);
   color: #fff;
}

.coverPage3 {
   background-color: var(--color__brand1);
   color: #fff;
}

.reinit {
   background-color: var(--color__brand4);
   border: none;
   padding: 10px;
   border-radius: 7px;
   color: var(--color__brand2);
   font-size: 25px;
   font-weight: bold;
}

.reinit img {
   width: 40px;
   margin-right: 10px;
}


.referencias {
   padding: 10px;
   text-align: center;
   background: #ffffff33;
   border-radius: 10px;
   width: 100%;
   margin-top: 20px;
}

.referencias p {
   margin-bottom: 10px;
   font-weight: bold;
   font-size: 18px;
}

.referencias span {
   display: block;
   font-size: 16px;
}