/* =========================
   NAVBAR SUPERIOR
   ========================= */

/* Barra principal */
#navbar.navbar {
    background: linear-gradient(to bottom, #121418 0%, #0d0f13 100%);
    border: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    min-height: 64px;
}

#navbar.navbar:after {
    content: "";
    display: block;
    height: 1px;
    background: rgba(201, 169, 110, 0.55);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Contenedor */
#navbar .container {
    position: relative;
}

/* Header/logo */
#navbar .navbar-header {
    display: flex;
    align-items: center;
    min-height: 64px;
}

#navbar .navbar-brand {
    height: 64px;
    padding: 8px 0;
    display: flex;
    align-items: center;
}

#navbar .navbar-brand img.logo {
    max-height: 48px;
    width: auto;
    display: block;
}

/* Collapse y alineación general */
#navbar .navbar-collapse {
    border-top: 0;
    box-shadow: none;
}

/* Lista principal */
#navbar .nav.navbar-nav.navbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    margin-bottom: 8px;
}

/* Links generales */
#navbar .navbar-nav > li > a {
    color: #c9ced6;
    font-size: 15px;
    font-weight: 400;
    padding: 12px 14px;
    line-height: 20px;
    background: transparent !important;
    transition: color 0.2s ease, opacity 0.2s ease;
}

#navbar .navbar-nav > li > a:hover,
#navbar .navbar-nav > li > a:focus {
    color: #ffffff;
    background: transparent !important;
}

/* Iconos de los links */
#navbar .navbar-nav > li > a i {
    margin-right: 6px;
    color: #9ea7b3;
    transition: color 0.2s ease;
}

#navbar .navbar-nav > li > a:hover i,
#navbar .navbar-nav > li > a:focus i {
    color: #c9a96e;
}

/* =========================
   BUSCADOR
   ========================= */

#navbar #buscador-global {
    margin: 0;
}

#navbar #buscador-global-option {
    display: flex;
    align-items: center;
    padding-right: 8px;
    margin-right: 10px;
}

/* Quitamos comportamiento bootstrap viejo */
#navbar #buscador-global-option .form-group {
    margin-bottom: 0;
}

#navbar #buscador-global-option .form-group.pull-right {
    float: none !important;
}

/* Input */
#navbar #busqueda-global.form-control {
    width: 260px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #181c22;
    color: #f2f2f2;
    box-shadow: none;
    padding: 0 44px 0 18px;
    transition: all 0.2s ease;
}

#navbar #busqueda-global.form-control::placeholder {
    color: #8f98a3;
}

#navbar #busqueda-global.form-control:focus {
    border-color: rgba(201, 169, 110, 0.75);
    background: #1c2128;
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.12);
}

/* Botón de búsqueda integrado visualmente */
#navbar #buscador-global-option {
    position: relative;
}

#navbar #buscador-global-option .btns {
    position: absolute;
    right: 20px;
    z-index: 3;
}

#navbar #buscador-global-option .btn-control {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #aeb6c1;
    border-radius: 50%;
    padding: 0;
    outline: none;
    transition: all 0.2s ease;
}

#navbar #buscador-global-option .btn-control:hover {
    transform: none;
}

#navbar #buscador-global-option .btn-control:hover,
#navbar #buscador-global-option .btn-control:focus {
    color: #ffffff;
    background: rgba(201, 169, 110, 0.14);
}

/* =========================
   DROPDOWNS
   ========================= */

#navbar .dropdown-menu {
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    background: #171b21;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
    padding: 8px 0;
    min-width: 220px;
}

#navbar .dropdown-menu > li > a {
    color: #d7dbe2;
    padding: 10px 16px;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

#navbar .dropdown-menu > li > a:hover,
#navbar .dropdown-menu > li > a:focus {
    background: rgba(201, 169, 110, 0.08);
    color: #ffffff;
    padding-left: 20px;
}

#navbar .dropdown-user .dropdown-menu > li > a i {
    margin-right: 8px;
    color: #aeb6c1;
}

#navbar .dropdown-user .dropdown-menu > li > a:hover i,
#navbar .dropdown-user .dropdown-menu > li > a:focus i {
    color: #c9a96e;
}

/* Dropdown del usuario */
#navbar .navbar-nav > li.dropdown > a.dropdown-toggle {
    border-radius: 999px;
}

/* =========================
   NOTIFICACIONES
   ========================= */

#navbar .forum-notification-nav > a {
    padding-left: 12px;
    padding-right: 12px;
}

#navbar .forum-notification-toggle i {
    font-size: 17px;
    margin-right: 0;
}

#navbar .forum-notification-dropdown {
    min-width: 280px;
}

#navbar .forum-notification-header {
    padding: 10px 16px 8px;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 4px;
}

#navbar .forum-notification-empty {
    padding: 14px 16px;
    color: #aeb6c1;
    font-size: 14px;
}

/* =========================
   TOGGLE MOBILE
   ========================= */

#navbar .navbar-toggle {
    margin-top: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    border-radius: 10px;
    transition: all 0.2s ease;
}

#navbar .navbar-toggle:hover,
#navbar .navbar-toggle:focus {
    background: rgba(201, 169, 110, 0.08);
    border-color: rgba(201, 169, 110, 0.45);
}

#navbar .navbar-toggle .icon-bar {
    background-color: #d7dbe2;
}

#navbar .navbar-toggle .icon-bar {
    display: none;
}

#navbar .navbar-toggle {
    position: relative;
    width: 44px;
    height: 40px;
    border-radius: 10px;
}

/* Icono por defecto (hamburguesa) */
#navbar .navbar-toggle::before {
    content: "\f0c9"; /* fa-bars */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 18px;
    color: #d7dbe2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Cuando está abierto → X */
#navbar .navbar-toggle.open::before {
    content: "\f00d"; /* fa-xmark */
}

/* =========================
   ESTADO ACTIVO OPCIONAL
   ========================= */

#navbar .navbar-nav > .active > a,
#navbar .navbar-nav > .active > a:hover,
#navbar .navbar-nav > .active > a:focus {
    color: #ffffff;
    background: transparent !important;
}

/* =========================
   FOOTER
   ========================= */

.footer {
    background: linear-gradient(to bottom, #0d0f13 0%, #0a0c10 100%);
    border-top: 1px solid rgba(201, 169, 110, 0.35);
    padding: 40px 0 30px;
    margin-top: 60px;
}

/* Contenedor */
.footer-container {
    text-align: center;
    max-width: 900px;
}

/* Logo */
.footer-logo img {
    width: 220px;
    max-width: 70%;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-logo img:hover {
    opacity: 1;
    /*transform: scale(1.03);*/
}

/* Separador */
.footer-divider {
    width: 60px;
    height: 1px;
    margin: 25px auto;
    background: rgba(201, 169, 110, 0.5);
}

/* Texto */
.footer-text {
    color: #9ea7b3;
    font-size: 13px;
    line-height: 1.6;
    margin: 0 auto;
}

/* Links */
.footer-text a {
    color: #c9a96e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-text a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* =========================
   MENÚ LATERAL
   Pathfinder - Layout
   ========================= */

.menu-lateral {
    background: linear-gradient(to bottom, #121418 0%, #0d0f13 100%);
    color: #d7dbe2;
    border-right: 1px solid rgba(201, 169, 110, 0.35);
    box-shadow: 4px 0 14px rgba(0, 0, 0, 0.35);
}

/* Área del lanzador de dados */
.menu-lateral .main-lanzar {
    margin: 0;
    padding: 16px 14px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.28);
    background: rgba(255, 255, 255, 0.025);
    display: flex;
    align-items: center;
}

.menu-lateral .main-lanzar [class*="col-"] {
    padding-left: 5px;
    padding-right: 5px;
}

.menu-lateral .main-lanzar .form-control {
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #181c22;
    color: #f2f2f2;
    box-shadow: none;
}

.menu-lateral .main-lanzar .form-control:focus {
    border-color: rgba(201, 169, 110, 0.75);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.12);
}

.menu-lateral #main-lanzar-res {
    display: inline-block;
    min-width: 26px;
    text-align: center;
    color: #ffffff;
    font-weight: 600;
}

.menu-lateral .main-lanzar img {
    max-width: 34px;
    opacity: 0.9;
    transition: transform 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
}

.menu-lateral .main-lanzar img:hover {
    opacity: 1;
    transform: rotate(8deg) scale(1.05);
}

/* Scroll interno */
.menu-lateral .scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 169, 110, 0.55) rgba(255, 255, 255, 0.04);
}

.menu-lateral .scroll::-webkit-scrollbar {
    width: 8px;
}

.menu-lateral .scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

.menu-lateral .scroll::-webkit-scrollbar-thumb {
    background: rgba(201, 169, 110, 0.45);
    border-radius: 999px;
}

/* Grupos */
.menu-lateral .panel-group {
    /*margin-bottom: 12px;*/
}

/* Links de panel */
.menu-lateral .panel-a {
    display: block;
    color: #d7dbe2;
    text-decoration: none;
}

.menu-lateral .panel-a:hover,
.menu-lateral .panel-a:focus {
    color: #ffffff;
    text-decoration: none;
}

/* Encabezados tipo botón */
.menu-lateral .panel-heading {
    padding: 0;
    background: transparent;
    border: 0;
}

.menu-lateral .panel-title {
    margin: 0;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 400;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.menu-lateral .panel-a:hover .panel-title {
    background: rgba(201, 169, 110, 0.08);
    color: #ffffff;
    padding-left: 20px;
}

.menu-lateral .panel-title i {
    width: 20px;
    margin-right: 8px;
    color: #9ea7b3;
    font-size: 14px !important;
    text-align: center;
    transition: color 0.2s ease;
}

.menu-lateral .panel-a:hover .panel-title i {
    color: #c9a96e;
}

/* Tabs libros/categorías */
.menu-lateral .nav-tabs {
    border-bottom: 1px solid rgba(201, 169, 110, 0.35);
    padding: 0 10px;
}

.menu-lateral .nav-tabs > li > a {
    color: #aeb6c1;
    background: transparent;
    border: 0;
    border-radius: 10px 10px 0 0;
    padding: 11px 12px;
    font-size: 13px;
    margin-right: 4px;
    transition: color 0.2s ease, background 0.2s ease;
}

.menu-lateral .nav-tabs > li > a:hover,
.menu-lateral .nav-tabs > li > a:focus {
    color: #ffffff;
    background: rgba(201, 169, 110, 0.08);
    border: 0;
}

.menu-lateral .nav-tabs > li.active > a,
.menu-lateral .nav-tabs > li.active > a:hover,
.menu-lateral .nav-tabs > li.active > a:focus {
    color: #ffffff;
    background: rgba(201, 169, 110, 0.12);
    border: 0;
    border-bottom: 2px solid #c9a96e;
}

/* Header de libro */
.menu-lateral .book-header {
    /*margin: 10px 10px 6px;*/
    /*border-radius: 14px;*/
    overflow: hidden;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.menu-lateral .book-header:hover {
    background: rgba(201, 169, 110, 0.07);
    border-color: rgba(201, 169, 110, 0.28);
}

.menu-lateral .book-header .row {
    margin: 0;
    display: flex;
    align-items: center;
}

.menu-lateral .book-header [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

.menu-lateral .book-header img {
    max-width: 72px;
    margin: 12px 4px !important;
    border-radius: 6px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.menu-lateral .book-header h6 {
    color: #d7dbe2;
    font-size: 13px;
    line-height: 1.35;
    margin: 0;
}

.menu-lateral .book-header h6 strong {
    color: #ffffff;
    font-size: 15px;
}

/* Paneles internos */
.menu-lateral .panel {
    background: transparent;
    border: 0;
    box-shadow: none;
    margin: 0 !important;
}

.menu-lateral .panel-collapse {
    background: rgba(0, 0, 0, 0.12);
}

/* Número de capítulo */
.menu-lateral .cap-num {
    color: #c9a96e;
    margin-right: 4px;
}

/* Cuerpo del panel */
.menu-lateral .panel-body {
    padding: 0;
    border-top: 0 !important;
}

/* Tablas internas */
.menu-lateral .panel-body .table {
    margin-bottom: 0;
    background: transparent;
}

.menu-lateral .panel-body .table > tbody > tr > td {
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    padding: 0;
}

.menu-lateral .panel-body .table > tbody > tr.sub > td {
    padding-left: 15px;
}

.menu-lateral .panel-body .table a {
    display: block;
    color: #bfc6d0;
    padding: 9px 18px 9px 42px;
    font-size: 13px;
    line-height: 1.35;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.menu-lateral .panel-body .table a:hover,
.menu-lateral .panel-body .table a:focus {
    color: #ffffff;
    background: rgba(201, 169, 110, 0.07);
    padding-left: 46px;
}

.menu-lateral .panel-body .table i,
.menu-lateral .panel-body .table .fa-star {
    color: #c9a96e;
    font-size: 12px !important;
    margin-right: 6px;
}

/* Estado activo opcional */
.menu-lateral .panel-a.active .panel-title,
.menu-lateral .panel-body .table a.active {
    color: #ffffff;
    background: rgba(201, 169, 110, 0.13);
}

/* Botón/agarre de menú lateral si lo tienes fuera */
.menu-lateral-toggle,
.menu-toggle,
#menu-lateral-toggle {
    background: #0d0f13;
    color: #d7dbe2;
    border: 1px solid rgba(201, 169, 110, 0.35);
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 991px) {
    #navbar #busqueda-global.form-control {
        width: 220px;
    }
}

@media (max-width: 767px) {
    #navbar.navbar {
        min-height: 56px;
    }

    #navbar .navbar-brand {
        height: 56px;
        padding: 6px 0;
    }

    #navbar .navbar-brand img.logo {
        max-height: 42px;
    }

    #navbar .nav.navbar-nav.navbar-right {
        display: block;
        margin-top: 0;
        margin-bottom: 10px;
    }

    #navbar #buscador-global-option {
        display: block;
        padding: 10px 15px;
        margin-right: 0;
    }

    #navbar #buscador-global-option .btns {
        right: 28px;
        top: 14px;
    }

    #navbar #busqueda-global.form-control {
        width: 100%;
    }

    #navbar .navbar-nav > li > a {
        padding: 12px 15px;
    }

    #navbar .dropdown-menu {
        border-radius: 10px;
    }
}