/* MI BIBLIOTECA — VICKYESTELAR */
.library-page {
  margin:0;
  min-height:100vh;
  background:#10091b;
  color:#f7ebdd;
  font-family:Georgia,serif;
  overflow-x:hidden;
}

.library-hero {
  min-height:min(620px,68svh);
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  isolation:isolate;
  background:#21152a url("../assets/images/biblioteca.webp") center 48%/cover no-repeat;
  text-align:center;
}

.library-hero-shade {
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    linear-gradient(90deg,rgba(16,7,22,.58),rgba(16,7,22,.12) 55%,rgba(16,7,22,.3)),
    linear-gradient(0deg,rgba(16,7,22,.75),transparent 65%,rgba(16,7,22,.35));
}

.library-hero-content {
  width:min(720px,calc(100% - 36px));
  padding:110px 0 70px;
  text-shadow:0 3px 22px #160b1c;
}

.library-kicker,
.library-section-heading>span {
  color:#f0cf8b;
  font:10px Arial,sans-serif;
  letter-spacing:.28em;
}

.library-hero h1 {
  margin:20px 0 15px;
  color:#fff1dc;
  font:400 clamp(48px,8vw,86px)/1.05 Georgia,serif;
  text-shadow:0 4px 28px #21101f,0 0 35px #f4cf8a55;
}

.library-hero-content p {
  max-width:510px;
  margin:0 auto;
  color:#fff4e7;
  font:15px/1.8 Arial,sans-serif;
}

.library-explore {
  display:inline-flex;
  align-items:center;
  gap:14px;
  margin-top:30px;
  padding:13px 22px;
  border:1px solid #e4c17e;
  border-radius:30px;
  color:#fff2dc;
  background:rgba(36,19,43,.62);
  text-decoration:none;
  font:12px Georgia,serif;
  transition:background .25s,transform .25s;
}
.library-explore:hover {
  background:rgba(95,57,91,.8);
  transform:translateY(-3px);
}
.library-explore span {color:#f0cf8b;font-size:18px}

.library-home-link {
  position:absolute;
  left:clamp(18px,4vw,48px);
  bottom:25px;
  color:#fff0dc;
  text-decoration:none;
  font:12px Georgia,serif;
  text-shadow:0 2px 8px #000;
}
.library-home-link:hover {color:#f0cf8b}

.library-dashboard {
  position:relative;
  padding:75px clamp(18px,5vw,64px) 80px;
  background:
    radial-gradient(ellipse at 50% 0%,#50305e 0%,#291832 42%,#10091b 100%);
}

.library-section-heading {
  text-align:center;
  margin:0 auto 35px;
}
.library-section-heading h2 {
  margin:13px 0 0;
  color:#fff1dc;
  font:400 clamp(27px,4vw,42px) Georgia,serif;
}

.library-shortcuts {
  width:min(1000px,100%);
  margin:auto;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:15px;
}

.library-shortcuts a {
  min-height:155px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:18px 10px;
  border:1px solid rgba(217,173,89,.38);
  border-radius:17px;
  color:#fff0df;
  text-decoration:none;
  text-align:center;
  background:linear-gradient(145deg,rgba(255,255,255,.10),rgba(20,8,28,.48));
  box-shadow:0 12px 30px #0003;
  transition:transform .25s,border-color .25s,background .25s;
}
.library-shortcuts a:hover {
  transform:translateY(-5px);
  border-color:#e6c47d;
  background:linear-gradient(145deg,rgba(126,83,132,.35),rgba(20,8,28,.62));
}
.shortcut-icon {
  color:#e4bd72;
  font:29px Georgia,serif;
  line-height:1;
}
.library-shortcuts strong {font:16px Georgia,serif}
.library-shortcuts small {color:#d7c5dc;font:11px Arial,sans-serif}

.library-stats {
  width:min(760px,100%);
  margin:35px auto 0;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border:1px solid rgba(217,173,89,.28);
  border-radius:15px;
  background:rgba(13,7,21,.36);
}
.library-stats div {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:5px;
  padding:17px 8px;
}
.library-stats div+div {border-left:1px solid rgba(217,173,89,.2)}
.library-stats strong {color:#f0cf8b;font:30px Georgia,serif}
.library-stats span {color:#ddcfe0;font:10px Arial,sans-serif}

.library-collections {
  width:min(1000px,100%);
  margin:55px auto 0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:15px;
}
.library-collection {
  min-height:130px;
  padding:23px;
  border:1px solid rgba(217,173,89,.25);
  border-radius:15px;
  background:linear-gradient(145deg,rgba(255,255,255,.07),rgba(12,6,19,.42));
  scroll-margin-top:90px;
}
.library-collection>span {color:#e4bd72;font-size:21px}
.library-collection h2 {
  margin:8px 0 5px;
  color:#fff0df;
  font:400 21px Georgia,serif;
}
.library-collection p {margin:0;color:#d2c5d8;font:12px/1.6 Arial,sans-serif}

.library-footer {
  padding:25px 15px 35px;
  background:#10091b;
  color:#d9ad59;
  text-align:center;
  font:11px Georgia,serif;
  letter-spacing:.12em;
}
.library-footer span {padding:0 8px;color:#e9d9e9}

@media(max-width:700px) {
  .library-hero {min-height:min(520px,62svh);background-position:54% center}
  .library-hero-content {padding:100px 0 65px}
  .library-hero-content p {font-size:13px}
  .library-dashboard {padding:58px 16px 60px}
  .library-shortcuts {grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
  .library-shortcuts a {min-height:125px}
  .library-shortcuts strong {font-size:14px}
  .library-stats strong {font-size:25px}
  .library-stats span {font-size:9px}
  .library-collections {grid-template-columns:1fr;margin-top:35px}
}
@media(prefers-reduced-motion:reduce) {
  .library-explore,.library-shortcuts a {transition:none}
}

/* AJUSTE DE LUMINOSIDAD — MISMA IDENTIDAD VISUAL DEL INICIO */
.library-hero-shade {
  background:
    radial-gradient(ellipse at 50% 35%,rgba(117,65,143,.08),transparent 65%),
    linear-gradient(90deg,rgba(16,7,22,.30),rgba(16,7,22,.04) 55%,rgba(16,7,22,.16)),
    linear-gradient(0deg,rgba(16,7,22,.48),transparent 65%,rgba(16,7,22,.16));
}

.library-explore {
  border-color:#f0cf8b;
  background:rgba(48,19,63,.72);
  box-shadow:0 0 18px rgba(217,173,89,.22),inset 0 0 16px rgba(217,173,89,.08);
}

.library-shortcuts a {
  position:relative;
  overflow:hidden;
  border-color:rgba(217,173,89,.52);
  background:linear-gradient(155deg,rgba(255,255,255,.13),rgba(255,255,255,.035) 48%,rgba(9,4,17,.48));
  box-shadow:0 16px 42px #0003,0 0 18px rgba(217,173,89,.09);
  backdrop-filter:blur(8px);
}

.library-shortcuts a:nth-child(2) {
  border-color:rgba(233,169,201,.58);
  box-shadow:0 12px 35px #0003,0 0 20px rgba(233,169,201,.12);
}

.library-shortcuts a:nth-child(3) {
  border-color:rgba(183,162,237,.58);
  box-shadow:0 12px 35px #0003,0 0 20px rgba(183,162,237,.12);
}

.library-shortcuts a:nth-child(4) {
  border-color:rgba(169,216,220,.55);
  box-shadow:0 12px 35px #0003,0 0 20px rgba(169,216,220,.11);
}

.library-shortcuts a:hover {
  box-shadow:0 22px 48px #0005,0 0 28px rgba(217,173,89,.22);
}

.library-stats {
  border-color:rgba(217,173,89,.42);
  background:linear-gradient(135deg,rgba(117,65,143,.22),rgba(13,7,21,.42));
  box-shadow:0 10px 30px #0002,0 0 20px rgba(217,173,89,.07);
}

.library-collection {
  border-color:rgba(217,173,89,.38);
  background:linear-gradient(155deg,rgba(255,255,255,.10),rgba(255,255,255,.025) 48%,rgba(9,4,17,.48));
  box-shadow:0 16px 42px #0003;
  backdrop-filter:blur(8px);
}


/* Colecciones de libros */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 22px;
  margin-top: 24px;
}
.book-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(217,173,89,.18);
}
.book-cover {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #21152a;
}
.book-info { padding: 12px; }
.book-info h3 {
  margin: 0 0 6px;
  color: #F7EBDD;
  font-size: .95rem;
  line-height: 1.35;
}
.book-info p {
  margin: 0;
  color: rgba(247,235,221,.72);
  font-size: .82rem;
  line-height: 1.4;
}
.empty-reviews { opacity: .8; }
@media (max-width: 600px) {
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}



/* Páginas individuales de colecciones */

.library-subpage-dashboard {
  min-height: 48vh;
}
.library-subpage-dashboard .book-grid {
  width: min(1100px, 100%);
  margin: 0 auto;
}
.book-cover-missing {
  min-height: 160px;
  background: linear-gradient(145deg, #50305e, #21152a);
}



/* Navegación secundaria de biblioteca */
.library-section-nav {
  position: sticky;
  top: 70px;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: max-content;
  max-width: calc(100% - 28px);
  margin: 76px auto 0;
  padding: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border: 1px solid rgba(217,173,89,.35);
  border-radius: 30px;
  background: rgba(24,11,34,.94);
  box-shadow: 0 8px 26px rgba(0,0,0,.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.library-section-nav::-webkit-scrollbar { display: none; }
.library-section-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 22px;
  color: #eadde9;
  text-decoration: none;
  white-space: nowrap;
  font: 12px Georgia,serif;
  transition: background .2s,border-color .2s,color .2s;
}
.library-section-nav a span { color: #e4bd72; font-size: 15px; }
.library-section-nav a:hover {
  color: #fff2dc;
  background: rgba(117,65,143,.25);
  border-color: rgba(217,173,89,.25);
}
.library-section-nav a[aria-current="page"] {
  color: #fff2dc;
  background: linear-gradient(135deg,rgba(117,65,143,.65),rgba(72,39,83,.8));
  border-color: rgba(240,207,139,.7);
  box-shadow: 0 0 15px rgba(217,173,89,.13);
}
.library-section-nav a[aria-current="page"] span { color: #f5d28c; }
.library-section-nav a b { font-weight: 400; }

@media (max-width: 700px) {
  .library-section-nav {
    top: 62px;
    justify-content: flex-start;
    width: calc(100% - 20px);
    max-width: none;
    margin-top: 62px;
    padding: 6px;
    border-radius: 18px;
  }
  .library-section-nav a {
    min-height: 36px;
    padding: 8px 11px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .library-section-nav a { transition: none; }
}


/* Panel identificativo de Mi biblioteca */
.library-navigation-panel {
  position: sticky;
  top: 70px;
  z-index: 55;
  width: min(1100px, calc(100% - 36px));
  margin: 76px auto 0;
  overflow: hidden;
  border: 1px solid rgba(217,173,89,.48);
  border-radius: 19px;
  background:
    radial-gradient(ellipse at 50% 0%,rgba(117,65,143,.34),transparent 70%),
    linear-gradient(145deg,#30203c,#1b1027 75%);
  box-shadow: 0 12px 35px rgba(0,0,0,.34), 0 0 24px rgba(217,173,89,.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.library-navigation-heading {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 13px 18px 10px;
  text-align: center;
  border-bottom: 1px solid rgba(217,173,89,.22);
}
.library-navigation-heading h2 {
  margin: 4px 0 2px;
  color: #fff0df;
  font: 400 21px Georgia,serif;
  letter-spacing: .13em;
}
.library-navigation-heading p {
  margin: 0;
  color: #d8c5df;
  font: 11px Arial,sans-serif;
  letter-spacing: .06em;
}
.library-navigation-kicker {
  color: #e5bd75;
  font: 9px Arial,sans-serif;
  letter-spacing: .2em;
}
.library-navigation-symbol {
  color: #e4bd72;
  font: 25px Georgia,serif;
  text-shadow: 0 0 15px rgba(217,173,89,.55);
}
.library-navigation-panel .library-section-nav {
  position: static;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 9px 12px;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (max-width: 700px) {
  .library-navigation-panel {
    top: 62px;
    width: calc(100% - 20px);
    margin-top: 62px;
    border-radius: 15px;
  }
  .library-navigation-heading {
    min-height: 68px;
    gap: 10px;
  }
  .library-navigation-heading h2 {
    font-size: 17px;
  }
  .library-navigation-heading p {
    font-size: 10px;
  }
  .library-navigation-kicker {
    font-size: 8px;
  }
  .library-navigation-symbol {
    font-size: 20px;
  }
  .library-navigation-panel .library-section-nav {
    justify-content: flex-start;
    padding: 7px;
  }
}




/* Menú desplegable de colecciones */
.library-dropdown {
  position: relative;
  z-index: 56;
  width: min(310px, calc(100% - 36px));
  margin: 78px auto 0;
  color: #fff0df;
  font-family: Georgia,serif;
}
.library-dropdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 17px;
  border: 1px solid rgba(217,173,89,.45);
  border-radius: 12px;
  background: rgba(36,21,47,.96);
  color: #fff0df;
  cursor: pointer;
  list-style: none;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.library-dropdown summary::-webkit-details-marker { display:none; }
.library-dropdown summary > span:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}
.library-dropdown summary > span:first-child span {
  color: #D9AD59;
}
.library-dropdown-arrow {
  color: #D9AD59;
  transition: transform .2s;
}
.library-dropdown[open] .library-dropdown-arrow {
  transform: rotate(180deg);
}
.library-dropdown-menu {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid rgba(217,173,89,.4);
  border-radius: 12px;
  background: #24152f;
  box-shadow: 0 12px 28px rgba(0,0,0,.4);
}
.library-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 8px;
  color: #eadde9;
  text-decoration: none;
  font: 13px Georgia,serif;
}
.library-dropdown-menu a:first-letter { color: #D9AD59; }
.library-dropdown-menu a:hover,
.library-dropdown-menu a[aria-current="page"] {
  background: rgba(117,65,143,.4);
  color: #fff0df;
}
@media (max-width:700px) {
  .library-dropdown { margin-top: 65px; }
}


/* Navegación integrada de categorías de la biblioteca */
.library-category-nav {
  position: relative;
  z-index: 5;
  width: min(1100px, calc(100% - 36px));
  margin: 0 auto;
  padding: 25px 22px 23px;
  border: 1px solid rgba(217,173,89,.28);
  border-top: 0;
  border-radius: 0 0 19px 19px;
  background:
    radial-gradient(ellipse at 50% 0%,rgba(117,65,143,.22),transparent 75%),
    linear-gradient(145deg,rgba(48,19,63,.97),rgba(24,11,34,.98));
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
}
.category-nav-heading {
  display: block;
  margin-bottom: 16px;
  color: #D9AD59;
  text-align: center;
  font: 9px Arial,sans-serif;
  letter-spacing: .22em;
}
.category-nav-items {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 9px;
}
.category-nav-items a {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 68px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 5px;
  overflow: hidden;
  border: 1px solid rgba(217,173,89,.16);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  color: #EADDE9;
  text-align: center;
  text-decoration: none;
  transition: transform .22s ease,background .22s ease,
              border-color .22s ease,box-shadow .22s ease,color .22s ease;
}
.category-nav-icon {
  color: #D9AD59;
  font: 22px Georgia,serif;
  line-height: 1;
  transition: transform .22s ease,text-shadow .22s ease;
}
.category-nav-label {
  font: 11px Arial,sans-serif;
  line-height: 1.25;
}
.category-nav-items a:hover {
  transform: translateY(-3px);
  border-color: rgba(217,173,89,.62);
  background: rgba(117,65,143,.24);
  color: #FFF2DC;
  box-shadow: 0 7px 18px rgba(0,0,0,.2),0 0 15px rgba(117,65,143,.18);
}
.category-nav-items a:hover .category-nav-icon {
  transform: scale(1.12);
  text-shadow: 0 0 12px rgba(217,173,89,.6);
}
.category-nav-items a[aria-current="page"] {
  border-color: rgba(217,173,89,.8);
  background: linear-gradient(145deg,rgba(117,65,143,.58),rgba(72,39,83,.7));
  color: #FFF2DC;
  box-shadow: inset 0 -3px 0 #D9AD59,0 0 17px rgba(217,173,89,.12);
}
.category-nav-items a[aria-current="page"] .category-nav-icon {
  color: #F5D28C;
  text-shadow: 0 0 12px rgba(217,173,89,.45);
}
@media(max-width:800px) {
  .category-nav-items {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}
@media(max-width:520px) {
  .library-category-nav {
    width: calc(100% - 24px);
    padding: 20px 12px 16px;
    border-radius: 0 0 15px 15px;
  }
  .category-nav-heading {
    margin-bottom: 12px;
    font-size: 8px;
  }
  .category-nav-items { gap: 7px; }
  .category-nav-items a {
    min-height: 62px;
    padding: 8px 3px;
    border-radius: 10px;
  }
  .category-nav-icon { font-size: 20px; }
  .category-nav-label { font-size: 10px; }
}
@media(prefers-reduced-motion:reduce) {
  .category-nav-items a,
  .category-nav-icon { transition: none; }
  .category-nav-items a:hover { transform: none; }
}


/* Idiomas de las fichas de libros */
.book-info .book-language,
.book-info .book-read-language {
  margin-top: 8px;
  color: rgba(247,235,221,.82);
  font-size: .72rem;
  line-height: 1.4;
}
.book-info .book-read-language {
  color: #D9AD59;
}


/* Alineación de idioma en las tarjetas de libros leídos */
.book-grid .book-card {
  display: flex;
  flex-direction: column;
}
.book-grid .book-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.book-info .book-read-language {
  margin-top: auto;
  padding-top: 12px;
  min-height: 38px;
  display: block;
  color: #D9AD59;
  font-size: .76rem;
  line-height: 1.5;
}

/* Banderas independientes para idioma de lectura */
.reading-language-flag {
  display: inline-block;
  width: 19px;
  height: 13px;
  margin: 0 3px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 2px;
  vertical-align: -2px;
  overflow: hidden;
  box-sizing: border-box;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.reading-language-flag.flag-spain {
  background-image: linear-gradient(
    to bottom,
    #AA151B 0%, #AA151B 25%,
    #F1BF00 25%, #F1BF00 75%,
    #AA151B 75%, #AA151B 100%
  ) !important;
}
.reading-language-flag.flag-france {
  background-image: linear-gradient(
    to right,
    #002395 0%, #002395 33.333%,
    #FFFFFF 33.333%, #FFFFFF 66.666%,
    #ED2939 66.666%, #ED2939 100%
  ) !important;
}


/* =========================================
   VICKYESTELAR — DASHBOARD DE BIBLIOTECA
   Refinamiento visual
========================================= */

.library-dashboard {
  padding: 76px 24px 85px;
  background:
    radial-gradient(ellipse at 50% 8%, rgba(117,65,143,.38), transparent 58%),
    radial-gradient(ellipse at 10% 55%, rgba(183,162,237,.09), transparent 42%),
    radial-gradient(ellipse at 90% 65%, rgba(233,169,201,.08), transparent 42%),
    linear-gradient(180deg,#382044 0%,#24142f 58%,#10091b 100%);
}

.library-section-heading {
  width: min(900px,100%);
  margin: 0 auto 42px;
  text-align: center;
}

.library-section-heading h2 {
  margin: 15px 0 0;
  color: #fff1dc;
  font: 400 clamp(32px,3.5vw,46px)/1.2 Georgia,serif;
  text-shadow: 0 3px 22px rgba(217,173,89,.18);
}

.library-section-heading > span {
  color: #e8c47e;
  font-size: 10px;
  letter-spacing: .32em;
}

.library-shortcuts {
  width: min(1050px,100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 18px;
  align-items: stretch;
}

.library-shortcuts a {
  min-width: 0;
  min-height: 165px;
  padding: 23px 14px;
  border: 1px solid rgba(217,173,89,.48);
  border-radius: 19px;
  background:
    radial-gradient(ellipse at 50% 0%,rgba(255,255,255,.12),transparent 70%),
    linear-gradient(155deg,rgba(117,65,143,.30),rgba(20,8,28,.72));
  box-shadow: 0 15px 35px rgba(0,0,0,.24),
              inset 0 1px rgba(255,255,255,.08);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.library-shortcuts a:nth-child(2) {
  border-color: rgba(233,169,201,.62);
  background: linear-gradient(155deg,rgba(130,62,105,.35),rgba(20,8,28,.72));
}

.library-shortcuts a:nth-child(3) {
  border-color: rgba(183,162,237,.62);
  background: linear-gradient(155deg,rgba(91,70,145,.38),rgba(20,8,28,.72));
}

.library-shortcuts a:nth-child(4) {
  border-color: rgba(169,216,220,.58);
  background: linear-gradient(155deg,rgba(48,105,111,.30),rgba(20,8,28,.72));
}

.library-shortcuts a:nth-child(5) {
  border-color: rgba(217,173,89,.55);
  background: linear-gradient(155deg,rgba(117,65,143,.25),rgba(20,8,28,.72));
}

.library-shortcuts a:hover {
  transform: translateY(-7px);
  border-color: #f0cf8b;
  box-shadow: 0 20px 42px rgba(0,0,0,.34),
              0 0 24px rgba(217,173,89,.18);
}

.shortcut-icon {
  font-size: 32px;
  color: #e9c477;
  text-shadow: 0 0 16px rgba(217,173,89,.32);
}

.library-shortcuts strong {
  font: 16px/1.35 Georgia,serif;
  color: #fff1dc;
}

.library-shortcuts small {
  color: #dfcfe4;
  font: 11px/1.5 Arial,sans-serif;
}

.library-stats {
  width: min(850px,100%);
  margin: 48px auto 0;
  overflow: hidden;
  border: 1px solid rgba(217,173,89,.48);
  border-radius: 18px;
  background: linear-gradient(120deg,rgba(117,65,143,.28),rgba(16,9,27,.78));
  box-shadow: 0 15px 38px rgba(0,0,0,.22),
              0 0 22px rgba(217,173,89,.07);
}

.library-stats div {
  padding: 21px 12px;
  background: linear-gradient(180deg,rgba(255,255,255,.035),transparent);
}

.library-stats strong {
  color: #f0cf8b;
  font: 34px Georgia,serif;
  text-shadow: 0 0 18px rgba(217,173,89,.22);
}

.library-stats span {
  color: #e7d8eb;
  font: 11px Arial,sans-serif;
}

.library-stats div+div {
  border-left: 1px solid rgba(217,173,89,.25);
}

@media(max-width:900px) {
  .library-shortcuts {
    grid-template-columns: repeat(2,minmax(0,1fr));
    max-width: 650px;
  }
  .library-shortcuts a:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 9px);
    justify-self: center;
  }
}

@media(max-width:700px) {
  .library-dashboard {
    padding: 58px 16px 62px;
  }
  .library-section-heading {
    margin-bottom: 30px;
  }
  .library-shortcuts {
    gap: 12px;
  }
  .library-shortcuts a {
    min-height: 135px;
    padding: 17px 10px;
  }
  .library-stats {
    margin-top: 34px;
  }
}


/* VICKYESTELAR — CATEGORÍAS CENTRADAS Y LUMINOSAS */

.library-category-nav {
  width: min(1100px, calc(100% - 36px));
  margin-left: auto;
  margin-right: auto;
  padding: 25px 24px 27px;
  background:
    radial-gradient(ellipse at 50% 0%,rgba(160,104,190,.25),transparent 70%),
    linear-gradient(145deg,#351b45,#21102f 75%,#180c25);
  border: 1px solid rgba(217,173,89,.42);
  border-top: 0;
  box-shadow:
    0 14px 35px rgba(0,0,0,.28),
    inset 0 1px rgba(255,255,255,.06);
}

.category-nav-heading {
  margin-bottom: 20px;
  color: #edc879;
  font-size: 10px;
  letter-spacing: .28em;
  text-shadow: 0 0 12px rgba(217,173,89,.35);
}

.category-nav-items {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,190px));
  justify-content: center;
  gap: 13px;
}

.category-nav-items a {
  position: relative;
  min-height: 82px;
  padding: 12px 10px;
  overflow: hidden;
  border: 1px solid rgba(217,173,89,.38);
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 50% 0%,rgba(255,255,255,.12),transparent 75%),
    linear-gradient(145deg,rgba(117,65,143,.35),rgba(27,13,39,.92));
  color: #fff1df;
  box-shadow:
    0 8px 20px rgba(0,0,0,.20),
    inset 0 1px rgba(255,255,255,.08);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.category-nav-items a:nth-child(2) {
  border-color: rgba(233,169,201,.55);
  background: linear-gradient(145deg,rgba(139,69,111,.43),rgba(31,13,38,.94));
  box-shadow: 0 8px 20px rgba(233,169,201,.07);
}

.category-nav-items a:nth-child(3) {
  border-color: rgba(183,162,237,.58);
  background: linear-gradient(145deg,rgba(91,70,145,.48),rgba(25,13,43,.94));
  box-shadow: 0 8px 20px rgba(183,162,237,.08);
}

.category-nav-items a:nth-child(4) {
  border-color: rgba(169,216,220,.55);
  background: linear-gradient(145deg,rgba(48,105,111,.42),rgba(17,29,43,.94));
  box-shadow: 0 8px 20px rgba(169,216,220,.07);
}

.category-nav-items a:nth-child(5) {
  border-color: rgba(217,173,89,.52);
  background: linear-gradient(145deg,rgba(117,65,143,.38),rgba(36,20,42,.95));
}

.category-nav-items a:hover {
  transform: translateY(-5px);
  border-color: #f1ce83;
  box-shadow:
    0 12px 28px rgba(0,0,0,.30),
    0 0 20px rgba(217,173,89,.20),
    inset 0 0 16px rgba(255,255,255,.06);
}

.category-nav-icon {
  color: #edc477;
  font-size: 24px;
  text-shadow: 0 0 12px rgba(217,173,89,.45);
}

.category-nav-label {
  color: #fff0df;
  font-size: 12px;
}

.category-nav-items a[aria-current="page"],
.category-nav-items a.active {
  border-color: #e9c477;
  box-shadow:
    0 0 0 1px rgba(217,173,89,.20),
    0 8px 24px rgba(217,173,89,.17),
    inset 0 0 22px rgba(217,173,89,.12);
}

@media(max-width:800px) {
  .category-nav-items {
    grid-template-columns: repeat(3,minmax(0,190px));
  }
}

@media(max-width:520px) {
  .category-nav-items {
    grid-template-columns: repeat(2,minmax(0,1fr));
    justify-content: center;
  }

  .category-nav-items a:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 4px);
    justify-self: center;
  }
}


/* VICKYESTELAR — LUMINOSIDAD REFINADA EN CATEGORÍAS */

.category-nav-items a {
  border-color: rgba(224,185,255,.48);
  box-shadow:
    0 0 12px rgba(174,119,220,.12),
    0 8px 20px rgba(0,0,0,.22),
    inset 0 0 18px rgba(210,170,255,.07),
    inset 0 1px rgba(255,255,255,.12);
}

.category-nav-items a:nth-child(1) {
  background:
    radial-gradient(ellipse at 50% 0%,rgba(205,155,255,.24),transparent 75%),
    linear-gradient(145deg,#603477,#291538);
  box-shadow: 0 0 15px rgba(174,119,220,.18),
              inset 0 0 20px rgba(205,155,255,.09);
}

.category-nav-items a:nth-child(2) {
  background:
    radial-gradient(ellipse at 50% 0%,rgba(255,166,211,.24),transparent 75%),
    linear-gradient(145deg,#703653,#30162f);
  box-shadow: 0 0 15px rgba(233,169,201,.17),
              inset 0 0 20px rgba(255,166,211,.08);
}

.category-nav-items a:nth-child(3) {
  background:
    radial-gradient(ellipse at 50% 0%,rgba(181,157,255,.27),transparent 75%),
    linear-gradient(145deg,#514078,#251638);
  box-shadow: 0 0 15px rgba(183,162,237,.19),
              inset 0 0 20px rgba(181,157,255,.09);
}

.category-nav-items a:nth-child(4) {
  background:
    radial-gradient(ellipse at 50% 0%,rgba(139,231,231,.23),transparent 75%),
    linear-gradient(145deg,#285b65,#172b3b);
  box-shadow: 0 0 15px rgba(169,216,220,.17),
              inset 0 0 20px rgba(139,231,231,.08);
}

.category-nav-items a:nth-child(5) {
  background:
    radial-gradient(ellipse at 50% 0%,rgba(255,207,125,.22),transparent 75%),
    linear-gradient(145deg,#67406f,#301b3c);
  box-shadow: 0 0 15px rgba(217,173,89,.17),
              inset 0 0 20px rgba(255,207,125,.08);
}

.category-nav-icon {
  color: #ffda8b;
  text-shadow:
    0 0 5px rgba(255,218,139,.65),
    0 0 13px rgba(255,193,93,.35);
}

.category-nav-items a:hover {
  box-shadow:
    0 0 9px rgba(255,218,139,.28),
    0 0 24px rgba(217,173,89,.20),
    0 12px 28px rgba(0,0,0,.30),
    inset 0 0 22px rgba(255,255,255,.10);
}

.category-nav-items a[aria-current="page"],
.category-nav-items a.active {
  border-color: #f4d18a;
  box-shadow:
    0 0 8px rgba(255,218,139,.38),
    0 0 22px rgba(217,173,89,.23),
    inset 0 0 24px rgba(255,218,139,.13);
}

