@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&family=Reem+Kufi:wght@400..700&family=Scheherazade+New:wght@400;500;600;700&display=swap');

:root {
  --color-principal: #e9900a;
  --color-secundario: #fff;
  --color-terciario: #000000;
  --color-menu: #242526;
  --color-hover: #3a3b3c;
  --color-slider: #E8E8E9;
  --font-logo: "Reem Kufi", sans-serif;
  --font-texto-menu: "Scheherazade New", serif;
  --spacing-unit: 1rem; /* 10px */
  --border-radius: 0.5rem; /* 5px */
  --fuente-principal: "Scheherazade New", serif;
}

html {
  box-sizing: border-box;
  font-size: 62.5%;
}

body {
  background-color: var(--color-secundario);
  font-size: 1.6rem;
  line-height: 1.5;
  font-family: var(--fuente-principal);
}

*, *:before, *:after {
  box-sizing: inherit;
}

* {
  padding: 0;
  margin: 0;
}

#hero {
  display: table;
  width: 100%;
  height: 100vh;
  background-image: url("https://images.pexels.com/photos/1029141/pexels-photo-1029141.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Menu */
nav {
  width: 100%;
  z-index: 99;
  background: var(--color-menu);
  border-bottom: 0.1rem solid var(--color-principal);
  
}

nav .wrapper {
  top: 15px;
  position: relative;
  max-width: 140rem;
  padding: 0 var(--spacing-unit) 3rem;
  height: 7rem;
  line-height: 7rem;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.wrapper .logo a {
  color: var(--color-secundario);
  font-size: 3rem;
  font-weight: 600;
  text-decoration: none;
  font-family: var(--font-logo);
}

.wrapper .nav-links {
  display: inline-flex;
}

.nav-links li {
  list-style: none;
}

.nav-links li a {
  color: var(--color-secundario);
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 500;
  padding: 0.9rem 1.8rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  font-family: var(--font-texto-menu);
}

.nav-links li a:hover {
  background: var(--color-hover);
}

.li-active:hover {
  background: var(--color-hover);
  position: relative;
  left: 1rem;
  padding-right: 2rem;
}

.nav-links .mobile-item {
  display: none;
}

.nav-links .drop-menu {
  position: absolute;
  background: var(--color-menu);
  width: 18rem;
  line-height: 4.5rem;
  top: 8.5rem;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 0.6rem 1rem rgba(0, 0, 0, 0.15);
}

.nav-links li:hover .drop-menu,
.nav-links li:hover .mega-box {
  transition: all 0.3s ease;
  top: 7rem;
  opacity: 1;
  visibility: visible;
}

.drop-menu li a {
  width: 100%;
  display: block;
  padding: 0 0 0 1.5rem;
  font-weight: 400;
  border-radius: 0;
}

.mega-box {
  position: absolute;
  left: 0;
  width: 100%;
  padding: 0 var(--spacing-unit);
  top: 8.5rem;
  opacity: 0;
  visibility: hidden;
}

.mega-box .content {
  background: var(--color-menu);
  padding: 2.5rem 2rem;
  display: flex;
  width: 100%;
  justify-content: space-between;
  box-shadow: 0 0.6rem 1rem rgba(0, 0, 0, 0.15);
  border-top: 0.1rem solid var(--color-principal);
}

.mega-box .content .row {
  width: calc(25% - 3rem);
  line-height: 4.5rem;
}

.content .row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content .row header {
  color: var(--color-secundario);
  font-size: 2rem;
  font-weight: 500;
}

.content .row .mega-links {
  margin-left: -4rem;
  border-left: 0.1rem solid rgba(255, 255, 255, 0.09);
}

.row .mega-links li {
  padding: 0 2rem;
}

.row .mega-links li a {
  padding: 0 2rem;
  color: var(--color-secundario);
  font-size: 1.7rem;
  display: block;
}

.row .mega-links li a:hover {
  color: var(--color-secundario);
}

.wrapper .btn {
  color: var(--color-secundario);
  font-size: 2rem;
  cursor: pointer;
  display: none;
}

.wrapper .btn.close-btn {
  position: absolute;
  right: 3rem;
  top: 1rem;
}

@media screen and (max-width: 97rem) {
  .wrapper .btn {
    display: block;
  }
  .wrapper .nav-links {
    position: fixed;
    height: 100vh;
    width: 100%;
    max-width: 35rem;
    top: 0;
    left: -100%;
    background: var(--color-menu);
    display: block;
    padding: 5rem 1rem;
    line-height: 5rem;
    overflow-y: auto;
    box-shadow: 0 1.5rem 1.5rem rgba(0, 0, 0, 0.18);
    transition: all 0.3s ease;
  }
  ::-webkit-scrollbar {
    width: 1rem;
  }
  ::-webkit-scrollbar-track {
    background: var(--color-menu);
  }
  ::-webkit-scrollbar-thumb {
    background: var(--color-hover);
  }
  #menu-btn:checked~.nav-links {
    left: 0%;
  }
  #menu-btn:checked~.btn.menu-btn {
    display: none;
  }
  #close-btn:checked~.btn.menu-btn {
    display: block;
  }
  .nav-links li {
    margin: 1.5rem 1rem;
  }
  .nav-links li a {
    position: relative;
    padding: 0 2rem;
    display: block;
    font-size: 2rem;
    right: 2rem;
  }
  .nav-links .drop-menu {
    position: static;
    opacity: 1;
    top: 6.5rem;
    visibility: visible;
    padding-left: 2rem;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s ease;
  }
  #showDrop:checked~.drop-menu,
  #showMega:checked~.mega-box,
  #showMega2:checked~.mega-box,
  #showMega3:checked~.mega-box {
    max-height: 100%;
  }
  .nav-links .desktop-item {
    display: none;
  }
  .nav-links .mobile-item {
    display: block;
    color: var(--color-secundario);
    font-size: 2rem;
    font-weight: 500;
    padding-left: 2rem;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
  }
  .nav-links .mobile-item:hover {
    background: var(--color-hover);
  }
  .drop-menu li {
    margin: 0;
  }
  .drop-menu li a {
    border-radius: var(--border-radius);
    font-size: 1.8rem;
  }
  .mega-box {
    position: static;
    top: 6.5rem;
    opacity: 1;
    visibility: visible;
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  .mega-box .content {
    box-shadow: none;
    flex-direction: column-reverse;
    padding: 2rem 2rem 0 2rem;
  }
  .mega-box .content .row {
    width: 100%;
    margin-bottom: 1.5rem;
    border-top: 0.1rem solid rgba(255, 255, 255, 0.08);
  }
  .mega-box .content .row:nth-child(1),
  .mega-box .content .row:nth-child(2) {
    border-top: 0;
  }
  .content .row .mega-links {
    border-left: 0;
    padding-left: 1.5rem;
  }
  .row .mega-links li {
    margin: 0;
  }
  .content .row header {
    font-size: 1.9rem;
  }
}

nav input {
  display: none;
}

.body-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  padding: 0 3rem;
}

.body-text div {
  font-size: 4.5rem;
  font-weight: 600;
}

/* buscador */
nav {
  z-index: 1000;
}

.search-icon {
  cursor: pointer;
  display: block;
  color: #fff;
}

@media (min-width: 768px) {
  .search-icon {
    position: relative;
    bottom: 4px;  
  }
}

.search-container {
  position: fixed;
  background-color: #1a1e23;
  border-bottom: 0.2rem solid var(--color-principal);
  display: none;
  z-index: 1001;
  animation: slideDown 0.3s ease-in-out;
  width: 100%;
}

.search-bar {
  display: flex;
  align-items: center;
  padding: 2rem;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.6rem;
  background-color: transparent;
  color: #fff;
  width: 80%;
}

.search-bar button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.8rem;
  color: #fff;
  margin-left: 2rem;
}

.search-results {
  display: none;
  background-color: #1a1e23;
  border-top: 0.1rem solid #ccc;
  max-height: 30rem;
  overflow-y: auto;
  animation: fadeIn 0.3s ease-in-out;
}

.search-results p {
  margin: 1rem;
  font-size: 1.4rem;
  color: #fff;
}

.search-results ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-results li {
  padding: 1rem;
  border-bottom: 0.1rem solid #eee;
}

.search-results li a {
  text-decoration: none;
  color: #ffffff;
  display: block;
}

.search-results li a .highlight {
  background-color: #000;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100%);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-container.closing {
  animation: slideUp 0.3s ease-in-out;
}

/* libros, audio, audio preferidos */
.titulo-libros,
.titulo-audio,
.titulo-audio-preferido {
  text-align: center;
  margin-top: 5rem;
  margin-bottom: 5rem;
  font-family: 'Reem Kufi', sans-serif;
  font-size: 4.5rem;
}

.cards {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
  font-family: 'Scheherazade New', serif;
  margin-bottom: 2rem;
}

.cards-card {
  width: 22.5rem;
  height: 30rem;
  background-color: #FFFFFF;
  box-shadow: 0.4rem 0.9rem 0.6rem rgba(0, 0, 0, 0.15);
  margin: 1.2rem;
}

.card-image {
  border-radius: 0 0 3rem 3rem;
  background: rgb(39, 128, 233);
  background: linear-gradient(90deg, rgba(39, 128, 233, 1) 35%, rgba(0, 24, 62, 1) 100%);
  width: 22.5rem;
  height: 16.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-img,
.image-img-libros,
.image-img-grupo {
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  border: 0.1rem solid #FFFFFF;
}

.image-img-libros {
  height: 15rem;
  border-radius: 0.5rem;
}

.image-img-grupo {
  width: 12rem;
  border-radius: 0.5rem;
  object-fit: cover;
}

.card-nombre {
  text-align: center;
  margin-top: 1rem;
}

.card-btn {
  text-decoration: none;
  background: rgb(39, 128, 233);
  background: linear-gradient(90deg, rgba(39, 128, 233, 1) 35%, rgba(31, 86, 174, 1) 100%);
  padding: 1rem;
  border-radius: 0.5rem;
  height: max-content;
  width: max-content;
  position: relative;
  top: 2.5rem;
  left: 5.5rem;
  color: #fff;
}

@media screen and (max-width: 72rem) {
  .cards {
    display: flex;
    flex-flow: column wrap;
  }
}

/* Modal Vida Sabio */
.offcanvas-top {
  position: fixed;
  top: -100%;
  left: 0;
  right: 0;
  background-color: #fff;
  color: #000;
  transition: top 0.3s;
  z-index: 9999;
  padding: 2rem;
  box-sizing: border-box;
  height: 100%;
  overflow-y: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

#closeOffcanvas {
  position: absolute;
  top: 1.5rem;
  right: 3rem;
  font-size: 4rem;
  text-decoration: none;
  color: black;
  cursor: pointer;
}

.offcanvas-nombre{
  text-align: center;
  margin-bottom: 2rem;
}

.linia-separacion{
  border-color: rgb(209, 139, 33);
}

.offcanvas-titulo{
  color: rgb(9, 9, 74) !important;
  font-size: 30px !important;
  text-align: center;
  margin: 3rem 0;
}

.offcanvas-contenido-vida{
  font-family: Amiri, serif;
  font-size: 20px; 
  direction: rtl;
  text-align: right;
  text-indent: 33px;
  margin-bottom: 17px;
}

.offcanvas-content {
  display: none;
  flex-grow: 1;
  margin-top: 2rem;
}

.offcanvas-content p {
  direction: rtl;
  font-family: "Amiri", serif;
  text-indent: 4rem;
  line-height: 3.5rem;
}

.offcanvas-lista{
  direction: rtl;
  padding-right: 100px;
  color: blue;
}

.offcanvas-content.active {
  display: block;
}

.offcanvas-btn{
  text-align: right;
  margin: 4rem 1rem;
}

.offcanvas-btn-salir{
  
  background-color: var(--color-terciario);
  padding: 1rem;
  color: var(--color-secundario);
  width: auto;
  text-decoration: none;
}

@media (max-width: 76.8rem) {
  .offcanvas-top {
    padding: 1rem;
  }
  .offcanvas-links a {
    padding: 0.8rem;
    font-size: 1.4rem;
  }
}

.no-scroll {
  overflow: hidden;
}