.card-footer { border-top: none; background-color: transparent; }

.btn.btn-gris { background-color: var(--ebiogris); }
.btn.btn-circle, .btn.btn-circle-mini {  width: 3.5rem;  height: 3.5rem;  border-radius: 50% !important;}
.btn.btn-circle-mini { width: 2rem;  height: 2rem; padding: 0.42rem; }
.btn.btn-ebio-success { font-size: 1rem; background-color: var(--ebiosuccess) !important; color: var(--ebiocolorclaro) !important; border:2px solid var(--ebiosuccess); }
.btn.btn-ebio-success:hover { background-color: var(--ebiocolorclaro) !important; color: var(--ebiosuccess) !important; border:2px solid var(--ebiosuccess); }

#read .frame iframe {  height: calc(100vh - 76px) !important; opacity: 0; transition: .5s linear; }
#read .frame iframe.open { opacity: 1 }
#read .loaderText { position: absolute; width: 100%; height: 100%; transition: .5s linear; }
#read .loaderText div { width: 100%; }

#sectorMenuBase .modal-header .close { right: 15px;  top: 15px; }
#sectorMenuBase .resources{ max-height: 80vh; overflow-y: auto; }

#sectorMenuBase .resources .cont_item_r { cursor:pointer; height: 120px; color: white !important; font-size: .9rem; }
#sectorMenuBase .resources .cont_item_r .item_r, #sectorMenuBase .resources .cont_item_r .link{ box-shadow: 0px 1px 3px darkgrey; background: var(--ebiocolor); height: 120px; width: 100%; background-size: cover !important; background-position: center !important; }
#sectorMenuBase .resources .cont_item_r a, #sectorMenuBase .resources .item_r a:hover, #sectorMenuBase .resources .item_r a:visited{ color:white !important; }
#sectorMenuBase .resources .cont_item_r a img { height: 50px; }
#sectorMenuBase .resources .cont_item_r .image { cursor: pointer; }
#sectorMenuBase .resources .cont_item_r .image .image { background: var(--ebiocolor);  border-radius: 2rem;  padding: .5rem; }
 
.lg-prev:after, .lg-next:befor { display: none; }
.lg-backdrop { z-index: 1051; }
.lg-outer { z-index: 1052; }
.lg-outer .lg-thumb-outer, .lg-outer .lg-toogle-thumb {  background-color: var(--ebiocolor); color: white; }
.lg-outer .lg-thumb-item.active, .lg-outer .lg-thumb-item:hover {  border-color: var(--ebiocolorespecial); }
.lg-sub-html, .lg-toolbar, .lg-actions .lg-next, .lg-actions .lg-prev, .lg-actions .lg-next, .lg-actions .lg-next{  color: white; background-color: var(--ebiocolor70); }
.lg-toolbar .lg-icon { color: var(--ebiocolorclaro); }
.lg-thumb-outer.lg-grab { display: flex; justify-content: center; }
.lg-sub-html a, .lg-sub-html a:hover, .lg-sub-html a:visited { color: var(--ebiocolorclaro); text-decoration: none;}
.materialesContent { transition: .5s linear; }
.materialesUpload { display: none; opacity: 0; transition: .5s linear; }
.progress { height: 20px; }
.progress-bar { background-color: var(--ebiocolor); }
.drop-box { align-items: center; padding: 2rem;  background: var(--ebiocolorclaro);  border: 2px dashed var( --ebiocolor);  border-radius: 2rem;}
.btn-ebio:hover i{ color: var(--ebiocolor) !important; }
.drop-box.dragover { background-color: var(--ebiocolor);  color: var(--ebiocolorclaro) !important; border: 2px dashed var(--ebiocolorclaro);  }
.materialesUpload input { border-radius: 2rem;   background: #ececec;   border: none;   margin: .5rem;  text-align: center;    padding: .25rem;}
.materialesUpload input:focus { outline: none; }
.materialesUpload img.thumb { height: 50px; }
.materialesUpload .item-temp-upload { background: #f8f8f8;  padding: 1rem;   border-radius: 2rem;}
.materialesUpload .item-temp-upload small { color: #b4b4b4; font-size: 70%; }

/* Página de contenido del libro (listado de unidades) */

.book-detail-home {
  padding: 1.75rem 1.5rem 3rem;
  max-width: 1280px;
  margin: 0 auto;
}

.book-detail-card {
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(20, 30, 60, .06);
  padding: 1.5rem;
  text-align: center;
}

.book-detail-cover {
  max-width: 100%;
  max-height: 260px;
  margin: 0 auto 1.25rem;
  display: block;
}

.book-detail-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ebiocolornav);
  text-transform: uppercase;
  margin-bottom: .3rem;
}

.book-detail-title {
  font-weight: 700;
  color: #2c313a;
  margin-bottom: 1.1rem;
}

.book-detail-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
  text-align: left;
  border-top: 1px solid #eef0f2;
}

.book-detail-meta li {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem 0;
  border-bottom: 1px solid #eef0f2;
  font-size: .85rem;
}

.book-detail-meta-label {
  color: #9aa1b1;
  flex: 0 0 auto;
}

.book-detail-meta-value {
  color: #2c313a;
  font-weight: 600;
  margin-left: auto;
  text-align: right;
}

.book-detail-hint {
  display: flex;
  gap: .6rem;
  text-align: left;
  background-color: #eaf3fc;
  color: #3d6a91;
  border-radius: .6rem;
  padding: .75rem .9rem;
  font-size: .78rem;
  line-height: 1.4;
}

.book-detail-hint i {
  flex-shrink: 0;
  margin-top: .1rem;
}

.book-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #e8f1fc;
  color: var(--ebiocolornav);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.unit-card {
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(20, 30, 60, .06);
  padding: 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.unit-card-header {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .8rem;
}

.unit-icon {
  width: 46px;
  height: 46px;
  border-radius: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.unit-label {
  font-weight: 700;
  font-size: .95rem;
}

.unit-title {
  color: #2c313a;
  font-weight: 600;
  font-size: .9rem;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: .6rem;
  flex-grow: 1;
}

.unit-pages {
  color: #9aa1b1;
  font-size: .78rem;
  margin-bottom: .6rem;
}

.unit-bar {
  height: 4px;
  width: 46px;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.unit-read-btn {
  align-self: flex-end;
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  border-radius: .6rem;
  padding: .45rem 1rem;
  border: none;
}

.unit-read-btn:hover {
  opacity: .9;
  color: #fff;
}
