body {

  background: #f6f6f6;
  padding: 2rem;
}



.img-catego {
  max-width: 270px;
  position: relative;
  margin-top:40px;
}

.img-responsive {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.chamaki img{
  width:300px;
  align-items: center;
  margin:50px;
}

.contenedor-descripciones {
  padding:30px;
  border-radius: 20px;
  border-color:#de0d92;
  border-width: 1px!important;
  border-style: dashed;
  text-align: left;
}

.chamaki-categorias {
  width: 300px;
}


@media (max-width: 600px) {
  .chamaki-categorias {
    width: 200px;
  }

  .imagen-responsive {
    width: 300px;
    align-items: center;
    height: auto;
    display: block;
    margin-bottom:40px;

  }
}

/* Centrado y responsivo para logocabecera */
.logocabecera-biblioteca {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 50px auto 20px auto;
  height: auto;
  max-width: 360px;
  width: 100%;
  padding: 0 2vw;

}
.logo-responsive-biblioteca {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
}
@media (max-width: 600px) {
  .logocabecera-biblioteca {
    margin: 40px auto 12px auto;
    max-width: 95vw;
    padding: 0 3vw;
  }
  .logo-responsive-biblioteca {
    max-width: 200px;
  }
}


/* Icon */
.icon-circle-menu {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  /* Prevent overflow */
  overflow: hidden;
}

.icon-circle-menu img {
  width: 36px;
  height: 36px;
  max-width: 100%;
  max-height: 100%;
  display: block;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin-left: 0;
}
.nav-menu li a {
    text-decoration: none;
    color: #711934;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}
.nav-menu li a:hover {
    color: #efb347;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    margin-left: auto;
}
.hamburger span {
    width: 28px;
    height: 4px;
    background: #711934;
    margin: 3px 0;
    border-radius: 2px;
    transition: 0.3s;
}

/* Responsive */
@media (max-width: 838px) {

  .icon-circle-menu img {
  max-width: 60px;
  height: auto;
}

/* Make icon smaller on mobile */
@media (max-width: 700px) {
  .icon-circle-menu {
    width: 40px;
    height: 40px;
  }
  .icon-circle-menu img {
    width: 24px;
    height: 24px;
  }
}
    .menu-inner {
        min-height: 64px;
        padding: 0 0.5rem;
    }


    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: #fafafa;
        gap: 0;
        display: none;
        z-index: 10;
        border-bottom: 1px solid #e2e2e2;
    }
    .nav-menu.open {
        display: flex;
    }
    .nav-menu li {
        border-top: 1px solid #e2e2e2;
        text-align: left;
        padding: 1rem 1.5rem;
    }
    .hamburger {
        display: flex;
    }
}

/*TERMINA NAV DE HERO */

.nav-bar {
display: flex;
justify-content: center;
gap: 48px;
}
.nav-btn {
background: none;
border: none;
text-align: center;
cursor: pointer;
outline: none;
}
.nav-btn.selected .icon-circle {
outline: 3px solid #B0455D;
outline-offset: 2px;
}


.nav-label {
font-weight: 600;
color: #333;
font-size: 16px;
white-space: pre-line;
margin-top: 2px;
}

.menu-container {
  max-width: 700px;
  margin: auto;
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  /* box-shadow: 0 2px 12px rgba(0,0,0,.08); */
}

.menu,
.menu ul {
  list-style: none;
  padding-left: 1em;
  margin: 0;
}

.menu > li > span {
  font-weight: bold;
  font-size: 1.1em;
  color: #611232;
}

.menu li {
  margin: 0.2em 0;
  position: relative;
}

.menu li span.expand {
  cursor: pointer;
  text-align: left;
  display: inline-block;
  padding: 0.2em 0.5em;
  border-radius: 5px;
  transition: background .2s;
}

.menu li span.expand:hover {
  background: #FFF8C6;
}

.menu ul {
  display: none;
  margin-left: 1em;
  border-left: 2px solid #e0eaff;
  padding-left: 0.8em;
}

.menu li.open > ul {
  display: block;
}

.menu li span.expand:before {
  content: "▶";
  font-size: 0.8em;
  display: inline-block;
  width: 1em;
  margin-right: 0.3em;
  transition: transform 0.2s;
}

.menu li.open > span.expand:before {
  transform: rotate(90deg);
}

.menu li > ul > li {
  font-weight: normal;
}

.menu li ul li span.expand {
  color: #404041;
  font-weight: 500;
}

.menu li ul li {
  color: #404041;
  font-size: 0.98em;
}


.biblioteca-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-top: 32px;
  margin-bottom: 8px;
  color: #54213d;
}

.biblioteca-title i {
  color: #b0455d;
  font-style: italic;
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: 1px;
}

.biblioteca-desc {
  text-align: center;
  font-size: 1.1rem;
  color: #383838;
  margin-bottom: 30px;
}

.intro-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px #71193411;
  max-width: 850px;
  margin: 0 auto 32px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 38px 28px 32px;
  gap: 36px;
}
.intro-card-content {
  flex: 1;
}
.intro-card-title {
  font-size: 1.13rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #4b1c38;
}
.intro-card-text {
  color: #363636;
  font-size: 1rem;
  line-height: 1.56;
}
.intro-card-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
@media (max-width: 800px) {
  .intro-card {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 18px 12px;
  }
  .intro-card-img {
    margin-top: 6px;
    margin-bottom: 6px;
  }
}


.collections-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  margin: 40px auto 40px auto;
  max-width: 1100px;
  padding: 2px 0 10px 0;
}
.collection-card {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  background: #23232f;
  border-radius: 14px;
  box-shadow: 0 2px 12px #0002;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.18s, box-shadow 0.18s;
  border: none;
}
.collection-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  filter: brightness(0.95);
  transition: filter 0.18s;
}
.collection-card:hover {
  transform: translateY(-4px) scale(1.025);
  box-shadow: 0 6px 24px #0002;
}
.collection-card-title {
  position: absolute;
  bottom: 12px;
  left: 0;
  width: 100%;
  color: #fff;
  text-shadow: 0 2px 10px #000a;
  font-size: 1.16rem;
  font-weight: bold;
  text-align: center;
  letter-spacing: 0.5px;
  background: linear-gradient(0deg, #222b 85%, #23232f00 100%);
  padding: 10px 0 12px 0;
  border-radius: 0 0 16px 16px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
  gap: 36px;
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 15px;
  padding-bottom: 20px;
}
.category-card {
  background: #fff;
  border-radius: 25px;
  box-shadow: 0 2px 16px #71193409;
  padding: 38px 24px 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 340px;
  min-width: 0;
  border: 1.5px solid #f1e7eb;
  transition: box-shadow 0.18s, border 0.18s;
}
.category-card:hover {
  box-shadow: 0 6px 36px #b0455d18;
  border: 1.5px solid #b0455d;
}

.cat-icon {
  width: 82px;
  height: 82px;
  margin-bottom: 10px;
  object-fit: contain;
  display: block;
}
.cat-title {
  font-weight: 700;
  color: #b0455d;
  font-size: 1.2rem;
  margin-bottom: 7px;
  text-align: center;
}
.cat-desc {
  color: #41182d;
  font-size: 1.01rem;
  margin-bottom: 16px;
  text-align: center;
  font-weight: 500;
}
.cat-list {
  background: #fcfcfd;
  border-radius: 15px;
  border: 1.2px solid #e4e2e6;
  padding: 16px 14px 14px 22px;
  font-size: 0.99rem;
  width: 100%;
  max-width: 305px;
  min-height: 120px;
  margin: 0 auto;
  color: #30303a;
  box-shadow: 0 2px 8px #b0455d07;
}
.cat-list ul, .cat-list li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.cat-list > ul > li {
  margin-bottom: 6px;
}
.cat-list > ul > li > ul {
  margin-left: 16px;
  margin-top: 2px;
}
.cat-list ul li:before {
  content: '▼';
  color: #b0455d;
  font-size: 0.7em;
  margin-right: 6px;
  vertical-align: middle;
}
.cat-list ul li ul li:before {
  content: '•';
  color: #b0455d;
  margin-right: 7px;
  font-size: 1em;
}

@media (max-width: 900px) {
  .category-grid { gap: 22px; }
  .category-card { min-height: 300px; padding: 25px 10px 25px 10px; }
  .cat-icon { width: 62px; height: 62px; }
}
@media (max-width: 600px) {
  .intro-card { flex-direction: column; padding: 12px 2vw; }
  .category-grid { gap: 10px; }
  .category-card { min-height: 210px; padding: 12px 4px 14px 4px; }
  .cat-list { padding: 9px 6px 9px 14px; font-size: 0.92rem; }
  .cat-icon { width: 44px; height: 44px; }
  .cat-title { font-size: 1.03rem; }

}

/* Menu Bar Container */
.menu-bar {
    width: 100%;
    background: #fafafa;
    border-top: 2px solid #e2e2e2;
    border-bottom: 2px solid #e2e2e2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
}

.menu-inner {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 1.5rem;
    min-height: 90px;
    position: relative;
}

.btn-inicio {
max-width:130px;
align-items: center;
display: block;
margin-left: auto;
margin-right: auto;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {

  background: #fff;
  color: #212336;
  margin: 0;
  padding: 0;
}
.main-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 48px;
  line-height: 1.2;
}
.resource-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}
.resource-card {
  background: #fff;
  border: 1px solid #E0E4EA;
  border-radius: 8px;
  width: 260px;
  padding: 32px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.15s;
  cursor: pointer;
}
.resource-card:hover {
  box-shadow: 0 4px 20px rgba(33,35,54,0.07);
  border-color: #DE0D92;
}


.resource-icon-bg img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  display: block;
}
.resource-label {
  margin-top: 4px;
  font-size:16px;
  font-weight: 600;
  text-align: center;
  color: #212336;
  letter-spacing: 0.01em;
}
@media (max-width: 640px) {
  .resource-grid {
    flex-direction: column;
    gap: 20px;
  }
  .main-title {
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 40px;
  }
  .resource-card {
    width: 95vw;
    max-width: 350px;
    margin: 0 auto;
  }
}

.collections-section {
  margin: 48px auto 0 auto;
  max-width: 900px;
  padding: 0 2vw;
}
.collections-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #23243a;
  margin-bottom: 24px;
  margin-left: 5px;
}
.collections-grid {
  display: flex;
  gap:5px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.collection-card {
  background: #fff;
  border: 1px solid #e0e4ea;
  border-radius: 9px;
  width: 260px;
  min-width: 180px;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  transition: box-shadow 0.15s, border 0.15s;
  cursor: pointer;
}
.collection-card:hover,
.collection-card-wide:hover {
  box-shadow: 0 4px 20px rgba(33, 35, 54, 0.08);
  border-color: #bd158d;
}
.collection-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.collection-label {
  text-align: center;
  padding: 19px 0 15px 0;
  font-size: 15px;
  font-weight: 600;
  color: #23243a;
  background: #fff;
}
.collection-card-wide {
  background: #fff;
  border: 1px solid #bd158d;
  border-radius: 9px;
  overflow: hidden;
  margin-top: 12px;
  margin-bottom: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow 0.15s, border 0.15s;
}
.collection-card-wide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.collection-card-wide .collection-label {
  font-size: 15px;
  font-weight: 600;
  padding: 21px 0 15px 0;
}
@media (max-width: 900px) {
  .collections-grid {
    flex-direction: column;
    gap: 18px;
  }
  .collection-card {
    width: 100%;
  }
}

/* Banner inicial con texto superpuesto y fondo semitransparente */
 .banner-inicial {
   position: relative;
   width: 100vw;
   max-width: 100%;
   overflow: hidden;
   background: #5476e6;
   display: flex;
   justify-content: center;
   align-items: center;
   min-height: 180px;
   margin: 0 auto 0 auto;
   padding: 0;
 }
 .banner-img {
   width: 100%;
   max-width: 1366px;
   height: auto;
   display: block;
   object-fit: cover;
 }
 .banner-titulo {
   position: absolute;
   left: 50%;
   top: 50%;
   transform: translate(-50%,-50%);
   min-width: 220px;
   max-width: 96vw;
   padding: 18px 32px;
   background: rgba(44, 53, 120, 0.62);
   border-radius: 18px;
   color: #fff;
   font-size: 2.8rem;
   font-weight: 900;
   letter-spacing: 2px;
   text-shadow: 0 3px 18px #2a2b5c35, 0 2px 8px #484b9640;
   pointer-events: none;
   text-align: center;
   box-shadow: 0 2px 22px #233b7035;
   line-height: 1.13;
   white-space: pre-line;
   /* para permitir saltos de línea */
 }
 @media (max-width: 900px) {
   .banner-titulo {
     font-size: 20px;
     padding: 12px 6vw;
   }
   .img-responsive-center {
    position: relative; top: 50%; left: 50%; transform: translate(-50%, -50%);
   }
 }
 @media (max-width: 600px) {
   .banner-inicial {
     min-height: 80px;
   }
   .banner-titulo {
     font-size: 20px;
     padding: 9px 4vw;
     border-radius: 10px;
     /* Forzar salto de línea en responsive */
     white-space: normal;
     display: block;
   }
   .banner-titulo .break {
     display: block;
   }
   .banner-img {
     min-width: 600px;
     width: 100vw;
     max-width: none;
   }

   .img-responsive-center {
    position: relative; top: 50%; left: 50%; transform: translate(-50%, -50%);
   }

 }

 .estilo-btn-1{
  background: #de0d92;
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 1rem 0.5rem;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 12px;
  margin-top: 0;
  box-shadow: 0 2px 8px #de0d9222;
  width: 200px;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  letter-spacing: 0.2px;
}

 .estilo-btn-1:hover{
   background: #4d6cfa;
   color: #fff;
      }

/* BOTONES RECURSOS */

.estilo-btn-2{
 background: #de0d92;
 color: #fff;
 border: none;
 border-radius: 16px;
 padding: 1rem 0.5rem;
 font-size: 14px;
 font-weight: bold;
 margin-bottom: 12px;
 margin-top: 0;
 box-shadow: 0 2px 8px #de0d9222;
 width: 150px;
 text-align: center;
 display: flex;
 align-items: center;
 gap: 10px;
 justify-content: center;
 letter-spacing: 0.2px;
}

.estilo-btn-2:hover{
  background: #4d6cfa;
  color: #fff;
     }

/* INICIAN ESTILOS DE CATEGORÍAS /*

/* Botones de categorías */
.categoria-btns {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.categoria-btn {
  border: 2px solid #de0d92;
  background: #fff;
  color: #de0d92;
  font-weight: 700;
  font-size: 14px;
  border-radius: 25px;
  padding: 8px 28px 7px 28px;
  cursor: pointer;
  outline: none;
  transition: background 0.14s, color 0.18s, border 0.16s;
  margin-bottom: 8px;
}
.categoria-btn.selected,
.categoria-btn:focus {
  background: #de0d92;
  color: #fff;
  border-color: #de0d92;
}

@media (max-width: 700px) {
  .main-title { font-size: 1.35rem; }
  .categoria-btn { font-size: 1rem; padding: 8px 13px 7px 13px;}
}

/* Grid de libros */
#libros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 28px 19px;
  max-width: 1200px;
  margin: 0 auto 50px auto;
  padding: 0 2vw;
}
.libro-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px #8c24421a;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 21px 11px 18px 11px;
  transition: box-shadow 0.16s, transform 0.13s;
  border: 1.5px solid #f3e6ea;
  text-decoration: none;
  cursor: pointer;
}
.libro-card:hover {
  box-shadow: 0 8px 28px #8c24422e;
  transform: translateY(-4px) scale(1.015);
  border-color: #8c2442;
  text-decoration: none;
}
.libro-portada {
  width: 111px;
  height: 146px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 1px 12px #8c244211;
  margin-bottom: 10px;
  background: #f7e8ef;
}
.libro-titulo {
  font-size: 15px;
  font-weight: 800;
  color: #404041;
  text-align: center;
  margin-bottom: 5px;
  margin-top: 5px;
}
.libro-author {
  font-size: 14px;
  color: #404041;
  text-align: center;
  margin-bottom: 3px;
}
@media (max-width: 600px) {
  #libros-grid { gap: 18px 7px; }
  .libro-card { padding: 15px 7px 13px 7px;}
  .libro-portada { width: 80px; height: 108px; }
}

/* TAGS DE CATEGORIAS - ARBOL DE CATEGORIAS */

.tags-catego {
  text-decoration: none !important;
  font-size:12px!important;
  color: #de0d92;
}
.tags-catego a{
  text-decoration: none !important;
  font-size:12px!important;
  color: #de0d92;
}

.tags-catego a:focus a:hover{
  text-decoration: none !important;
  font-size:12px!important;
  color: #de0d92;
}

/* Julio verne */
.libros-disponibles-section {
  text-align: center;
  margin: 60px auto 40px auto;
}

.gear-buttons-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px;
  margin-top: 32px;
}

.gear-btn {
  background: none;
  border: none;
  outline: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.18s;
  width: 140px;
}

.gear-btn img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
  margin-bottom: 14px;
  transition: filter 0.2s, transform 0.18s;
}

.gear-btn span {
  font-family: 'Noto Sans', sans-serif;
  font-size: 15px;
  color: #484a5a;
  font-weight: 600;
  text-align: center;
  margin-top: 4px;
}

.gear-btn:hover img,
.gear-btn:focus img {
  filter: brightness(1.1) drop-shadow(0 2px 8px rgba(125,107,82,0.22));
  transform: scale(1.08) rotate(-8deg);
}

@media (max-width: 700px) {
  .gear-buttons-row {
    flex-direction: column;
    gap: 20px;
  }
  .gear-btn {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
  }
}
